[Pull u-boot-mmc] Please pull mmc-2020-6-15

2020-06-15 Thread Peng Fan
Hi Tom, Please pull u-boot-mmc mmc-2020-6-15 - fsl_esdhc sdr104 and hs200 fix and error path fix fsl_esdhc workaround 3.3v io issue ca_dw_mmc cleanup asic emmc DT update. - CI: https://travis

RE: [PATCH v2] mmc: retry CMD1 in mmc_send_op_cond() until the eMMC is ready

2020-06-15 Thread Peng Fan
d) */ > if (mmc->ocr & OCR_BUSY) > break; > + > + if (get_timer(start) > timeout) > + return -ETIMEDOUT; > + udelay(100); The Linux code use 10ms delay, but it should be fine here. Reviewed-by: Peng Fan > } > mmc->op_cond_pending = 1; > return 0; > -- > 2.17.1

RE: [PATCH 1/4] Drop global data sdhc_adapter for powerpc

2020-06-17 Thread Peng Fan
> Subject: [PATCH 1/4] Drop global data sdhc_adapter for powerpc > > The sdhc_adapter of global data has not been used, and we do not have to > use it as global data even we may need it in the future. > > Signed-off-by: Yangbo Lu Reviewed-by: Peng Fan Regards, Peng. >

RE: [PATCH v8 1/2] mmc: ca_dw_mmc: Misc cleanup of driver

2020-06-17 Thread Peng Fan
It has been applied, could you check tom's master tree? > -Original Message- > From: Alex Nemirovsky [mailto:alex.nemirov...@cortina-access.com] > Sent: 2020年6月18日 4:25 > To: U-Boot-Denx > Cc: 李冠德 ; Peng Fan > ; Jaehoon Chung ; Tom Rini > > Subject: Re:

RE: Usb on imx8mm

2020-06-21 Thread Peng Fan
It is not supported for now. Regards, Peng. Subject: Usb on imx8mm Hello, I try to use the usb on u imx8mm but the usb controller does not seem recognized: u-boot => usb start starting USB ... Do you have an idea ? Best regards Joris Offouga

RE: [PATCH v4] mmc: sdhci: Fix HISPD bit handling

2020-06-21 Thread Peng Fan
; > This eventually fixed the mmc write issue observed in > rk3399 sdhci controller. > > Bug log for refernece, > => gpt write mmc 0 $partitions > Writing GPT: mmc write failed > ** Can't write to device 0 ** > ** Can't write to device 0 ** > error! > >

RE: [PATCH] ARM: imx: soc: Add reset for non-DM case

2020-06-23 Thread Peng Fan
oard files. This one is for iMX7, so implement default > > reset_cpu() there to prevent it from showing up in board files. > > > > Signed-off-by: Marek Vasut > > Cc: Fabio Estevam > > Cc: NXP i.MX U-Boot Team > > Cc: Peng Fan > > Cc: Stefano Babic >

RE: [PATCH v4] mmc: sdhci: Fix HISPD bit handling

2020-06-23 Thread Peng Fan
All: > Subject: Re: [PATCH v4] mmc: sdhci: Fix HISPD bit handling > > On 6/22/20 6:26 PM, Jagan Teki wrote: > > On Mon, Jun 22, 2020 at 2:54 PM Jaehoon Chung > wrote: > >> > >> Hi Peng, > >> > >> On 6/22/20 10:49 AM, Peng Fan wrote: >

RE: [PATCH] cmd: mmc: Add mmc reg read command for reading card registers

2020-06-23 Thread Peng Fan
Hi Marek, > Subject: [PATCH] cmd: mmc: Add mmc reg read command for reading card > registers This patch breaks ci build. +u-boot.imx exceeds file size limit: + limit: 0x5fc00 bytes + actual: 0x60c00 bytes + excess: 0x1000 bytes +make[1]: *** [Makefile:1204: u-boot.imx] Error 1 +make[1]: ***

RE: [PATCH] cmd: mmc: Add mmc reg read command for reading card registers

2020-06-24 Thread Peng Fan
> Subject: Re: [PATCH] cmd: mmc: Add mmc reg read command for reading card > registers > > On 6/24/20 7:40 AM, Peng Fan wrote: > > Hi Marek, > > Hi, > > >> Subject: [PATCH] cmd: mmc: Add mmc reg read command for reading card > >> registers > >

[PULL] please pull u-boot-mmc mmc-2020-6-24

2020-06-24 Thread Peng Fan
Hi Tom, Please pull mmc-2020-6-24 CI: https://travis-ci.org/github/MrVan/u-boot/builds/701528851 Fix fsl_esdhc_imx tunning mask Disalbe CMD CRC for normal tunning for fsl_esdhc_imx Retry CM1 until emmc ready Fix sdhci HISPD handling Cache-aligned extcsd readin

[PATCH V2 2/2] clk: imx8mm: Add qspi clock

2020-06-27 Thread Peng Fan
Add qspi clock Signed-off-by: Peng Fan --- V2: Split a single patch from https://patchwork.ozlabs.org/project/uboot/patch/20200503125956.6244-1-peng@nxp.com/ drivers/clk/imx/clk-imx8mm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers

[PATCH V2 1/2] clk: imx8mm: fix clk set parent

2020-06-27 Thread Peng Fan
Fix clk set parent, so we could still have correct clocks after parent changing. Signed-off-by: Peng Fan --- V2: Split fix into a single patch of https://patchwork.ozlabs.org/project/uboot/patch/20200503125956.6244-1-peng@nxp.com/ drivers/clk/imx/clk-imx8mm.c | 5 - 1 file changed

[PATCH] usb: gadget: Fix controller index in UMS

2020-06-28 Thread Peng Fan
From: Ye Li The usb mass storage (f_mass_storage.c) uses fixed usb index 0, this causes problem while CDNS3 USB controller index is 1. Modify the API of fsg to pass the controller index. Reviewed-by: Jun Li Signed-off-by: Ye Li Signed-off-by: Peng Fan --- cmd/usb_mass_storage.c

[PATCH] usb: ci_udc: Add function to remove usb device

2020-06-28 Thread Peng Fan
non-DM driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/ci_udc.c | 7 +++ drivers/usb/host/usb-uclass.c | 18 ++ include/usb.h | 9 + 3 files changed, 34 insertions(+) diff --git a/drivers/usb/gadget/ci_udc.c b/dri

[PATCH 1/7] usb: ehci-mx6: Add powerup_fixup implementation

2020-06-28 Thread Peng Fan
accurate and aligining with controller's behaiver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c

[PATCH 2/7] usb: ehci-mx6: Add i.MX8 OTG controller support

2020-06-28 Thread Peng Fan
Signed-off-by: Peng Fan --- drivers/usb/host/Kconfig| 4 +- drivers/usb/host/ehci-mx6.c | 97 ++--- 2 files changed, 85 insertions(+), 16 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 1c374a7bd8..f48547caa0 100644

[PATCH 3/7] usb: ehci-mx6: Turn on the power domain of USB PHY

2020-06-28 Thread Peng Fan
PHY. This is only for DM driver. For non-DM part, users still need to power on the USB PHY in boards/SoC codes. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/usb

[PATCH 7/7] usb: ehci-mx6: configure usb out of suspend state

2020-06-28 Thread Peng Fan
pll, after clearing PHCD to out of suspended state, the phy pll could be locked and fastboot works. Suggested-by: Li Jun Reviewed-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers

[PATCH 5/7] usb: ehci-mx6: fix controller index for imx8m and imx8

2020-06-28 Thread Peng Fan
it to use static check. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 046c6ab283..8090cb27fe 100644 --- a/drivers/usb/hos

[PATCH 6/7] usb: ehci-mx6: Enable iMX EHCI driver for iMX8M Nano

2020-06-28 Thread Peng Fan
From: Ye Li Add the IMX8MN to the EHCI-MX7 kconfig dependency. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/Kconfig| 2 +- drivers/usb/host/ehci-mx6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host

[PATCH 4/7] usb: ehci-mx6: Update driver to support i.MX8MM

2020-06-28 Thread Peng Fan
. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/Kconfig| 2 +- drivers/usb/host/ehci-mx6.c | 31 ++- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index f48547caa0

[PATCH 2/7] f_sdp: Add high speed endpoint descriptor

2020-06-28 Thread Peng Fan
From: Ye Li Add HS endpoint descriptor for SDP. So that we can use high speed endpoint, and the SDP device can send packet with 512 byte size. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 30 -- 1 file changed, 28 insertions(+), 2

[PATCH 3/7] f_sdp: Fix wrong usb request size

2020-06-28 Thread Peng Fan
From: Ye Li Because the buffer length of sdp usb request is 65, we have to allocate 65 bytes not 64 bytes. Otherwise there is potential buffer overflow. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/7] sdp: call board_usb_init at spl_sdp_load_image

2020-06-28 Thread Peng Fan
From: Frank Li Need initialize UDC before run sdp download Signed-off-by: Frank Li Signed-off-by: Peng Fan --- common/spl/spl_sdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index e7f7b68411..ae9c09883a 100644 --- a/common/spl/spl_sdp.c

[PATCH 4/7] f_sdp: Support searching and loading FIT or container image

2020-06-28 Thread Peng Fan
data before second boot loader will be sent out. So we have to search the FIT header or container header in the buffer that SDP received. Also change to more common method to exit f_sdp handler not depending on SPL_FIT_FOUND flag because container loader won't set this. Signed-off-by

[PATCH 5/7] spl: add g_dnl_get_board_bcd_device_number

2020-06-28 Thread Peng Fan
Add g_dnl_get_board_bcd_device_number, the new BCD value is used by uuu to distinguish if the SPL supports the SDPV. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 1a231c67f5

[PATCH 7/7] f_sdp: Change bInterval of interrupt endpoint to 3

2020-06-28 Thread Peng Fan
the transmission speed. Reviewed-by: Ye Li Signed-off-by: Sherry Sun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index 4e33be6ada..5bde08f707 100644 --- a

[PATCH 6/7] f_sdp: Add EP1_OUT as default data receive pipe in sdp

2020-06-28 Thread Peng Fan
twice as fast as using ep0 while receiving data in sdp. Signed-off-by: Sherry Sun Reviewed-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 123 +++-- 1 file changed, 107 insertions(+), 16 deletions(-) diff --git a/drivers/usb/gadget

RE: [PATCH 2/7] usb: ehci-mx6: Add i.MX8 OTG controller support

2020-06-29 Thread Peng Fan
> Subject: Re: [PATCH 2/7] usb: ehci-mx6: Add i.MX8 OTG controller support > > On 6/29/20 4:13 AM, Peng Fan wrote: > > Hi, > > > The i.MX8 has two USB controllers: USBOH and USB3. The USBOH reuses > > previous i.MX6/7. It has same PHY IP as i.MX7ULP but NC regist

RE: QSPI mode on imx6ull evk

2020-07-22 Thread Peng Fan
> Subject: QSPI mode on imx6ull evk > > Hi > > I currently try to get the QSPI flash on the imx6ull evk working in quad mode. > This attempt fails as when spi_child_post_bind is called there seems to be no > spi child in the udevice (spi@21e) which then leads to > spi_slave_ofdata_to_platdata

RE: [PATCH v2 0/6] mx6cuboxi: enable OF_PLATDATA with MMC support

2020-07-22 Thread Peng Fan
Hi Walter, > Subject: [PATCH v2 0/6] mx6cuboxi: enable OF_PLATDATA with MMC support > > The SPL in iMX6 boards is restricted to 68 KB as this is the free available > space > in OCRAM for most revisions. In this context, adding OF_CONTROL and DM > increases the SPL size which could make it diffic

RE: [PATCH 2/2] configs: migrate CONFIG_SPL_LOAD_FIT_ADDRESS to defconfigs

2020-07-26 Thread Peng Fan
> > Thanks in advance. > >On Mon, Jul 06, 2020 at 03:35:01PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > Done with: > > ./tools/moveconfig.py -S SPL_LOAD_FIT_ADDRESS ./tools/moveconfig.py -S > > SPL_LOAD_FIT_ADDRESS -H >

RE: [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank

2020-07-26 Thread Peng Fan
_default(dev, "xlnx,mio-bank", -1); > + priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", 0); > > return 0; > } > -- Acked-by: Peng Fan > 2.27.0

RE: [PATCH] xilinx: Fix xlnx,mio_bank property

2020-07-26 Thread Peng Fan
> Subject: [PATCH] xilinx: Fix xlnx,mio_bank property > > s/xlnx,mio_bank/xlnx,mio-bank/g > > DT binding is describing mio-bank not mio_bank that's why fix all DTSes and > also driver itself. > > Signed-off-by: Michal Simek Acked-by: Peng Fan > --- >

[PATCH] imx8m: enlarge CONFIG_SYS_BOOTM_LEN

2020-07-28 Thread peng . fan
From: Peng Fan Enlarge CONFIG_SYS_BOOTM_LEN when booting FIT image with AArch32 mode Linux kernel. Signed-off-by: Peng Fan --- include/configs/imx8mn_evk.h | 2 ++ include/configs/imx8mp_evk.h | 2 ++ include/configs/imx8mq_evk.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/include

RE: [PATCH] mmc: am654_sdhci: Use MMC_MODES_END value instead of hardcoded value

2020-07-28 Thread Peng Fan
ers/mmc/am654_sdhci.c > @@ -75,7 +75,7 @@ struct am654_sdhci_plat { > struct mmc mmc; > struct regmap *base; > bool non_removable; > - u32 otap_del_sel[11]; > + u32 otap_del_sel[MMC_MODES_END]; > u32 trm_icp; > u32 drv_strength; > u32 strb_sel; Reviewed-by: Peng Fan > -- > 2.17.1

RE: [PATCH] Revert "mmc: disable UHS modes if Vcc cannot be switched on and off"

2020-08-09 Thread Peng Fan
Faiz, Jean > Subject: [PATCH] Revert "mmc: disable UHS modes if Vcc cannot be switched > on and off" Got time to take a look? Thanks, Peng. > > This reverts commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355. > > That commit is causing reboot loops on Nokia N900 and basically make > U-Boot on No

pytest to test reset

2020-08-12 Thread Peng Fan
Hi All, Any ideas how to test uboot reset cmd many times with pytest? Thanks, Peng.

RE: [PATCH] arm: mx6: Make all i.MX6 SoCs user-selectable

2020-08-12 Thread Peng Fan
Hi Tom, > Subject: [PATCH] arm: mx6: Make all i.MX6 SoCs user-selectable > [] > + > config MX6UL_LITESOM > bool > select DM > select DM_THERMAL > - select MX6UL Would keep it here to simplify defconfig? Regards, Peng. > select SUPPORT_SPL > imply CMD_DM

RE: [PATCH] imx: distinguish POR from POR+WDOG reset cause for first wd

2020-01-27 Thread Peng Fan
> Subject: RE: [PATCH] imx: distinguish POR from POR+WDOG reset cause for > first wd > > Hi Fabio, > > > > > Hi Flavio, > > > > On Wed, Jan 22, 2020 at 11:18 AM Flavio Suligoi wrote: > > > > > > In some application the possibility to check if the reset is caused > > > by a watchdog is essentia

RE: [PATCH] mmc: remove unneeded forward declarations

2020-01-27 Thread Peng Fan
> Subject: [PATCH] mmc: remove unneeded forward declarations > > These functions are defined before the callers. > > Signed-off-by: Masahiro Yamada Reviewed-by: Peng Fan > --- > > drivers/mmc/mmc.c | 4 > 1 file changed, 4 deletions(-) > > diff --git

RE: [PATCH 0/3] Support SDMA mode on RPI4 target - 32bit

2020-01-27 Thread Peng Fan
mode on RPI4 target(32bit). > - I didn't test on RPI4 64bit. > > Read/write time about 8MB file > Before > - Read : 1.472 seconds > - Write : 4.690 seconds > After > - Read : 0.359 seconds > - Write : 0.574 seconds For patch 2/3, I prefer to use printf, not debug

RE: [PATCH] mx7ulp_com: Remove unneeded SoC definitions

2020-01-27 Thread Peng Fan
> Subject: [PATCH] mx7ulp_com: Remove unneeded SoC definitions > > Since commit 9c27310ac23c ("mx7ulp: Move SoC base address to a common > file") we no longer need to have these SoC definitions in the board file, so > remove them. > > Signed-off-by: Fab

RE: [PATCH] mx6sxsabresd: Keep only one target

2020-01-27 Thread Peng Fan
> Subject: [PATCH] mx6sxsabresd: Keep only one target > > Currently there are two targets for the i.MX6SX SabreSD board: > mx6sxsabresd_defconfig and mx6sxsabresd_spl_defconfig. > > This brings additional maintainance effort without a clear advantage. > > Keep only the mx6sxsabresd_defconfig one

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

2020-01-27 Thread Peng Fan
> > Hi Peng, > > > > > > On Mon, Jan 13, 2020 at 9:46 PM Peng Fan wrote: > > > > > > > I have not try that. Aisheng has some Linux patches pending which > > > > are restructuring the Linux side SCU 8QXP/QM code, so I not put > > >

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

2020-01-27 Thread Peng Fan
> Subject: Re: imx8qxp mek: Booting mainline kernel with mainline U-Boot > > > > On 23/01/20 7:23 PM, Oliver Graute wrote: > > On 17/01/20, Lokesh Vutla wrote: > > Just wondering if anyone else managed to boot mainline U-Boot with > > mainline kernel on i.MX8QXP. > I can test it for

RE: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-01-27 Thread Peng Fan
> Subject: Re: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk() > > Hi Anatolij, > > On Thu, Jan 23, 2020 at 11:43 AM Anatolij Gustschin wrote: > > > > On Thu, 23 Jan 2020 10:20:14 -0300 > > Pedro Jardim jardim.c.pe...@gmail.com wrote: > > > > > Function init_usb_clk() is not used any

RE: [PATCH v2 02/10] mmc: Add init() API

2020-02-01 Thread Peng Fan
> Subject: Re: [PATCH v2 02/10] mmc: Add init() API > > Hi Simon, > > On 29/01/20 1:33 pm, Simon Goldschmidt wrote: > > On Fri, Jan 24, 2020 at 12:52 PM Faiz Abbas wrote: > >> > >> Add an init() API for platform specific init() operations. > > > > Could you describe why this cannot be done in th

RE: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-02-03 Thread Peng Fan
> Subject: Re: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk() > > > > On 27/01/20 6:46 PM, Peng Fan wrote: > >> Subject: Re: [PATCH v2 1/4] clock_imx8mq: Delete not used > >> init_usb_clk() > >> > >> Hi Anatolij, > >&

RE: [PATCH v2 02/10] mmc: Add init() API

2020-02-03 Thread Peng Fan
> Subject: Re: [PATCH v2 02/10] mmc: Add init() API > > Hi Peng, > > On 01/02/20 6:43 pm, Peng Fan wrote: > >> Subject: Re: [PATCH v2 02/10] mmc: Add init() API > >> > >> Hi Simon, > >> > >> On 29/01/20 1:33 pm, Simon Goldschmidt wro

RE: [PATCH v2 2/2] mx7ulp: Only enable LDO if it is not already enabled

2020-02-03 Thread Peng Fan
-by: Jorge Ramirez-Ortiz > Signed-off-by: Fabio Estevam > Tested-by: Jorge Ramirez-Ortiz Reviewed-by: Peng Fan Just have a question, LDO mode enabled by ROM, this is configured with fuse? Is there any special configuration need to be done in Linux? I not touch this part before (: Thanks, P

RE: [PATCH v2 1/2] mx7ulp: Remove duplicated definitions

2020-02-03 Thread Peng Fan
> Subject: [PATCH v2 1/2] mx7ulp: Remove duplicated definitions > > These PMC0 definitions are already defined in the beginning of the file, so > remove the duplication. > > Reported-by: Stefano Babic > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan > --- >

RE: [PATCH] mmc: fsl_esdhc: actually enable cache snooping on mpc830x

2020-02-04 Thread Peng Fan
> Subject: [PATCH] mmc: fsl_esdhc: actually enable cache snooping on mpc830x + Y.b Are you ok with this patch? Thanks, Peng. > > The reference manuals for MPC8308 and MPC8309 both say that the esdhcctl > aka DMA Control Register "is implemented as SDHCCR" in the System > configuration register

RE: [PATCH v2] mx6sxsabresd: Keep only one target

2020-02-04 Thread Peng Fan
e mx6sxsabresd_defconfig one and remove > mx6sxsabresd_spl_defconfig to keep it simpler. > > Also remove the SPL related code from the board file. > > Signed-off-by: Fabio Estevam Acked-by: Peng Fan > --- > Changes since v1: > - Also remove the SPL related code. (Peng

RE: [PATCH 2/2] mx6ul_evk: Remove FEC related board code

2020-02-04 Thread Peng Fan
e. > > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan > --- > .../mx6ul_14x14_evk/mx6ul_14x14_evk.c | 50 --- > 1 file changed, 50 deletions(-) > > diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c > b/board/freescale/mx6ul_1

RE: [PATCH 1/2] mx6ul_evk: Move CONFIG_FEC_MXC to defconfig

2020-02-04 Thread Peng Fan
> Subject: [PATCH 1/2] mx6ul_evk: Move CONFIG_FEC_MXC to defconfig > > CONFIG_FEC_MXC is supported in Kconfig, so it is preferred to move it to > defconfig file. > > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan > --- > configs/mx6ul_14x14_evk_defconfig

RE: [PATCH] mx6ullevk: Enable Ethernet support

2020-02-04 Thread Peng Fan
> Subject: [PATCH] mx6ullevk: Enable Ethernet support > > Add Ethernet support using DM_ETH. > > Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan > --- > board/freescale/mx6ullevk/mx6ullevk.c | 47 > +++ > configs/mx6ull_14x14_evk_defconf

RE: [PATCH v2 04/10] mmc: sdhci: Expose sdhci_init() as non-static

2020-02-04 Thread Peng Fan
> Subject: Re: [PATCH v2 04/10] mmc: sdhci: Expose sdhci_init() as non-static > > Hi, > > On 31/01/20 3:55 am, Simon Goldschmidt wrote: > > Am 30.01.2020 um 23:21 schrieb Jaehoon Chung: > >> Hi Simon, > >> > >> On 1/29/20 11:16 PM, Simon Goldschmidt wrote: > >>> On Wed, Jan 29, 2020 at 12:00 AM J

RE: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-02-05 Thread Peng Fan
> Subject: Re: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk() > > On Mon, Feb 3, 2020 at 5:48 AM Jon Nettleton wrote: > > > I have a working port of the Linux usb phy driver for the iMX8MQ > > already. I think the only piece that is missing to use dwc3-generic > > for iMX8MQ is the

[GIT PULL] please pull mmc-2020-9-15

2020-09-15 Thread Peng Fan
Hi Tom, Please pull mmc-2020-9-15 CI: https://travis-ci.org/github/MrVan/u-boot/builds/727229672 --- use mmc_of_parse for msm_sdhci Add missing common host caps for xenon_sdhci. --- Thanks, Peng. The following changes sinc

[PATCH 2/5] imx8mq: fix FRAC_PLL_REFCLK_SEL_MASK

2020-09-15 Thread peng . fan
From: Peng Fan Coverity reported dead code, however it is FRAC_PLL_REFCLK_SEL_MASK was wrongly set. Reported-by: Coverity 10045172 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 3/5] imx8mq: fix SSCG_PLL_REFCLK_SEL_x

2020-09-15 Thread peng . fan
From: Peng Fan Fix SSCG_PLL_REFCLK_SEL_x, the offset starts from 0, not 16 Reported-by: Coverity 3448860 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/include

[PATCH 1/5] imx7: ccm: correct target interface num

2020-09-15 Thread peng . fan
From: Peng Fan According to i.MX 7Dual Applications Processor Reference Manual, Rev. 1 The target interface CCM root index ranges [0,124], so the number should be 125. Reported-by: Coverity 18045 Signed-off-by: Peng Fan Reviewed-by: Ye Li --- arch/arm/include/asm/arch-mx7/crm_regs.h | 2

[PATCH 4/5] imx8m: clock_imx8mm: add missed return

2020-09-15 Thread peng . fan
From: Peng Fan Add missed return 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 3610f5b2fc..9dde11cded 100644 --- a/arch/arm/mach-imx

[PATCH 5/5] imx8mp: Remove parts MIMX8ML7 and MIMX8ML5 support

2020-09-15 Thread peng . fan
From: Peng Fan Latest datasheet revE has removed MIMX8ML7D/5D/7C/5C parts, so update u-boot to remove decoding and support for those parts. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 2 -- arch/arm/include/asm/mach-imx/sys_proto.h | 5

[PATCH 00/13] ehci-mx6: update and fix

2020-09-16 Thread peng . fan
From: Peng Fan This patchset is trying to upstream NXP downstream ehci-mx6 update and fix. The driver has not been coverted to full DM, so there are some ifdefs there. To avoid much conflicts when cherry-pick downstream patches, I prefer to convert after this patchset. Peng Fan (4): usb

[PATCH 01/13] usb: ehci-mx6: Add powerup_fixup implementation

2020-09-16 Thread peng . fan
From: Peng Fan When doing port reset, the PR bit of PORTSC1 will be automatically cleared by our IP, but standard EHCI needs explicit clear by software. The EHCI-HCD driver follow the EHCI specification, so after 50ms wait, it clear the PR bit by writting to the PORTSC1 register with value

[PATCH 04/13] usb: ehci-mx6: Turn on the power domain of USB PHY

2020-09-16 Thread peng . fan
PHY. This is only for DM driver. For non-DM part, users still need to power on the USB PHY in boards/SoC codes. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/usb/hos

[PATCH 03/13] usb: ehci-mx6: Add i.MX8 OTG controller support

2020-09-16 Thread peng . fan
From: Peng Fan The i.MX8 has two USB controllers: USBOH and USB3. The USBOH reuses previous i.MX6/7. It has same PHY IP as i.MX7ULP but NC registers are same as i.MX7D. So add its support in ehci-mx6 driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8

[PATCH 05/13] usb: ehci-mx6: Update driver to support i.MX8MM

2020-09-16 Thread peng . fan
. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/Kconfig| 2 +- drivers/usb/host/ehci-mx6.c | 33 +++-- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index f48547caa0

[PATCH 02/13] usb: ehci-mx6: preparing for ARM64 build

2020-09-16 Thread peng . fan
From: Peng Fan Use uintptr_t and ulong to avoid build warning for ARM64 platforms Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index

[PATCH 06/13] usb: ehci-mx6: fix controller index for imx8m and imx8

2020-09-16 Thread peng . fan
it to use static check. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1db27949c6..96dcf7655b 100644 --- a/drivers/usb/hos

[PATCH 08/13] usb: ehci-mx6: configure usb out of suspend state

2020-09-16 Thread peng . fan
From: Peng Fan When moving to support partition reboot or android auto on XEN, linux kernel will runs into runtime suspend state, and the usb will be configured to low power suspend state by Linux. Then we reboot and runs into U-Boot, however the usb already in suspended state and uboot not

[PATCH 09/13] usb: ehci-mx6: Fix USB QTD data buffer error

2020-09-16 Thread peng . fan
ransaction. This would generally be caused by the host controller not being able to access required data buffers in memory within necessary latency requirements. Follow kernel's method to fix the issue by disabling stream mode Signed-off-by: Ye Li Reviewed-by: Peter Chen Signed-o

[PATCH 07/13] usb: ehci-mx6: Enable iMX EHCI driver for iMX8M Nano

2020-09-16 Thread peng . fan
From: Ye Li Add the IMX8MN to the EHCI-MX7 kconfig dependency. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/Kconfig| 2 +- drivers/usb/host/ehci-mx6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host

[PATCH 10/13] ehci-mx6: Add OTG ID detecting by GPIO

2020-09-16 Thread peng . fan
From: Ye Li The i.MX7ulp EVK board uses GPIO to detect ID for USB OTG0, but when using DM USB driver, it is hard coded to use OTG ID pin. Add a board override function that when extcon property is provided, the function can check the GPIO to get ID. Signed-off-by: Ye Li Signed-off-by: Peng Fan

[PATCH 12/13] usb: ehci-mx6: Fix PHY power up issue on iMX8 platforms

2020-09-16 Thread peng . fan
the PHY address from DTB and power up the PHY before ehci_mx6_common_init. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 58 + 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers

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

2020-09-16 Thread peng . fan
From: Ye Li To avoid calling devfdt_get_addr_index in bind, which introduces much overhead, checks the req_seq and only call the devfdt_get_addr_index when the req_seq (usb alias) is not set in DTS Signed-off-by: Ye Li Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- drivers/usb/host/ehci

[PATCH 11/13] usb: ehci-mx6: Fix usb type issue in DM driver

2020-09-16 Thread peng . fan
The USB mode type specified by DTB or by the USB ID pin or by external controller like tcpc or GPIO. 3. If two init_type are not same, return failure. Align with non-DM driver. 4. USB PHY access is moved after power and clock enabled. Signed-off-by: Ye Li Signed

[PATCH 01/16] usb: gadget: Add ep_config call back to usb_gadget_ops

2020-09-16 Thread peng . fan
know the EP information and configure the EP once the set configuration request is received. Signed-off-by: Sherry Sun Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/epautoconf.c | 4 include/linux/usb/gadget.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a

[PATCH 02/16] usb: gadget: don't change ep name for dwc3 while ep autoconfig

2020-09-16 Thread peng . fan
From: Li Jun As the SDP protocol use the predefined ep num for communication, we can't change its name hence reset its ep num while do ep autoconfig, this is only apply for SPL. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/epautoconf.c | 2 ++ 1 file chang

[PATCH 00/16] usb: gadget: update

2020-09-16 Thread peng . fan
From: Peng Fan This patchset is to upstream NXP downstream gadget driver patches for feature update. Jun Li (2): usb: gadget: set correct usb_configuration for os_desc_config usb: gadget: update os_desc_config when add config Li Jun (13): usb: gadget: don't change ep name for dwc3

[PATCH 03/16] usb: gadget: OS String support

2020-09-16 Thread peng . fan
on the qw_sign array and b_vendor_code. Interested gadgets need to set the cdev->use_os_string flag, fill cdev->qw_sign with appropriate values and fill cdev->b_vendor_code with a value of their choice. This patch does not however implement responding to any vendor-specific USB requests.&q

[PATCH 05/16] usb: gadget: OS Feature Descriptors support

2020-09-16 Thread peng . fan
used with such non-USB-compliant hosts it can invoke "usb_add_config" in any order because the designated configuration will be reported to be at index 0 anyway. This patch also adds handling vendor-specific requests addressed at device or interface and

[PATCH 09/16] usb: gadget: update os_desc_config when add config

2020-09-16 Thread peng . fan
From: Jun Li Always use the new added config for os_desc_config to fix cdev-> os_desc_config may miss set in case we restart usb gadget driver. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH 04/16] usb: gadget: move utf8_to_utf16le to header file

2020-09-16 Thread peng . fan
From: Li Jun As other users may use utf8_to_utf16le() to convert the utf8 to utf16 for usb, so move it to head file. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/usbstring.c | 74 + include/linux/utf.h| 75

[PATCH 07/16] usb: gadget: fastboot: add ext properties for WCID

2020-09-16 Thread peng . fan
From: Li Jun Add device interface GUID for Microsoft Extended Properties Feature Descriptor. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_fastboot.c | 34 + 1 file changed, 34 insertions(+) diff --git a/drivers/usb/gadget

[PATCH 12/16] usb: gadget: dnl: set dnl to be super speed

2020-09-16 Thread peng . fan
From: Li Jun Set its max_speed to be super speed. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb

[PATCH 10/16] usb: gadget: add super speed support

2020-09-16 Thread peng . fan
From: Li Jun This patch is to add usb gadget super speed support in common driver, including BOS descriptor and select the super speed descriptor from function driver. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan

[PATCH 11/16] usb: fastboot: add super speed support

2020-09-16 Thread peng . fan
From: Li Jun Add super speed EP config. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_fastboot.c | 47 ++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git

[PATCH 08/16] usb: gadget: set correct usb_configuration for os_desc_config

2020-09-16 Thread peng . fan
ter Chen Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 411cd33be5..071b4b4a6f 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/

[PATCH 06/16] usb: gadget: add WCID support for mfgtool

2020-09-16 Thread peng . fan
From: Li Jun Enable WCID(Microsoft Compatible ID Feature Descriptor) for mfgtool. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget

[PATCH 16/16] usb: gaget: ci: set ep's desc when enable ep

2020-09-16 Thread peng . fan
From: Li Jun As we need standard usb_ep's desc, so set it when enable ep. Reviewed-by: Peter Chen Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/ci_udc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_

[PATCH 14/16] usb: udc: ci: update speed handling

2020-09-16 Thread peng . fan
From: Li Jun Remove the gadget driver speed check, and set its max_speed to be USB_SPEED_HIGH. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/ci_udc.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 13/16] usb: composite: force gadget to be USB2 for HS only function

2020-09-16 Thread peng . fan
USB 2.0 mode. Reviewed-by: Ye Li Reviewed-by: Peter Chen Tested-by: faqiang.zhu Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/composite.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c

[PATCH 15/16] usb: gadget: fastboot: use correct max packet size

2020-09-16 Thread peng . fan
From: Li Jun Change to use wMaxPacketSize of current speed EP desc for request length wrap up. Reviewed-by: Peter Chen Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget

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

2020-09-16 Thread Peng Fan
Hi Marek, > Subject: Re: [PATCH 13/13] usb: ehci-mx6: Improve the bind function > > On 9/16/20 2:57 PM, peng@nxp.com wrote: > [...] > > +++ b/drivers/usb/host/ehci-mx6.c > > @@ -735,13 +735,16 @@ static int ehci_usb_bind(struct udevice *dev) > > * the driver is fully converted to DT prob

RE: What is the status of IMX8MM USB support?

2020-09-24 Thread Peng Fan
Hi Tim, > Subject: What is the status of IMX8MM USB support? > > Greetings, > > I have not seen any activity to enable USB support for the IMX8MM. Is > anyone working on this? Last I knew the holdup had to do with a > power-domain driver. For U-Boot, although I am trying to clean up NXP usb pat

RE: IMX8MM 4GiB boundary issue

2020-09-26 Thread Peng Fan
> Subject: Re: IMX8MM 4GiB boundary issue > > On Fri, Sep 25, 2020 at 8:05 AM Marek Vasut wrote: > > > > On 9/25/20 4:52 PM, Tim Harvey wrote: > > > Greetings, > > > > > > I'm working with an IMX8MM board that has 4GiB of DRAM. I've found > > > that in this configuration the MMC driver and FEC ne

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