[U-Boot] [PATCH v2 4/5] armv8: dts: fsl-ls2088a: add i2c node support

2019-07-01 Thread Chuanhua Han
From: chuanhua han One ls2088a, there is four I2C controllers. This patch is to add I2C node for ls2088a. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Change

[U-Boot] [PATCH v2 5/5] armv8: dts: ls2088ardb: Add slave nodes under the i2c0 controller

2019-07-01 Thread Chuanhua Han
This patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Change in v2:

[U-Boot] [PATCH v2 3/5] configs: ls2088a: enable DM support for rtc

2019-07-01 Thread Chuanhua Han
Enable related configs to support rtc DM feature for ls2088ardb board. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Change in v2: - No change. configs

[U-Boot] [PATCH v2 2/5] gpio: do not include on ARCH_LS2080A

2019-07-01 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls2080a. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 - http://patchwork.ozlabs.org/project/uboot/list/?series=113103 Chan

[U-Boot] [PATCH v2 1/5] armv8: ls2088a: The ls2088a platform supports the I2C driver model.

2019-07-01 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the ls2088a platform does not support dm. Signed-off-b

[U-Boot] [PATCH v2 4/5] armv8: dts: fsl-ls1088a: add I2C node support

2019-07-01 Thread Chuanhua Han
One ls1088a, there is four I2C controllers. This patch is to add I2C node for ls1088a. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=110856 - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 Changes in v2: - No cha

[U-Boot] [PATCH v2 5/5] armv8: dts: ls1088ardb: Add slave nodes under the i2c0 controller

2019-07-01 Thread Chuanhua Han
This patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=110856 - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 Changes in v2:

[U-Boot] [PATCH v2 3/5] configs: ls1088a: enable DM support for pcf2127 rtc

2019-07-01 Thread Chuanhua Han
Enable related configs to support pcf2127 rtc DM feature for ls1088ardb board. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=110856 - http://patchwork.ozlabs.org/project/uboot/list/?series=109459 Changes in v2: -No

[U-Boot] [PATCH v2 2/5] gpio: do not include on ARCH_LS1088A

2019-07-01 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls1088a. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=110856 - http://patchwork.ozlabs.org/project/uboot/list/?series=109459

[U-Boot] [PATCH v2 1/5] armv8: ls1088a: The ls1088a platform supports the I2C driver model.

2019-07-01 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the ls1088a platform does not support dm. Signed-off-b

[U-Boot] [PATCH v3 3/4] configs: ls1028a: enable DM support for pcf2127 rtc

2019-07-01 Thread Chuanhua Han
Enable related configs to support pcf2127 rtc DM feature for ls1028ardb board. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=113364 - https://patchwork.ozlabs.org/project/uboot/list/?series=110856 - https://patchwork

[U-Boot] [PATCH v3 2/4] gpio: do not include on ARCH_LS1028A

2019-07-01 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls1028a. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=113364 - https://patchwork.ozlabs.org/project/uboot/list/?series=11

[U-Boot] [PATCH v3 4/4] armv8: dts: ls1028ardb: Add slave nodes under the i2c0 controller

2019-07-01 Thread Chuanhua Han
This patch adds some slave nodes to support the i2c dm on the device side under the i2c0 controller. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=113364 - https://patchwork.ozlabs.org/project/uboot/list/?series=110856

[U-Boot] [PATCH v3 1/4] armv8: ls1028a: The ls1028a platform supports the I2C driver model

2019-07-01 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the ls1028a platform does not support dm. Signed-off-b

Re: [U-Boot] [PATCH] video: backlight: fix pwm invertation

2019-07-01 Thread Nicolas Chauvet
This patch fixes the panel on my device (paz00). Can it be applied to 2019-07 ? Thx in advance Le jeu. 27 juin 2019 à 21:52, Marc Dietrich a écrit : > > Am Freitag, 21. Juni 2019, 22:01:35 CEST schrieb Marc Dietrich: > > Fixes: 57e7775413 ("video: backlight: Parse PWM polarity cell") > > > > se

Re: [U-Boot] [PATCH v2 0/8] x86: Add basic Slim Bootloader payload support

2019-07-01 Thread Bin Meng
Hi Aiden, On Mon, Jul 1, 2019 at 3:49 PM Park, Aiden wrote: > > Hi Bin, > > > -Original Message- > > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Park, Aiden > > Sent: Tuesday, June 25, 2019 4:15 PM > > To: U-Boot Mailing List ; Simon Glass > > ; Bin Meng > > Subject:

Re: [U-Boot] [PATCH v5 0/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-07-01 Thread Keerthy
On 06/06/19 5:43 PM, Keerthy wrote: Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW NUSS). It has two ports and provides Ethernet packet communication for the device and can be configured as an Ethernet switch. CPSW NUSS features: the Reduced Gigabit Media Independen

[U-Boot] [PATCH v2 2/2] armv8: lx2160aqds : Add pcf2127 node

2019-07-01 Thread Chuanhua Han
This patch adds the pcf2127-rtc node under the i2c0->i2c-mux@77->i2c@3 for lx2160aqds boards. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=117203 - https://patchwork.ozlabs.org/project/uboot/list/?series=114242 Changes in v

[U-Boot] [PATCH v2 1/2] configs: lx2160aqds: enable DM support for pcf2127 rtc

2019-07-01 Thread Chuanhua Han
Enable related configs on all lx2160aqds boards to support pcf2127 rtc DM function. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=117203 - https://patchwork.ozlabs.org/project/uboot/list/?series=114242 Changes in v2:

[U-Boot] [PATCH 2/2] armv8: lx2160aqds : Add pcf2127 node

2019-07-01 Thread Chuanhua Han
This patch adds the pcf2127-rtc node under the i2c0->i2c-mux@77->i2c@3 for lx2160aqds boards. Signed-off-by: Chuanhua Han --- arch/arm/dts/fsl-lx2160a-qds.dts | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-lx2160a-qds.dts b/arch/a

[U-Boot] [PATCH 1/2] configs: lx2160aqds: enable DM support for pcf2127 rtc

2019-07-01 Thread Chuanhua Han
Enable related configs on all lx2160aqds boards to support pcf2127 rtc DM function. Signed-off-by: Chuanhua Han --- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig |7 +++ configs/lx2160aqds_tfa_defconfig |7 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --

[U-Boot] [PATCH v3 7/7] armv8: lx2160ardb : Add the "u-boot, dm-pre-reloc" property for i2c0 node

2019-07-01 Thread Chuanhua Han
Lx2160ardb need to use i2c0 before relocation, so we also need to set u-boot,dm-pre-reloc to initialize node before relocation. Signed-off-by: Chuanhua Han --- Changes in v3: - Delete unnecessary i2c slave nodes. - Modify the subject and submission information of the patch Changes

[U-Boot] [PATCH v5 5/8] rockchip: dts: rk3288-tinker: enable sdmmc pinctrl node in spl

2019-07-01 Thread Kever Yang
rockchip pinctrl driver has update to use dts, so we need to add the pinctrl config in SPL for sdmmc. Signed-off-by: Kever Yang --- Changes in v5: None Changes in v4: None Changes in v2: - update the tags in -u-boot.dtsi arch/arm/dts/rk3288-tinker-u-boot.dtsi | 24 1 f

[U-Boot] [PATCH v3 3/7] drivers: i2c: mxc: Solve the compiler error when using i2c dm mode

2019-07-01 Thread Chuanhua Han
This patch solved the following compilation error: 1.Remove the definition of CONFIG_SYS_I2C to solve the following compilation issue: In file included from include/config.h:8:0, from include/common.h:20: include/config_fallbacks.h:51:4: error: #error "Cannot define CONFIG_SYS_I2C

[U-Boot] [PATCH v5 8/8] rockchip: rk3288: enable TPL for tinker-board

2019-07-01 Thread Kever Yang
All the config for TPL has been update, we can enable the TPL. Signed-off-by: Kever Yang --- Changes in v5: None Changes in v4: None Changes in v2: None arch/arm/mach-rockchip/rk3288/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/m

[U-Boot] [PATCH v3 6/7] armv8: lx2160ardb: Add pcf2127 node

2019-07-01 Thread Chuanhua Han
This patch adds the pcf2127-rtc node under the i2c4 node for lx2160ardb boards. Signed-off-by: Chuanhua Han --- Changes in v3: - Modify the submission information of the patch. Changes in v2: - Delete unnecessary aliases about i2c. arch/arm/dts/fsl-lx2160a-rdb.dts |9 +

[U-Boot] [PATCH v3 5/7] armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes

2019-07-01 Thread Chuanhua Han
In lx2160a soc, there are eight i2c controllers, this patch adds i2c nodes for lx2160a, and the gpio2 nodes on which the i2c4 controller depends. Signed-off-by: Chuanhua Han --- Changes in v3: - No change. Changes in v2: - Delete unnecessary clockgen related attributes in the i2

[U-Boot] [PATCH v5 7/8] rockchip: config: tiner-rk3288: extend CONFIG_SYS_MONITOR_LEN to 600KB

2019-07-01 Thread Kever Yang
The raw u-boot.bin for tinker board has been about 450KB without debug option, and 550KB with all debug on, and the default value is 200KB, which is not enough for run raw u-boot.bin. Signed-off-by: Kever Yang --- Changes in v5: None Changes in v4: - add blank line back Changes in v2: None in

[U-Boot] [PATCH v3 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model.

2019-07-01 Thread Chuanhua Han
DM_I2C_COMPAT is a compatibility layer that allows using the non-DM I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for compilation, a compilation error will be generated. This patch solves the problem that the i2c-related api of the lx2160a platform does not support dm. Signed-off-b

[U-Boot] [PATCH v3 4/7] gpio: do not include on ARCH_LX2160A

2019-07-01 Thread Chuanhua Han
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch ls2160a. Signed-off-by: Chuanhua Han --- Changes in v3: - No change. Changes in v2: - No change. arch/arm/include/asm/gpio.h |3 ++- 1 files changed, 2 insertions(+), 1 de

[U-Boot] [PATCH v3 2/7] configs: lx2160ardb: enable DM support for pcf2127 rtc

2019-07-01 Thread Chuanhua Han
Enable related configs on all lx2160ardb boards to support pcf2127 rtc DM feature. Signed-off-by: Chuanhua Han Signed-off-by: Biwen Li --- Changes in v3: - Modify the subject and submission information of the patch. Changes in v2: - No change. configs/lx2160ardb_tfa_SECURE_BO

[U-Boot] [PATCH v5 6/8] rockchip: config: update config for TPL support on tinker-rk3288

2019-07-01 Thread Kever Yang
We need to update TEXT BASE for TPL/SPL/U-Boot; SPL no need relocate STACK after enable TPL, so remove it; Don't enable pinctrl names so that SPL can get pinctrl dts; Signed-off-by: Kever Yang --- Changes in v5: None Changes in v4: None Changes in v2: None configs/tinker-rk3288_defconfig | 13

[U-Boot] [PATCH v5 2/8] rockchip: rk3288: add separate TPL STACK address

2019-07-01 Thread Kever Yang
TPL is at SRAM while other stage is at SDRAM, so it needs separate STACK. Signed-off-by: Kever Yang Reviewed-by: Jagan Teki --- Changes in v5: - use imply instead of select for TPL Kconfig option Changes in v4: None Changes in v2: None arch/arm/mach-rockchip/Kconfig | 4 1 file changed,

[U-Boot] [PATCH v5 4/8] rockchip: dts: tinker: migrate the dm-pre-reloc tag into -u-boot dts

2019-07-01 Thread Kever Yang
Migrate all the "u-boot,dm-pre-reloc" tag from rk3288-tinker.dts into rk3288-tinker-u-boot.dtsi. When both board level and soc level '-u-boot.dtsi' files exist, we need to include the soc level 'rk3288-u-boot.dtsi' manually. Signed-off-by: Kever Yang --- Changes in v5: None Changes in v4: - incl

[U-Boot] [PATCH v5 3/8] rockchip: dts: rk3288: move reloc tag into -u-boot dts

2019-07-01 Thread Kever Yang
Move all the tag "u-boot,dm-pre-reloc" from rk3288.dtsi into rk3288-u-boot.dtsi. Signed-off-by: Kever Yang --- Changes in v5: None Changes in v4: - include "rk3288-u-boot.dtsi" in board '-u-boot.dtsi' and not touch dts file. Series-changes: 3 - include "rk3288-u-boot.dtsi" for board already ha

[U-Boot] [PATCH v5 1/8] rockchip: rk3288: enable TPL configs to chip level

2019-07-01 Thread Kever Yang
More boards other than vyasa needs TPL, so enable the TPL configs at chip level instead of board level. Signed-off-by: Kever Yang --- Changes in v5: - use imply instead of select for TPL options Changes in v4: None Changes in v2: None arch/arm/mach-rockchip/Kconfig| 14 ++

[U-Boot] [PATCH v5 0/8] rockchip: enable TPL for tinker-rk3288

2019-07-01 Thread Kever Yang
Tinker board has overflow the SRAM size limit, enable TPL for it so that there will be no size limit for SPL. Also some other fix to bring up Tinker board: - enabel sdmmc pinctrl with dts in SPL - extend raw u-boot.bin size limit Version 2 move related "u-boot,dm-pre-reloc" into -u-boot.dtsi C

[U-Boot] [PATCH 40/52] imx: spl: use spl_board_boot_device for i.MX8MN

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MN follow same logic as i.MX8MM, so use spl_board_boot_device Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index a6d7b69ad8..b55c8d9cb1 100644 --- a/

[U-Boot] [PATCH 46/52] tools: imx8mimage: add ROM VERSION

2019-07-01 Thread peng . fan
From: Peng Fan The IVT offset is changed on i.MX8MN. Use ROM_VERSION to pass the v1 or v2 to mkimage. v1 is for iMX8MQ and iMX8MM v2 is for iMX8M Nano (iMX8MN) Signed-off-by: Peng Fan --- include/imximage.h | 1 + tools/imx8mimage.c | 24 ++-- 2 files changed, 23 insertion

[U-Boot] [PATCH 28/52] clk: imx: add i.MX8MM clk driver

2019-07-01 Thread peng . fan
From: Peng Fan Add i.MX8MM clk driver support. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 203 + drivers/clk/imx/Kconfig| 2 - drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mm.c | 10

[U-Boot] [PATCH 48/52] tools: imx8m_image: support ddr4 firmware

2019-07-01 Thread peng . fan
From: Peng Fan some boards use ddr4, not lpddr4, so we need to check ddr4 firmware. Signed-off-by: Peng Fan --- tools/imx8m_image.sh | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/imx8m_image.sh b/tools/imx8m_image.sh index b4a3e204d0..68e90cc558 100755 --- a/tools/imx8m

[U-Boot] [PATCH 52/52] imx: add i.MX8MN DDR4 board support

2019-07-01 Thread peng . fan
From: Peng Fan Support pinctrl/clk/sdhc, include ddr4 timing data. Log: U-Boot SPL 2019.07-rc4-00310-geff364e1d0 (Jul 02 2019 - 09:47:06 +0800) DDRINFO: start DRAM init DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from BOOTROM image offset 0x8000, pagesi

[U-Boot] [PATCH 20/52] imx8m: add pin header for i.MX8MM

2019-07-01 Thread peng . fan
From: Peng Fan Add pin header file for i.MX8MM To IMX8MM_PAD_NAND_WE_B_USDHC3_CLK, IOMUX_CONFIG_SION needs to be selected. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mm_pins.h | 691 ++ 1 file changed, 691 insertions(+) create mode 100644 arch/arm

[U-Boot] [PATCH 44/52] imx8mn: add get_boot_device

2019-07-01 Thread peng . fan
From: Peng Fan No ROM INFO structure on iMX8MN, use new ROM API to get boot device from ROM. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-

[U-Boot] [PATCH 38/52] imx: add i.MX8MN PE property

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MN does not have LVTTL, it has a PE property Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/iomux-v3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index 7

[U-Boot] [PATCH 37/52] imx8mn: set BYPASS ID SWAP to avoid AXI bus errors

2019-07-01 Thread peng . fan
From: Peng Fan Set the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors with TZC380 enabled. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/m

[U-Boot] [PATCH 22/52] imx8m: Fix MMU table issue for OPTEE memory

2019-07-01 Thread peng . fan
From: Peng Fan When running with OPTEE, the MMU table in u-boot does not remove the OPTEE memory from its settings. So ARM speculative prefetch in u-boot may access that OPTEE memory. Due to trust zone is enabled by OPTEE and that memory is set to secure access, then the speculative prefetch will

[U-Boot] [PATCH 36/52] imx8m: add clk support for i.MX8MN

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MN has similar architecture with i.MX8MM, so it could reuse the clock code of i.MX8MM, but i.MX8MN has different CCM root configurations, so need a separate root entry. And i.MX8MN support 600MHZ pll settings for NoC, so add an entry. Signed-off-by: Peng Fan --- arch/arm/in

[U-Boot] [PATCH 41/52] spl: pass args to board_return_to_bootrom

2019-07-01 Thread peng . fan
From: Peng Fan Pass spl_image and bootdev to board_return_bootrom. i.MX8MN needs the args to let ROM to load images Signed-off-by: Peng Fan --- arch/arm/mach-rockchip/rk3288-board-tpl.c | 5 - arch/arm/mach-rockchip/rk3368-board-tpl.c | 5 - arch/arm/mach-rockchip/rk3399-board-spl.c |

[U-Boot] [PATCH 45/52] power: pmic: add SPL_DM_PMIC

2019-07-01 Thread peng . fan
From: Peng Fan Introduce SPL_DM_PMIC for SPL Signed-off-by: Peng Fan --- drivers/power/pmic/Kconfig | 12 drivers/power/pmic/Makefile | 2 +- include/power/pmic.h| 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/power/pmic/Kconfig b/drivers

[U-Boot] [PATCH 26/52] serial: Kconfig: make MXC_UART usable for MX7 and IMX8M

2019-07-01 Thread peng . fan
From: Peng Fan i.MX7 and i.MX8M use mxc uart driver, so let's make the SoC could use MXC_UART kconfig. Signed-off-by: Peng Fan --- drivers/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 8a447fd6e3..e56579

Re: [U-Boot] [PATCH] rockchip: dts: rk3399: rockpro64: Provide init voltage【请注意,邮件由u-boot-boun...@lists.denx.de代发】 init voltage

2019-07-01 Thread Kever Yang
On 06/22/2019 11:11 PM, Mark Kettenis wrote: >> From: Jagan Teki >> Date: Sat, 22 Jun 2019 20:17:13 +0530 >> >> On Sat, Jun 22, 2019 at 2:46 AM Mark Kettenis wrote: >>> Add missing regulator-init-microvolt property to vdd_log regulator. >>> >>> Signed-off-by: Mark Kettenis >>> --- >>> Without

[U-Boot] [PATCH 30/52] ddr: imx8m: Fix ddr4 driver build issue

2019-07-01 Thread peng . fan
From: Ye Li Since the parameter of dram_pll_init is changed, update to use new. Also remove non-existed header file. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr4_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ddr/imx/imx8m/d

[U-Boot] [PATCH 31/52] imx8mq: Update the ddrc QoS setting for B1 chip

2019-07-01 Thread peng . fan
From: Bai Ping Update the ddrc Qos setting for B1 to align with B0's setting. Correct the initial clock for dram_pll. This setting will be overwrite before ddr phy training. Although there is no impact on the dram init, we still need to correct it to eliminate confusion. Signed-off-by: Bai Ping

[U-Boot] [PATCH 34/52] imx: add i.MX8MN kconfig entry

2019-07-01 Thread peng . fan
From: Peng Fan Add i.MX8MN kconfig entry Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index f520075875..b0932f1647 100644 --- a/arch/arm/mach-imx/imx8m/Kconf

[U-Boot] [PATCH 42/52] imx: add rom api support

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MN support loading images with rom api, so we implement reuse board_return_to_bootrom to let ROM loading images. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 33 arch/arm/mach-imx/Kconfig | 4 + arch/arm/mach-imx/Makefile

[U-Boot] [PATCH 33/52] ddr: imx8m: Fix the ddr init hang on imx8mq

2019-07-01 Thread peng . fan
From: Jacky Bai On, i.MX8MQ, the PLL config must be done when ddrmix isolation is released. So move the dram pll init after iso config done. For other i.MX8M SOC, either init pll before or after isolation is ok. Signed-off-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddr_in

[U-Boot] [PATCH 13/52] imx: spl: add spl_board_boot_device for i.MX8MM

2019-07-01 Thread peng . fan
From: Peng Fan Differnet board has different controller used, it is hard to use one layout for them all. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 9f1e0f6a72..a6d7b69ad

[U-Boot] [PATCH 17/52] imx8m: restructure clock.h

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MQ and i.MX8MM use different analog pll design, but they share same ccm design. Add clock_imx8mq.h for i.MX8MQ keep common part in clock.h Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 491 +++-- arch/arm/include/asm/arch-i

[U-Boot] [PATCH 49/52] clk: imx: add i.MX8MN clk support

2019-07-01 Thread peng . fan
From: Peng Fan Reuse i.MX8MM clk driver for i.MX8MN. Signed-off-by: Peng Fan --- drivers/clk/imx/Kconfig | 7 +++ drivers/clk/imx/Makefile | 2 +- drivers/clk/imx/clk-imx8mm.c | 15 +++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/Kc

[U-Boot] [PATCH 35/52] imx8mn: support get_cpu_rev

2019-07-01 Thread peng . fan
From: Peng Fan Add a dummy cpu type and support get_cpu_rev for i.MX8MN Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/cpu.c | 2 ++ arch/arm/mach-imx/imx8m/soc.c | 4

[U-Boot] [PATCH 43/52] imx: cpu: restrict get_boot_device

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MN has its own get_boot_device, so restrict with i.MX8MQ and i.MX8MM. Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 9c699e8f50..7f2dc3f09d 10064

[U-Boot] [PATCH 21/52] imx: add i.MX8MM PE property

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MM does not have LVTTL, it has a PE property Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/iomux-v3.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index b899a4ff6f..7

[U-Boot] [PATCH 24/52] imx8m: Configure trustzone region 0 for non-secure access

2019-07-01 Thread peng . fan
From: Ye Li Set trustzone region 0 to allow both non-secure and secure access when trust zone is enabled. We found USB controller fails to access DDR if the default region 0 is secure access only. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1 fil

[U-Boot] [PATCH 47/52] pinctrl: imx8m: support i.MX8MN

2019-07-01 Thread peng . fan
From: Peng Fan Support i.MX8MN in imx8m pinctrl driver Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/pinctrl-imx8m.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nxp/pinctrl-imx8m.c b/drivers/pinctrl/nxp/pinctrl-imx8m.c index 8bb03b7a62..b3844314b3 100644 --- a/driver

[U-Boot] [PATCH 16/52] imx8m: rename clock to clock_imx8mq

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MQ and i.MX8MM has totally different pll design, so rename clock to clock_imx8mq. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Makefile| 3 ++- arch/arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} | 0 2 files changed, 2 insertions(+), 1 deletion(-

[U-Boot] [PATCH 50/52] imx8m: add i.MX8MN ddr4 image cfg file

2019-07-01 Thread peng . fan
From: Peng Fan Add cfg file for i.MX8MN DDR4 Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/imximage-8mn-ddr4.cfg | 17 + 1 file changed, 17 insertions(+) create mode 100644 arch/arm/mach-imx/imx8m/imximage-8mn-ddr4.cfg diff --git a/arch/arm/mach-imx/imx8m/imximage-8mn-d

[U-Boot] [PATCH 23/52] imx8m: set BYPASS ID SWAP to avoid AXI bus errors

2019-07-01 Thread peng . fan
From: Peng Fan set the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors with TZC380 enabled. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/

[U-Boot] [PATCH 14/52] imx8m: update imx-regs for i.MX8MM

2019-07-01 Thread peng . fan
From: Peng Fan i.MX8MM has similar architecture with i.MX8MQ, but it has totally different PLL design and some register layout change. Note: Some registers in this file are not updated because not used now. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 75 ++

[U-Boot] [PATCH 25/52] imx8m: soc: enable SCTR clock before timer init

2019-07-01 Thread peng . fan
From: Peng Fan To i.MX8MM SCTR clock is disabled by ROM, so before timer init need to enable it. To i.MX8MQ, it does not hurt the clock is enabled again. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/

[U-Boot] [PATCH 32/52] driver: ddr: Refine the ddr init driver on imx8m

2019-07-01 Thread peng . fan
From: Jacky Bai Refine the ddr init driver to make it more reusable for different DDR type(LPDDR4, DDR4 & DDR3L). So we can reduce some redundant code. Signed-off-by: Jacky Bai Reviewed-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/Kconfig| 6 ++ drivers/ddr/imx/imx8m

[U-Boot] [PATCH 27/52] clk: imx: add Kconfig entry for i.MX8MM

2019-07-01 Thread peng . fan
From: Peng Fan Add Kconfig entry for i.MX8MM, select CLK_CCF and SPL_CLK_CCF Signed-off-by: Peng Fan --- drivers/clk/imx/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index a6fb58d6cf..e8f8b9461e 100644 --- a/drivers/clk/

[U-Boot] [PATCH 39/52] imx8mn: add pin header

2019-07-01 Thread peng . fan
From: Peng Fan Add pin header for i.MX8MN Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mn_pins.h | 763 ++ 1 file changed, 763 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8m/imx8mn_pins.h diff --git a/arch/arm/include/asm/arch-imx8

[U-Boot] [PATCH 09/52] imx: add IMX8MQ kconfig entry

2019-07-01 Thread peng . fan
From: Peng Fan Add IMX8MQ kconfig entry, preparing support IMX8MM Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 317dee9bc1..9c487870a6

[U-Boot] [PATCH 08/52] imx8m: add image cfg for i.MX8MM lpddr4

2019-07-01 Thread peng . fan
From: Peng Fan There is no HDMI on i.MX8MM, so we need to remove HDMI entry, then we could not reuse imximage.cfg, so create a new one. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 16 1 file changed, 16 insertions(+) create mode 100644 arch/a

[U-Boot] [PATCH 04/52] i2c: mxc: add CONFIG_CLK support

2019-07-01 Thread peng . fan
From: Peng Fan When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/mxc_i2c.h | 2 ++ drivers/i2c/mxc_i2c.c | 24 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/a

[U-Boot] [PATCH 51/52] imx: add dtsi for i.MX8MN

2019-07-01 Thread peng . fan
From: Peng Fan Add dtsi for i.MX8MN Signed-off-by: Peng Fan --- arch/arm/dts/imx8mn-pinfunc.h| 646 arch/arm/dts/imx8mn.dtsi | 712 +++ include/dt-bindings/clock/imx8mn-clock.h | 215 ++ 3 files change

[U-Boot] [PATCH 15/52] imx: add get_cpu_rev support for i.MX8MM

2019-07-01 Thread peng . fan
From: Peng Fan There are several variants based on i.MX8MM, add the support in get_cpu_rev Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 57 +++ 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b

[U-Boot] [PATCH 11/52] imx: imx8mm: add clock bindings header

2019-07-01 Thread peng . fan
From: Peng Fan Add i.MX8MM clock binding header for i.MX8MM Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8mm-clock.h | 244 +++ 1 file changed, 244 insertions(+) create mode 100644 include/dt-bindings/clock/imx8mm-clock.h diff --git a/include/dt-bindin

[U-Boot] [PATCH 06/52] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-07-01 Thread peng . fan
From: Peng Fan With SPL_OF_SPERATE, the device tree will be padded to end of the u-boot-spl-nodtb.bin, however we also put the ddr firmware file to this location, so need to adapt the code with SPL OF and align to 16bytes to ease copy firmware. Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m

[U-Boot] [PATCH 19/52] imx8m: soc: probe clk before relocation

2019-07-01 Thread peng . fan
From: Peng Fan probe clk device before relocation to get cpu clk. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 5115471eff..8d40ca0229 1006

[U-Boot] [PATCH 18/52] imx8m: add clk support for i.MX8MM

2019-07-01 Thread peng . fan
From: Peng Fan Introduce clk implementation for i.MX8MM, including pll configuration, ccm configuration. Export get_root_clk for CLK UCLASS driver usage. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 3 + arch/arm/include/asm/arch-imx8m/clock_imx8mm.h | 387 +++

[U-Boot] [PATCH 07/52] tools: imx8mimage: fix HDMI/FIT parsing

2019-07-01 Thread peng . fan
From: Peng Fan Add missed break for HDMI entry. And moving FIT parsing earlier, because it does not have parameter, it will not runs into CFG_REG_SIZE. Signed-off-by: Peng Fan --- tools/imx8mimage.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/imx8mimage.c b

[U-Boot] [PATCH 10/52] imx: add IMX8MM kconfig entry

2019-07-01 Thread peng . fan
From: Peng Fan Add IMX8MM kconfig entry Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 9c487870a6..35c978e863 100644 --- a/arch/arm/mach-imx/imx8m/Kconfi

[U-Boot] [PATCH 12/52] imx: add i.MX8MM cpu type

2019-07-01 Thread peng . fan
From: Peng Fan Add i.MX8MM cpu type and related helper functions Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 6 ++ arch/arm/include/asm/mach-imx/sys_proto.h | 8 arch/arm/mach-imx/cpu.c | 12 3 files changed, 26 insertio

[U-Boot] [PATCH 03/52] pinctrl: imx: use devfdt_get_addr_size_index

2019-07-01 Thread peng . fan
From: Peng Fan fdtdec_get_addr_size could not parse addr/size correctly is using address-cells 2 and size-cells 2 on an ARM32 SoC. So switch to use devfdt_get_addr_size_index. Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/pinctrl-imx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

[U-Boot] [PATCH 05/52] tools: imx8m_image: align spl bin image size

2019-07-01 Thread peng . fan
From: Peng Fan Align spl bin image size to 4 byte aligned, because we need to pad ddr firmware in the end of spl bin. However when enable SPL OF, the spl dtb will be padded to u-boot-nodtb.bin, then u-boot-spl.bin size might not be 4 bytes aligned. ddr_load_train_firmware in drivers/ddr/imx/imx8

[U-Boot] [PATCH 00/52] Support i.MX8MM/N

2019-07-01 Thread peng . fan
From: Peng Fan This patchset is to support i.MX8MM/8MN with some update in ddr settings and ddr driver update. The initial patchset to support i.MX8MM is https://patchwork.ozlabs.org/cover/1093140/ But in this patchset I dropped CCF, and use original CLK uclass, so not use V2 in patchset. Bai P

[U-Boot] [PATCH 02/52] dm: clk: ignore default settings when node not valid

2019-07-01 Thread peng . fan
From: Peng Fan When the device not binded with a node, we need ignore the parents and rate settings. Signed-off-by: Peng Fan --- drivers/clk/clk-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 79b3b0494c..6e10d7d3f0 1006

[U-Boot] [PATCH 01/52] linux: compat: guard PAGE_SIZE

2019-07-01 Thread peng . fan
From: Peng Fan Some archs defined PAGE_SIZE, such as ARMv8, to avoid build warning, guard PAGE_SIZE. Signed-off-by: Peng Fan --- include/linux/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index d0f51baab4..c1f8bdf8f2 100644 ---

Re: [U-Boot] [PATCH] rockchip: rk3399: Fix enabling boot-on regulators【请注意,邮件由u-boot-boun...@lists.denx.de代发】 regulators

2019-07-01 Thread Kever Yang
On 06/22/2019 09:43 PM, Kever Yang wrote: > Hi Mark, > > > On 06/22/2019 04:57 AM, Mark Kettenis wrote: >> The new common rockchip pinctrl driver does not support explicit >> requests for a particular pinctrl function. As a result, the >> board_init() function bails out early before enabling the

Re: [U-Boot] [PATCH] spl: atf: Fix uninitialized pointer to bl31_image_info【请注意,邮件由u-boot-boun...@lists.denx.de代发】 bl31_image_info

2019-07-01 Thread Kever Yang
On 07/02/2019 10:16 AM, Kever Yang wrote: > Hi Frieder, > > > On 06/27/2019 03:03 PM, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> The pointer to struct atf_image_info in >> bl31_params_mem.bl31_params.bl31_image_info is not initialized before >> being dereferenced. This can cause U-B

Re: [U-Boot] [PATCH] spl: atf: Fix uninitialized pointer to bl31_image_info

2019-07-01 Thread Kever Yang
Hi Frieder, On 06/27/2019 03:03 PM, Schrempf Frieder wrote: > From: Frieder Schrempf > > The pointer to struct atf_image_info in > bl31_params_mem.bl31_params.bl31_image_info is not initialized before > being dereferenced. This can cause U-Boot to crash right before jumping > to the BL31 ATF bin

Re: [U-Boot] [RESEND PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-07-01 Thread Kever Yang
On 06/27/2019 09:06 PM, Jean-Jacques Hiblot wrote: > The mode selection for the DWC3 is kind of obsolete. The driver does not > have to be host only or gadget only. This choice is confusing. > All the remaining callers of dwc3_uboot_init() explicitly set dr_mode > before calling the function, so

Re: [U-Boot] [PATCH 6/6] configs: rockchip: rock960: enable USB3 support

2019-07-01 Thread Kever Yang
Hi Peter, On 07/02/2019 12:05 AM, Peter Robinson wrote: > Enable USB3 support via the dwc3 XHCI driver. > > Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever > --- > configs/rock960-rk3399_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/configs/rock

Re: [U-Boot] [PATCH 5/6] configs: rockchip: rock960: Add support for USB ethernet adapters

2019-07-01 Thread Kever Yang
Hi Peter, On 07/02/2019 12:05 AM, Peter Robinson wrote: > As the Rock960 doesn't have an onboard wired ethernet interface > it's useful to have some common USB wired ethernet devices added > to enable testing. > > Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever > --- >

Re: [U-Boot] [PATCH 4/6] configs: rockchip: rock960: enable DMA for SDHCI controller

2019-07-01 Thread Kever Yang
Hi Peter, On 07/02/2019 12:05 AM, Peter Robinson wrote: > Enable the SDMA controller so the eMMC connected to the SDHCI > controller (sdhci@fe33) can make use of it. > > Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever > --- > configs/rock960-rk3399_defconfig | 1 +

Re: [U-Boot] [PATCH 3/6] configs: rockchip: rock960: enable pmic and regulator commands

2019-07-01 Thread Kever Yang
Hi Peter, On 07/02/2019 12:05 AM, Peter Robinson wrote: > We have both PMIC and Regulator functionality so it's useful to > be able to see output and debug with the commands enabled. > > Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever > --- > configs/rock960-rk3399_def

Re: [U-Boot] [PATCH 2/6] configs: rockchip: rock960: drop options for non-existent HW

2019-07-01 Thread Kever Yang
Hi Peter, On 07/02/2019 12:05 AM, Peter Robinson wrote: > The Rock960 doesn't contain SPI flash so drop related config options. > > Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever > --- > configs/rock960-rk3399_defconfig | 2 -- > 1 file changed, 2 deletions(-) > > dif

Re: [U-Boot] [PATCH v2 1/4] rockchip: clk: rk3399: handle clk_enable requests for USB3

2019-07-01 Thread Kever Yang
Hi Mark, On 07/01/2019 12:01 AM, Mark Kettenis wrote: > The "simple" OF glue layer for the Designware USB3 core enables > all refernced clocks. These need to be need to be implemented > otherwise the driver fails to probe. A dummy implementation > that simply returns success is sufficient since

  1   2   >