Re: [PATCH 1/2 v2] efi_loader: Sort header file ordering

2020-10-22 Thread Heinrich Schuchardt
On 10/22/20 12:04 AM, Ilias Apalodimas wrote: > Order header files according to https://www.denx.de/wiki/U-Boot/CodingStyle > > Signed-off-by: Ilias Apalodimas > Suggested-by: Heinrich Schuchardt Reviewed-by: Heinrich Schuchardt

Re: [PATCH 4/8] sunxi: board: Add PinePhone DT selection logic

2020-10-22 Thread Jagan Teki
On Thu, Oct 22, 2020 at 7:08 AM Samuel Holland wrote: > > On 10/21/20 1:56 PM, Jagan Teki wrote: > > On Thu, Sep 3, 2020 at 10:37 AM Samuel Holland wrote: > >> > >> There are two different publicly-released revisions of the PinePhone > >> hardware, versions 1.1 and 1.2; and they need different

[PULL] Pull request for u-boot master = u-boot-stm32-20201021

2020-10-22 Thread Patrick DELAUNAY
Hi Tom, Please pull the STM32 related patches for u-boot/master, v2021.01: u-boot-stm32-20201021 - Activate CMD_EXPORTENV/CMD_IMPORTENV/CMD_ELF for STM32MP15 defconfig - Fix stm32prog command: parsing of FlashLayout without partition - Update MAINTAINERS for ARM STM STM32MP - Manage eth1addr on

[PATCH] samsung: common: remove the duplicated stdio print message

2020-10-22 Thread Jaehoon Chung
Remove duplicated stdio print message. It's already displayed in common/console.c. Loading Environment from MMC... OK In:serial Out: serial Err: serial Model: Odroid XU3/XU4/HC1/HC2 based on Exynos5422 Type: xu3 In:serial Out: serial Err: serial Signed-off-by: Jaehoon Chung ---

[PATCH v2 1/2] i2c: ocores: add i2c driver for OpenCores I2C controller

2020-10-22 Thread Pragnesh Patel
Add support for the OpenCores I2C controller IP core (See http://www.opencores.org/projects.cgi/web/i2c/overview). This driver implementation is inspired from the Linux OpenCores I2C driver available. Thanks to Peter Korsgaard for writing Linux OpenCores I2C driver. Signed-off-by: Pragnesh

[PATCH v2 0/2] Add OpenCores I2C controller driver

2020-10-22 Thread Pragnesh Patel
This driver has been tested on HiFive Unleashed with a PMOD based RTCC sensor connected to I2C pins J1 header of the board. This series is available here [1] for testing [1] https://github.com/pragnesh26992/u-boot/tree/i2c Tested-by: Sagar Shrikant Kadam Changes in v2: - Remove

[PATCH v2 2/2] riscv: sifive/fu540: kconfig: Enable support for Opencores I2C controller

2020-10-22 Thread Pragnesh Patel
Enable support for SiFive FU540 Opencores I2C master controller. Signed-off-by: Pragnesh Patel --- (no changes since v1) arch/riscv/cpu/fu540/Kconfig | 2 ++ board/sifive/fu540/Kconfig | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/riscv/cpu/fu540/Kconfig

[PATCH v1 4/7] imx8: allow overriding memory layout

2020-10-22 Thread Igor Opaniuk
From: Marcel Ziswiler Introduce weak function board_mem_get_layout() which allows overriding the memory layout from board code in runtime, useful for handling different SKU versions. Signed-off-by: Marcel Ziswiler Signed-off-by: Igor Opaniuk --- arch/arm/include/asm/mach-imx/sys_proto.h |

[PATCH v1 5/7] apalis-imx8: add implementation for board_mem_get_layout

2020-10-22 Thread Igor Opaniuk
From: Igor Opaniuk Add implementation of board_mem_get_layout for overriding the memory layout. Signed-off-by: Igor Opaniuk --- board/toradex/apalis-imx8/apalis-imx8.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/toradex/apalis-imx8/apalis-imx8.c

[PATCH v1 7/7] colibri-imx8x: add implementation for board_mem_get_layout

2020-10-22 Thread Igor Opaniuk
From: Igor Opaniuk Add implementation of board_mem_get_layout for overriding the memory layout. Signed-off-by: Igor Opaniuk --- board/toradex/colibri-imx8x/colibri-imx8x.c | 23 + 1 file changed, 23 insertions(+) diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c

[PATCH v1 6/7] apalis-imx8x: add implementation for board_mem_get_layout

2020-10-22 Thread Igor Opaniuk
From: Igor Opaniuk Add implementation of board_mem_get_layout for overriding the memory layout. Signed-off-by: Igor Opaniuk --- board/toradex/apalis-imx8x/apalis-imx8x.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/toradex/apalis-imx8x/apalis-imx8x.c

[PATCH v1 2/7] board: toradex: add apalis-imx8x 2gb wb it v1.1a module support

2020-10-22 Thread Igor Opaniuk
From: Igor Opaniuk This commit adds initial support for the Toradex Apalis iMX8X 2GB WB IT V1.1A System on Module support [1]. Boot log: U-Boot 2020.10-02940-g894aebb7e8-dirty (Oct 22 2020 - 09:43:57 +0300) CPU: NXP i.MX8QXP RevB A35 at 1200 MHz at 30C DRAM: 2 GiB MMC: FSL_SDHC: 0,

[PATCH v1 1/7] ARM: dts: fsl-imx8qxp-apalis: add initial device tree

2020-10-22 Thread Igor Opaniuk
From: Igor Opaniuk Introduce initial hierarchy of device trees for Apalis iMX8X System on Module. Signed-off-by: Igor Opaniuk --- arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-imx8qxp-apalis-u-boot.dtsi | 139 ++ arch/arm/dts/fsl-imx8qxp-apalis.dts |

[PATCH v1 3/7] doc: board: apalis-imx8x: add documentation

2020-10-22 Thread Igor Opaniuk
From: Igor Opaniuk This documents the u-boot build and deployment procedure. Signed-off-by: Igor Opaniuk --- doc/board/toradex/apalix-imx8x.rst | 74 ++ doc/board/toradex/index.rst| 1 + 2 files changed, 75 insertions(+) create mode 100644

[PATCH v1 0/7] toradex: add support for Apalis iMX8X WB IT V1.1 module

2020-10-22 Thread Igor Opaniuk
- Adds initial support for the Toradex Apalis iMX8X 2GB WB IT V1.1A System on Module suppo - Introduces weak function board_mem_get_layout() for imx8-based board which allows overriding the memory layout from board code in runtime, useful for handling different SKU versions Igor Opaniuk

Re: [PATCH v5 0/9] sunxi: binman fixes and SCP firmware support

2020-10-22 Thread Maxime Ripard
On Wed, Oct 21, 2020 at 09:12:07PM -0500, Samuel Holland wrote: > This is a rework of my previous patch series adding SCP firmware support > for system suspend, on top of the binman rewrite of mksunxi_fit_atf.sh. > Now that the generic binman updates have all been merged, this patchset > is based

Re: [PATCH 2/2 v2] efi_loader: Disable devices before handing over control

2020-10-22 Thread Heinrich Schuchardt
On 10/22/20 12:04 AM, Ilias Apalodimas wrote: > U-Boot Driver Model is supposed to remove devices with either > DM_REMOVE_ACTIVE_DMA or DM_REMOVE_OS_PREPARE flags set, before exiting. > Our bootm command does that by explicitly calling calling > "dm_remove_devices_flags(DM_REMOVE_ACTIVE_ALL);" and

Re: [PATCH 2/3] sunxi: dts: OrangePi Zero: Enable SPI flash.

2020-10-22 Thread Jagan Teki
On Tue, Sep 29, 2020 at 2:32 AM Michal Suchanek wrote: > > This flash is optional but new boards do have it, and on boards that > don't the pins are routed to the flash pads anyway. > > Signed-off-by: Michal Suchanek > --- > arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 4 ++-- > 1 file

Re: [PATCH 1/4] serial: serial_xen: print U-Boot banner and others

2020-10-22 Thread Anastasiia Lukianenko
Hi, On Thu, 2020-10-15 at 13:25 +0900, AKASHI Takahiro wrote: > At present, DM_FLAG_PRE_RELOC is set only if !OF_CONTROL. > It doesn't make sense for this para-virtualized driver. > > With this patch applied, you will be able to see early boot messages: > > U-Boot

Re: [PATCH 4/4] serial: serial_xen: add DEBUG_UART support

2020-10-22 Thread takahiro.aka...@linaro.org
On Thu, Oct 22, 2020 at 09:19:41AM +, Anastasiia Lukianenko wrote: > Hi, > > On Thu, 2020-10-15 at 13:25 +0900, AKASHI Takahiro wrote: > > By using a hypervisor call, we can implement DEBUG_UART on xen. > > This will allow us to see messages even earlier than serial_init(). > > > >

[PATCH v2 5/7] riscv: dts: Add device tree for Microchip Icicle Kit

2020-10-22 Thread Padmarao Begari
Add device tree for Microchip PolarFire SoC Icicle Kit. Signed-off-by: Padmarao Begari --- arch/riscv/dts/Makefile | 1 + arch/riscv/dts/microchip-icicle-kit-a000.dts | 426 +++ 2 files changed, 427 insertions(+) create mode 100644

[PATCH v2 2/7] net: macb: Add DMA 64-bit address support for macb

2020-10-22 Thread Padmarao Begari
Enable 64-bit DMA support in the macb driver when CONFIG_DMA_ADDR_T_64BIT is enabled. 32-bit DMA is enabled by default. Signed-off-by: Padmarao Begari --- drivers/net/macb.c | 46 ++ drivers/net/macb.h | 6 ++ 2 files changed, 44 insertions(+), 8

[PATCH v2 3/7] net: macb: Add phy address to read it from device tree

2020-10-22 Thread Padmarao Begari
Read phy address from device tree and use it to find the phy device if not found then search in the range of 0 to 31. Signed-off-by: Padmarao Begari --- drivers/net/macb.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index

[PATCH v2 0/7] Microchip PolarFire SoC support

2020-10-22 Thread Padmarao Begari
This patch set adds Microchip PolarFire SoC Icicle Kit support to RISC-V U-Boot. The patches are based upon latest U-Boot tree (https://gitlab.denx.de/u-boot/u-boot.git) at commit id 5d92dacbbe8a751e95f0ad0cf7c3d2370e9a04c7 All drivers namely: NS16550 Serial, Microchip clock, Cadence eMMC and

[PATCH 01/10] arm64: zynqmp: Fix zynqmp mini qspi max frequency

2020-10-22 Thread Michal Simek
From: T Karthik Reddy For zynqmp qspi, frequencies up to 40MHz will work irrespective of feedback clock enabled or disabled. If we want higher than 40Mhz the feedback clock should be enabled. With spi-max-frequency 108MHz it is not working when the feedback clock is disabled. Change it to 40MHz

[PATCH 00/10] xilinx: common: Several minor fixups

2020-10-22 Thread Michal Simek
Hi, I am sending some patches to fix minor stuff. There are several things as setting up proper variables, enabling commands. This series is based on my latest patches I have sent. Thanks, Michal Michal Simek (7): xilinx: common: Protect board_late_init_xilinx() xilinx: Enable FRU command

[PATCH v2 6/7] riscv: Add Microchip MPFS Icicle Kit support

2020-10-22 Thread Padmarao Begari
This patch adds Microchip MPFS Icicle Kit support. For now, only NS16550 Serial, Microchip clock, Cadence eMMC and MACB drivers are only enabled. The Microchip MPFS Icicle defconfig by default builds U-Boot for S-Mode because U-Boot on Microchip PolarFire SoC will run in S-Mode as payload of HSS +

Re: [PATCH v3 2/6] doc: Add a binding for sysinfo

2020-10-22 Thread Simon Glass
Hi Heinrich, On Wed, 21 Oct 2020 at 23:41, Heinrich Schuchardt wrote: > > On 10/22/20 5:08 AM, Simon Glass wrote: > > Add a simple binding file for this, so that it is clear what this binding > > directory is for. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > >

Re: [PATCH v3 4/6] smbios: Allow properties to come from the device tree

2020-10-22 Thread Simon Glass
Hi Heinrich, On Wed, 21 Oct 2020 at 23:50, Heinrich Schuchardt wrote: > > On 10/22/20 5:08 AM, Simon Glass wrote: > > Support a way to put SMBIOS properties in the device tree. These can be > > placed in a 'board' device in an 'smbios' subnode. > > For me it is fine if you want to specify the

Re: [PATCH v3 6/6] smbios: Add documentation and devicetree binding

2020-10-22 Thread Simon Glass
Hi Heinrich, On Wed, 21 Oct 2020 at 23:51, Heinrich Schuchardt wrote: > > On 10/22/20 5:08 AM, Simon Glass wrote: > > Add information about how to set SMBIOS properties using the devicetree. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v3: > > - Add onto the sysinfo binding > >

Re: [PATCH 4/4] serial: serial_xen: add DEBUG_UART support

2020-10-22 Thread Anastasiia Lukianenko
Hi, On Thu, 2020-10-15 at 13:25 +0900, AKASHI Takahiro wrote: > By using a hypervisor call, we can implement DEBUG_UART on xen. > This will allow us to see messages even earlier than serial_init(). > > Signed-off-by: AKASHI Takahiro > --- > drivers/serial/Kconfig | 14 +++--- >

[PATCH 10/10] arm64: versal: Set initrd_high to as high as possible

2020-10-22 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch is setting up the initrd_high to as high as possible by leaving max stack size for u-boot so that bigger rootfs can also be loaded by u-boot for booting kernel. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek ---

Re: [PATCH 11/11] bootm: Support string substitution in bootargs

2020-10-22 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > Well my series does that to a large extent. It is much more like bootm > now, in that it is properly split into stages. I think it would be > possible to combine parts of it into bootm as a future step, although > it is non-trivial, and I think we should

[PATCH v2 4/7] clk: Add Microchip PolarFire SoC clock driver

2020-10-22 Thread Padmarao Begari
Add clock driver code for the Microchip PolarFire SoC. This driver handles reset and clock control of the Microchip PolarFire SoC device. Signed-off-by: Padmarao Begari --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 +

Re: [PATCH 1/4] serial: serial_xen: print U-Boot banner and others

2020-10-22 Thread takahiro.aka...@linaro.org
On Thu, Oct 22, 2020 at 09:18:02AM +, Anastasiia Lukianenko wrote: > Hi, > > On Thu, 2020-10-15 at 13:25 +0900, AKASHI Takahiro wrote: > > At present, DM_FLAG_PRE_RELOC is set only if !OF_CONTROL. > > It doesn't make sense for this para-virtualized driver. > > > > With this patch applied,

[PATCH 08/10] xilinx: Remove additional newline in config files

2020-10-22 Thread Michal Simek
Trivial fix. Fixes: e519f03a1846 ("cmd: mem: Remove CONFIG_SYS_MEMTEST_SCRATCH mapping") Signed-off-by: Michal Simek --- include/configs/xilinx_versal.h | 1 - include/configs/xilinx_versal_mini.h | 1 - include/configs/xilinx_zynqmp_mini.h | 1 - 3 files changed, 3 deletions(-) diff

[PATCH 06/10] xilinx: zynq: Enable AES command

2020-10-22 Thread Michal Simek
Enable AES command to be able to use it directly. Signed-off-by: Michal Simek --- configs/xilinx_zynq_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_zynq_virt_defconfig b/configs/xilinx_zynq_virt_defconfig index 439a4fe6e539..09820d76a61a 100644 ---

[PATCH 07/10] xilinx: Enable SF_TEST command for all ARM based platforms

2020-10-22 Thread Michal Simek
Enable this command by default. Signed-off-by: Michal Simek --- configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynq_virt_defconfig | 1 + configs/xilinx_zynqmp_virt_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/xilinx_versal_virt_defconfig

[PATCH 09/10] xilinx: Merge together BOOT_SCRIPT_OFFSET between MB and ARM

2020-10-22 Thread Michal Simek
There is no reason not to use commong Kconfig by Microblaze too. Signed-off-by: Michal Simek --- arch/microblaze/Kconfig | 1 + board/xilinx/Kconfig| 6 +++--- board/xilinx/microblaze-generic/Kconfig | 5 - 3 files changed, 4 insertions(+), 8

[PATCH 05/10] xilinx: zynq: Change types from u32 to uint32_t

2020-10-22 Thread Michal Simek
Change parameter type to avoid compilation error: In file included from ./tools/../lib/rsa/rsa-verify.c:23:0, from tools/lib/rsa/rsa-verify.c:1: include/u-boot/rsa-mod-exp.h:69:18: error: unknown type name ‘u32’; did you mean ‘__u32’? int zynq_pow_mod(u32 *keyptr, u32 *inout);

[PATCH 03/10] xilinx: Add DDR base address to bootscript address

2020-10-22 Thread Michal Simek
From: T Karthik Reddy Add ram base address to scriptaddr env variable to make boot script address to be a valid address when ddr base address changes. This works properly if the first memory region is the region where uboot runs. Also the solution was taken in respect of a lot of jtag script

[PATCH 04/10] xilinx: Enable FRU command for all ARM based platforms

2020-10-22 Thread Michal Simek
Enable it by default for board detection. Signed-off-by: Michal Simek --- configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynq_virt_defconfig | 1 + configs/xilinx_zynqmp_virt_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/xilinx_versal_virt_defconfig

[PATCH 02/10] xilinx: common: Protect board_late_init_xilinx()

2020-10-22 Thread Michal Simek
Do not call board_late_init_xilinx() when BOARD_LATE_INIT is not enabled. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 74e81c18bd5a..821ee836dd84 100644 ---

[PATCH v2 7/7] doc: board: Add Microchip MPFS Icicle Kit doc

2020-10-22 Thread Padmarao Begari
This doc describes the procedure to build, flash and boot Linux using U-boot on Microchip MPFS Icicle Kit. Signed-off-by: Padmarao Begari --- doc/board/index.rst | 1 + doc/board/microchip/index.rst | 9 + doc/board/microchip/mpfs_icicle.rst | 605

[PATCH v2 1/7] riscv: Add DMA 64-bit address support

2020-10-22 Thread Padmarao Begari
dma_addr_t holds any valid DMA address. If the DMA API only uses 32/64-bit addresses, dma_addr_t need only be 32/64 bits wide. Signed-off-by: Padmarao Begari --- arch/riscv/Kconfig | 5 + arch/riscv/include/asm/types.h | 4 2 files changed, 9 insertions(+) diff --git

RE: [PATCH 1/2] board/freescale/vid: rework of VID support

2020-10-22 Thread Priyanka Jain
>-Original Message- >From: Wasim Khan >Sent: Thursday, August 13, 2020 2:12 AM >To: Priyanka Jain ; Varun Sethi >Cc: u-boot@lists.denx.de; Wasim Khan ; Dan Nica >; Heinz Wrobel >Subject: [PATCH 1/2] board/freescale/vid: rework of VID support > >The VID code does not properly set the

Re: [PATCH 10/10] arm64: versal: Set initrd_high to as high as possible

2020-10-22 Thread Michal Simek
On 22. 10. 20 19:45, Tom Rini wrote: > On Thu, Oct 22, 2020 at 12:32:22PM +0200, Michal Simek wrote: > >> From: Siva Durga Prasad Paladugu >> >> >> This patch is setting up the initrd_high to as high as possible >> by leaving max stack size for u-boot so that bigger rootfs can >> also be

[PATCH] microblaze: Enable i2c DM by default

2020-10-22 Thread Michal Simek
Microblaze has been converted fully to DM that's why enabled DM for I2C too. Signed-off-by: Michal Simek --- configs/microblaze-generic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig index

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tom Rini
On Fri, Oct 23, 2020 at 01:41:57AM +, Tan, Ley Foon wrote: > > > > -Original Message- > > From: Tom Rini > > Sent: Thursday, October 22, 2020 9:24 PM > > To: Tan, Ley Foon > > Cc: Ley Foon Tan ; ZY - u-boot > b...@lists.denx.de>; See, Chin Liang > > Subject: Re: [PATCH] lib:

RE: [PATCH] configs: ls1043aqds: Configure QSPI related configs

2020-10-22 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Kuldeep Singh >Sent: Thursday, July 23, 2020 11:02 AM >To: Priyanka Jain (OSS) ; u-boot@lists.denx.de >Subject: RE: [PATCH] configs: ls1043aqds: Configure QSPI related configs > >[...] >> Please confirm that all boot-sources will work fine

RE: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tan, Ley Foon
> -Original Message- > From: Tom Rini > Sent: Friday, October 23, 2020 9:52 AM > To: Tan, Ley Foon > Cc: Ley Foon Tan ; ZY - u-boot b...@lists.denx.de>; See, Chin Liang > Subject: Re: [PATCH] lib: zlib: Use post-increment only in inffast.c > > On Fri, Oct 23, 2020 at 01:41:57AM

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tom Rini
On Fri, Oct 23, 2020 at 01:59:29AM +, Tan, Ley Foon wrote: > > > > -Original Message- > > From: Tom Rini > > Sent: Friday, October 23, 2020 9:52 AM > > To: Tan, Ley Foon > > Cc: Ley Foon Tan ; ZY - u-boot > b...@lists.denx.de>; See, Chin Liang > > Subject: Re: [PATCH] lib: zlib:

Re: [PATCH 2/2] test: unit tests for print_freq(), print_size()

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 10:23:24PM +0200, Heinrich Schuchardt wrote: > Provide unit tests for functions print_freq() and print_size(). > > Signed-off-by: Heinrich Schuchardt > --- > test/lib/Makefile | 1 + > 1 file changed, 1 insertion(+) > > -- > 2.28.0 > > diff --git a/test/lib/Makefile

[PATCH v4 05/13] smbios: Add more properties

2020-10-22 Thread Simon Glass
The current tables only support a subset of the available fields defined by the SMBIOS spec. Add a few more. Signed-off-by: Simon Glass --- (no changes since v1) lib/smbios.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/smbios.c b/lib/smbios.c index be72a98c49d..87dd4be415d

[PATCH v4 02/13] doc: Add a binding for sysinfo

2020-10-22 Thread Simon Glass
Add a simple binding file for this, so that it is clear what this binding directory is for. Signed-off-by: Simon Glass --- (no changes since v1) doc/device-tree-bindings/sysinfo/sysinfo.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644

[PATCH v4 03/13] x86: Pass an ofnode into each SMBIOS function

2020-10-22 Thread Simon Glass
As a first step to obtaining SMBIOS information from the devicetree, add an ofnode parameter to the writing functions. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Move dm.h header file to avoid build error on qemu-arm - Deal with boards that don't use of-control

[PATCH v4 00/13] x86: Updates to SMBIOS

2020-10-22 Thread Simon Glass
At present there are a few Kconfig options which allow SMBIOS fields to be specified at build time. Not all fields are supported. Also, defining these at build-time is limiting since a factory system cannot insert values for particular boards or models without rebuilding U-Boot. This series adds

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c

2020-10-22 Thread Tom Rini
On Wed, Oct 21, 2020 at 03:42:10AM +, Tan, Ley Foon wrote: > > > > -Original Message- > > From: Tom Rini > > Sent: Friday, October 16, 2020 8:37 PM > > To: Ley Foon Tan > > Cc: Tan, Ley Foon ; ZY - u-boot > b...@lists.denx.de>; See, Chin Liang > > Subject: Re: [PATCH] lib: zlib:

[PATCH v4 06/13] smbios: Add documentation and devicetree binding

2020-10-22 Thread Simon Glass
Add information about how to set SMBIOS properties using the devicetree. Signed-off-by: Simon Glass --- (no changes since v1) doc/arch/x86.rst| 8 +++ doc/device-tree-bindings/sysinfo/smbios.txt | 77 + 2 files changed, 85 insertions(+) create

[PATCH v4 09/13] imx: Use devicetree for SMBIOS settings on MYiR MYS-6ULX

2020-10-22 Thread Simon Glass
Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass --- (no changes since v1) .../dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts | 25 +++ configs/myir_mys_6ulx_defconfig | 3 ++- 2 files changed,

[PATCH v4 04/13] smbios: Allow properties to come from the device tree

2020-10-22 Thread Simon Glass
Support a way to put SMBIOS properties in the device tree. These can be placed in a 'board' device in an 'smbios' subnode. Signed-off-by: Simon Glass --- Changes in v4: - Fix build error with vexpress_ca9x4 Changes in v3: - Use a different binding with subnodes for each table type

[PATCH v4 07/13] sysinfo: Provide a default driver to set SMBIOS values

2020-10-22 Thread Simon Glass
Some boards want to specify the manuafacture or product name but do not need to have their own sysinfo driver. Add a default driver which provides a way to specify this SMBIOS information in the devicetree, without needing any board-specific functionality. Signed-off-by: Simon Glass --- (no

Re: [PATCH] mx6: peripheral clock from oscillator

2020-10-22 Thread Jorge Ramirez-Ortiz, Foundries
On 19/10/20, Jorge Ramirez-Ortiz wrote: > In order to be able to run the I2C bus at 400Khz, the chip errata[1] > recommends that the peripheral clock runs out of the 24MHz oscillator. > > [1] Rev 2, 10/2019, ERR007805 > > Signed-off-by: Jorge Ramirez-Ortiz > --- > arch/arm/mach-imx/mx6/soc.c |

Re: [PATCH 4/8] sunxi: board: Add PinePhone DT selection logic

2020-10-22 Thread Maxime Ripard
On Wed, Oct 21, 2020 at 08:38:21PM -0500, Samuel Holland wrote: > On 10/21/20 1:56 PM, Jagan Teki wrote: > > On Thu, Sep 3, 2020 at 10:37 AM Samuel Holland wrote: > >> > >> There are two different publicly-released revisions of the PinePhone > >> hardware, versions 1.1 and 1.2; and they need

[PATCH v4 01/13] board: Rename uclass to sysinfo

2020-10-22 Thread Simon Glass
This uclass is intended to provide a way to obtain information about a U-Boot board. But the concept of a U-Boot 'board' is the whole system, not just one circuit board, meaning that 'board' is something of a misnomer for this uclass. In addition, the name 'board' is a bit overused in U-Boot and

[PATCH v4 08/13] rockchip: Use devicetree for SMBIOS settings

2020-10-22 Thread Simon Glass
Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/rk3328-roc-cc-u-boot.dtsi| 21 + arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi | 23 +++

[PATCH v4 10/13] odroid-c2: Use devicetree for SMBIOS settings

2020-10-22 Thread Simon Glass
Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi | 23 configs/odroid-c2_defconfig | 4 ++-- 2 files changed,

[PATCH v4 11/13] arm64: mvebu: Use devicetree for SMBIOS settings on uDPU

2020-10-22 Thread Simon Glass
Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass --- (no changes since v1) arch/arm/dts/armada-3720-uDPU-u-boot.dtsi | 20 configs/uDPU_defconfig| 3 ++- 2 files changed, 22

[PATCH v4 12/13] x86: galileo: Use devicetree for SMBIOS settings

2020-10-22 Thread Simon Glass
Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/dts/galileo.dts| 18 ++ board/intel/galileo/Kconfig | 11 --- 2 files changed, 18 insertions(+), 11

[PATCH v4 13/13] smbios: Drop the unused Kconfig options

2020-10-22 Thread Simon Glass
Now that we can use devicetree to specify this information, drop the old CONFIG options. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add onto the sysinfo binding configs/clearfog_gt_8k_defconfig| 2 -- configs/mt7622_rfb_defconfig| 1 -

Re: [PULL] Pull request for u-boot master = u-boot-stm32-20201021

2020-10-22 Thread Tom Rini
On Thu, Oct 22, 2020 at 07:32:44AM +, Patrick DELAUNAY wrote: > Hi Tom, > > Please pull the STM32 related patches for u-boot/master, v2021.01: > u-boot-stm32-20201021 > > - Activate CMD_EXPORTENV/CMD_IMPORTENV/CMD_ELF for STM32MP15 defconfig > - Fix stm32prog command: parsing of

Re: [GIT PULL] SoCFPGA fix for v2021.01

2020-10-22 Thread Tom Rini
On Thu, Oct 22, 2020 at 03:13:05AM +, Tan, Ley Foon wrote: > Hi Tom > > Please pull one fix for 2021.01. > > Travis CI build: https://travis-ci.org/github/lftan/u-boot/builds/737650124 > > Regards > Ley Foon > > The following changes since commit 7ec87e4192215815b658c3f8b34e4be010103149:

Re: [PATCH] ARM: dts: stm32: Reinstate card detect behavior on DHSOM

2020-10-22 Thread Marek Vasut
On 10/22/20 7:17 PM, Patrick DELAUNAY wrote: > Hi Marek, Hi, >> From: Marek Vasut >> Sent: lundi 19 octobre 2020 23:38 >> >> The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far >> unsupported, reinstate the old cd-gpios behavior until this handling is fully >> implemented. This

Re: [patch 4/8] RFC: drivers/video/rockchip/rk_edp.c: Change clock rate

2020-10-22 Thread Alper Nebi Yasak
On 25/09/2020 21:36, Arnaud Patard (Rtp) wrote: > The current code is setting the clock rate to 19200, but > due to the current device-tree configuration and linux code, > it should rather be 1. > This looks like it's ACLK_VOP to me. FYI, coreboot sets it to 192 MHz for rk3288 and

[PATCH] ARM: am335x: Add phyBOARD REGOR support

2020-10-22 Thread Parthiban Nallathambi
phyBOARD-REGOR is based on phyCORE AM335x R2 SoM (PCL060). CPU : AM335X-GP rev 2.1 Model: Phytec AM335x phyBOARD-REGOR DRAM: 512 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 eth0: ethernet@4a10 Working: - Eth0 - i2C - MMC/SD - NAND - UART - USB (host) Device trees were taken from Linux

RE: [PATCH] ARM: dts: stm32: Reinstate card detect behavior on DHSOM

2020-10-22 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: lundi 19 octobre 2020 23:38 > > The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far > unsupported, reinstate the old cd-gpios behavior until this handling is fully > implemented. This permits the DHSOM to boot from SD again, without this

Re: [PATCH] ARM: am335x: Add phyBOARD REGOR support

2020-10-22 Thread Tom Rini
On Thu, Oct 22, 2020 at 04:51:57PM +0200, Parthiban Nallathambi wrote: > phyBOARD-REGOR is based on phyCORE AM335x R2 SoM (PCL060). > > CPU : AM335X-GP rev 2.1 > Model: Phytec AM335x phyBOARD-REGOR > DRAM: 512 MiB > NAND: 512 MiB > MMC: OMAP SD/MMC: 0 > eth0: ethernet@4a10 > > Working:

Re: [PATCH 10/10] arm64: versal: Set initrd_high to as high as possible

2020-10-22 Thread Tom Rini
On Thu, Oct 22, 2020 at 12:32:22PM +0200, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > This patch is setting up the initrd_high to as high as possible by leaving > max stack size for u-boot so that bigger rootfs can also be loaded by > u-boot for booting kernel. > >

[PATCH v3 2/2] pwm: Add a driver for Chrome OS EC PWM

2020-10-22 Thread Alper Nebi Yasak
This PWM is used in rk3399-gru-bob and rk3399-gru-kevin to control the display brightness. We can only change the duty cycle, so on set_config() we just try to match the duty cycle that dividing duty_ns by period_ns gives us. To disable, we set the duty cycle to zero while keeping the old value

[PATCH v3 1/2] video: backlight: Support PWMs without a known period_ns

2020-10-22 Thread Alper Nebi Yasak
The PWM device provided by Chrome OS EC doesn't really support anything other than setting a relative duty cycle. To support it as a backlight, this patch makes the PWM period optional in the device tree and pretends the valid brightness range is its period_ns. Also adds a sandbox test for a PWM

Re: [PATCH] mx6: peripheral clock from oscillator

2020-10-22 Thread Fabio Estevam
On Thu, Oct 22, 2020 at 6:24 PM Jorge Ramirez-Ortiz, Foundries wrote: > um, weird, I just googled "imx Rev 2, 10/2019, ERR007805" and it showed > the document and a link to the errata. The errata document is specific for a SoC. It does not help to add "Rev 2, 10/2019, ERR007805" in the commit

Pull request: u-boot-sunxi/master

2020-10-22 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - sun8i emac changes (Andre) - SCP firmware (Samuel) Travis-CI: https://travis-ci.org/github/openedev/u-boot/builds/738083734 The following changes since commit 7ec87e4192215815b658c3f8b34e4be010103149: Merge tag 'u-boot-atmel-2021.01-b' of

[PATCH 2/2] test: unit tests for print_freq(), print_size()

2020-10-22 Thread Heinrich Schuchardt
Provide unit tests for functions print_freq() and print_size(). Signed-off-by: Heinrich Schuchardt --- v2: add missing add missing test/lib/test_print.c --- test/lib/Makefile | 1 + test/lib/test_print.c | 71 +++ 2 files changed, 72

[PATCH 2/2] rockchip: gru: Allow setting up clocks in U-Boot proper

2020-10-22 Thread Alper Nebi Yasak
Commit fe974716326c ("rockchip: rk3288: Allow setting up clocks in U-Boot proper") fixes some clock issues when chainloading U-Boot on rk3288 chromebooks. Part of that change is still available in veyron's board_early_init_r() function. Since chain-loading U-Boot proper from vendor firmware is

[PATCH 1/2] rockchip: rk3399: Re-init clocks in U-Boot proper

2020-10-22 Thread Alper Nebi Yasak
It's possible to chainload U-Boot proper from the vendor firmware in rk3399 chromebooks, but the way the vendor firmware sets up clocks is somehow different than what U-Boot expects. This causes the display to stay devoid of content even though vidconsole claims to work (with patches in process of

Re: [PATCH] mx6: peripheral clock from oscillator

2020-10-22 Thread Jorge Ramirez-Ortiz, Foundries
On 22/10/20, Fabio Estevam wrote: > On Mon, Oct 19, 2020 at 11:23 AM Jorge Ramirez-Ortiz > wrote: > > > > In order to be able to run the I2C bus at 400Khz, the chip errata[1] > > recommends that the peripheral clock runs out of the 24MHz oscillator. > > I would suggest adding the optee related

Re: [PATCH] mx6: peripheral clock from oscillator

2020-10-22 Thread Fabio Estevam
On Mon, Oct 19, 2020 at 11:23 AM Jorge Ramirez-Ortiz wrote: > > In order to be able to run the I2C bus at 400Khz, the chip errata[1] > recommends that the peripheral clock runs out of the 24MHz oscillator. I would suggest adding the optee related motivation that you explained earlier here in the

[PATCH] video: rockchip: Restrict EDP, VOP, MIPI files to GPL-2.0

2020-10-22 Thread Alper Nebi Yasak
These files have a lot of code in common with their counterparts in coreboot, especially in their earlier revisions: U-Boot | coreboot --|

[PATCH 1/2] lib: print_freq() should output kHz not KHz

2020-10-22 Thread Heinrich Schuchardt
In the International System of Units (SI) the prefix kilo is abbreviated as 'k' not 'K'. 'K' is the symbol for Kelvin. Signed-off-by: Heinrich Schuchardt Reviewed-by: Stefan Roese --- v2: no change --- include/display_options.h | 2 +- lib/display_options.c | 2 +- 2 files changed,

[PATCH 0/2] lib: print_freq() should output kHz not KHz

2020-10-22 Thread Heinrich Schuchardt
Correct print_freq() for output of kHz. Provide unit tests for print_freq() and print_size(). v2: add missing test/lib/test_print.c Heinrich Schuchardt (2): lib: print_freq() should output kHz not KHz test: unit tests for print_freq(), print_size() include/display_options.h | 2 +-

Re: [PATCH 1/6] README: Update links to mailing list archives

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 01:16:18PM +0900, Naoki Hayama wrote: > This patch includes these updates > > - Change http://lists.denx.de/pipermail/u-boot > to https://lists.denx.de/pipermail/u-boot > - http://dir.gmane.org/gmane.comp.boot-loaders.u-boot > is broken, so remove it > - Another

Re: [PATCH 2/6] README: Update source code location

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 01:16:25PM +0900, Naoki Hayama wrote: > This patch include these updates > > - Git repository has moved to GitLab > - HTTPS access to the file server is allowed > - pre-built images are no longer available > > Signed-off-by: Naoki Hayama Applied to u-boot/master,

Re: [PATCH v2 1/2] doc: Document timer API

2020-10-22 Thread Tom Rini
On Wed, Oct 07, 2020 at 02:37:43PM -0400, Sean Anderson wrote: > This adds kerneldocs for . > > I don't know who should maintain doc/api/timer.rst, since the timer > subsystem seems to be maintained by SoC maintainers. MAINTAINERS is left > un-updated for the moment. > > Signed-off-by: Sean

Re: [PATCH 1/1] common: rename getc() to getchar()

2020-10-22 Thread Tom Rini
On Wed, Oct 07, 2020 at 06:11:48PM +0200, Heinrich Schuchardt wrote: > The sandbox is built with the SDL2 library with invokes the X11 library > which in turn calls getc(). But getc() in glibc is defined as > > int getc(FILE *) > > This does not match our definition. > > int getc(void)

Re: [PATCH 3/3] cosmetic: image: Fix comments and the order of definitions

2020-10-22 Thread Tom Rini
On Wed, Oct 07, 2020 at 11:22:24AM +0900, Naoki Hayama wrote: > Fix some comments about functions. > Move genimg_get_comp_name() above genimg_get_short_name() because > genimg_get_comp_name() is related to get_table_entry_name(). > > Signed-off-by: Naoki Hayama > Reviewed-by: Simon Glass

Re: [PATCH 3/6] README: Update directory hierarchy

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 01:16:38PM +0900, Naoki Hayama wrote: > Removed: > - /arch/openrisc > > Added: > - /arch/xtensa > - /env > > Signed-off-by: Naoki Hayama Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 6/6] README: Convert HTTP links to HTTPS

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 01:17:16PM +0900, Naoki Hayama wrote: > Convert all the other http:// links to https:// . > www.denx.de/twiki/ seems to move to www.denx.de/wiki/ , > so change it. > > I checked all links in this patch are valid. > > Signed-off-by: Naoki Hayama Applied to

Re: [PATCH 4/6] README: sandbox: Change reference to sandbox details

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 01:16:58PM +0900, Naoki Hayama wrote: > doc/arch/index.rst is a list of links to each architecture. > As for the sandbox details, doc/arch/sandbox.rst looks better. > > Signed-off-by: Naoki Hayama > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH v2] km: fix license string and compatible strings

2020-10-22 Thread Tom Rini
On Thu, Oct 08, 2020 at 12:27:22PM +0200, Holger Brunck wrote: > As the ownership is now Hitachi Power Grids, change the license string > and adapt the compatible string in DTS files. For kmeter1.dts we > change it to "keymile,KMETER1" for now, as this is then compliant with > what is submitted

Re: [PATCH v2 2/2] timer: Return count from timer_ops.get_count

2020-10-22 Thread Tom Rini
On Wed, Oct 07, 2020 at 02:37:44PM -0400, Sean Anderson wrote: > No timer drivers return an error from get_count. Instead of possibly > returning an error, just return the count directly. > > Signed-off-by: Sean Anderson > Reviewed-by: Claudiu Beznea > Reviewed-by: Simon Glass Applied to

  1   2   >