RE: IMX8MM 4GiB boundary issue

2020-09-26 Thread Peng Fan
> Subject: Re: IMX8MM 4GiB boundary issue > > On 9/27/20 2:56 AM, Peng Fan wrote: > > [...] > > >>> I can imagine that either the FEC/SDHCI is limited to 32bit > >>> addressing in hardware (the DMA can only operate on 32bit range due > >>>

RE: [PATCH 13/13] usb: ehci-mx6: Improve the bind function

2020-09-26 Thread Peng Fan
Hi Marek, > Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > > On 9/16/20 3:56 PM, Peng Fan wrote: > > Hi Marek, > > Hi, > > >> Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > >> > >> On 9/16/20 2:57

RE: IMX8MM 4GiB boundary issue

2020-10-02 Thread Peng Fan
> Subject: Re: IMX8MM 4GiB boundary issue > > On Sat, Sep 26, 2020 at 7:35 PM Peng Fan wrote: > > > > > Subject: Re: IMX8MM 4GiB boundary issue > > > > > > On 9/27/20 2:56 AM, Peng Fan wrote: > > > > > > [...] > > >

RE: [PATCH 00/16] usb: gadget: update

2020-10-09 Thread Peng Fan
Hi Lukasz, Are you fine with this patchset from NXP downstream? Thanks, Peng. > Subject: [PATCH 00/16] usb: gadget: update > > From: Peng Fan > > This patchset is to upstream NXP downstream gadget driver patches for > feature update. > > Jun Li (2): >

RE: [PATCH 00/17] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2020-10-11 Thread Peng Fan
> Subject: Re: [PATCH 00/17] Add support for MMC higher speed modes for TI's > am65x, j721e and j7200 platforms > > Hi Peng, > > On 08/10/20 10:42 am, Faiz Abbas wrote: > > The following patches add support for higher speeds in the SD card and > > eMMC for TI's am65x, j721e, j7200 platforms. > >

[PATCH] board: imx: address dd usage in README

2020-10-11 Thread Peng Fan
cause boot issue. So update README dd command to add "conv=notrunc" Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/README | 2 +- board/freescale/imx8mn_evk/README | 2 +- board/freescale/imx8mp_evk/README | 2 +- board/freescale/imx8mq_evk/README | 2

[PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC)

2020-10-11 Thread Peng Fan
shut down. Signed-off-by: Li Jun Signed-off-by: Ye Li Signed-off-by: Peng Fan --- board/freescale/common/Kconfig |6 + board/freescale/common/Makefile |4 + board/freescale/common/tcpc.c | 1018 +++ board/freescale/common/tcpc.h | 469

[PATCH 0/8] i.MX8MM: add host/gadget support

2020-10-11 Thread Peng Fan
board/freescale/common. Stefano: This might not be good to merge the patches into one patchset, but to make people could easy to setup test, so send in a whole. Marek: Please see whether you are fine moving the code to drivers/usb/imx/ Peng Fan (6): power: regulator: add dummy helper phy

[PATCH 2/8] power: regulator: add dummy helper

2020-10-11 Thread Peng Fan
Add dummy helper to enabling the header could be included when DM REGULATOR not enabled. Signed-off-by: Peng Fan --- include/power/regulator.h | 114 ++ 1 file changed, 114 insertions(+) diff --git a/include/power/regulator.h b/include/power/regulator.h

[PATCH 4/8] usb: imx: add i.MX usb ehci driver

2020-10-11 Thread Peng Fan
river code, similar with Linux Kernel. Signed-off-by: Peng Fan --- Makefile| 1 + arch/arm/include/asm/mach-imx/regs-usbphy.h | 5 + arch/arm/include/asm/mach-imx/sys_proto.h | 2 + drivers/Makefile| 1 + drivers/u

[PATCH 5/8] imx8m: enable usb power domain

2020-10-11 Thread Peng Fan
-Boot and MMIO for SPL. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/sys_proto.h | 1 + arch/arm/mach-imx/imx8m/soc.c | 55 + 2 files changed, 56 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/sys_proto.h b/arch/arm/include/asm/arch

[PATCH 3/8] phy: nop-phy: add optional clk

2020-10-11 Thread Peng Fan
Add optional clk for nop phy Signed-off-by: Peng Fan --- drivers/phy/nop-phy.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index a5eed20f3f..a1afdef736 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers/phy

[PATCH 6/8] imx8mm_evk: add usbotg1 host support

2020-10-11 Thread Peng Fan
usb for storage devices... 1 Storage Device(s) found u-boot=> usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Mass Storage (480 Mb/s, 300mA) Kingston DataTraveler 2.0 50E54951344CB04199CA8CE6 Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm

[PATCH 7/8] usb: ci_udc: Convert driver to DM_USB_GADGET

2020-10-11 Thread Peng Fan
defined, we can use ci_udc driver in its original Non-DM way. Signed-off-by: Sherry Sun Reviewed-by: Ye Li [Peng: need to extract common code from host and gadget driver(TODO)] Signed-off-by: Peng Fan --- drivers/usb/gadget/ci_udc.c | 305 +++- drivers/usb/host

[PATCH 8/8] imx8mm_evk: add fastboot support

2020-10-11 Thread Peng Fan
Add fastboot support for U-Boot proper Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 17 + configs/imx8mm_evk_defconfig| 13 - include/configs/imx8mm_evk.h| 14 ++ 3 files changed, 43 insertions(+), 1 deletion(-) diff

RE: [PATCH 0/6] mmc: fsl_esdhc: add ADMA2 support

2020-10-12 Thread Peng Fan
> Subject: [PATCH 0/6] mmc: fsl_esdhc: add ADMA2 support > > Add ADMA2 support mainly because it supports 64bit DMA addresses. These > are for example used if you use EFI on a LS1028A board which has more than > 2GB of RAM, because only the lower 2GB are mapped into the lower 32bit > address space

RE: [PATCH 3/8] phy: nop-phy: add optional clk

2020-10-12 Thread Peng Fan
> Subject: Re: [PATCH 3/8] phy: nop-phy: add optional clk > > On 10/12/20 8:23 AM, Peng Fan wrote: > [...] > > +static int nop_phy_probe(struct udevice *dev) { > > + struct nop_phy_priv *priv = dev_get_priv(dev); > > + int ret; > > + > > + if (CON

RE: [PATCH 4/8] usb: imx: add i.MX usb ehci driver

2020-10-12 Thread Peng Fan
> Subject: Re: [PATCH 4/8] usb: imx: add i.MX usb ehci driver > > On 10/12/20 8:23 AM, Peng Fan wrote: > > This driver is a modifed and cleaned-up version of > > drivers/usb/host/ehci-mx6.c, it is to replace the original ehci-mx6.c > > driver. > > > >

RE: [PATCH 5/8] imx8m: enable usb power domain

2020-10-12 Thread Peng Fan
> Subject: Re: [PATCH 5/8] imx8m: enable usb power domain > > On 10/12/20 8:23 AM, Peng Fan wrote: > > Enable usb power domain, we are not using a power domain driver now. > > Currently NXP use a ARM SIP based power domain driver, but this has > > been rejected by Linux

RE: [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC)

2020-10-12 Thread Peng Fan
> Subject: Re: [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC) > > On 10/12/20 8:23 AM, Peng Fan wrote: > [...] > > board/freescale/common/Kconfig |6 + > > board/freescale/common/Makefile |4 + > > board/fr

RE: [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC)

2020-10-13 Thread Peng Fan
> Subject: Re: [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC) > > On 10/12/20 11:43 AM, Peng Fan wrote: > >> Subject: Re: [PATCH 1/8] tcpc: Add driver for USB typec port > >> controller (TCPC) > >> > >> On 10/12/20 8:23 AM, Peng

RE: [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC)

2020-10-13 Thread Peng Fan
> Subject: Re: [PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC) > > On 10/13/20 11:39 AM, Peng Fan wrote: > >> Subject: Re: [PATCH 1/8] tcpc: Add driver for USB typec port > >> controller (TCPC) > >> > >> On 10/12/20 11:43 AM, Peng Fa

[PATCH V2 01/12] board: imx: address dd usage in README

2020-10-14 Thread Peng Fan
cause boot issue. So update README dd command to add "conv=notrunc" Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/README | 2 +- board/freescale/imx8mn_evk/README | 2 +- board/freescale/imx8mp_evk/README | 2 +- board/freescale/imx8mq_evk/README | 2

[PATCH V2 00/12] imx: doc update

2020-10-14 Thread Peng Fan
V2: Migrate README to doc/board/freescale patch 1 is not changed. Peng Fan (12): board: imx: address dd usage in README doc: board: Convert i.MX8MP EVK README to reST doc: board: Convert i.MX8MN EVK README to reST doc: board: Convert i.MX8MM EVK README to reST doc: board: Convert

[PATCH V2 05/12] doc: board: Convert i.MX8MQ EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mq_evk/README | 37 doc/board/freescale/imx8mq_evk.rst | 56 ++ doc/board

[PATCH V2 02/12] doc: board: Convert i.MX8MP EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/README | 41 doc/board/freescale/imx8mp_evk.rst | 61 ++ doc/board

[PATCH V2 03/12] doc: board: Convert i.MX8MN EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/README | 37 --- doc/board/freescale/imx8mn_evk.rst | 57 ++ doc/board

[PATCH V2 04/12] doc: board: Convert i.MX8MM EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/README | 37 doc/board/freescale/imx8mm_evk.rst | 56 ++ doc/board

[PATCH V2 07/12] doc: board: Convert i.MXRT1020 EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imxrt1020-evk/README | 31 doc/board/freescale/imxrt1020-evk.rst | 41 +++ doc/board

[PATCH V2 09/12] doc: board: Convert i.MX6 Sabreauto README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/mx6sabreauto/README | 82 -- doc/board/freescale/index.rst| 1 + doc/board/freescale

[PATCH V2 08/12] doc: board: Convert i.MXRT1050 EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imxrt1050-evk/README | 31 doc/board/freescale/imxrt1050-evk.rst | 41 +++ doc/board

[PATCH V2 10/12] doc: board: Convert i.MX6 Sabresd README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/mx6sabresd/README | 114 - doc/board/freescale/index.rst | 1 + doc/board/freescale/mx6sabresd.rst

[PATCH V2 06/12] doc: board: Convert i.MX8QXP MEK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/README | 50 -- doc/board/freescale/imx8qxp_mek.rst | 66 + doc/board

[PATCH V2 12/12] doc: board: Convert i.MX6ULL EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- doc/board/freescale/index.rst | 1 + .../board/freescale/mx6ullevk.rst | 29 +-- 2 files changed, 21

[PATCH V2 11/12] doc: board: Convert i.MX6UL 14x14 EVK README to reST

2020-10-14 Thread Peng Fan
Convert plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Peng Fan --- doc/board/freescale/index.rst | 1 + .../board/freescale/mx6ul_14x14_evk.rst | 62 --- 2 files changed, 40

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

2020-10-14 Thread Peng Fan
> Subject: [PATCH 4/4] serial: serial_xen: add DEBUG_UART support > > By using a hypervisor call, we can implement DEBUG_UART on xen. > This will allow us to see messages even earlier than serial_init(). > > Signed-off-by: AKASHI Takahiro > --- > drivers/serial/Kconfig | 14 +++---

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

2020-10-14 Thread Peng Fan
erial_ops, > -#if !CONFIG_IS_ENABLED(OF_CONTROL) > .flags = DM_FLAG_PRE_RELOC, > -#endif > }; > Reviewed-by: Peng Fan > -- > 2.28.0

RE: [PATCH 3/4] xen: add definitions for console_io

2020-10-14 Thread Peng Fan
gt; + * Commands to HYPERVISOR_console_io(). > + */ > +#define CONSOLEIO_write 0 > +#define CONSOLEIO_read 1 > + > #ifndef __ASSEMBLY__ > > typedef u16 domid_t; Reviewed-by: Peng Fan > -- > 2.28.0

RE: [PATCH 2/4] arch: arm/xen: add putc() for debugging

2020-10-14 Thread Peng Fan
*arg); unsigned long > HYPERVISOR_hvm_op(int op, void *arg); int > HYPERVISOR_memory_op(unsigned int cmd, void *arg); > + > +static inline void xen_debug_putc(int c) { > + register int v __asm__ ("x0") = c; > + __asm__ __volatile__("hvc 0xfffe" : "=r" (v) : "0" (v)); } > #endif /* _ASM_ARM_XEN_HYPERCALL_H */ Reviewed-by: Peng Fan > -- > 2.28.0

fatal error: Python.h: No such file or directory

2020-10-15 Thread Peng Fan
All: When select BINMAN, I met error. fatal error: Python.h: No such file or directory I am using openSUSE, python files are installed under /usr/include/python3.8 After I " export C_INCLUDE_PATH=/usr/include/python3.8", I met another issue: " /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_

[PATCH] phy: nop-phy: add clk bulk

2020-10-15 Thread Peng Fan
Add clk bulk for nop-phy driver. Signed-off-by: Peng Fan --- drivers/phy/nop-phy.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index a5eed20f3f..fbfbe33e4e 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers

[PATCH] power: regulator: add dummy helper

2020-10-15 Thread Peng Fan
Add dummy helper to enabling the header could be included when DM REGULATOR not enabled. Signed-off-by: Peng Fan --- include/power/regulator.h | 114 ++ 1 file changed, 114 insertions(+) diff --git a/include/power/regulator.h b/include/power/regulator.h

RE: [PATCH 13/13] usb: ehci-mx6: Improve the bind function

2020-10-15 Thread Peng Fan
Marek, > Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > > On 9/27/20 4:38 AM, Peng Fan wrote: > > Hi Marek, > > > >> Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > >> > >> On 9/16/20 3:56

RE: [PATCH 09/33] mmc: stm32_sdmmc2: migrate trace to dev and log macro

2020-10-15 Thread Peng Fan
t;%s: end for CMD %d, ret = %d\n", __func__, cmd->cmdidx, ret); > + dev_dbg(dev, "end for CMD %d, ret = %d\n", cmd->cmdidx, ret); > > return ret; > } > @@ -579,8 +582,8 @@ static int stm32_sdmmc2_set_ios(struct udevice > *dev) > u32 sys_clock = clk_get_rate(&priv->clk); > u32 clk = 0; > > - debug("%s: bus_with = %d, clock = %d\n", __func__, > - mmc->bus_width, mmc->clock); > + dev_dbg(dev, "bus_with = %d, clock = %d\n", > + mmc->bus_width, mmc->clock); > > if (mmc->clk_disable) > stm32_sdmmc2_pwrcycle(priv); > @@ -616,7 +619,7 @@ static int stm32_sdmmc2_getcd(struct udevice *dev) > { > struct stm32_sdmmc2_priv *priv = dev_get_priv(dev); > > - debug("stm32_sdmmc2_getcd called\n"); > + dev_dbg(dev, "%s called\n", __func__); > > if (dm_gpio_is_valid(&priv->cd_gpio)) > return dm_gpio_get_value(&priv->cd_gpio); > @@ -695,7 +698,7 @@ static int stm32_sdmmc2_probe(struct udevice *dev) > case 1: > break; > default: > - pr_err("invalid \"bus-width\" property, force to 1\n"); > + dev_err(dev, "invalid \"bus-width\" property, force to 1\n"); > } > > upriv->mmc = &plat->mmc; > -- Reviewed-by: Peng Fan

RE: [PATCH] mmc: mtk-sd: change some dev_err into dev_dbg

2020-10-15 Thread Peng Fan
(dev, "Final data pad delay: %x\n", final_delay); > + dev_dbg(dev, "Final data pad delay: %x\n", final_delay); > > return final_delay == 0xff ? -EIO : 0; } > -- Reviewed-by: Peng Fan

RE: [PATCH v1] Revert "core: device: use dev_power_domain_on"

2019-12-19 Thread Peng Fan
> Subject: [PATCH v1] Revert "core: device: use dev_power_domain_on" > > From: Igor Opaniuk > > This reverts commit f0cc4eae9a1702a768817ea25d9f23cece69d021 > > This was previously reported that f0cc4eae9a ("core: device: > use dev_power_domain_on") breaks initial boot on Colibri iMX8X and > IM

RE: [PATCH 1/3] mx7dsabresd: Fix the pmic_get() parameter in the DM case

2019-12-22 Thread Peng Fan
io Estevam Reviewed-by: Peng Fan > --- > board/freescale/mx7dsabresd/mx7dsabresd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c > b/board/freescale/mx7dsabresd/mx7dsabresd.c > index f1120d67e3..05cf8c8c

RE: [PATCH 3/3] mx6slevk: Fix the pmic_get() parameter in the DM case

2019-12-22 Thread Peng Fan
> Subject: [PATCH 3/3] mx6slevk: Fix the pmic_get() parameter in the DM case > > When pmic_get() is used with DM the first parameter must be the complete > node name plus the unit address, so fix it accordingly. > > Reported-by: Igor Opaniuk > Signed-off-by: Fabio Esteva

RE: [PATCH 2/3] mx6sllevk: Fix the pmic_get() parameter in the DM case

2019-12-22 Thread Peng Fan
> Subject: [PATCH 2/3] mx6sllevk: Fix the pmic_get() parameter in the DM case > > When pmic_get() is used with DM the first parameter must be the complete > node name plus the unit address, so fix it accordingly. > > Reported-by: Igor Opaniuk > Signed-off-by: Fabio Esteva

RE: imx6ulz evk does not detect SD card

2019-12-22 Thread Peng Fan
> Subject: imx6ulz evk does not detect SD card > > Hi Peng and Ye Li, > > Tested booting imx6ulz evk with mainline and noticed that the SD card is not > detected: > > U-Boot 2020.01-rc5-7-g7c4feb945a-dirty (Dec 20 2019 - 15:21:43 -0300) > > CPU: Freescale i.MX6ULL rev1.1 900 MHz (running

RE: [PATCH] global_data: remove unused mxc_i2c specific field

2019-12-25 Thread Peng Fan
> Subject: [PATCH] global_data: remove unused mxc_i2c specific field > > The srdata field is unused since commit 71204e95ce13228 ("i2c: mxc: > refactor i2c driver and support dm"). > > Cc: Peng Fan > Signed-off-by: Baruch Siach Reviewed-by: Peng Fan

[PATCH 01/22] imx: get cpu id/type of i.MX8MP

2019-12-30 Thread Peng Fan
Support get i.MX8MP cpu id and cpu type 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 | 7 +-- 4 files changed, 9

[PATCH 00/22] imx: add i.MX8MP support

2019-12-30 Thread Peng Fan
i.IMX8M Plus is part of the i.MX8M SoC family, targeting industrial and consumer market. It includes an ML and AI accelerator, together with 4 Cortex-A53 core, DSP, GPU, VPU, M7 and etc. This patchset is to add the support. CI: https://travis-ci.org/MrVan/u-boot/builds/630883217 Peng Fan (21

[PATCH 02/22] imx8mp: set BYPASS ID SWAP to avoid AXI bus errors

2019-12-30 Thread 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/mach-imx/imx8m

[PATCH 04/22] imx: imx8m: add Kconfig entry for i.MX8MP

2019-12-30 Thread Peng Fan
Add Kconfig entry for i.MX8MP 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 eb4a73b3e2..251feb2074 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b

[PATCH 06/22] dt-bindings: clock: add i.MX8MP clock header

2019-12-30 Thread Peng Fan
Add i.MX8MP clock header Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8mp-clock.h | 300 +++ 1 file changed, 300 insertions(+) create mode 100644 include/dt-bindings/clock/imx8mp-clock.h diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include

[PATCH 03/22] imx: cpu: enlarge bit mask to 0x1FF for cpu type

2019-12-30 Thread Peng Fan
i.MX8MP use 0x182 as dummy id, 0xFF is not able the get the highest bit, so enlarge bit mask to 0x1FF to make it could detect cpu type correctly Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/cpu.c b

[PATCH 05/22] imx: spl: support i.MX8MP spl_boot_device

2019-12-30 Thread Peng Fan
i.MX8MP follows i.MX8MN, so just let it use spl_board_boot_device Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index dde1635a9d..5a6493a625 100644 --- a/arch/arm/mach

[PATCH 08/22] imx: imx8mp: add basic clock

2019-12-30 Thread Peng Fan
i.MX8MP has similar architecture as i.MX8MN, but it has different clk root and index, so add that to make i.MX8MP could use the non-dm clock driver. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 3 +- arch/arm/include/asm/arch-imx8m/clock_imx8mm.h | 112

[PATCH 07/22] arm: dts: add i.MX8MP pinfunc header

2019-12-30 Thread Peng Fan
Add i.MX8MP pinfunc header for dts usage Signed-off-by: Peng Fan --- arch/arm/dts/imx8mp-pinfunc.h | 931 ++ 1 file changed, 931 insertions(+) create mode 100644 arch/arm/dts/imx8mp-pinfunc.h diff --git a/arch/arm/dts/imx8mp-pinfunc.h b/arch/arm/dts

[PATCH 11/22] mxc_ocotp: support i.MX8MP

2019-12-30 Thread Peng Fan
i.MX8MP use similar ocotp as i.MX8MN, but has changed fuse banks and ctrl register bit definitions, so update to reflect that. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/mxc_ocotp.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/misc/mxc_ocotp.c b

[PATCH 10/22] pinctrl: imx8m: support i.MX8MP

2019-12-30 Thread Peng Fan
Add i.MX8MP compatible to let the pinctrl driver could support i.MX8MP. Reviewed-by: Ye Li 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

[PATCH 12/22] ddr: imx8m: Add DRAM PLL to generate 1000Mhz output

2019-12-30 Thread Peng Fan
We will generate DRAM 4000MT/s as default for i.MX8MP. So need DRAM PLL to generate 1000Mhz clock to DDR PHY and controller. Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/ddrphy_utils.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/ddr/imx/imx8m/ddrphy_utils.c b/drivers

[PATCH 09/22] imx: imx8m: add 1GHz fracpll entry

2019-12-30 Thread Peng Fan
4000MTS DDR needs 1GHz fracpll, so add the entry Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index ee44ba75fe..68575a2bd3 100644 --- a/arch

[PATCH 18/22] imx: imx8m: only support non-dm code in clock_imx8mm.c

2019-12-30 Thread Peng Fan
The drivers/clk/imx/*.c are used for CLK dm case, the clock_imx8mm.c is used for non CLK dm case, let's split it. Sometimes it is hard to enable CLK dm in SPL stage, considering code size, malloc size requirement, the splittion will make it easy to use non CLK dm in SPL stage. Signed-off-by:

[PATCH 17/22] imx: Kconfig: make SPL_IMX_ROMAPI_LOADADDR visible to i.MX8MP

2019-12-30 Thread Peng Fan
i.MX8MP ROM support ROMAPI as i.MX8MN, so make SPL_IMX_ROMAPI_LOADADDR visible to i.MX8MP Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 4ce2799b72

[PATCH 14/22] power: Add new PMIC PCA9450 driver

2019-12-30 Thread Peng Fan
From: Ye Li PCA9450 PMIC series is used to support iMX8MM (PCA9450A) and iMX8MN (PCA9450B). Add the PMIC driver for both PCA9450A and PCA9450B. Signed-off-by: Robin Gong Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/power/pmic/Kconfig| 7 +++ drivers/power/pmic/Makefile

[PATCH 16/22] imx: add i.MX8MP PE property

2019-12-30 Thread Peng Fan
i.MX8MP 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 3d5586ed4f

[PATCH 13/22] arm: dts: freescale: Add i.MX8MP dtsi support

2019-12-30 Thread Peng Fan
Kernel https://patchwork.kernel.org/patch/11310915/ Signed-off-by: Peng Fan --- arch/arm/dts/imx8mp.dtsi | 598 +++ 1 file changed, 598 insertions(+) create mode 100644 arch/arm/dts/imx8mp.dtsi diff --git a/arch/arm/dts/imx8mp.dtsi b/arch/arm/dts

[PATCH 21/22] imx: imx8m: add imximage-8mp-lpddr4.cfg

2019-12-30 Thread Peng Fan
Add imximage-8mp-lpddr4.cfg for imximage usage, almost same as i.MX8MN ddr4 cfg, but with different ddr firmware Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/imximage-8mp-lpddr4.cfg | 17 + 1 file changed, 17 insertions(+) create mode 100644 arch/arm/mach-imx/imx8m

[PATCH 20/22] clk: imx: add i.MX8MP clk driver

2019-12-30 Thread Peng Fan
Add i.MX8MP clk driver for i.MX8MP CLK driver model usage Signed-off-by: Peng Fan Cc: Lukasz Majewski --- V1: To align with linux coding style, the 80 chars warning is not fixed. drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mp.c | 362

[PATCH 19/22] clk: imx: add imx_clk_mux2_flags

2019-12-30 Thread Peng Fan
Add imx_clk_mux2_flags which will be used by i.MX8MP Signed-off-by: Peng Fan Cc: Lukasz Majewski --- drivers/clk/imx/clk.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 07dcf94ea5..60f287046b 100644 --- a/drivers/clk/imx

[PATCH 15/22] imx: imx8mp: add pin header file

2019-12-30 Thread Peng Fan
Add pin header file for i.MX8MP Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mp_pins.h | 1080 + 1 file changed, 1080 insertions(+) create mode 100644 arch/arm/include/asm/arch-imx8m/imx8mp_pins.h diff --git a/arch/arm/include/asm/arch-imx8m

[PATCH 22/22] imx: add i.MX8MP EVK board

2019-12-30 Thread Peng Fan
Environment from MMC... OK In:serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0 u-boot=> mmc list FSL_SDHC: 1 (SD) FSL_SDHC: 2 Signed-off-by: Peng Fan --- arch/arm/dts/Makefile |3 +- arch/arm/dts/imx8mp-evk-u-boot.d

RE: [PATCH 00/22] imx: add i.MX8MP support

2019-12-30 Thread Peng Fan
Hi Fabio, > Subject: Re: [PATCH 00/22] imx: add i.MX8MP support > > Hi Peng, > > On Mon, Dec 30, 2019 at 7:08 AM Peng Fan wrote: > > > imx: add i.MX8MP EVK board > > Please add a README file mentioning the exact firmware/AT-F versions that > need to be used

RE: [PATCH 20/22] clk: imx: add i.MX8MP clk driver

2020-01-05 Thread Peng Fan
Hi Lukasz, > Subject: Re: [PATCH 20/22] clk: imx: add i.MX8MP clk driver > > Hi Peng, > > > Add i.MX8MP clk driver for i.MX8MP CLK driver model usage > > > > Signed-off-by: Peng Fan > > Cc: Lukasz Majewski > > --- > > > > V1: > > T

RE: ATF + u-boot imx8mm combination

2020-01-05 Thread Peng Fan
> Subject: ATF + u-boot imx8mm combination > > HI all > > I'm trying to work on some imx8mm mainline but I understand that I miss > some of the information needed. I would like to work and play with power > domain. Can I know where to find all the information to build a version with a > valid co

RE: [PATCH 00/22] imx: add i.MX8MP support

2020-01-05 Thread Peng Fan
> Subject: Re: [PATCH 00/22] imx: add i.MX8MP support > > Hi Peng, > > On Mon, Dec 30, 2019 at 10:31 PM Peng Fan wrote: > > > This is no public AT-F and ddr firmware for this board now. We are at > > early stage currently. until NXP software release, there

[PATCH 2/3] imx: imx8mn_evk: add board_mmc_get_env_dev

2020-01-06 Thread Peng Fan
Add board_mmc_get_env_dev, otherwise, Loading Environment from MMC... MMC Device 0 not found *** Warning - No MMC card found, using default environment Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/imx8mn_evk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/freescale

[PATCH 3/3] imx: imx8mn: enable CONFIG_CMD_ERASEENV

2020-01-06 Thread Peng Fan
enable CONFIG_CMD_ERASEENV to make it easy to erase env. Use savedefconfig to generate new defconfig. Signed-off-by: Peng Fan --- configs/imx8mn_ddr4_evk_defconfig | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configs/imx8mn_ddr4_evk_defconfig b/configs

[PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Peng Fan
Add a README for users to build a workable image. Signed-off-by: Peng Fan --- board/freescale/imx8mn_evk/README | 37 + 1 file changed, 37 insertions(+) create mode 100644 board/freescale/imx8mn_evk/README diff --git a/board/freescale/imx8mn_evk/README b

RE: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Peng Fan
> Subject: Re: [PATCH 1/3] imx8mn: evk: add README > > On 06/01/20 09:04, Peng Fan wrote: > > Add a README for users to build a workable image. > > > > Signed-off-by: Peng Fan > > --- > > board/freescale/imx8mn_evk/README | 37 > >

RE: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Peng Fan
> Subject: Re: [PATCH 1/3] imx8mn: evk: add README > > Hi Peng, > > On Mon, Jan 6, 2020 at 5:04 AM Peng Fan wrote: > > > +Quick Start > > +=== > > +- Build the ARM Trusted firmware binary > > +- Get ddr firmware > > I prefer you write &q

[PATCH V2 2/3] imx: imx8mn_evk: add board_mmc_get_env_dev

2020-01-07 Thread Peng Fan
Add board_mmc_get_env_dev, otherwise, Loading Environment from MMC... MMC Device 0 not found *** Warning - No MMC card found, using default environment Signed-off-by: Peng Fan --- V2: None board/freescale/imx8mn_evk/imx8mn_evk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board

[PATCH V2 3/3] imx: imx8mn: enable CONFIG_CMD_ERASEENV

2020-01-07 Thread Peng Fan
enable CONFIG_CMD_ERASEENV to make it easy to erase env. Use savedefconfig to generate new defconfig. Signed-off-by: Peng Fan --- V2: None configs/imx8mn_ddr4_evk_defconfig | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configs/imx8mn_ddr4_evk_defconfig b

[PATCH V2 1/3] imx8mn: evk: add README

2020-01-07 Thread Peng Fan
Add a README for users to build a workable image. Signed-off-by: Peng Fan --- V2: Update README follow Fabio's comments board/freescale/imx8mn_evk/README | 37 + 1 file changed, 37 insertions(+) create mode 100644 board/freescale/imx8mn_evk/README

RE: [PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Pass the "broken-cd" property

2020-01-07 Thread Peng Fan
Hi Fabio, > Subject: [PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Pass the "broken-cd" > property > > imx6ul-14x14-evk does not have a GPIO dedicated for reading the card detect > pin on the eSDHC2 port. In such cases the "broken-cd" property must be > passed, otherwise the card cannot be detected. >

RE: [PATCH 0/8] Add Support for MMC/SD in J721e

2020-01-07 Thread Peng Fan
> Subject: Re: [PATCH 0/8] Add Support for MMC/SD in J721e > > Hi, > > On 19/11/19 1:49 pm, Faiz Abbas wrote: > > The following patches add support for MMC/SD in J721e. Currently, SD > > card is capped at 25 MBps and eMMC is capped at 50 MBps. Support for > > higher speeds and eMMC boot support

RE: [PATCHv3 2/3] configs: meson64: enable GIC support for G12A/G12B

2020-01-07 Thread Peng Fan
> Subject: Re: [PATCHv3 2/3] configs: meson64: enable GIC support for > G12A/G12B > > On 26/12/2019 12:33, Anand Moon wrote: > > Enable GIC support for G12A/G12B platform. Just wonder what is GIC support in U-Boot? Thanks, Peng. > > > > Signed-off-by: Anand Moon > > Reviewed-by: Neil Armstrong

[PATCH] imx: imx8qxp_mek: update README

2020-01-07 Thread Peng Fan
Update README to use 4.19.35_1.1.0 released firmware images. Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/README | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/board/freescale/imx8qxp_mek/README b/board/freescale/imx8qxp_mek/README

RE: [PATCH V2 1/3] imx8mn: evk: add README

2020-01-07 Thread Peng Fan
> Subject: Re: [PATCH V2 1/3] imx8mn: evk: add README > > Hi Peng, > > On Tue, Jan 7, 2020 at 10:10 PM Peng Fan wrote: > > > > Add a README for users to build a workable image. > > > > Signed-off-by: Peng Fan > > --- > > > > V2: &g

[NXP-IMX] please pull nxp-imx-1-8-2020

2020-01-07 Thread Peng Fan
://github.com/MrVan/u-boot.git nxp-imx-1-8-2020 for you to fetch changes up to 4cf193430da90b46d698325243f5d34ed16e12c0: imx: imx8mn: enable CONFIG_CMD_ERASEENV (2020-01-08 15:42:05 +0800) Peng Fan (24): imx: get cpu id/type of i.MX8MP

RE: [NXP-IMX] please pull nxp-imx-1-8-2020

2020-01-08 Thread Peng Fan
Hi Stefano, > Subject: Re: [NXP-IMX] please pull nxp-imx-1-8-2020 > > Hi Peng, Fabio, > > On 08/01/20 08:26, Peng Fan wrote: > > Hi Stefano, > > > > Please pull NXP i.MX nxp-imx-1-8-2020 based on imx/master > > > >

RE: [PATCH] imx: imx8qxp_mek: update README

2020-01-08 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8qxp_mek: update README > > Hi Peng > > On Tue, Jan 7, 2020 at 10:33 PM Peng Fan wrote: > > > > Update README to use 4.19.35_1.1.0 released firmware images. > > I have tried the same here and I still get a hang with Ethernet

RE: [PATCH] imx: imx8qxp_mek: update README

2020-01-08 Thread Peng Fan
> Subject: RE: [PATCH] imx: imx8qxp_mek: update README > > > Subject: Re: [PATCH] imx: imx8qxp_mek: update README > > > > Hi Peng > > > > On Tue, Jan 7, 2020 at 10:33 PM Peng Fan wrote: > > > > > > Update README to use 4.19.35_1.1.0 releas

RE: [PATCH] imx: imx8qxp_mek: update README

2020-01-08 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8qxp_mek: update README > > Hi Peng, > > On Wed, Jan 8, 2020 at 10:33 PM Peng Fan wrote: > > > The ipg clk patch needs to be reverted for now. Anyway the log as below: > > Which commit are you referring to? Can you send a rever

RE: [PATCH] imx: imx8qxp_mek: update README

2020-01-08 Thread Peng Fan
> Subject: Re: [PATCH] imx: imx8qxp_mek: update README > > Hi Peng, > > On Wed, Jan 8, 2020 at 10:44 PM Peng Fan wrote: > > > U-Boot 2020.01-00243-g21aede21b0 (Jan 09 2020 - 10:01:31 +0800) > > > > CPU: NXP i.MX8QXP RevB A35 at 1200 MHz at 20C > > &

RE: [PATCH 1/2] clk: imx8qxp: extend to support getting I2C IPG clock

2020-01-09 Thread Peng Fan
Gustschin > Cc: Lukasz Majewski Reviewed-by: Peng Fan > --- > drivers/clk/imx/clk-imx8qxp.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c > index 1fca36a..0db4539 100644 > --- a/

RE: imx8qxp mek: Booting mainline kernel with mainline U-Boot

2020-01-13 Thread Peng Fan
> Subject: imx8qxp mek: Booting mainline kernel with mainline U-Boot > > Hi Peng, > > Have you managed to boot a mainline kernel with mainline U-Boot on a > imx8qxp mek? I have not try that. Aisheng has some Linux patches pending which are restructuring the Linux side SCU 8QXP/QM code, so I not

RE: [RFC PATCH] imx: imx8mm-evk/imx8mn-evk: enable sysreset driver for SPL

2020-01-15 Thread Peng Fan
> Subject: [RFC PATCH] imx: imx8mm-evk/imx8mn-evk: enable sysreset driver > for SPL > NAK, this will not work on i.MX8MM/N. Currently sysreset psci is enabled, however psci will not work for SPL, because SPL boots before BL31. Regards, Peng. > Hi, > > I have only tested compiling, but if th

<    3   4   5   6   7   8   9   10   11   12   >