Re: [U-Boot] Odroid n1- booting hangs if we add memtest=4 to kernel command line.

2019-09-17 Thread Kever Yang
Hi Anand, On 2019/9/16 下午7:03, Anand Moon wrote: Hi Jagan / Kever, I have with me Odroid - N1 per-released development board, It's almost same form factor to "Firefly-RK3399 Board" with rk3399-sdram-ddr3-1600.dtsi ram configuration. I have configure Odroid - N1 board to boot using TPL / SPL c

[U-Boot] [PATCH] configs: ls1012ardb: Add CONFIG_ENV_ADDR for LS1012ARDB

2019-09-17 Thread Kuldeep Singh
The configuration helps in picking the environment from flash before DDR init. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- include/configs/ls1012ardb.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h index f664

Re: [U-Boot] [PATCH 6/7] configs: tinker: Enable SDRAM, SPL stack

2019-09-17 Thread Jagan Teki
On Wed, Sep 18, 2019 at 10:36 AM Kever Yang wrote: > > > On 2019/9/17 下午2:10, Jagan Teki wrote: > > SPL sets up SDRAM while in its board_init_f() > > function, it is possible for the stack to move > > there before board_init_r() is reached. > > > > So it is required to reserve the stack for SDRAM,

Re: [U-Boot] [PATCH 6/7] configs: tinker: Enable SDRAM, SPL stack

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: SPL sets up SDRAM while in its board_init_f() function, it is possible for the stack to move there before board_init_r() is reached. So it is required to reserve the stack for SDRAM, with a proper location and size otherwise any operations during SPL hando

Re: [U-Boot] [PATCH 2/7] configs: vyasa-rk3288: Fix SPL_TEXT_BASE

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: The initial Vyasa-rk3288 TPL implementation is to reuse the SPL_TEXT_BASE for TPL and SPL as 0x0 and 0xff704000 respectively. But the below commit implements the reverse way of using TEXT_BASE's like 0xff704000 for TPL and 0x0 for SPL and which indeed upda

Re: [U-Boot] [PATCH 2/7] configs: vyasa-rk3288: Fix SPL_TEXT_BASE

2019-09-17 Thread Jagan Teki
On Wed, Sep 18, 2019 at 10:32 AM Kever Yang wrote: > > > On 2019/9/17 下午2:10, Jagan Teki wrote: > > The initial Vyasa-rk3288 TPL implementation is to reuse the > > SPL_TEXT_BASE for TPL and SPL as 0x0 and 0xff704000 respectively. > > > > But the below commit implements the reverse way of using TEX

Re: [U-Boot] [PATCH 7/7] rockchip: rk3288-tinker: Attach missing peripherals at SPL

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: From: Michael Trimarchi Reviewed-by: Kever Yang Thanks, - Kever Tinker board needs to mux all the sdmmc gpio and activate the regulator connected to bank 7. Remove all the bank that are not in use and mark them as dm,spl so-that it would initialize at

Re: [U-Boot] [PATCH 5/7] configs: tinker: Drop explicit SPL_TEXT

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: SPL_TEXT_BASE is 0x0 by default, based on the kconfig definition move in below commit. "configs: move CONFIG_SPL_TEXT_BASE to Kconfig" (sha1: f89d6133eef2e068f9c33853b6584d7fcbfa9d2e) So, don't define it explicitly. Signed-off-by: Jagan Teki Reviewed-

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected【请注意,邮件由u-boot-boun...@lists.denx.de代发】 detected

2019-09-17 Thread Jagan Teki
On Wed, Sep 18, 2019 at 9:09 AM Kever Yang wrote: > > Hi Jagan, > > Seems like your and Kurt's board have different DRAM type: > > - 16bit row + 1 CS > > - 15bit row + 2 CS > > Capacity detect function is missing for the driver now, and it's not able > > to detect the correct size like Kurt i

Re: [U-Boot] [PATCH 3/7] ram: rk3288: Initialize dram for TPL builds

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: Few of the rk3288 boards like tinker, vyasa are using TPL, SPL bootchain so the dram initialization must needed during TPL stage. So add proper ifconstruct to satisfy both TPL, SPL and SPL-only bootchain boards. This eventually fixing TPL to SPL handoff, o

Re: [U-Boot] [PATCH 4/7] rockchip: spi-boot-order: Trival fix to newline missing

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: newline \n was missed in fdt_path_offset, error loop. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/spl-boot-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ro

Re: [U-Boot] [PATCH 1/7] rockchip: rk3288: vyasa: Drop ROCKCHIP_BROM_HELPER selection

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: ROCKCHIP_BROM_HELPER is selected as if TPL/SPL ROCKCHIP_BACK_TO_BROM has been defined, so drop the explicit enablement for vyasa board. This change is supposed to missed during config move to other locations, and missed to drop the same. Signed-off-by: Ja

Re: [U-Boot] [PATCH 2/7] configs: vyasa-rk3288: Fix SPL_TEXT_BASE

2019-09-17 Thread Kever Yang
On 2019/9/17 下午2:10, Jagan Teki wrote: The initial Vyasa-rk3288 TPL implementation is to reuse the SPL_TEXT_BASE for TPL and SPL as 0x0 and 0xff704000 respectively. But the below commit implements the reverse way of using TEXT_BASE's like 0xff704000 for TPL and 0x0 for SPL and which indeed upda

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-09-17 Thread Stefan Roese
Hi Ashish, On 13.09.19 15:11, Stefan Roese wrote: On 12.09.19 14:36, Stefan Roese wrote: The spi-mem version is still under debug, I could make it working for ls1088rdb, ls1046rdb, but it is failing for ls1012ardb and ls2088ardb and untested for i.mx and other Layerscape silicon/boards . It

Re: [U-Boot] [PATCH 1/2] fs: fat: treat invalid FAT clusters as errors

2019-09-17 Thread AKASHI Takahiro
On Thu, Sep 12, 2019 at 07:19:29PM +0200, Heinrich Schuchardt wrote: > When hitting an invalid FAT cluster while reading a file always print an > error message and return an error code. I don't know what the intention of original author was here. In general, a cluster's FAT entry points to a next

Re: [U-Boot] [PATCH] board: ti: am654: Disable TRNG node for HS devices

2019-09-17 Thread Lokesh Vutla
On 18/09/19 2:45 AM, Andrew F. Davis wrote: > On HS devices the access to TRNG is restricted on the non-secure > ARM side, disable the node in DT to prevent firewall violations. > > Signed-off-by: Andrew F. Davis Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > arch/arm/mach-k3

Re: [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines

2019-09-17 Thread Simon Goldschmidt
Ley Foon Tan schrieb am Mi., 18. Sep. 2019, 04:32: > On Wed, Sep 18, 2019 at 6:33 AM Dinh Nguyen wrote: > > > > > > > > On 9/10/19 3:37 AM, Ley Foon Tan wrote: > > > This is 2nd version of patchset to convert reset, system and clock > manager > > > drivers to use #define instead of struct. > > >

Re: [U-Boot] [PATCH] net: Always build the string_to_enetaddr() helper

2019-09-17 Thread Simon Goldschmidt
Joe Hershberger schrieb am Di., 17. Sep. 2019, 23:22: > Hi Simon, > > On Sat, Sep 14, 2019 at 1:55 PM Simon Goldschmidt > wrote: > > > > Joe Hershberger schrieb am Sa., 14. Sep. 2019, > > 20:46: > > > > > On Sat, Sep 14, 2019 at 1:32 PM Tom Rini wrote: > > > > > > > > On Sat, Sep 14, 2019 at 0

Re: [U-Boot] [PATCH] configs: rk3288: Increase bootm length

2019-09-17 Thread Kever Yang
On 2019/9/17 下午3:29, Jagan Teki wrote: Increase bootm length to 64MB satisfy max gunzip size, even other rockchip and know SoC are following same length check. Reported-by: Michael Trimarchi Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- include/configs/rk328

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected【请注意,邮件由u-boot-boun...@lists.denx.de代发】 detected

2019-09-17 Thread Kever Yang
Hi Jagan,     Seems like your and Kurt's board have different DRAM type: - 16bit row + 1 CS - 15bit row + 2 CS Capacity detect function is missing for the driver now, and it's not able to detect the correct size like Kurt is using. Thanks, - Kever On 2019/9/17 下午5:25, Jagan Teki wrote: O

Re: [U-Boot] Raspberry PI Compute Module - UART Issue

2019-09-17 Thread Lee Annamalai
Thanks. Tried that (set to -2) ... will let you know if this works. Lee -Original Message- From: Belisko Marek Sent: Tuesday, 17 September 2019 21:02 To: Lee Annamalai Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Raspberry PI Compute Module - UART Issue Hi Lee, On Tue, Sep 17, 2019

Re: [U-Boot] [RFC 3/3] lib: rsa: add rsa_verify_with_pkey()

2019-09-17 Thread AKASHI Takahiro
Simon, Overall, do you agree to my approach here? On Mon, Sep 16, 2019 at 10:48:07PM -0700, Simon Glass wrote: > Hi AKASHI, > > On Fri, 6 Sep 2019 at 00:06, AKASHI Takahiro > wrote: > > > > This function, and hence rsa_verify(), will perform RSA verification > > with two essential parameters f

Re: [U-Boot] [PATCH] armv8: ls1028a: add more personalities support

2019-09-17 Thread Andy Tang
Hi Priyanka, Adding same information in both subject and description is not a good idea. I will add your suggested information in description. Thanks, Andy > -Original Message- > From: Priyanka Jain > Sent: 2019年9月17日 18:05 > To: Andy Tang ; Prabhakar Kushwaha > ; Priyanka Jain > Cc: An

[U-Boot] [PATCH v2 20/20] configs: enable eSDHC device module for T4240RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T4240RDB board Signed-off-by: Yinbo Zhu --- configs/T4240RDB_SDCARD_defconfig | 1 + configs/T4240RDB_defconfig| 1 + 2 files changed, 2 insertions(+) diff --git a/configs/T4240RDB_SDCARD_defconfig b/configs/T4240RDB_SDCARD_defconfig index 7f97166860..61f

[U-Boot] [PATCH v2 16/20] configs: enable eSDHC device module for P5040DS board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P5040DS board Signed-off-by: Yinbo Zhu --- configs/P5040DS_NAND_defconfig | 1 + configs/P5040DS_SDCARD_defconfig | 1 + configs/P5040DS_SPIFLASH_defconfig | 1 + configs/P5040DS_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/configs

[U-Boot] [PATCH v2 11/20] configs: enable eSDHC device module for P1020RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P1020RDB board Signed-off-by: Yinbo Zhu --- configs/P1020RDB-PC_36BIT_NAND_defconfig | 1 + configs/P1020RDB-PC_36BIT_SDCARD_defconfig | 1 + configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 1 + configs/P1020RDB-PC_36BIT_defconfig | 1 + configs/P1020

[U-Boot] [PATCH v2 18/20] configs: enable eSDHC device module for T1042D4RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T1042D4RDB board Signed-off-by: Yinbo Zhu --- configs/T1042D4RDB_NAND_defconfig | 1 + configs/T1042D4RDB_SDCARD_defconfig | 1 + configs/T1042D4RDB_SPIFLASH_defconfig | 1 + configs/T1042D4RDB_defconfig | 1 + 4 files changed, 4 insertions(+) diff

[U-Boot] [PATCH v2 03/20] arch: powerpc: add eSDHC node to p2041 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p2041 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p2041.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi index 55f7adc50e..cb83475d2a 100644 --- a/arch/powerpc/dts/p2041.dtsi +++ b/arch/powerpc/dts/p2

[U-Boot] [PATCH v2 12/20] configs: enable eSDHC device module for P2020RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P2020RDB board Signed-off-by: Yinbo Zhu --- configs/P2020RDB-PC_36BIT_NAND_defconfig | 1 + configs/P2020RDB-PC_36BIT_SDCARD_defconfig | 1 + configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 + configs/P2020RDB-PC_36BIT_defconfig | 1 + configs/P2020

[U-Boot] [PATCH v2 19/20] configs: enable eSDHC device module for T2080RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T2080RDB board Signed-off-by: Yinbo Zhu --- configs/T2080RDB_NAND_defconfig | 1 + configs/T2080RDB_SDCARD_defconfig | 1 + configs/T2080RDB_SPIFLASH_defconfig | 1 + configs/T2080RDB_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/co

[U-Boot] [PATCH v2 13/20] configs: enable eSDHC device module for P2041RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P2041RDB board Signed-off-by: Yinbo Zhu --- configs/P2041RDB_NAND_defconfig | 1 + configs/P2041RDB_SDCARD_defconfig | 1 + configs/P2041RDB_SPIFLASH_defconfig | 1 + configs/P2041RDB_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/co

[U-Boot] [PATCH v2 09/20] arch: powerpc: add eSDHC node to t4240 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t4240 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/t4240.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi index fc34974c7f..b09b40d8c6 100644 --- a/arch/powerpc/dts/t4240.dtsi +++ b/arch/powerpc/dts/t4

[U-Boot] [PATCH v2 14/20] configs: enable eSDHC device module for P3041DS board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P3041DS board Signed-off-by: Yinbo Zhu --- configs/P3041DS_NAND_defconfig | 1 + configs/P3041DS_SDCARD_defconfig | 1 + configs/P3041DS_SPIFLASH_defconfig | 1 + configs/P3041DS_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/configs

[U-Boot] [PATCH v2 15/20] configs: enable eSDHC device module for P4080DS board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for P4080DS board Signed-off-by: Yinbo Zhu --- configs/P4080DS_SDCARD_defconfig | 1 + configs/P4080DS_SPIFLASH_defconfig | 1 + configs/P4080DS_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a/configs/P4080DS_SDCARD_defconfig b/configs/P4080D

[U-Boot] [PATCH v2 07/20] arch: powerpc: add eSDHC node to t102x dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t102x dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/t102x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi index c49fd21088..a0c97021dd 100644 --- a/arch/powerpc/dts/t102x.dtsi +++ b/arch/powerpc/dts/t1

[U-Boot] [PATCH v2 10/20] board: sdhc: Use block layer to read from mmc

2019-09-17 Thread Yinbo Zhu
Use block layer to read from mmc Signed-off-by: Yinbo Zhu --- board/freescale/common/sdhc_boot.c | 4 1 file changed, 4 insertions(+) diff --git a/board/freescale/common/sdhc_boot.c b/board/freescale/common/sdhc_boot.c index 357aba9122..a1c7a94a90 100644 --- a/board/freescale/common/sdhc_

[U-Boot] [PATCH v2 06/20] arch: powerpc: add eSDHC node to p5040 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p5040 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p5040.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi index 8ab123dca4..8128ac2376 100644 --- a/arch/powerpc/dts/p5040.dtsi +++ b/arch/powerpc/dts/p5

[U-Boot] [PATCH v2 17/20] configs: enable eSDHC device module for T1024RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T1024RDB board Signed-off-by: Yinbo Zhu --- configs/T1024RDB_NAND_defconfig | 1 + configs/T1024RDB_SDCARD_defconfig | 1 + configs/T1024RDB_SPIFLASH_defconfig | 1 + configs/T1024RDB_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/co

[U-Boot] [PATCH v2 08/20] arch: powerpc: add eSDHC node to t104x dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t104x dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/t104x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi index 59989677a2..c37a80f006 100644 --- a/arch/powerpc/dts/t104x.dtsi +++ b/arch/powerpc/dts/t1

[U-Boot] [PATCH v2 04/20] arch: powerpc: add eSDHC node to p3041 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p3041 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p3041.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi index 197896d35a..6ab60a4ced 100644 --- a/arch/powerpc/dts/p3041.dtsi +++ b/arch/powerpc/dts/p3

[U-Boot] [PATCH v2 05/20] arch: powerpc: add eSDHC node to p4080 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p4080 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p4080.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p4080.dtsi b/arch/powerpc/dts/p4080.dtsi index ab766803a3..61ff5c2d67 100644 --- a/arch/powerpc/dts/p4080.dtsi +++ b/arch/powerpc/dts/p4

[U-Boot] [PATCH v2 02/20] arch: powerpc: add eSDHC node to p2020 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p2020 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p2020-post.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/dts/p2020-post.dtsi b/arch/powerpc/dts/p2020-post.dtsi index f696f35960..c07ed66726 100644 --- a/arch/powerpc/dts/p2020-post.dtsi +++

[U-Boot] [PATCH v2 01/20] arch: powerpc: add eSDHC node to p1020 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p1020 dts Signed-off-by: Yinbo Zhu --- Change in v2: remove the string "This patch is to" from commit information arch/powerpc/dts/p1020-post.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p10

Re: [U-Boot] [RFC 2/3] lib: rsa: generate additional parameters for public key

2019-09-17 Thread AKASHI Takahiro
Hi Simon, On Mon, Sep 16, 2019 at 10:48:05PM -0700, Simon Glass wrote: > Hi AKASHI, > > On Fri, 6 Sep 2019 at 00:05, AKASHI Takahiro > wrote: > > > > In the current implementation of FIT_SIGNATURE, five parameters for > > a RSA public key are required while only two of them are essential. > > (

Re: [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines

2019-09-17 Thread Ley Foon Tan
On Wed, Sep 18, 2019 at 6:33 AM Dinh Nguyen wrote: > > > > On 9/10/19 3:37 AM, Ley Foon Tan wrote: > > This is 2nd version of patchset to convert reset, system and clock manager > > drivers to use #define instead of struct. > > > > Tested on Cyclone 5, Arria 10 and Stratix 10 devices. > > > > Patc

Re: [U-Boot] [PATCH v2 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes

2019-09-17 Thread Ley Foon Tan
On Mon, Sep 16, 2019 at 10:12 PM Dinh Nguyen wrote: > > > > On 9/10/19 3:38 AM, Ley Foon Tan wrote: > > Add u-boot,dm-pre-reloc for sysmgr and clkmgr nodes to use it in SPL. > > In preparation to get base address from DT. > > > > Signed-off-by: Ley Foon Tan > > --- > > arch/arm/dts/socfpga-commo

Re: [U-Boot] [PATCH V2] dm: pinctrl: Skip not associated gpio phandle and rise a warning message

2019-09-17 Thread Simon Glass
On Tue, 17 Sep 2019 at 13:06, Michael Trimarchi wrote: > > Skip not associated gpio phandle let register the other gpios on a group. > We need anyway to send out a warning to the user to fix their > uboot-board.dtsi. > Thhe handle id can be found inside the decompiled dtb > > dtc -I dtb -O dts -o

[U-Boot] [PATCH v2 21/28] mmc: mtk-sd: add support for MediaTek MT7620/MT7628 SoCs

2019-09-17 Thread Weijie Gao
This patch adds mmc support for MediaTek MT7620/MT7628 SoCs. Signed-off-by: Weijie Gao --- v2: Removed unnecessary braces in Kconfig --- drivers/mmc/Kconfig | 2 +- drivers/mmc/mtk-sd.c | 23 --- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/Kc

[U-Boot] [PATCH v2 14/28] dts: mtmips: update reset controller node for mt7628

2019-09-17 Thread Weijie Gao
This patch updates reset controller node for mt7628 Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 36 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 44fbbd5b25..b0e0ed

[U-Boot] [PATCH v2 22/28] mmc: mtk-sd: add a dts property cd-active-high for builtin-cd mode

2019-09-17 Thread Weijie Gao
This patch adds a dts property cd-active-high for builtin-cd mode to make it configurable instead of using hardcoded active-low. Signed-off-by: Weijie Gao --- drivers/mmc/mtk-sd.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-s

[U-Boot] [PATCH v2 20/28] dts: mtmips: enable eth port0 led and link poll functions for all boards

2019-09-17 Thread Weijie Gao
This patch adds default p0led status and phy0 link polling for all boards. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2: Add phy link detection for all boards. --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 13 + arch/mips/dts/linkit-smart-7688.dts| 1

[U-Boot] [PATCH v2 15/28] phy: mt76x8-usb-phy: add slew rate calibration and remove non-mt7628 part

2019-09-17 Thread Weijie Gao
This patch adds slew rate calibration for mt76x8-usb-phy, removes code which belongs to mt7620, and gets rid of using syscon and regmap by using clock driver and reset controller. Signed-off-by: Weijie Gao --- drivers/phy/Kconfig | 2 + drivers/phy/mt76x8-usb-phy.c | 225 +

[U-Boot] [PATCH v2 19/28] net: mt7628-eth: add support to isolate LAN/WAN ports

2019-09-17 Thread Weijie Gao
This patch add support for mt7628-eth to isolate LAN/WAN ports mainly to prevent LAN devices from getting IP address from WAN. Signed-off-by: Weijie Gao --- drivers/net/mt7628-eth.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/net/mt7628-eth.c b/d

[U-Boot] [PATCH v2 17/28] net: mt7628-eth: make phy link up detection optional via DT

2019-09-17 Thread Weijie Gao
The mt7628 has an embedded ethernet switch (5 phy ports + 1 cpu port). Although in IOT mode only port0 is usable, the phy0 is still connected to the switch, not the ethernet gmac directly. This patch rewrites it and makes it optional. It can be turned on by adding mediatek,poll-link-phy = explici

[U-Boot] [PATCH v2 28/28] configs: mtmips: remove configs which are selected in Kconfig or useless

2019-09-17 Thread Weijie Gao
Some configs are selected in Kconfig and is no longer needed in the defconfig files. Some configs (power domain, ram) are never used. Signed-off-by: Weijie Gao --- v2: newly added --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 7 --- configs/gardena-smart-gateway-mt7688_defconfig

[U-Boot] [PATCH v2 18/28] net: mt7628-eth: free rx descriptor on receiving failure

2019-09-17 Thread Weijie Gao
When received a packet with an invalid length recorded in rx descriptor, we should free this rx descriptor to allow us to continue to receive following packets. Without doing so, u-boot will stuck in a dead loop trying to process this invalid rx descriptor. This patch adds a call to mt7628_eth_fre

[U-Boot] [PATCH v2 05/28] clk: add clock driver for MediaTek MT76x8 platform

2019-09-17 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7628/7688 SoC. It provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- v2: Changed to a more generic clock driver rather than a gateing only driver. Now supports output

[U-Boot] [PATCH v2 12/28] dts: mtmips: add default pinctrl for uart nodes

2019-09-17 Thread Weijie Gao
This patch adds default pinctrl for uart nodes Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 8afea1865d..44fbbd5b25 100644 --- a/arch/mips/dts/mt7628a.dtsi +++ b/

[U-Boot] [PATCH v2 16/28] net: mt7628-eth: remove hardcoded gpio settings and regmap-based phy reset

2019-09-17 Thread Weijie Gao
This patch removes hardcoded gpio settings as they have been replaced by pinctrl in dts, and also replaces regmap-based phy reset with a more generic reset controller. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- drivers/net/mt7628-eth.c | 45 +++-

[U-Boot] [PATCH v2 13/28] reset: add reset controller driver for MediaTek MIPS platform

2019-09-17 Thread Weijie Gao
This patch adds reset controller driver for MediaTek MIPS platform and header file for mt7628. Signed-off-by: Weijie Gao --- drivers/reset/Kconfig| 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-mtmips.c | 82

[U-Boot] [PATCH v2 24/28] dts: mtmips: add default pinctrl for gardena-smart-gateway-mt7688

2019-09-17 Thread Weijie Gao
This adds default pinctrl (dual SPI chip select) for gardena smart gateway Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/dts/gardena-smart-gateway-mt7688.dts b/arch/mips/dt

[U-Boot] [PATCH v2 23/28] dts: mtmips: add mmc related nodes for mt7628an.dtsi

2019-09-17 Thread Weijie Gao
This patch adds mmc related nodes for mt7628an.dtsi Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 5fd83c1623..76a80c8952 100644 --- a/arch/mips/dts

[U-Boot] [PATCH v2 25/28] dts: mtmips: add default pinctrl to eth nodes for all boards

2019-09-17 Thread Weijie Gao
This patch adds default eth pinctrl for all boards. There are two pinctrl nodes used for two scenarios: ephy_iot_mode- for IOT boards which have only one port (PHY0) ephy_router_mode - For routers which have more than one ports Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/m

[U-Boot] [PATCH v2 26/28] mips: mtmips: change baudrate table for all boards

2019-09-17 Thread Weijie Gao
This patch changes baudrate table for all boards preparing for using mtk highspeed uart driver. Signed-off-by: Weijie Gao --- v2: Removed configs in defconfig files. --- include/configs/gardena-smart-gateway-mt7688.h | 2 +- include/configs/linkit-smart-7688.h| 2 +- 2 files changed,

[U-Boot] [PATCH v2 27/28] mips: mtmips: select essential drivers in Kconfig

2019-09-17 Thread Weijie Gao
Some drivers (clk, pinctrl, reset, ...) are necessary for reset of the system, they should be always selected. Signed-off-by: Weijie Gao --- v2: newly added --- arch/mips/Kconfig | 6 ++ arch/mips/mach-mtmips/Kconfig | 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch/mip

[U-Boot] [PATCH v2 06/28] dts: mtmips: add clock node for mt7628

2019-09-17 Thread Weijie Gao
This patch adds clkctrl node for mt7628 and adds clocks property for some node. Signed-off-by: Weijie Gao --- v2: Changed clkgate node to clkctrl node. Replaced clock-frequency with <&clkctrl CLK_UARTx> for uarts and spi. --- arch/mips/dts/mt7628a.dtsi | 21 + 1 file chan

[U-Boot] [PATCH v2 10/28] pinctrl: add support for MediaTek MT7628

2019-09-17 Thread Weijie Gao
This patch adds pinctrl support for mt7628, with a file for common pinmux functions and a file for mt7628 which has additional support for pinconf. Signed-off-by: Weijie Gao --- drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/

[U-Boot] [PATCH v2 09/28] spi: mt7621-spi: restore default register value after each xfer

2019-09-17 Thread Weijie Gao
Currently this driver uses a different way to implement the spi xfer, by modifying some fields of two registers, which is incompatible with the MTK's original SDK linux driver. This will cause the flash data being damaged by the SDK driver. This patch lets the mt7621_spi_set_cs() restore the origi

[U-Boot] [PATCH v2 11/28] dts: mtmips: add pinctrl node for mt7628

2019-09-17 Thread Weijie Gao
This patch adds pinctrl node with default pin state for mt7628an.dtsi. Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 150 + 1 file changed, 150 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 6d2142f429..8

[U-Boot] [PATCH v2 07/28] spi: mt7621-spi: use clock frequency from clk driver

2019-09-17 Thread Weijie Gao
This patch lets the spi driver to use clock provided by the clk driver since the new clk-mt7628 driver provides accurate sys clock frequency. Signed-off-by: Weijie Gao --- v2: newly added --- drivers/spi/mt7621_spi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) di

[U-Boot] [PATCH v2 08/28] spi: mt7621-spi: remove data cache and rewrite its xfer function

2019-09-17 Thread Weijie Gao
The mt7621 spi controller supports continuous generic half-duplex spi transaction. There is no need to cache xfer data at all. To achieve this goal, the OPADDR register must be used as the first data to be sent. And follows the eight generic DIDO registers. But one thing different between OPADDR a

[U-Boot] [PATCH v2 04/28] dts: mtmips: enable high-speed UART support for mt7628

2019-09-17 Thread Weijie Gao
All three UARTs of mt7628 are actually MediaTek's high-speed UARTs which support baudrate up to 921600. The high-speed UART is compatible with ns16550 when baudrate <= 115200. Add compatible string to dtsi file so u-boot can use it when serial_mtk driver is built in. Reviewed-by: Stefan Roese Si

[U-Boot] [PATCH v2 03/28] dts: mtmips: move uart property clock-frequency into mt7628an.dtsi

2019-09-17 Thread Weijie Gao
The UART of MT7628 has fixed 40MHz input clock so there is no need to put clock-frequency in every dts files. Just put it into the common dtsi file. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 1 - arch/mips/dts/linkit-smart-7688.dts

[U-Boot] [PATCH v2 02/28] serial: serial_mtk: add non-DM version for SPL

2019-09-17 Thread Weijie Gao
This patch adds non-DM version for mtk hsuart driver and makes it compatible with ns16550a driver in configuration. This is needed in SPL with CONFIG_SPL_DM disabled for reducing size. Signed-off-by: Weijie Gao --- drivers/serial/serial.c | 2 + drivers/serial/serial_mtk.c | 202 ++

[U-Boot] [PATCH v2 00/28] Add and update drivers for MediaTek MT76x8 SoCs

2019-09-17 Thread Weijie Gao
This patch series have the following changes: - Add pinctrl(both pinmux and pinconf) driver, reset controller driver and clock driver for mt7628. - Add mt7628 platform to mtk-sd driver. - Modify mt7628's ethernet & usb phy driver to take advantages from the new drivers. - Update mt7621-spi d

[U-Boot] [PATCH v2 01/28] serial: serial_mtk: enable FIFO and disable flow control

2019-09-17 Thread Weijie Gao
This patch adds codes to enable FIFO and disable flow control taken from ns16550 driver. Signed-off-by: Weijie Gao --- drivers/serial/serial_mtk.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index bce1be8227

Re: [U-Boot] [PATCH V2] [RFC] usb: storage: Limit transfer size to 120 kiB

2019-09-17 Thread Bin Meng
On Tue, Sep 17, 2019 at 10:43 PM Marek Vasut wrote: > > Due to constant influx of more and more weird and broken USB sticks, > do as Linux does in commit 779b457f66e10de3471479373463b27fd308dc85 > > usb: storage: scsiglue: further describe our 240 sector limit > > Just so we have some sort

[U-Boot] [RFC 12/15] efi_loader: add CONFIG_EFI_SECURE_BOOT

2019-09-17 Thread AKASHI Takahiro
Now we can enable UEFI secure boot with this option. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Kconfig | 13 + 1 file changed, 13 insertions(+) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index c7027a967653..fb66766d2b7a 100644 --- a/lib/efi_loader/Kconfig +

[U-Boot] [RFC 14/15] efi_loader, pytest: add UEFI secure boot tests (image)

2019-09-17 Thread AKASHI Takahiro
test_efi_secboot/test_signed.py: provide test cases of image authentication for signed images test_efi_secboot/test_unsigned.py: provide test cases of image authentication for unsigned images This test relies on efitools and user should compile it on his own. (Curre

[U-Boot] [RFC 13/15] cmd: env: provide appropriate guid for well-defined variable

2019-09-17 Thread AKASHI Takahiro
Any signature database variable is associated with a specific guid. For convenience, if user doesn't supply any guid info, "env set|print -e" should complement it. Signed-off-by: AKASHI Takahiro --- cmd/nvedit_efi.c | 31 +++ 1 file changed, 23 insertions(+), 8 deleti

[U-Boot] [RFC 15/15] efi_loader, pytest: add UEFI secure boot tests (authenticated variables)

2019-09-17 Thread AKASHI Takahiro
test_efi_secboot/test_authvar.py: provide test cases of variable authentication This test relies on efitools and user should compile it on his own. (Currently some local change has been applied.) Signed-off-by: AKASHI Takahiro --- .../py/tests/test_efi_secboot/test_authvar.py |

[U-Boot] [RFC 06/15] secure boot: rename CONFIG_SECURE_BOOT

2019-09-17 Thread AKASHI Takahiro
The configuration, CONFIG_SECURE_BOOT, was scattered among different architecture directories for different implementation. This will prevent UEFI secure boot from being added later. So let's rename them, giving each implementation to different configuration option. CONFIG_SECURE_BOOT still remain

[U-Boot] [RFC 07/15] efi_loader: add signature verification functions

2019-09-17 Thread AKASHI Takahiro
In this commit, implemented are efi_signature_verify_with_db(), efi_signature_parse_sigdb() and a couple of helper functions which will be used for variable authentication as well as image authentication in UEFI secure boot. efi_signature_verify_with_db() - authenticate an image with its hash valu

[U-Boot] [RFC 10/15] efi_loader: image_loader: support image authentication

2019-09-17 Thread AKASHI Takahiro
With this commit, image validation can be enforced, as UEFI specification section 32.5 describes, if CONFIG_EFI_SECURE_BOOT is enabled. Currently we support * authentication based on db and dbx, so dbx-validated image will always be rejected. * following signature types: EFI_CERT_SHA256_GUID

[U-Boot] [RFC 11/15] efi_loader: initialize secure boot state

2019-09-17 Thread AKASHI Takahiro
We call efi_init_secure_boot() after loading saved UEFI variables so that the initial secure boot status will be initialized. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_setup.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_set

[U-Boot] [RFC 05/15] include: image.h: export hash algorithm helper functions

2019-09-17 Thread AKASHI Takahiro
This commit allows us to use common/image-sig.c even if CONFIG_FIT is disabled but CONFIG_EFI_LOADER is enabled. Signed-off-by: AKASHI Takahiro --- include/image.h | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/image.h b/include/image.h index 685f5181

[U-Boot] [RFC 09/15] efi_loader: variable: add VendorKeys and SignatureSupport variables

2019-09-17 Thread AKASHI Takahiro
Those two variables are well defined UEFI variables: SignatureSupport: array of GUIDs representing the type of signatures supported by the platform firmware VendorKeys: whether the system is configured to use only vendor-provided keys or not Signed-off-by: AKASHI Taka

[U-Boot] [RFC 08/15] efi_loader: variable: support variable authentication

2019-09-17 Thread AKASHI Takahiro
With this commit, EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS is supported for authenticated variables and the system secure state will transfer between setup mode and user mode as UEFI specification section 32.3 describes. Internally, authentication data is stored as part of authenticated

[U-Boot] [RFC 03/15] include: pe.h: add image-signing-related definitions

2019-09-17 Thread AKASHI Takahiro
The index (IMAGE_DIRECTORY_ENTRY_CERTTABLE) in a table points to a region containing authentication information (image's signature) in PE format. WIN_CERTIFICATE structure defines an embedded signature format. Those definitions will be used in my UEFI secure boot patch. Signed-off-by: AKASHI Tak

[U-Boot] [RFC 04/15] include: image.h: add key info to image_sign_info

2019-09-17 Thread AKASHI Takahiro
For FIT verification, all the properties of a public key come from "control fdt" pointed to by fdt_blob. In UEFI secure boot, on the other hand, a public key is located and retrieved from dedicated signature database stored as UEFI variables. Added two fields may hold values of a public key if fdt

[U-Boot] [RFC 02/15] test: add tests for u16_strcmp()

2019-09-17 Thread AKASHI Takahiro
New seven test cases for u16_strcmp() are added under Unicode unit test, which should be executed by "ut unicode" command. Signed-off-by: AKASHI Takahiro --- test/unicode_ut.c | 13 + 1 file changed, 13 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 1ccd36e7c

[U-Boot] [RFC 01/15] lib: charset: add u16_strcmp()

2019-09-17 Thread AKASHI Takahiro
u16 version of strcmp(): u16_strncmp() works like u16_strcmp() but only at most n characters (in u16) are compared. This function will be used in my UEFI secure boot patch. Signed-off-by: AKASHI Takahiro --- include/charset.h | 15 +++ lib/charset.c | 25 +

[U-Boot] [RFC 00/15] efi_loader: add secure boot support

2019-09-17 Thread AKASHI Takahiro
One of major missing features in current UEFI implementation is "secure boot." The ultimate goal of my attempt is to implement image authentication based on signature and provide UEFI secure boot support which would be fully compliant with UEFI specification, section 32[1]. (The code was originally

Re: [U-Boot] [PATCH v2 1/2] efi_loader: variable: support APPEND_WRITE

2019-09-17 Thread AKASHI Takahiro
On Tue, Sep 17, 2019 at 10:38:47PM +0200, Heinrich Schuchardt wrote: > On 9/6/19 8:09 AM, AKASHI Takahiro wrote: > >If EFI_VARIABLE_APPEND_WRITE is specified in attributes at > >efi_set_variable(), specified data will be appended to the variable's > >original value. Attributes other than APPEND_WRI

Re: [U-Boot] pull request u-boot-fsl-qoriq

2019-09-17 Thread Tom Rini
On Mon, Sep 16, 2019 at 05:17:11AM +, Priyanka Jain wrote: > Dear Tom, > > Please find my pull-request for u-boot-fsl-qoriq/master > https://travis-ci.org/p-priyanka-jain/u-boot/builds/584428184 > > > Summary > Add emmc hs200 support > Few bug fixes related to serdes, I2C, ethernet, etc >

Re: [U-Boot] [PATCH 2/2] am335x, guardian: adapt guardian board to DM

2019-09-17 Thread Tom Rini
On Tue, Sep 17, 2019 at 02:25:38PM +, bollavarapumoses.christop...@in.bosch.com wrote: > From: Moses Christopher > > - update partition table - remove env partitions > - dts: add new interfaces (uart2, extra gpio-key) > remove unneeded entries > update nand timings for

Re: [U-Boot] [PATCH 1/2] am335x, guardian: update guardian board

2019-09-17 Thread Tom Rini
On Tue, Sep 17, 2019 at 02:25:37PM +, bollavarapumoses.christop...@in.bosch.com wrote: > From: Moses Christopher > > - add BOARD_LATE_INIT function calls in board.c > - add swi_status detection in board.c > - mux: add guardian interfaces to single pinmux structure > - am33xx, kconfi

Re: [U-Boot] Pull request: u-boot-spi/master

2019-09-17 Thread Tom Rini
On Mon, Sep 16, 2019 at 08:15:49AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this for v2019.10 release. > > Summary: > - fix mvebu_a3700_spi clock prescale (Marek Behún) > - unmark MXS_SPI, DEPRECATED (Lukasz) > - add spi_write_then_read (Jagan) > - fix SST26* flash ICs (Eugeniy) > - fi

Re: [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines

2019-09-17 Thread Dinh Nguyen
On 9/10/19 3:37 AM, Ley Foon Tan wrote: > This is 2nd version of patchset to convert reset, system and clock manager > drivers to use #define instead of struct. > > Tested on Cyclone 5, Arria 10 and Stratix 10 devices. > > Patch 1 is new one, patch 2 to 4 have changes. > > Main changes in this

Re: [U-Boot] [PATCH 09/17] mx6sabresd: convert to DM_VIDEO

2019-09-17 Thread Anatolij Gustschin
Hi Fabio, On Tue, 17 Sep 2019 09:32:37 -0300 Fabio Estevam feste...@gmail.com wrote: > Hi Anatolij, > > On Mon, Sep 16, 2019 at 4:21 PM Anatolij Gustschin wrote: > > > Most probably this is because there was no user of the video > > device when booting and therefore the video driver was not >

  1   2   >