RE: [PATCH] imx8: Run SPL with caches enabled

2020-04-21 Thread Peng Fan
> Subject: [PATCH] imx8: Run SPL with caches enabled > > It is safe to run SPL with caches enabled on i.MX8, so remove such > restriction. > > Signed-off-by: Fabio Estevam Acked-by: Peng Fan

Please pull mmc-2020-4-22

2020-04-22 Thread Peng Fan
Hi Tom, Please pull mmc-2020-4-22. I dropped the env patchset from the pull request since delegation change, but my CI still have the 3 patches, but without the 3 patches would not cause build issue. - iproc_sdhci memory

Please pull NXP i.MX nxp-imx-master-4-22

2020-04-22 Thread Peng Fan
4:26 +0800) Breno Lima (2): doc: ahab: Add encrypted boot documentation for i.MX8/8x devices imx8: scu api: Add support for SECO manufacturing protection APIs Franck LENORMAND (1): imx8: Configure SNVS Pe

RE: Please pull NXP i.MX nxp-imx-master-4-22

2020-04-22 Thread Peng Fan
> Subject: Re: Please pull NXP i.MX nxp-imx-master-4-22 > > On 22.04.20 14:40, Peng Fan wrote: > > Hi Stefano, > > > > Please pull NXP i.MX nxp-imx-master-4-22, based on yours master branch. > > CI: > > https://eur01.safelinks.protection.outlook.com/

[PATCH 02/24] imx8mm: Update CPU speed grading

2020-04-22 Thread Peng Fan
From: Ye Li According to iMX8MM datasheet (IMX8MMIEC_Rev_D and IMX8MMCEC_Rev_D), the speed grading for imx8mm is 800Mhz, 1.2Ghz, 1.6Ghz and 1.8Ghz. Update them to get_cpu_speed_grade_hz function. Signed-off-by: Ye Li Reviewed-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 6 +++--- 1 file

[PATCH 01/24] imx: fix cpu_type helper

2020-04-22 Thread Peng Fan
i.MX8MP use 0x182 as its ID, so 0xff is not valid to get the cpu type, extend it to 0x1ff. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm

[PATCH 03/24] imx8mn: Update speed grade

2020-04-22 Thread Peng Fan
: Peng Fan --- arch/arm/mach-imx/cpu.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 55e3539cff..5b979cc1f5 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -314,6 +314,7 @@ enum

[PATCH 04/24] imx: cpu: support speed grade for i.MX8MP

2020-04-22 Thread Peng Fan
i.MX8MP speed grade use same layout as i.MX8MN, so reuse it for i.MX8MP Reviewed-by: Ye Li 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 5b979cc1f5..8217913b4a

[PATCH 05/24] imx: imx8m: add i.MX8MQ Dual and QuadLite support

2020-04-22 Thread Peng Fan
Add i.MX8MQ Dual and QuadLite variants. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 2 ++ arch/arm/include/asm/mach-imx/sys_proto.h | 4 +++- arch/arm/mach-imx/cpu.c | 6 +- arch/arm/mach-imx/imx8m/soc.c | 10 +- 4 files

[PATCH 06/24] imx: imx8m: add i.MX8MN variants support

2020-04-22 Thread Peng Fan
Add i.MX8MN variants support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 5 + arch/arm/include/asm/mach-imx/sys_proto.h | 9 - arch/arm/mach-imx/cpu.c | 12 +++- arch/arm/mach-imx/imx8m/soc.c | 19

[PATCH 09/24] imx8m: acquire ATF commit hash

2020-04-22 Thread Peng Fan
Acquire ATF commit hash when booting U-Boot to make user easy to know the ATF version. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index

[PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ

2020-04-22 Thread Peng Fan
Update is_imx6ull helper to include i.MX6ULZ SoC. i.MX6ULZ could share same macro, then we no need to add is_imx6ulz in various drivers. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm

[PATCH 13/24] imx8m: Dump DRAM PLL rate by clocks command

2020-04-22 Thread Peng Fan
From: Ye Li Add the dump of DRAM PLL into "clocks" command Reviewed-by: Peng Fan Signed-off-by: Ye Li --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8

[PATCH 11/24] imx8mq: Enable eMMC HS400 and SD UHS mode on EVK

2020-04-22 Thread Peng Fan
-initialization. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8mq.c index aad9cf13ef..76104e4f92 100644 --- a

[PATCH 12/24] imx8mq: Set ARM core clock directly from ARM PLL

2020-04-22 Thread Peng Fan
fixes the CORE SEL slice configuration and switch ARM clock to ARM PLL. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 3 +- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 49 +- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a

[PATCH 10/24] imx8m: update clock root and fix core_sel

2020-04-22 Thread Peng Fan
Update clock root table to let it be easy to configure clock at very early stage. Also the core_sel mux parent should be A53 CLK root and ARM PLL. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock_imx8mm.h | 3 +- arch/arm/mach-imx/imx8m/clock_slice.c | 824

[PATCH 14/24] imx8: parser: fix 'end address' parameter of rm_find_memreg

2020-04-22 Thread Peng Fan
parameter 'end address' must be inclusive of address range. Modified from Seb's downstream patch. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/parse-container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8/parse-container.c

[PATCH 15/24] imx8: Change to use new SECO API commands

2020-04-22 Thread Peng Fan
From: Ye Li Latest SCFW has removed old MISC SECO commands. So update the codes to use new SECO commands. Signed-off-by: Ye Li Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c| 6 +++--- arch/arm/mach-imx/imx8/parse-container.c | 6 +++--- 2 files changed, 6 insertions

[PATCH 16/24] imx8: ahab: fix 'end address' parameter of rm_find_memreg

2020-04-22 Thread Peng Fan
parameter 'end address' must be inclusive of address range. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c index 361c578efc..89544b3dc6 100644

[PATCH 17/24] imx8: ahab: fix some bad debug message formating

2020-04-22 Thread Peng Fan
From: Seb Fagard In SPL build, the formatting '%llx' in debug() is not supported. Also, fix some misplaced parameters in printf. Reviewed-by: Ye Li Signed-off-by: Seb Fagard Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c | 7 +++ 1 file changed, 3 insertions(+), 4

[PATCH 08/24] imx8: move SIP macro to common header

2020-04-22 Thread Peng Fan
Move the SIP macro to common header and unify the name to make others could reuse them. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/misc.c | 8 +++- include/imx_sip.h | 5 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-imx/imx8/misc.c b

[PATCH 21/24] doc: ahab: Add encrypted boot documentation for i.MX8/8x devices

2020-04-22 Thread Peng Fan
image. Signed-off-by: Catia Han Signed-off-by: Breno Lima Signed-off-by: Peng Fan --- doc/imx/ahab/csf_examples/csf_enc_boot_image.txt | 27 +++ doc/imx/ahab/guides/mx8_mx8x_encrypted_boot.txt | 293 +++ 2 files changed, 320 insertions(+) create mode 100644 doc/imx/ahab

[PATCH 18/24] imx8: parser: fix some bad debug message formating

2020-04-22 Thread Peng Fan
In SPL build, the formatting '%llx' in debug() is not supported. Also, fix some misplaced parameters in printf. Modified from Seb Fagard's downstream patch Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/parse-container.c | 10 +- 1 file changed, 5 insertions(

[PATCH 20/24] imx8m: Enable WDOG_B for timeout

2020-04-22 Thread Peng Fan
the WDOG_B for timeout as well, and set WDOG timeout to 1s. Acked-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach

[PATCH 23/24] imx8: Update SCFW API to version 1.5

2020-04-22 Thread Peng Fan
From: Ye Li Sync the latest SCFW API with below commit 6dcd0242ae7a53ac ("SCF-105: Revert accidental change") to add interfaces for PM resource reset and read/write SNVS security violation and tamper DGO registers. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/includ

[PATCH 19/24] imx8mm: clock: fix fracpll decode issue

2020-04-22 Thread Peng Fan
From: Ye Li The fracpll decoding is using the bit definitions for int pll. Most of them are same, but the CLKE bit is different. Fix the wrong CLKE_MASK for fracpll and correct all bit definitions in fracpll decoding. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan

[PATCH 24/24] imx8: Configure SNVS

2020-04-22 Thread Peng Fan
configuration of the tamper pins - snvs_clear_status: Allow to write to LPSR and LPTDSR to clear status bits Signed-off-by: Franck LENORMAND Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sci/sci.h | 4 + arch/arm/include/asm/arch-imx8

[PATCH 22/24] imx8: scu api: Add support for SECO manufacturing protection APIs

2020-04-22 Thread Peng Fan
From: Breno Lima SECO provides APIs to support CAAM manufacturing protection: - sc_seco_get_mp_key() - sc_seco_get_mp_sign() - sc_seco_update_mpmr() Add SCFW APIs support. Signed-off-by: Breno Lima Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sci/sci.h | 4 ++ drivers/misc

Please pull NXP i.MX nxp-imx-20200422

2020-04-22 Thread Peng Fan
Configure SNVS Peng Fan (13): imx: fix cpu_type helper imx8mn: Update speed grade imx: cpu: support speed grade for i.MX8MP imx: imx8m: add i.MX8MQ Dual and QuadLite support imx: imx8m: add i.MX8MN variants support imx: update is_imx6ull to include i.MX6ULZ

RE: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ

2020-04-22 Thread Peng Fan
> Subject: Re: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ > > Am Mittwoch, 22. April 2020, 15:52:18 CEST schrieb Peng Fan: > > Update is_imx6ull helper to include i.MX6ULZ SoC. i.MX6ULZ could share > > same macro, then we no need to add is_imx6ulz in various dr

RE: Please pull NXP i.MX nxp-imx-20200422

2020-04-22 Thread Peng Fan
> Subject: Re: Please pull NXP i.MX nxp-imx-20200422 > > Hi Peng, > > On Wed, Apr 22, 2020 at 10:54 AM Peng Fan wrote: > > > > Hi Stefano, > > > > Please pull this version nxp-imx-20200422, with patches sent out to ML. > > Based on yours master

RE: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ

2020-04-26 Thread Peng Fan
> Subject: Re: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ > > Hi, > > Am Donnerstag, 23. April 2020, 03:33:49 CEST schrieb Peng Fan: > > > Subject: Re: [PATCH 07/24] imx: update is_imx6ull to include > > > i.MX6ULZ > > > > > > Am M

RE: Please pull NXP i.MX nxp-imx-20200422

2020-04-26 Thread Peng Fan
> Subject: Re: Please pull NXP i.MX nxp-imx-20200422 > > Hi Peng, > > On Wed, Apr 22, 2020 at 10:54 AM Peng Fan wrote: > > > > Hi Stefano, > > > > Please pull this version nxp-imx-20200422, with patches sent out to ML. > > Based on yours master

RE: [PATCH v5 1/4] omap: mmc: Avoid using libfdt with of-platdata

2020-04-26 Thread Peng Fan
; > Signed-off-by: Simon Glass Acked-by: Peng Fan

RE: [PATCH v4 5/9] board: Add a gd flag for chain loading

2020-04-26 Thread Peng Fan
CONFIG_EFI_STUB > #define ll_boot_init() false > #else > -#define ll_boot_init() true > +#define ll_boot_init() (!(gd->flags & GD_FLG_SKIP_LL_INIT)) > #endif Reviewed-by: Peng Fan

RE: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ

2020-04-27 Thread Peng Fan
> Subject: RE: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ > > > Subject: Re: [PATCH 07/24] imx: update is_imx6ull to include i.MX6ULZ > > > > Hi, > > > > Am Donnerstag, 23. April 2020, 03:33:49 CEST schrieb Peng Fan: > > > > Subj

[PATCH V2 10/24] imx8m: update clock root and fix core_sel

2020-04-27 Thread Peng Fan
Update clock root table to let it be easy to configure clock at very early stage. Also the core_sel mux parent should be A53 CLK root and ARM PLL. Reviewed-by: Fabio Estevam Signed-off-by: Peng Fan --- V2: Add Fabio's R-b tag Based on Marek's fec clock part to avoid conflict

Please pull NXP i.MX nxp-imx-4-28

2020-04-27 Thread Peng Fan
ot documentation for i.MX8/8x devices imx8: scu api: Add support for SECO manufacturing protection APIs Franck LENORMAND (1): imx8: Configure SNVS Marek Vasut (1): ARM: imx: imx8mm: Add missing clock entries for FEC clock Peng Fan (13): imx: fix cpu_type helper imx8mn

[PATCH 0/8] net: several updates to support i.MX

2020-04-27 Thread Peng Fan
: implement callbaks to get interface and set txclk rate Peng Fan (1): net: eth-uclass: add return value check Ye Li (4): net: Add eth phy generic driver for shared MDIO net: Update eQos driver and FEC driver to use eth phy interfaces fec: Move imx_get_mac_from_fuse declare to imx file eQos

[PATCH 4/8] net: phy: realtek: add rx delay support for RTL8211F

2020-04-27 Thread Peng Fan
From: Fugang Duan Add RX delay enable support for RTL8211F PHY. Reviewed-by: Ye Li Signed-off-by: Fugang Duan Signed-off-by: Peng Fan --- drivers/net/phy/realtek.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index

[PATCH 3/8] net: Update eQos driver and FEC driver to use eth phy interfaces

2020-04-27 Thread Peng Fan
From: Ye Li Update eQoS and fec ethernet drivers to support shared MDIO framework Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 45 +++-- drivers/net/fec_mxc.c | 16 ++-- 2 files changed, 45 insertions

[PATCH 1/8] net: eth-uclass: add return value check

2020-04-27 Thread Peng Fan
Add return value check Signed-off-by: Peng Fan --- net/eth-uclass.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 8bf2eabe90..950a48d520 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -40,8 +40,12 @@ static

[PATCH 5/8] net: dwc_eth_qos: add dwc eqos for imx support

2020-04-27 Thread Peng Fan
From: Fugang Duan Add dwc eqos for imx support. Reviewed-by: Ye Li Signed-off-by: Fugang Duan Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 187 ++ 1 file changed, 173 insertions(+), 14 deletions(-) diff --git a/drivers/net

[PATCH 2/8] net: Add eth phy generic driver for shared MDIO

2020-04-27 Thread Peng Fan
g its MDIO. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/Kconfig | 6 +++ drivers/net/Makefile | 1 + drivers/net/eth-phy-uclass.c | 122 ++ include/dm/uclass-id.h | 1 + include/eth_phy.h| 17 ++

[PATCH 7/8] fec: Move imx_get_mac_from_fuse declare to imx file

2020-04-27 Thread Peng Fan
From: Ye Li imx_get_mac_from_fuse is used to load MAC address from fuse. On imx8mp, we have two different ENET controllers and both need to call this function. So decouple its declare from fec driver. Reviewed-by: Fugang Duan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include

[PATCH 8/8] eQos: Implement the read_rom_hwaddr callback

2020-04-27 Thread Peng Fan
From: Ye Li Implement the read_rom_hwaddr callback to load MAC address from fuse for imx8m platforms. Reviewed-by: Fugang Duan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net

[PATCH 6/8] net: eqos: implement callbaks to get interface and set txclk rate

2020-04-27 Thread Peng Fan
From: Fugang Duan Implement the callbacks to get phy mode interface and txclk rate configuration. Reviewed-by: Ye Li Signed-off-by: Fugang Duan Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 42 -- 1 file changed, 40 insertions(+), 2

[U-Boot] [PULL] u-boot-mmc mmc-10-10-2019

2019-10-13 Thread Peng Fan
Hi Tom, Please pull u-boot-mmc mmc-10-10-2019 Add sdhci driver for Broadcom iProc platform add a driver callback for power-cycle for mmc implement host_power_cycle callback for stm32_sdmmc2 spl: dm_mmc: Initialize only the required mmc devi

[U-Boot] [NXP-IMX] please pull imx-master-10-14

2019-10-14 Thread Peng Fan
/u-boot.git imx-master-10-14 for you to fetch changes up to 2959d05c04516e0dddfb0d14a6f2190e43ad8c41: imx8qxp: mek: add secure boot script (2019-10-14 10:12:00 +0800) Peng Fan (27): imx: imx8mm_evk: add board_mmc_get_env_dev

Re: [U-Boot] [NXP-IMX] please pull imx-master-10-14

2019-10-14 Thread Peng Fan
> Subject: Re: [NXP-IMX] please pull imx-master-10-14 > > Hi Peng, > > On 14/10/19 11:48, Peng Fan wrote: > > Hi Stefano, > > > > Please pull imx-master-10-14. This pull request was based on imx/master. > > > > I have 40 patches already applied in m

Re: [U-Boot] [NXP-IMX] please pull imx-master-10-14

2019-10-14 Thread Peng Fan
Hi Stefano, > > > Subject: Re: [NXP-IMX] please pull imx-master-10-14 > > > > Hi Peng, > > > > On 14/10/19 11:48, Peng Fan wrote: > > > Hi Stefano, > > > > > > Please pull imx-master-10-14. This pull request was based on imx/master.

Re: [U-Boot] [PATCH] imx: require CCM driver only on i.MX8MM

2019-10-14 Thread Peng Fan
> Subject: [PATCH] imx: require CCM driver only on i.MX8MM > > Since there is no clock driver like that for i.MX8MQ, we cannot require it on > that platform, so make sure it is only built for i.MX8MM. This makes > i.MX8MQ platforms work again. I would add this: diff --git a/arch/arm/mach-imx/im

Re: [U-Boot] [PATCH] imx: update i.MX8MQ device trees

2019-10-14 Thread Peng Fan
> Subject: [PATCH] imx: update i.MX8MQ device trees > > This updates the i.MX8MQ device trees and, necessarily, also the > i.MX8MQ clock bindings. These are taken verbatim from from the > Linux kernel version v5.4-rc2, which three small changes which > were already part of the previous device tre

Re: [U-Boot] [PATCH] imx: update i.MX8MQ device trees

2019-10-15 Thread Peng Fan
he previous device tree: > > * Keep the PSCI reserved memory range > * Keep the alias for ethernet, so that the MAC address can be set > * Keep the modified #include for the IOMUXC pins > > Signed-off-by: Patrick Wildt Acked-by: Peng Fan > --- > arch/arm/dts/Makefil

[U-Boot] [PATCH] imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined

2019-10-15 Thread Peng Fan
When CONFIG_$(SPL_)CLK not defined, the clock controller device not exist, so to avoid boot failure for platform not have CONFIG_$(SPL_)CLK, add a check. Reviewed-by: Patrick Wildt Tested-by: Patrick Wildt Signed-off-by: Peng Fan --- V1: Based on pull request https://github.com/MrVan/u-boot

[U-Boot] [PATCH 00/10] Enable i.MX8MM EVK BD71837 pmic

2019-10-16 Thread Peng Fan
This patch is to enable BD71837 pmic for i.MX8MM EVK. Two i.MX8MQ patches are also included. Peng Fan (10): imx8m: imx8mq: get chip rev for B1 revision imx8m: clock: improve irq response latency imx: imx8mq: add init_nand_clk imx: spl: implement spl_boot_mode for i.MX7/8/8M dt-bindings

[U-Boot] [PATCH 01/10] imx8m: imx8mq: get chip rev for B1 revision

2019-10-16 Thread Peng Fan
The i.MX8MQ B1 uses OCOTP_HW_OCOTP_READ_FUSE_DATA register for chip id. It returns a magic number 0xff0055aa. update get_cpu_rev to support it, and enable ocotp clock to access ocotp. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 1 + arch/arm/mach-imx/imx8m/soc.c

[U-Boot] [PATCH 02/10] imx8m: clock: improve irq response latency

2019-10-16 Thread Peng Fan
Improve the IRQ response latency by setting GIC root clock source to sys_pll2_200m from osc. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m

[U-Boot] [PATCH 05/10] dt-bindings: import usb pd

2019-10-16 Thread Peng Fan
Import usb pd bindings from Linux 5.4.0-rc1. This file will be included by imx8mm-evk.dts. Signed-off-by: Peng Fan --- include/dt-bindings/usb/pd.h | 88 1 file changed, 88 insertions(+) create mode 100644 include/dt-bindings/usb/pd.h diff --git a

[U-Boot] [PATCH 04/10] imx: spl: implement spl_boot_mode for i.MX7/8/8M

2019-10-16 Thread Peng Fan
It will be easy to separate SD/EMMC when booting in SPL stage, then no need to bother which device is BOOT_DEVICE_MMC1/2. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm

[U-Boot] [PATCH 03/10] imx: imx8mq: add init_nand_clk

2019-10-16 Thread Peng Fan
Add init_nand_clk to enable gpmi nand clock. Since i.MX8MQ not use CCF, so we still use legacy mode to configure the clock. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 ++ arch/arm/mach-imx/imx8m/clock_imx8mq.c | 9 + 2 files changed, 11

[U-Boot] [PATCH 06/10] arm: dts: imx8mm: sync dts from Linux Kernel

2019-10-16 Thread Peng Fan
Sync dts for i.MX8MM from Linux Kernel 5.4.0-rc1 Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 2 +- arch/arm/dts/imx8mm-evk.dts | 285 +++- arch/arm/dts/imx8mm.dtsi| 222 ++-- 3 files changed, 459

[U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage

2019-10-16 Thread Peng Fan
We are going to add i2c pmic support before dram could be used. So we need enable clk driver earlier, so use spl_early_init and move clock controller probe eariler to board_init_f. Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/spl.c | 22 +++--- 1 file changed, 11

[U-Boot] [PATCH 08/10] power: pmic: Kconfig: add CONFIG_SPL_DM_PMIC_BD71837

2019-10-16 Thread Peng Fan
Add CONFIG_SPL_DM_PMIC_BD71837 to make this driver could be used in SPL stage Signed-off-by: Peng Fan --- drivers/power/pmic/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index 586772fdec..4718dc700c 100644 --- a

[U-Boot] [PATCH 07/10] pmic: bd71837: drop DEBUG macro

2019-10-16 Thread Peng Fan
Drop DEBUG macro definition which is used for debug purpose. Signed-off-by: Peng Fan --- drivers/power/pmic/bd71837.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index e292d42a8c..2e04298273 100644 --- a/drivers/power/pmic

[U-Boot] [PATCH 10/10] imx8mm: evk: enable bd71837 pmic

2019-10-16 Thread Peng Fan
Enable bd71837 pmic for i.MX8MM EVK board, need to set voltage for DRAM and linux suspend voltage requirement. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 20 ++ board/freescale/imx8mm_evk/spl.c| 41 + configs

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-21 Thread Peng Fan
Hi Anatolij, > -Original Message- > From: Anatolij Gustschin > Sent: 2019年10月21日 23:22 > To: u-boot@lists.denx.de > Cc: sba...@denx.de; feste...@gmail.com; dl-uboot-imx > ; Ye Li > Subject: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Booting with image

Re: [U-Boot] [PATCH] imx: imx8qxp_mek: increase buffer sizes and args number

2019-10-21 Thread Peng Fan
efine FEC_QUIRK_ENET_MAC > > +/* Misc configuration */ > +#define CONFIG_SYS_CBSIZE2048 > +#define CONFIG_SYS_MAXARGS 64 > +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE > + > #endif /* __IMX8QXP_MEK_H */ > -- Reviewed-by: Peng Fan > 2.17.1 _

Re: [U-Boot] [PATCH 2/3] imx8: add sc_misc_seco_build_info()

2019-10-21 Thread Peng Fan
Hi Anatolij > Subject: [PATCH 2/3] imx8: add sc_misc_seco_build_info() sc_seco_build_info already in Stefano's tree. Thanks, Peng. > > Add function for reading SECO-FW commit id. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/include/asm/arch-imx8/sci/sci.h | 1 + > drivers/misc/im

Re: [U-Boot] [PATCH 3/3] imx8: output SECO-FW, ATF and imx-mkimage commit IDs

2019-10-21 Thread Peng Fan
Hi Anatolij, > Subject: [PATCH 3/3] imx8: output SECO-FW, ATF and imx-mkimage commit > IDs > > Borrow ID reading code from Ye Li (NXP U-Boot, commit ID 5b443e3e2617) > and add the commit IDs to the environment. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/mach-imx/imx8/misc.c | 61 >

Re: [U-Boot] [PATCH v2 3/3] video: mxsfb: set gd->fb_base

2019-10-21 Thread Peng Fan
mmu_set_region_dcache_behaviour(fb_start, fb_end - fb_start, > DCACHE_WRITEBACK); > video_set_flush_dcache(dev, true); > + gd->fb_base = plat->base; > > return ret; Reviewed-by: Peng Fan > } > -- > 2.21.0

[U-Boot] [PATCH V1 0/6] imx: imx8mm-evk: support eth

2019-10-21 Thread Peng Fan
This patchset is based on imx/next. Add imx8mm enet clk Add fec_mxc more clks support for i.MX8M Add board code to configure phy and gpr Fix imx8mm boot Peng Fan (6): clk: imx8mm: add enet clk clk: imx: imx8mm: add set_parent callback arm: dts: imx8mm: drop assigned clocks for clk node

[U-Boot] [PATCH V1 1/6] clk: imx8mm: add enet clk

2019-10-21 Thread Peng Fan
Add enet ref/timer/PHY_REF/root clk which are required to make enet function well. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index

[U-Boot] [PATCH V1 3/6] arm: dts: imx8mm: drop assigned clocks for clk node

2019-10-21 Thread Peng Fan
Drop assigned clocks for clk node, this will break boot on i.MX8MM EVK board. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index 16093f2067

[U-Boot] [PATCH V1 6/6] imx: imx8mm-evk: enable ethernet

2019-10-21 Thread Peng Fan
add phy-reset-gpios to reset phy Add board_phy_config to configure phy Enable DM_ETH Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 4 board/freescale/imx8mm_evk/imx8mm_evk.c | 37 + configs/imx8mm_evk_defconfig| 7

[U-Boot] [PATCH V1 2/6] clk: imx: imx8mm: add set_parent callback

2019-10-21 Thread Peng Fan
Add set_parent callback, then assigned-clock-parents in dts could be work. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 4911345fd9..091b092bbb

[U-Boot] [PATCH V1 4/6] net: Kconfig: FEC: Add dependency on i.MX8M

2019-10-21 Thread Peng Fan
Make FEC driver could be used by i.MX8M when CONFIG_FEC_MXC defined in defconfig. Signed-off-by: Peng Fan --- drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 2ce3092db0..08cdd95727 100644 --- a/drivers/net

[U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-21 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Signed-off-by: Peng Fan --- drivers/net/fec_mxc.c | 74

[U-Boot] [PATCH] clk: show more error info when uclass_get_device_by_name

2019-10-21 Thread Peng Fan
It will ease debug when uclass_get_device_by_name failed with more error info printed out. Signed-off-by: Peng Fan --- drivers/clk/clk.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 1cf9987f6c..4c477a488e 100644 --- a

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Peng Fan
Hi Anatolij, > Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Hi Peng, > > On Tue, 22 Oct 2019 02:43:31 + > Peng Fan peng@nxp.com wrote: > ... > > get_boot_device_offset already switched partition, there is no ne

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > Hi Peng, > > On Tue, 22 Oct 2019 08:13:31 + > Peng Fan peng@nxp.com wrote: > ... > > But I do not understand well. When burn flash.bin into boot partition, &g

Re: [U-Boot] [PATCH] imx: imx8: fix loading container image from eMMC boot partitions

2019-10-22 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8: fix loading container image from eMMC boot > partitions > > On Tue, 22 Oct 2019 10:08:42 +0000 > Peng Fan peng@nxp.com wrote: > ... > > > > From common/spl/spl_mmc.c, there is boot partition switch there, > > > >

[U-Boot] [PATCH] spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition

2019-10-22 Thread Peng Fan
n switch. Reported-by: Anatolij Gustschin Signed-off-by: Peng Fan --- common/spl/spl_mmc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 34e1e73d80..2ede096e61 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/s

Re: [U-Boot] [PATCH] spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition

2019-10-23 Thread Peng Fan
gt; I assume that this change is not causing regressions on other i.MX boards? > (Like i.MX6Q or i.MX53) No regression on other i.MX boards. Only i.MX8QM/8QXP has this issue currently. Regards, Peng. > > > Reported-by: Anatolij Gustschin > > Signed-off-by: Peng Fan > > -

Re: [U-Boot] [PATCH V1 6/6] imx: imx8mm-evk: enable ethernet

2019-10-23 Thread Peng Fan
> Subject: Re: [PATCH V1 6/6] imx: imx8mm-evk: enable ethernet > > Hi Peng, > > On Tue, Oct 22, 2019 at 12:30 AM Peng Fan wrote: > > > > add phy-reset-gpios to reset phy > > Add board_phy_config to configure phy > > Enable DM_ETH > > > > Signed

Re: [U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-23 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with > CLK_CCF > > On 22.10.19 05:30, Peng Fan wrote: > > Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 > > drivers/net/ethernet/freescale/fec_main.c. > > > > Since i.MX8MQ no

Re: [U-Boot] [PATCH 1/3] mx7ulp_evk: Disable CONFIG_NET

2019-10-23 Thread Peng Fan
/configs/mx7ulp_evk_defconfig > +++ b/configs/mx7ulp_evk_defconfig > @@ -17,6 +17,7 @@ CONFIG_CMD_FAT=y > CONFIG_OF_CONTROL=y > CONFIG_DEFAULT_DEVICE_TREE="imx7ulp-evk" > CONFIG_ENV_IS_IN_MMC=y > +# CONFIG_NET is not set > CONFIG_DM=y > CONFIG_DM_GPIO=y > CONFIG_

Re: [U-Boot] [PATCH 2/3] mx7ulp_evk: Remove unneeded SDHC definitions

2019-10-23 Thread Peng Fan
#define CONFIG_SYS_MMC_ENV_PART 0/* user area */ > #define CONFIG_MMCROOT "/dev/mmcblk0p2" /* > USDHC1 */ Reviewed-by: Peng Fan > -- > 2.17.1 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-23 Thread Peng Fan
_400m", > +static const char *imx8mm_ahb_sels[] = {"clock-osc-24m", > +"sys_pll1_133m", "sys_pll1_800m", "sys_pll1_400m", > "sys_pll2_125m", "sys_pll3_out", > "audio_pll1_out", > "video_pll1_out", }; > > static const char *imx8mm_enet_axi_sels[] = {"clock-osc-24m", > "sys_pll1_266m", "sys_pll1_800m", "sys_pll2_250m", Reviewed-by: Peng Fan > -- > 2.17.1 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 3/3] mx7ulp: Move SoC base address to a common file

2019-10-23 Thread Peng Fan
CMC1_RBASE > -#define IRAM_BASE_ADDR OCRAM_0_BASE > -#define IOMUXC_BASE_ADDR IOMUXC1_RBASE > - > #define CONFIG_SYS_MMC_ENV_DEV 0/* USDHC1 */ > #define CONFIG_SYS_MMC_ENV_PART 0/* user

Re: [U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-23 Thread Peng Fan
> Subject: Re: [PATCH] clk: imx: imx8mm: Fix the first root clock in > imx8mm_ahb_sels[] > > Hi Frieder, > > On Wed, Oct 23, 2019 at 1:36 PM Schrempf Frieder > wrote: > > > > From: Frieder Schrempf > > > > The 24MHz oscillator clock is referenced by "clock-osc-24m" and not > > "osc_24m". > > I

[U-Boot] [PATCH V2 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-24 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Signed-off-by: Peng Fan --- V2: Drop CONFIG_IMX8M and

[U-Boot] [PATCH V3 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-24 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Signed-off-by: Peng Fan --- V3: Drop unneeded else

Re: [U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-24 Thread Peng Fan
> Subject: Re: [PATCH] clk: imx: imx8mm: Fix the first root clock in > imx8mm_ahb_sels[] > > On Wed, Oct 23, 2019 at 10:11 PM Peng Fan wrote: > > > No, kernel is right. It is U-Boot CCF specific. > > Can we make U-Boot to handle the same clock name as in kernel? L

Re: [U-Boot] [PATCH 2/3] imx8: add sc_misc_seco_build_info()

2019-10-24 Thread Peng Fan
> Subject: Re: [PATCH 2/3] imx8: add sc_misc_seco_build_info() > > Hi Peng, > > On Tue, 22 Oct 2019 02:47:28 + > Peng Fan peng@nxp.com wrote: > ... > > > Subject: [PATCH 2/3] imx8: add sc_misc_seco_build_info() > > > > sc_seco_build_info already

[U-Boot] [PATCH V4 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-25 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Reviewed-by: Frieder Schrempf Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH 0/3] mmc: fsl_esdhc: clean up driver

2019-10-29 Thread Peng Fan
t; From: Yangbo Lu > > Sent: Monday, October 21, 2019 6:09 PM > > To: u-boot@lists.denx.de; Peng Fan > > Cc: Y.b. Lu > > Subject: [PATCH 0/3] mmc: fsl_esdhc: clean up driver > > > > This patch-set is to clean up driver. There is still a lot of work to > >

[U-Boot] [PULL] u-boot-mmc mmc-10-29-2019

2019-10-29 Thread Peng Fan
/mmc-10-29-2019 for you to fetch changes up to a335f80502131e9e2b58a0281f5fc78018295ea4: spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition (2019-10-29 10:09:44 +0800) -------- Peng Fan (1): spl: spl_mmc: f

RE: [PATCH] Convert CONFIG_MXC_UART to Kconfig

2020-06-09 Thread Peng Fan
> Subject: [PATCH] Convert CONFIG_MXC_UART to Kconfig > > This converts the following to Kconfig: >CONFIG_MXC_UART > > Signed-off-by: Tom Rini > --- Acked-by: Peng Fan

RE: Update of dts files for U-Boot for i.MX

2020-06-11 Thread Peng Fan
Hi Tom, > Subject: Update of dts files for U-Boot for i.MX > > Hey, > > Can we please get the various i.MX dts files (and related) re-synced with the > kernel? In looking at the various dts warnings we see in our build, even on > something like i.MX7 we see warnings because our dts files are ou

<    1   2   3   4   5   6   7   8   9   10   >