Re: [PATCH 1/1] mtd: cfi_flash: use __raw_writeq(), __raw_readq()

2020-06-08 Thread Stefan Roese
On 07.06.20 20:42, Heinrich Schuchardt wrote: On 6/6/20 11:13 PM, Heinrich Schuchardt wrote: Functions __raw_writeq(), __raw_readq() are available for all architectures. So let's use them. The major architectures have these but not m68k, microblaze, nd32, nios2, powerpc, sh, xtenza. Just che

Re: [PATCH 1/1] mtd: cfi_flash: use __raw_writeq(), __raw_readq()

2020-06-08 Thread Heinrich Schuchardt
On 6/8/20 9:07 AM, Stefan Roese wrote: > On 07.06.20 20:42, Heinrich Schuchardt wrote: >> On 6/6/20 11:13 PM, Heinrich Schuchardt wrote: >>> Functions __raw_writeq(), __raw_readq() are available for all >>> architectures. So let's use them. >> >> The major architectures have these but not m68k, mic

Pull request: u-boot-rockchip-20200607

2020-06-08 Thread Kever Yang
Hi Tom, Please pull the rockchip updates/fixes: - revive rk3399 puma board to adapt mainline dts; - Fix rk3399-evb stdout path; - Enable PCIe for rk3399: Rockpro64, firefly, pinebookpro; - Add rk3328 Rock-pi-e board; - Enable SPI boot for rockpro64 and roc-pc-rk3399; Gitlab ci: https://gitlab.den

Re: [PATCH 1/1] mtd: cfi_flash: use __raw_writeq(), __raw_readq()

2020-06-08 Thread Stefan Roese
On 08.06.20 09:12, Heinrich Schuchardt wrote: On 6/8/20 9:07 AM, Stefan Roese wrote: On 07.06.20 20:42, Heinrich Schuchardt wrote: On 6/6/20 11:13 PM, Heinrich Schuchardt wrote: Functions __raw_writeq(), __raw_readq() are available for all architectures. So let's use them. The major architec

pull request of u-boot-mpc85xx for v2020.07

2020-06-08 Thread Priyanka Jain
Dear Tom, Please find my pull-request for u-boot-mpc85xx https://travis-ci.org/github/p-priyanka-jain/u-boot/builds/694639674 Summary DM_ETH support for P2041RDB, T1024RDB, P5040DS, P3041DS, P4080DS, bug fixes Add TBI Phy access through MII DDR: Rework errata workaround for A008109, A008378, 00994

RE: [PATCHv2 3/3] net: tsec: Access TBI PHY through the corresponding MII

2020-06-08 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Zhiqiang Hou >Sent: Sunday, May 3, 2020 8:19 PM >To: u-boot@lists.denx.de; joe.hershber...@ni.com; bmeng...@gmail.com; >olte...@gmail.com; Priyanka Jain >Cc: Z.q. Hou >Subject: [PATCHv2 3/3] net: tsec: Access TBI PHY through the correspondin

RE: [PATCH] drivers: net: e1000: with DM_ETH needs DM_PCI too

2020-06-08 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Madalin Bucur >Sent: Wednesday, April 29, 2020 10:56 AM >To: joe.hershber...@ni.com; u-boot@lists.denx.de >Cc: Madalin Bucur (OSS) >Subject: [PATCH] drivers: net: e1000: with DM_ETH needs DM_PCI too > >Compilation error occur when DM_ETH is e

RE: [PATCH] powerpc/mpc85xx: Fix compiling error with DM_GPIO

2020-06-08 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Madalin Bucur >Sent: Wednesday, April 29, 2020 11:04 AM >To: w...@denx.de; u-boot@lists.denx.de >Cc: Madalin Bucur (OSS) >Subject: [PATCH] powerpc/mpc85xx: Fix compiling error with DM_GPIO > >P4080DS compilation fails with DM_GPIO enabled: >

RE: [PATCH] powerpc: mpc85xx: fix unused variable warning

2020-06-08 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Madalin Bucur >Sent: Wednesday, April 29, 2020 2:47 PM >To: Priyanka Jain ; w...@denx.de; u- >b...@lists.denx.de >Cc: Madalin Bucur (OSS) >Subject: [PATCH] powerpc: mpc85xx: fix unused variable warning > >Fix unused variable warning when CONF

RE: [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled

2020-06-08 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Madalin Bucur >Sent: Wednesday, April 29, 2020 2:57 PM >To: Priyanka Jain ; u-boot@lists.denx.de >Cc: Madalin Bucur (OSS) >Subject: [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled > >A compilation error appears when QE is compile

Re: [PATCH 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread Maxime Ripard
Hi, On Sat, Jun 06, 2020 at 09:58:13AM +, Heinrich Schuchardt wrote: > The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any > additional drivers marked as DM_FLAG_PRE_RELOC are loaded before > relocation. > > CONFIG_RSA=y which is needed for UEFI secure boot or for FIT image

Re: rockchip: correctly set vop0 or vop1

2020-06-08 Thread Rtp
Patrick Wildt writes: Hi, > The EDP_LCDC_SEL bit has to be set correctly to select vop0 or > vop1, but so far we have set it in both conditions, which is not > correct. > > Can someone verify this is the correct way round? vop1 -> set, > vop0 -> clear? > > Signed-off-by: Patrick Wildt > > diff

[PATCH 2/3] arm64: lx2160a: dts: Add watchdog node

2020-06-08 Thread Biwen Li
From: Zhao Qiang Add watchdog node which is sbsa into lx2160a dtsi Signed-off-by: Zhao Qiang --- arch/arm/dts/fsl-lx2160a.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a.dtsi b/arch/arm/dts/fsl-lx2160a.dtsi index 1789da8..a2421f6 100644 --- a/arch/arm/d

[PATCH 3/3] configs: lx2160a: Enable Watchdog support

2020-06-08 Thread Biwen Li
From: Zhao Qiang Enable support to compile SBSA driver. Signed-off-by: Zhao Qiang --- configs/lx2160aqds_tfa_defconfig | 3 +++ configs/lx2160ardb_tfa_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/lx2160aqds_tfa_defconfig b/configs/lx2160aqds_tfa_defconfig index 716

[PATCH 1/3] Watchdog: introduce ARM SBSA watchdog driver

2020-06-08 Thread Biwen Li
From: Zhao Qiang According to Server Base System Architecture (SBSA) specification, the SBSA Generic Watchdog has two stage timeouts: the first signal (WS0) is for alerting the system by interrupt, the second one (WS1) is a real hardware reset. More details about the hardware specification of thi

Re: [PATCH] regmap: Check for out-of-range offsets before mapping them

2020-06-08 Thread Pratyush Yadav
Hi Simon, On 07/06/20 08:43PM, Simon Glass wrote: > Hi Pratyush, > > On Tue, 26 May 2020 at 06:06, Pratyush Yadav wrote: > > > > In regmap_raw_{read,write}_range(), offsets are checked to make sure > > they aren't out of range. But this check happens _after_ the address is > > mapped from physic

Re: [PATCH 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread André Przywara
On 08/06/2020 09:02, Maxime Ripard wrote: > Hi, > > On Sat, Jun 06, 2020 at 09:58:13AM +, Heinrich Schuchardt wrote: >> The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any >> additional drivers marked as DM_FLAG_PRE_RELOC are loaded before >> relocation. >> >> CONFIG_RSA=y wh

[PATCH] net: dwc_eth_qos: add Kconfig option to select supported configuration

2020-06-08 Thread Patrick Delaunay
Add configuration flag to select the supported dwc driver configuration: - CONFIG_DWC_ETH_QOS_TEGRA186 - CONFIG_DWC_ETH_QOS_IMX - CONFIG_DWC_ETH_QOS_STM32 See Linux driver ethernet/stmicro/stmmac and associated glue layers for other configuration examples. This patch removes the not-selected comp

RE: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-06-08 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mercredi 13 mai 2020 15:54 > > On 5/13/20 3:17 PM, Patrick DELAUNAY wrote: > > Hi David, > > > >> From: David Wu > >> Sent: mardi 12 mai 2020 11:56 > >> > >> For others using, clk_rx and clk_tx may not be necessary, and their > >> clock names are different.

RE: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB board to DM_ETH

2020-06-08 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Zhiqiang Hou >Sent: Friday, June 5, 2020 2:25 PM >To: u-boot@lists.denx.de; Priyanka Jain ; >bmeng...@gmail.com; olte...@gmail.com >Cc: Z.q. Hou >Subject: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB >board to DM_ETH > >From: Ho

Re: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-06-08 Thread Marek Vasut
On 6/8/20 11:29 AM, Patrick DELAUNAY wrote: [...] >>> we don't select the STM32 glue for the correct compatible, I think I >>> will push >>> >>> static const struct udevice_id eqos_ids[] = { >>> { >>> .compatible = "nvidia,tegra186-eqos", >>> .data = (ulong)&eqos_tegra18

Re: [PATCH 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread Heinrich Schuchardt
On 6/8/20 11:07 AM, André Przywara wrote: > On 08/06/2020 09:02, Maxime Ripard wrote: >> Hi, >> >> On Sat, Jun 06, 2020 at 09:58:13AM +, Heinrich Schuchardt wrote: >>> The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any >>> additional drivers marked as DM_FLAG_PRE_RELOC are lo

[PATCH v2 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread Heinrich Schuchardt
The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any additional drivers marked as DM_FLAG_PRE_RELOC are loaded before relocation. CONFIG_RSA=y which is needed for UEFI secure boot or for FIT image verification loads the driver mod_exp_sw which has DM_FLAG_PRE_RELOC. CONFIG_LOG=Y

Re: rockchip: correctly set vop0 or vop1

2020-06-08 Thread Patrick Wildt
On Mon, Jun 08, 2020 at 10:18:19AM +0200, Arnaud Patard wrote: > Patrick Wildt writes: > > Hi, > > > The EDP_LCDC_SEL bit has to be set correctly to select vop0 or > > vop1, but so far we have set it in both conditions, which is not > > correct. > > > > Can someone verify this is the correct way

Re: [PATCH v2 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread Jagan Teki
On Mon, Jun 8, 2020 at 6:59 AM Heinrich Schuchardt wrote: > > The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any > additional drivers marked as DM_FLAG_PRE_RELOC are loaded before > relocation. > > CONFIG_RSA=y which is needed for UEFI secure boot or for FIT image > verification

Re: [PATCH v2 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread Heinrich Schuchardt
On 08.06.20 13:50, Jagan Teki wrote: > On Mon, Jun 8, 2020 at 6:59 AM Heinrich Schuchardt wrote: >> >> The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any >> additional drivers marked as DM_FLAG_PRE_RELOC are loaded before >> relocation. >> >> CONFIG_RSA=y which is needed for UEF

Re: rockchip: correctly set vop0 or vop1

2020-06-08 Thread Rtp
Patrick Wildt writes: > On Mon, Jun 08, 2020 at 10:18:19AM +0200, Arnaud Patard wrote: >> Patrick Wildt writes: >> >> Hi, >> >> > The EDP_LCDC_SEL bit has to be set correctly to select vop0 or >> > vop1, but so far we have set it in both conditions, which is not >> > correct. >> > >> > Can som

Re: [RFC PATCH 1/1] gpio: Handle NULL pointers gracefully

2020-06-08 Thread Pratyush Yadav
On 01/06/20 11:08AM, Simon Glass wrote: > Hi Pratyush, > > On Fri, 29 May 2020 at 16:04, Pratyush Yadav wrote: > > > > Prepare the way for a managed GPIO API by handling NULL pointers without > > crashing or failing. validate_desc() comes from Linux with the prints > > removed to reduce code size

Re: rockchip: correctly set vop0 or vop1

2020-06-08 Thread Patrick Wildt
On Mon, Jun 08, 2020 at 02:24:32PM +0200, Arnaud Patard wrote: > Patrick Wildt writes: > > > On Mon, Jun 08, 2020 at 10:18:19AM +0200, Arnaud Patard wrote: > >> Patrick Wildt writes: > >> > >> Hi, > >> > >> > The EDP_LCDC_SEL bit has to be set correctly to select vop0 or > >> > vop1, but so fa

Re: Pull request for UEFI sub-system for efi-2020-07-rc4 (2)

2020-06-08 Thread Tom Rini
On Sat, Jun 06, 2020 at 08:14:49AM +0200, Heinrich Schuchardt wrote: > The following changes since commit 88bd5b1793600b0f5f25c3d236b4d049fb986140: > > configs: Resync with savedefconfig (2020-06-04 19:29:09 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boo

Re: [PATCH v2 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-06-08 Thread Jagan Teki
On Mon, Jun 8, 2020 at 8:25 AM Heinrich Schuchardt wrote: > > On 08.06.20 13:50, Jagan Teki wrote: > > On Mon, Jun 8, 2020 at 6:59 AM Heinrich Schuchardt > > wrote: > >> > >> The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any > >> additional drivers marked as DM_FLAG_PRE_RELOC

Re: [PATCH 1/7] Revert "mmc: zynq: parse dt when probing"

2020-06-08 Thread Michal Simek
On 27. 05. 20 8:44, Jaehoon Chung wrote: > Hi > > On 5/22/20 7:44 PM, Michal Simek wrote: >> From: Ashok Reddy Soma >> >> This reverts commit 942b5fc03218d1c94468fc658e7dec65dabcc830. >> >> This is partial revert of the above commit. >> >> mmc_of_parse() is reading no-1-8-v from device tree and i

Re: [PATCH 3/5] arm: qemu: implement enable_caches()

2020-06-08 Thread Tom Rini
On Sat, Jun 06, 2020 at 10:50:59PM +0200, Heinrich Schuchardt wrote: > On 6/6/20 7:15 PM, Ard Biesheuvel wrote: > > Add an override for enable_caches to enable the I and D caches, along > > with the cached 1:1 mapping of all of DRAM. This is needed for running > > U-Boot under virtualization with Q

Re: [PATCH] nvme: Invalidate dcache before submitting admin cmd

2020-06-08 Thread Bin Meng
On Sun, Jun 7, 2020 at 7:22 PM Jagan Teki wrote: > > Some architecture like ARM Cortex A53, A72 would need > to invalidate dcache to sync the cache with the memory > contents before flushing the cache to memory. > > The NVME here submitting the admin command using dma_addr > to the memory without

[PATCH 1/1] include/configs: ls1012a: Remove fdt_high env variable

2020-06-08 Thread udit . agarwal
From: Udit Agarwal Remove "fdt_high" environment variable to use the bootm_size to safely contain a kernel, device tree and initrd for relocation. Signed-off-by: Udit Agarwal --- include/configs/ls1012a2g5rdb.h | 2 +- include/configs/ls1012a_common.h | 2 +- include/configs/ls1012afrdm.h

Re: [PATCH] nvme: Invalidate dcache before submitting admin cmd

2020-06-08 Thread André Przywara
On 07/06/2020 12:22, Jagan Teki wrote: Hi, (CC: ing Mark) Without looking to deep, I think invalidating the cache might be the right thing to do, but the rationale or at least the wording of it seems somehow flawed: > Some architecture like ARM Cortex A53, A72 would need Please don't mix the t

Re: [PATCH] nvme: Invalidate dcache before submitting admin cmd

2020-06-08 Thread Michael Nazzareno Trimarchi
Hi On Mon, Jun 8, 2020 at 3:52 PM André Przywara wrote: > > On 07/06/2020 12:22, Jagan Teki wrote: > > Hi, > > (CC: ing Mark) > > Without looking to deep, I think invalidating the cache might be the > right thing to do, but the rationale or at least the wording of it seems > somehow flawed: > > >

[PATCH] rk3399: Add BOOTENV_SF command

2020-06-08 Thread Jagan Teki
Add missing BOOTENV_SF command in rk3399 config. Fix it. Fixes: f263b860acf8 ("rk3399: Enable SF distro bootcmd") Signed-off-by: Jagan Teki Reported-by: Suniel Mahesh Tested-by: Suniel Mahesh --- include/configs/rk3399_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/confi

Re: [PATCH 01/10] dtoc: add support to scan drivers

2020-06-08 Thread Walter Lozano
Hi Simon, On 4/6/20 12:59, Simon Glass wrote: Hi Walter, On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: Currently dtoc scans dtbs to convert them to struct platdata and to generate U_BOOT_DEVICE entries. These entries need to be filled with the driver name, but at this moment the informat

Re: [PATCH 02/10] dtoc: add option to disable warnings

2020-06-08 Thread Walter Lozano
Hi Simon, On 4/6/20 12:59, Simon Glass wrote: Hi Walter, On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: As dtoc now performs checks for valid driver names, when running dtoc tests several warnings arise as these tests don't use valid driver names. This patch adds an option to disable tho

Re: [PATCH 05/10] core: extend struct driver_info to point to device

2020-06-08 Thread Walter Lozano
On 4/6/20 12:59, Simon Glass wrote: Hi Walter, On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: Currently when creating an U_BOOT_DEVICE entry a struct driver_info is declared, which contains the data needed to instantiate the device. However, the actual device is created at runtime and th

Re: [PATCH 07/10] dm: doc: update of-plat with new phandle support

2020-06-08 Thread Walter Lozano
Hi Simon, On 4/6/20 12:59, Simon Glass wrote: On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: Update documentation to reflect the new phandle support when OF_PLATDATA is used. Now phandles are implemented as pointers to U_BOOT_DEVICE, which makes it possible to get a pointer to the actual d

Re: [PATCH 09/10] dtoc: update dtb_platdata to support cd-gpios

2020-06-08 Thread Walter Lozano
Hi Simon On 4/6/20 12:59, Simon Glass wrote: On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: Currently dtoc does not support the property cd-gpios used to declare the gpios for card detect in mmc. This patch adds support to cd-gpios property. Signed-off-by: Walter Lozano --- tools/dtoc

[PATCH 1/1] log: uclass_get_name() depends on CONFIG_SPL_DM

2020-06-08 Thread Heinrich Schuchardt
If CONFIG_SPL_DM=n and CONFIG_SPL_LOG=y a build error occurs: ld.bfd: common/built-in.o: in function `log_get_cat_name': common/log.c:48: undefined reference to `uclass_get_name' make[1]: *** [scripts/Makefile.spl:422: spl/u-boot-spl] Error 1 Call uclass_get_name() only if DM is enabled. Signed-

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-08 Thread Stephen Warren
On 6/4/20 9:24 AM, Heiko Schocher wrote: > make the sleep time and the margin configurable. Reviewed-by: Stephen Warren

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-08 Thread Stephen Warren
On 6/7/20 7:45 AM, Simon Glass wrote: > On Thu, 4 Jun 2020 at 09:24, Heiko Schocher wrote: >> >> make the sleep time and the margin configurable. >> >> Signed-off-by: Heiko Schocher >> --- >> >> travis build: >> https://travis-ci.org/github/hsdenx/u-boot-test/builds/694545225 >> >> This patch is

Re: [PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-06-08 Thread Rayagonda Kokatanur
Hi Simon, On Thu, Jun 4, 2020 at 8:30 AM Simon Glass wrote: > > Hi Rayagonda, > > On Wed, 3 Jun 2020 at 03:10, Rayagonda Kokatanur > wrote: > > > > Hi Simon, > > > > On Wed, May 20, 2020 at 7:50 PM Simon Glass wrote: > > > > > > Hi Rayagonda, > > > > > > On Tue, 19 May 2020 at 23:19, Rayagonda

Re: [PATCH] Revert "lib: Improve _parse_integer_fixup_radix base 16 detection"

2020-06-08 Thread Sean Anderson
On 6/8/20 2:24 AM, Michal Simek wrote: > It is in u-boot mainline from February. Then we had to fix it in April. Do you have a link/commit hash for said fix? > In the middle of this I have seen IIC one patchset which improves hex > handling which is likely better way then this. Same for this. >

RE: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-06-08 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: lundi 8 juin 2020 11:45 > > On 6/8/20 11:29 AM, Patrick DELAUNAY wrote: > [...] > >>> we don't select the STM32 glue for the correct compatible, I think I > >>> will push > >>> > >>> static const struct udevice_id eqos_ids[] = { > >>> { > >>> .

Re: [PATCH] Revert "lib: Improve _parse_integer_fixup_radix base 16 detection"

2020-06-08 Thread Simon Glass
Hi, On Mon, 8 Jun 2020 at 00:24, Michal Simek wrote: > > On 07. 06. 20 7:36, Sean Anderson wrote: > > This reverts commit 0486497e2b5f4d36fa968a1a60fea358cbf70b65. > > > > The strtoul has well-defined semantics. It is defined by the C standard and > > POSIX. To quote the relevant section of the m

Re: [PATCH 1/1] log: uclass_get_name() depends on CONFIG_SPL_DM

2020-06-08 Thread Simon Glass
Hi Heinrich, On Mon, 8 Jun 2020 at 10:04, Heinrich Schuchardt wrote: > > If CONFIG_SPL_DM=n and CONFIG_SPL_LOG=y a build error occurs: > > ld.bfd: common/built-in.o: in function `log_get_cat_name': > common/log.c:48: undefined reference to `uclass_get_name' > make[1]: *** [scripts/Makefile.spl:42

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-08 Thread Simon Glass
Hi Stephen, On Mon, 8 Jun 2020 at 10:43, Stephen Warren wrote: > > On 6/7/20 7:45 AM, Simon Glass wrote: > > On Thu, 4 Jun 2020 at 09:24, Heiko Schocher wrote: > >> > >> make the sleep time and the margin configurable. > >> > >> Signed-off-by: Heiko Schocher > >> --- > >> > >> travis build: > >

Re: [PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-06-08 Thread Simon Glass
Hi Rayagonda, On Mon, 8 Jun 2020 at 11:03, Rayagonda Kokatanur wrote: > > Hi Simon, > > On Thu, Jun 4, 2020 at 8:30 AM Simon Glass wrote: > > > > Hi Rayagonda, > > > > On Wed, 3 Jun 2020 at 03:10, Rayagonda Kokatanur > > wrote: > > > > > > Hi Simon, > > > > > > On Wed, May 20, 2020 at 7:50 PM S

Re: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-06-08 Thread Marek Vasut
On 6/8/20 7:05 PM, Patrick DELAUNAY wrote: > Dear Marek, Hi, >> From: Marek Vasut >> Sent: lundi 8 juin 2020 11:45 >> >> On 6/8/20 11:29 AM, Patrick DELAUNAY wrote: >> [...] > we don't select the STM32 glue for the correct compatible, I think I > will push > > static const struct

Re: [PATCH] riscv: sbi: Add newline to error message

2020-06-08 Thread Atish Patra
On Sat, Jun 6, 2020 at 12:26 PM Sean Anderson wrote: > > Signed-off-by: Sean Anderson > > --- > > common/spl/spl_opensbi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/spl/spl_opensbi.c b/common/spl/spl_opensbi.c > index e88136e6f3..14f335f75f 100644 > --- a/co

[PATCH 5/5] verdin-imx8mm: Select the watchdog driver

2020-06-08 Thread sbabic
> Currently watchdog driver is not selected, which causes system to reboot > after staying 60s in the U-Boot prompt. > Fix this problem by enabling CONFIG_WATCHDOG so that watchdog can be > properly serviced. > Signed-off-by: Fabio Estevam > Acked-by: Igor Opaniuk Applied to u-boot-imx, master,

[PATCH] power: pmic: Add SPL Kconfig entry for PFUZE100

2020-06-08 Thread sbabic
> Add Kconfig entry for the PFUZE PMIC, SPL variant. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Jaehoon Chung > Cc: Peng Fan > Cc: Stefano Babic > Reviewed-by: Jaehoon Chung Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH v3 3/5] imx8mp_evk: spl: use spl_early_init

2020-06-08 Thread sbabic
> From: Peng Fan > Use spl_early_init to replace spl_init, spl_init will be invoked > in board_init_r, we only need use spl_early_init to setup malloc > and scan early dt. > Signed-off-by: Peng Fan > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babi

[PATCH v2 1/1] imx: rom api: fix image offset computation

2020-06-08 Thread sbabic
> When not booting from FlexSPI, the offset computation is: > offset = image_offset + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - > 0x8000; > When booting from SD card or eMMC user partition, image_offset is > 0x8000. It is useless to add and remove 0x8000. > When booting from other device, im

[PATCH] ARM: dts: imxrt1050: indent lcdif node correctly

2020-06-08 Thread sbabic
> Accidentally submitted a patch with indentation not correct, let's fix it > by indenting wrong lines. > Signed-off-by: Giulio Benetti > Acked-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ==

[PATCH] imx: Update MTD partitions layout for display5 (i.MX6Q) board

2020-06-08 Thread sbabic
> This change updates the MTD partition layout on SPI-NOR memory for display5 > board. > Signed-off-by: Lukasz Majewski Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH 2/2] ARM: dts: imx: m53menlo: Convert to DM_ETH

2020-06-08 Thread sbabic
> Convert the board to DM_ETH instead of legacy networking. This requires > a minor addition to the DT to satisfy the requirement for specifying a > PHY node. No functional change from board user perspective. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team > Cc: Peng

[PATCH v3 1/5] imx8mp_evk: spl: drop useless code

2020-06-08 Thread sbabic
> From: Peng Fan > Drop useless getting ccm device, there is no need to explicted do this > in board code, and we not enable SPL CLK currently. > Signed-off-by: Peng Fan > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH v3 4/5] imx8mp_evk: spl: no need the code since spl framework could do that

2020-06-08 Thread sbabic
> From: Peng Fan > We no need invoke the code, since spl framework could help > us do that. > Signed-off-by: Peng Fan > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DEN

imx: move ATF to the back of the FIT to fix loading over yModem

2020-06-08 Thread sbabic
> With yModem the FIT Image is only supplied once, so we can only > seek forward in the yModem supplied image and never backwards. > With the recent changes to the SPL mechanism, including loading > U-Boot first, FDT after, then the loadables, we must also reorder > the FIT image script to make sur

[PATCH] imx8mp_evk: Add a README file

2020-06-08 Thread sbabic
> Add a README file explaining the U-Boot build and SD card flash procedures. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing

[PATCH 2/5] imx8mn_ddr4_evk: Select the watchdog driver

2020-06-08 Thread sbabic
> Currently watchdog driver is not selected, which causes system to reboot > after staying 60s in the U-Boot prompt. > Fix this problem by enabling CONFIG_WATCHDOG so that watchdog can be > properly serviced. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, St

Re: [PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-06-08 Thread Rayagonda Kokatanur
On Mon, Jun 8, 2020 at 10:43 PM Simon Glass wrote: > > Hi Rayagonda, > > On Mon, 8 Jun 2020 at 11:03, Rayagonda Kokatanur > wrote: > > > > Hi Simon, > > > > On Thu, Jun 4, 2020 at 8:30 AM Simon Glass wrote: > > > > > > Hi Rayagonda, > > > > > > On Wed, 3 Jun 2020 at 03:10, Rayagonda Kokatanur >

[PATCH 4/5] imx8mp_evk: Select the watchdog driver

2020-06-08 Thread sbabic
> Currently watchdog driver is not selected, which causes system to reboot > after staying 60s in the U-Boot prompt. > Fix this problem by enabling CONFIG_WATCHDOG so that watchdog can be > properly serviced. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, St

[PATCH v3 2/5] imx8mp_evk: spl: drop timer_init

2020-06-08 Thread sbabic
> From: Peng Fan > timer_init has been invoked in arch_cpu_init, no need to invoke > it again in board code. > Signed-off-by: Peng Fan > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v3 5/5] imx: imx8mp_evk: fix boot issue

2020-06-08 Thread sbabic
> From: Peng Fan > The u-boot-spl.bin pad with ddr firmware conflicts with the > CONFIG_MALLOC_F_ADDR area, the ddr firmware will be overwritten > by malloc in SPL stage and cause ddr initialization not able > to finish. So update the related addresses to fix the issue. > Reported-by: Fabio Esteva

[PATCH] imx: Kconfig: enable IMX_BOOTAUX for i.MX8M

2020-06-08 Thread sbabic
> i.MX8M could use imx bootaux to boot m4/m7 core, so let's add it > to the dependency list. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH 3/5] imx8mm_beacon: Select the watchdog driver

2020-06-08 Thread sbabic
> Currently watchdog driver is not selected, which causes system to reboot > after staying 60s in the U-Boot prompt. > Fix this problem by enabling CONFIG_WATCHDOG so that watchdog can be > properly serviced. > Signed-off-by: Fabio Estevam > Reviewed-by: Adam Ford Applied to u-boot-imx, master,

[PATCH 1/2] ARM: imx: m53menlo: Do not fail boot on invalid splash screen

2020-06-08 Thread sbabic
> None of these splash screen loading errors are so critical as to > justify complete failure to boot, so just print error message as > needed and return 0, the boot can very likely continue without > the splash. > Fix a couple of missing free(dst) instances as well. > Signed-off-by: Marek Vasut >

[PATCH] ARM: imx: ddr: Add missing PHY reset

2020-06-08 Thread sbabic
> The iMX7D RM 9.2.4.9.3 Power removal flow Table 9-11. Re-enabling power > explicitly says both the DDR controller and the PHY must be reset in the > correct sequence. Currently the code only resets the controller. This > leads to a misbehavior where the system brings the DRAM up after reboot, > b

[PATCH 1/5] imx8mm_evk: Select the watchdog driver

2020-06-08 Thread sbabic
> Currently the watchdog driver is not selected, which causes the following > warnings in both SPL and U-Boot proper: > U-Boot SPL 2020.07-rc1-00387-g67887903af (May 07 2020 - 23:49:27 -0300) > Normal Boot > WDT: Started without servicing (60s timeout) > Trying to boot from MMC1 > U-Boot 2020.07-

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-08 Thread Stephen Warren
On 6/8/20 11:12 AM, Simon Glass wrote: > Hi Stephen, > > On Mon, 8 Jun 2020 at 10:43, Stephen Warren wrote: >> >> On 6/7/20 7:45 AM, Simon Glass wrote: >>> On Thu, 4 Jun 2020 at 09:24, Heiko Schocher wrote: make the sleep time and the margin configurable. Signed-off-by: Heiko

Re: [PATCH v2 0/2] gpio: Add a managed API

2020-06-08 Thread Pratyush Yadav
Hi Simon, On 01/06/20 08:45AM, Simon Glass wrote: > Hi Pratyush, > > On Mon, 1 Jun 2020 at 05:22, Pratyush Yadav wrote: > > > > On 31/05/20 08:08AM, Simon Glass wrote: > > > Hi Pratyush, > > > > > > On Fri, 29 May 2020 at 15:39, Pratyush Yadav wrote: > > > > > > > > Hi, > > > > > > > > This is

[PATCH v4 0/4] rockchip: rk3399: Add SPI boot

2020-06-08 Thread Jagan Teki
Now, nvme scan seems stable with environment. This series v4 version for SPI boot support on rk3399. Changes for v4: - adjust env offset, size changes for v3: - SPI env offset, size changes based on roc-rk3399-pc Changes for v2: - same defconfig to support both MMC, SPI boot - add spi flash progr

[PATCH v4 2/4] roc-rk3399-pc: Mark default env from SPI

2020-06-08 Thread Jagan Teki
Mark the default U-Boot environment as SPI flash since this is an on board flash device. Updated env offset, size in contrast with default since the U-Boot proper has starting from 384K. Signed-off-by: Jagan Teki --- Changes for v4: - adjust env offset, size configs/roc-pc-mezzanine-rk3399_def

[PATCH v4 1/4] Makefile: Drop to handle rkspi image type

2020-06-08 Thread Jagan Teki
On rockchip platforms, SPI boot image creation is not straightforward like MMC boot image creation where former requires to specify tpl, spl in multimage format in mkimage, and later simply do a concatenate mkimaged-tpl with spl. On this note, let drop rkspi image type creation via kbuild and let

[PATCH v4 3/4] roc-rk3399-pc: Add SPI boot

2020-06-08 Thread Jagan Teki
U-Boot TPL 2020.07-rc3-00090-gd4e919f927-dirty (Jun 01 2020 - 23:45:53) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride lpddr4_set_rate: ch

[PATCH v4 4/4] doc: rockchip: Document SPI flash program steps

2020-06-08 Thread Jagan Teki
Document SPI flash program steps for rockchip platforms. Suggested-by: Hugh Cole-Baker Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v4: - none doc/board/rockchip/rockchip.rst | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/do

[PATCH v3 0/5] roc-rk3399-pc: Custom SPL init

2020-06-08 Thread Jagan Teki
This series supports custom initialization code required for roc-rk3399-pc board on SPL stage. I have marked it as v3, since we have tried this before on this series[1]. Now this series is well mature code handling to add custom spl_board_init code parts. roc-rk3399-pc would require custom le

[PATCH v3 1/5] rk3399: spl: Add rk_spl_board_init as __weak

2020-06-08 Thread Jagan Teki
Current spl_board_init is mostly specific to puma-rk3399 target and in other words it cannot be required or useful for other rk3399 boards. Some boards require their custom initialization to be part of spl_board_init like roc-rk3399-pc require leds setup, environments. So, this patch handles all

[PATCH v3 2/5] rk3399: spl: Print SPL banner after relocation

2020-06-08 Thread Jagan Teki
Usually printing the SPL banner varies between architecture or board codes. - Some would print before relocation at the end board_init_f   for making sure all initialization prior to this would happen   properly. if at all there is a requirement for serial init,   that happens properly since it pri

[PATCH v3 3/5] roc-rk3399-pc: Move leds setup in SPL

2020-06-08 Thread Jagan Teki
roc-rk3399-pc has some specific requirements to support LEDS, environment. board detection and etc prior to U-Boot proper. So as of now SPL would be a better stage for these custom board requirements to support unlike TPL. Adding few of these custom requirements like LEDS in TPL would require extr

[PATCH v3 4/5] rockchip: Separate the reset cause from display cpuinfo

2020-06-08 Thread Jagan Teki
reset cause is a generic functionality based on the soc cru registers in rockchip. This can be used for printing the cause of reset in cpuinfo or some other place where reset cause is needed.  Other than cpuinfo, reset cause can also be using during bootcount for checking the specific reset cause

[PATCH v3 5/5] roc-rk3399-pc: Set LED only during POR and pwr_key=y

2020-06-08 Thread Jagan Teki
ROC-RK3399-PC has specific set of configurations for on-board led setup. Due to easiness for user to know the state of the board roc-rk339-pc board code will setup the low power led on/off, and waiting for user to press power key and then glow full power led. All this needs to happen only during

Re: [PATCH] image: Add support for ZSTD decompression

2020-06-08 Thread Robert Marko
On Wed, May 20, 2020 at 2:35 PM Tom Rini wrote: > > On Wed, May 20, 2020 at 01:38:01PM +0200, Robert Marko wrote: > > > Tom, > > I have tried various things but CONFIG_IS_ENABLED won't work inside of > > switch case. > > It works fine outside of if though. > > OK, thanks, I'll poke things more to

Re: Pull request: u-boot-rockchip-20200607

2020-06-08 Thread Tom Rini
On Mon, Jun 08, 2020 at 03:23:33PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip updates/fixes: > - revive rk3399 puma board to adapt mainline dts; > - Fix rk3399-evb stdout path; > - Enable PCIe for rk3399: Rockpro64, firefly, pinebookpro; > - Add rk3328 Rock-pi-e board; > - En

Re: pull request of u-boot-mpc85xx for v2020.07

2020-06-08 Thread Tom Rini
On Mon, Jun 08, 2020 at 07:32:47AM +, Priyanka Jain wrote: > Dear Tom, > Please find my pull-request for u-boot-mpc85xx > https://travis-ci.org/github/p-priyanka-jain/u-boot/builds/694639674 > > Summary > DM_ETH support for P2041RDB, T1024RDB, P5040DS, P3041DS, P4080DS, bug fixes > Add TBI Ph

[PATCH 00/15] rockchip: Support building ROM files automatically

2020-06-08 Thread Simon Glass
Rockchip-based Chromebooks support booting from SPI flash. It is annoying to have to manually build the SPI image when the SD image is built automatically. This feature is already available for x86 devices, so the existing mechanism is reused. Briefly, this allows a BUILD_ROM environment variable

[PATCH 04/15] binman: Correct the search patch for pylibfdt

2020-06-08 Thread Simon Glass
Now that binman uses tools/ as its base directory for importing modules, the path to the pylibfdt build by U-Boot is incorrect. Fix it. Signed-off-by: Simon Glass --- tools/binman/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/main.py b/tools/binman/mai

[PATCH 02/15] .gitignore: Ignore Python 3 cache directories

2020-06-08 Thread Simon Glass
These can appear when moving between branches that have different tools in the tree. Ignore them. Signed-off-by: Simon Glass --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 2e1c8bf2bf..e66aa864da 100644 --- a/.gitignore +++ b/.gitignore @@ -92

[PATCH 03/15] binman: cbfs: Fix IFWI typo

2020-06-08 Thread Simon Glass
This comment references the wrong thing. Fix it. Signed-off-by: Simon Glass --- tools/binman/etype/cbfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/etype/cbfs.py b/tools/binman/etype/cbfs.py index e9aed8310c..744a32fa0c 100644 --- a/tools/binman/etype/cbf

[PATCH 01/15] dm: core Fix long line in device_bind_common()

2020-06-08 Thread Simon Glass
Fix an over-length line in this function. Signed-off-by: Simon Glass --- drivers/core/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index a7408d9c76..2e3d555ea4 100644 --- a/drivers/core/device.c +++ b/drivers/core/d

[PATCH 05/15] binman: Add support for calling mkimage

2020-06-08 Thread Simon Glass
As a first step to integrating mkimage into binman, add a new entry type that feeds data into mkimage for processing and incorporates that output into the image. Signed-off-by: Simon Glass --- tools/binman/README.entries | 23 tools/binman/etype/_testing.py| 5 +++ tools

[PATCH 08/15] x86: rockchip: Change how selection of ROMs works

2020-06-08 Thread Simon Glass
Most x86 boards build a u-boot.rom which is programmed into SPI flash. But this is not unique to x86. For example some rockchip boards can also boot from SPI flash. Also, at least on x86, binary blobs are sadly quite common. It is not possible to build a functional image without them, and U-Boot n

[PATCH 06/15] binman: Fix a few typos in the entry docs

2020-06-08 Thread Simon Glass
Some typos have been fixed in the code but the entry docs were not regenerated. Fix this. Signed-off-by: Simon Glass --- tools/binman/README.entries | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/binman/README.entries b/tools/binman/README.entries index 4f2c48fdc2

  1   2   >