Re: [PATCH v2 04/10] watchdog: wdt-uclass.c: refactor initr_watchdog()

2021-06-28 Thread Stefan Roese
On 28.05.21 00:00, Rasmus Villemoes wrote: In preparation for handling all DM watchdogs in watchdog_reset(), pull out the code which handles starting (or not) the gd->watchdog_dev device. Include the device name in various printfs. Signed-off-by: Rasmus Villemoes Reviewed-by: Stefan Roese

Re: [PATCH v2 03/10] watchdog: wdt-uclass.c: neaten UCLASS_DRIVER definition

2021-06-28 Thread Stefan Roese
On 28.05.21 00:00, Rasmus Villemoes wrote: The addition of .pre_probe and .per_device_auto made this look bad. Fix it. Signed-off-by: Rasmus Villemoes Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/watchdog/wdt-uclass.c | 8 1 file changed, 4 insertions(+), 4

Re: [PATCH v2 02/10] watchdog: wdt-uclass.c: introduce struct wdt_priv

2021-06-28 Thread Stefan Roese
On 28.05.21 00:00, Rasmus Villemoes wrote: As preparation for having the wdt-uclass provided watchdog_reset() function handle all DM watchdog devices, and not just the first such, introduce a uclass-owned struct to hold the reset_period and next_reset, so these become per-device instead of being

Re: [PATCH v2 01/10] watchdog: wdt-uclass.c: use wdt_start() in wdt_expire_now()

2021-06-28 Thread Stefan Roese
On 28.05.21 00:00, Rasmus Villemoes wrote: wdt_start() does the "no ->start? return -ENOSYS" check, don't open-code that in wdt_expire_now(). Also, wdt_start() maintains some global (and later some per-device) state, which would get out of sync with this direct method call - not that it matters

Re: [PATCH 0/4] Zyxel NSA310S NAS : convert to Driver Model

2021-06-28 Thread Stefan Roese
Hi Tony, On 29.06.21 05:43, Tony (bodhi) wrote: - Add device tree kirkwood-nsa310s.dts - Add DM_USB, DM_ETH, DM_SATA and associated configs to nsa310s_defconfig - Move some miscellaneous configs from board file to nsa310s_defconfig - Replace old device name "egiga0" with Ethernet PHY name

Re: [PATCH 0/2] Add support for 10G/25G to AXI emac driver

2021-06-28 Thread Ramon Fried
On Tue, Jun 29, 2021 at 7:30 AM Ashok Reddy Soma wrote: > > > > > -Original Message- > > From: Ramon Fried > > Sent: Monday, June 28, 2021 10:43 PM > > To: Michal Simek ; Simon Glass > > Cc: Ashok Reddy Soma ; U-Boot Mailing List > b...@lists.denx.de>; Joe Hershberger ; Michal > >

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Ramon Fried
On Mon, Jun 28, 2021 at 10:16 PM Stephan Gerhold wrote: > > On Mon, Jun 28, 2021 at 10:04:29PM +0300, Ramon Fried wrote: > > On Mon, Jun 28, 2021 at 9:59 PM Stephan Gerhold wrote: > > > > > > On Mon, Jun 28, 2021 at 08:15:28PM +0300, Ramon Fried wrote: > > > > On Mon, Jun 28, 2021 at 11:40 AM

[PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-28 Thread Ilias Apalodimas
From: apalos Although U-Boot supports capsule update on-disk, it's lack of support for SetVariable at runtime prevents applications like fwupd from using it. In order to perform the capsule update on-disk the spec says that the OS must copy the capsule to the \EFI\UpdateCapsule directory and

RE: [PATCH 0/2] Add support for 10G/25G to AXI emac driver

2021-06-28 Thread Ashok Reddy Soma
> -Original Message- > From: Ramon Fried > Sent: Monday, June 28, 2021 10:43 PM > To: Michal Simek ; Simon Glass > Cc: Ashok Reddy Soma ; U-Boot Mailing List b...@lists.denx.de>; Joe Hershberger ; Michal > Simek ; git ; > somaashokre...@gmail.com > Subject: Re: [PATCH 0/2] Add support

[PATCH 0/4] Zyxel NSA310S NAS : convert to Driver Model

2021-06-28 Thread Tony (bodhi)
- Add device tree kirkwood-nsa310s.dts - Add DM_USB, DM_ETH, DM_SATA and associated configs to nsa310s_defconfig - Move some miscellaneous configs from board file to nsa310s_defconfig - Replace old device name "egiga0" with Ethernet PHY name from device tree kirkwood.dtsi - Removed IDE, and

Re: [PATCH v2 2/3] mmc: rockchip_sdhci: Add support for RK3568

2021-06-28 Thread Jaehoon Chung
Hi, On 6/29/21 11:07 AM, 赵仪峰 wrote: > > > The variable types are different, IS_ERR_VALUE(host->max_clk) will not got > the right results. > > unsigned int max_clk; > > #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) Thanks for kindly explanation. I didn't check its type.

Re: Re: [PATCH v2 2/3] mmc: rockchip_sdhci: Add support for RK3568

2021-06-28 Thread 赵仪峰
Hi Jeahoon, >On 6/28/21 6:19 PM, Yifeng Zhao wrote: >> This patch adds support for the RK3568 platform to this driver. >> >> Signed-off-by: Yifeng Zhao >> --- >> >> Changes in v2: >> - Used sdhci_set_clock api to set clock. >> - Used read_poll_timeout api to check dll

[PATCH V2 45/46] arm: dts: add i.MX8ULP dtsi

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP dtsi Signed-off-by: Peng Fan --- arch/arm/dts/imx8ulp-pinfunc.h| 978 ++ arch/arm/dts/imx8ulp.dtsi | 728 include/dt-bindings/clock/imx8ulp-clock.h | 247 ++ 3 files changed, 1953 insertions(+)

Re: [PATCH 03/12] Revert "usb: gadget: fastboot: use correct max packet size"

2021-06-28 Thread Peng Fan (OSS)
Maxime On 2021/6/25 21:05, Maxime Ripard wrote: This reverts commit 27c9141b1114fd5721437abbb1c694e45e765f19. --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index

[PATCH V2 46/46] arm: imx: add i.MX8ULP EVK support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP EVK basic support, support SD/I2C/ENET/LPUART Log as below: I would keep some debug info for now, and after we move to be stable and production launch, we could drop that. U-Boot SPL 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800) Normal Boot

[PATCH V2 43/46] imx8ulp: add upower api support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add upower api support, this is modified from upower firmware exported package. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/upower.h| 15 + arch/arm/mach-imx/imx8ulp/Makefile| 4 + arch/arm/mach-imx/imx8ulp/upower/Makefile | 6 +

[PATCH V2 44/46] ddr: Add DDR driver for iMX8ULP

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Add iMX8ULP DDR initialization driver which loads the DDR timing parameters and executes the training procedure. When enabling IMX8ULP_DRAM_PHY_PLL_BYPASS, using PHY PLL bypass mode to do DDR init Signed-off-by: Ye Li --- drivers/Makefile | 1 +

[PATCH V2 41/46] mx7ulp: wdog: Wait for WDOG unlock and reconfiguration to complete

2021-06-28 Thread Peng Fan (OSS)
From: Breno Lima According to i.MX7ULP Reference Manual we should wait for WDOG unlock and reconfiguration to complete. Section "59.5.3 Configure Watchdog" provides the following example: DisableInterrupts; //disable global interrupt WDOG_CNT = 0xD928C520; //unlock watchdog

[PATCH V2 42/46] imx8ulp: move struct mu_type to common header

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Move struct mu_type to common header to make it reusable by upower and S400 Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 25 drivers/misc/imx8ulp/imx8ulp_mu.c| 19 +-- 2 files changed, 26 insertions(+),

[PATCH V2 40/46] mx7ulp: Update unlock and refresh sequences in sWDOG driver

2021-06-28 Thread Peng Fan (OSS)
From: Breno Lima According to i.MX7ULP Reference Manual the second word write for both UNLOCK and REFRESH operations must occur in maximum 16 bus clock. The current code is using writel() function which has a DMB barrier to order the memory access. The DMB between two words write may introduce

[PATCH V2 39/46] imx8ulp: Add workaround for eMMC boot

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li When booting from boot part1/2, the image offset should be 0, but ROM has a bug to return 0x8000. Has to workaround the issue before ROM fix it. Use a ROM function to know boot from emmc boot part or user part So we can set the image offset accordingly. Signed-off-by: Ye Li ---

[PATCH V2 38/46] imx8ulp: Use DGO_GP5 to get boot config

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Since CMC1 MR0 only reflects high 16 bits boot cfg used for AP domian, it does not connect to low 16 bits for RTD. So we can't get the correct boot mode. Change to use DGO_GP5 of SEC_SIM which is set by ROM. Signed-off-by: Ye Li --- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- 1 file

[PATCH V2 37/46] imx8ulp: soc: correct reset cause

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan The CMC1 SRS reflects the current reset cause, not SSRS. Then you could get "Reset cause: WARM-WDG" when issue reset in U-Boot. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-)

[PATCH V2 36/46] driver: misc: imx8ulp: Add fuse driver for imx8ulp

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li This driver uses FSB to read some fuses, but not support program fuse. It only works in SPL (secure mode), u-boot needs traps to ATF to read them. Some fuses can read from S400 API and others are from FSB. Also support program some fuses via S400 API Signed-off-by: Ye Li ---

[PATCH V2 35/46] arm: imx8ulp: add iomuxc support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP iomuxc support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/iomux.h | 82 +++ arch/arm/mach-imx/imx8ulp/iomux.c | 56 +++- 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644

[PATCH V2 34/46] arm: imx8ulp: add dummy imx_get_mac_from_fuse

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add imx_get_mac_from_fuse for enet build pass Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 39156ab543..513c4166c9 100644 ---

[PATCH V2 33/46] arm: imx8ulp: Allocate DCNANO and MIPI_DSI to AD domain

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Configure DCNANO and MIPI_DSI to be controlled by AD for single boot Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index

[PATCH V2 32/46] arm: iMX8ULP: Add boot device relevant functions

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Read from ROM API to get current boot device. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 + arch/arm/mach-imx/imx8ulp/soc.c | 83 +++ 2 files changed, 84 insertions(+) diff --git

[PATCH V2 31/46] arm: imx8ulp: Probe the S400 MU device in arch init

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Need probe the S400 MU device in arch_cpu_init_dm, so we can use S400 API in u-boot Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 35 - 1 file changed, 34 insertions(+), 1 deletion(-) diff --git

[PATCH V2 29/46] arm: imx8ulp: release trdc and assign lpav from RTD to APD

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Rlease LPAV from RTD to APD Release gpu2D/3D to APD Set TRDC MBC2 MEM1 for iomuxc0 access Since upower depends AP/M33 SW to configure IOMUX for its PMIC i2c and MODE pins. we have to open iomuxc0 access for A35 core (domain 7) in single boot. Signed-off-by: Peng Fan

[PATCH V2 30/46] imx8ulp: unify rdc functions

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Unify rdc function to rdc.c Update soc.c to use new rdc function Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/rdc.h | 27 +++ arch/arm/mach-imx/imx8ulp/rdc.c | 283 +++- arch/arm/mach-imx/imx8ulp/soc.c | 180 ++-

[PATCH V2 26/46] arm: imx8ulp: release and configure XRDC at early phase

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Since S400 will set the memory of SPL image to R/X. We can't write to any data in SPL image. 1. Set the parameters save/restore only for u-boot, not for SPL. to avoid write data. 2. Not use MU DM driver but directly call MU API to send release XRDC to S400 at early phase. 3.

[PATCH V2 25/46] drivers: misc: s400_api: Update API for fuse read and write

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Add API to support fuse read and write Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 7 +- drivers/misc/imx8ulp/s400_api.c | 81 2 files changed, 87 insertions(+), 1 deletion(-) diff --git

[PATCH V2 27/46] arm: imx8ulp: add rdc support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan There is xrdc inside i.MX8ULP, we need to configure permission to make sure AP non-secure world could access the resources. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 2 + arch/arm/mach-imx/imx8ulp/Makefile| 2 +-

[PATCH V2 28/46] arm: imx8ulp: add trdc release request

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add TRDC release request, then we could configure resources to be accessible by A35 Domain. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git

[PATCH V2 23/46] drivers: misc: imx8ulp: Add S400 API for image authentication

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Add S400 API for image authentication Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 8 +- drivers/misc/imx8ulp/s400_api.c | 121 ++- 2 files changed, 127 insertions(+), 2 deletions(-) diff --git

[PATCH V2 24/46] drivers: misc: imx8ulp: Update S400 API for release RDC

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li The RDC API is updated to add a field for XRDC or TRDC Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 2 +- drivers/misc/imx8ulp/s400_api.c | 7 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH V2 22/46] drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li According to latest S400 API doc, the the success indicate value is changed to 0xd6. So update the driver codes. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx8ulp/imx8ulp_mu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH V2 21/46] arm: imx8ulp: Update the reset vector in u-boot

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Because we have set reset vector to ATF in SPL, have to set it back to ROM for any reset in u-boot Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 35 + 1 file changed, 22 insertions(+), 13 deletions(-) diff

[PATCH V2 20/46] arm: imx8ulp: disable wdog3

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Disable wdog3 which is configured by ROM Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 36 - 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index

[PATCH V2 19/46] arm: imx8ulp: Enable full L2 cache in SPL

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li SRAM2 is half L2 cache and default to SRAM after system boot. To enable the full l2 cache (512KB), it needs to reset A35 to make the change happen. So re-implement the jump entry function in SPL: 1. configure the core0 reset vector to entry (ATF) 2. enable the L2 full cache 3. reset

[PATCH V2 18/46] arm: imx8ulp: soc: Change to use CMC1 to get bootcfg

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li CMC1 also has a MR register for bootcfg Signed-off-by: Ye Li --- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 6f4b506386..cddcdc2d20 100644 ---

[PATCH V2 17/46] drivers: mmc: fsl_esdhc_imx: support i.MX8ULP

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan i.MX8ULP reuse same SDHC IP as i.MX8M, so follow i.MX8M code logic. Signed-off-by: Peng Fan --- drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 12 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/Kconfig

[PATCH V2 16/46] arm: imx8ulp: add clock support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP clock support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/cgc.h | 130 ++ arch/arm/include/asm/arch-imx8ulp/clock.h| 9 +- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 1 + arch/arm/include/asm/arch-imx8ulp/pcc.h | 139

[PATCH V2 15/46] driver: serial: fsl_lpuart: support i.MX8ULP

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan i.MX8ULP lpuart has same register layout as i.MX7ULP and i.MX8 Signed-off-by: Peng Fan --- include/fsl_lpuart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fsl_lpuart.h b/include/fsl_lpuart.h index 511fb84367..18e5cc15d6 100644 ---

[PATCH V2 14/46] pinctrl: Add pinctrl driver for imx8ulp

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Add pinctrl driver for i.MX8ULP Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 44 +++ 3 files changed, 59

[PATCH V2 13/46] net: fec_mxc: support i.MX8ULP

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX8ULP in fec_mxc Signed-off-by: Peng Fan Reviewed-by: Ramon Fried --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 382639044b..7af6da3b68

[PATCH V2 12/46] driver: misc: Add MU and S400 API to communicate with Sentinel

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Add MU driver and S400 API. Need enable MISC driver to work Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 30 +++ arch/arm/include/asm/global_data.h | 5 + drivers/misc/Makefile| 1 + drivers/misc/imx8ulp/Makefile

[PATCH V2 11/46] arm: imx: move container Kconfig under mach-imx

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Since i.MX8 and i.MX8ULP reuse common container, so move the Kconfig public to both. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 13 + arch/arm/mach-imx/imx8/Kconfig | 13 - 2 files changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH V2 10/46] arm: imx8ulp: add container support

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li i.MX8ULP support using ROM API to load container image, it use same ROM API as i.MX8MN/MP, and use same container format as i.MX8QM/QXP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 2 + arch/arm/include/asm/mach-imx/image.h

[PATCH V2 09/46] arm: imx: parse-container: guard included header files

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Guard included sci.h with CONFIG_AHAB_BOOT to avoid build failure for i.MX8ULP Signed-off-by: Peng Fan --- arch/arm/mach-imx/parse-container.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-imx/parse-container.c index

[PATCH V2 08/46] arm: imx8: Move container image header file to mach-imx

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Since the container is shared among i.MX platforms, move its header file to mach-imx Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/{arch-imx8 => mach-imx}/image.h | 0 arch/arm/mach-imx/cmd_dek.c | 2 +-

[PATCH V2 07/46] arm: imx8: Move container parser and image to mach-imx common folder

2021-06-28 Thread Peng Fan (OSS)
From: Ye Li Since we will re-use the container parser on imx8ulp, move the codes to mach-imx Signed-off-by: Ye Li --- arch/arm/mach-imx/Makefile| 4 arch/arm/mach-imx/{imx8/image.c => image-container.c} | 0 arch/arm/mach-imx/imx8/Makefile

[PATCH V2 06/46] arm: imx: basic i.MX8ULP support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add basic i.MX8ULP support For the MMU part, Using a simple way the calculate the MMU size to avoid default heavy calcaulation. And align address and size in the table settings to 2MB or 4GB as much as possible. So we can reduce the 4K page allocations in MMU table which will

[PATCH V2 05/46] imx: imx8ulp: add get reset cause

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add get reset cause function to show what triggerred reset. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 69 + 1 file changed, 69 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index

[PATCH V2 04/46] arm: imx8ulp: support print cpu info

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Support print cpu info. the clock function has not been added, it will be added in following patches. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 3 + arch/arm/mach-imx/imx8ulp/soc.c | 59 +++ 2 files changed, 62

[PATCH V2 03/46] arm: imx: sys_proto: move boot mode define to common header

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan These defines could be reused by i.MX8ULP, so move them to common header. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 9 - arch/arm/include/asm/mach-imx/sys_proto.h| 10 ++ 2 files changed, 10 insertions(+), 9 deletions(-)

[PATCH V2 02/46] arm: imx: add i.MX8ULP cpu type and helper

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP cpu type and helpers. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 4 arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 11 +++ arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/imx8ulp/soc.c

[PATCH V2 01/46] arm: imx: add i.MX8ULP basic Kconfig option

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP related basic Kconfig option, which will be used later. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 10 ++ arch/arm/mach-imx/imx8ulp/Kconfig | 16 2 files changed, 26 insertions(+) create mode 100644

[PATCH V2 00/46] imx: add i.MX8ULP support

2021-06-28 Thread Peng Fan (OSS)
From: Peng Fan V2: Rebased and test on new revision silicon with upower included. The i.MX 8ULP crossover applications processor family brings ultra-low power processing and advanced integrated security with EdgeLockTM secure enclave to the intelligent edge. It includes an uPower core for

Re: [v10,14/27] mtd: spi-nor-core: Add support for DTR protocol

2021-06-28 Thread jaimeliao
Hi Pratyush In the [v10,14/27] @@ -2767,7 +2858,10 @@ int spi_nor_scan(struct spi_nor *nor) if (ret) return ret; -if (nor->addr_width) { +if (spi_nor_protocol_is_dtr(nor->read_proto)) { +

Re: [PATCH v2 2/3] mmc: rockchip_sdhci: Add support for RK3568

2021-06-28 Thread Jaehoon Chung
On 6/28/21 6:19 PM, Yifeng Zhao wrote: > This patch adds support for the RK3568 platform to this driver. > > Signed-off-by: Yifeng Zhao > --- > > Changes in v2: > - Used sdhci_set_clock api to set clock. > - Used read_poll_timeout api to check dll status. > > drivers/mmc/rockchip_sdhci.c |

Re: [PATCH v2 1/3] mmc: rockchip_sdhci: add phy and clock config for rk3399

2021-06-28 Thread Jaehoon Chung
Hi Yifeng, On 6/28/21 6:19 PM, Yifeng Zhao wrote: > Add clock, phy and other configuration, it is convenient to support > new controller. Here a short summary of the changes: > - Add mmc_of_parse to parse dts config. > - Remove OF_PLATDATA related code. > - Reorder header inclusion. > - Add phy

[RFC PATCH 1/1] cmd: nvedit: Forbid key to be empty.

2021-06-28 Thread Francis Laniel
Before this patch, it was possible to do the following using setenv: setenv '' foo Then, on next reboot, U-Boot will not be able to parse environment due to it having: =foo Now, if the above command is given, an error message is thrown and environment is not modified. Signed-off-by: Francis

[RFC PATCH 0/1] cmd: nvedit: Forbid environment key to be empty.

2021-06-28 Thread Francis Laniel
Hi. First of all, I hope you are fine and the same for your relatives. In this patch, I modified the setenv command to decline empty variable name. Indeed, it was strangely possible to give the following to this command: setenv '' foo Which results in the following belonging to environment:

[RFC PATCH 1/1] cmd: nvedit: Forbid key to be empty.

2021-06-28 Thread Francis Laniel
Before this patch, it was possible to do the following using setenv: setenv '' foo Then, on next reboot, U-Boot will not be able to parse environment due to it having: =foo Now, if the above command is given, an error message is thrown and environment is not modified. Signed-off-by: Francis

Pull request for efi-2021-07-rc5-2

2021-06-28 Thread Heinrich Schuchardt
Dear Tom, I have removed the one patch for better EFI/DM integration that caused sandbox test problems on my last pull request. This topic needs more coordination with Simon. Gitlab CI showed no problems: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/7968 The following

[ANN] U-Boot v2021.07-rc5 released

2021-06-28 Thread Tom Rini
Hey all, OK, so I'm a week late, oops, but here's v2021.07-rc5. And the -next branch is still open. In fact, I will be merging this tag to -next shortly. To keep repeating myself, I also want to point out again that the deadline for DM_PCI, DM_USB and DM_SPI_FLASH will be 2 years past it's

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Stephan Gerhold
On Mon, Jun 28, 2021 at 10:04:29PM +0300, Ramon Fried wrote: > On Mon, Jun 28, 2021 at 9:59 PM Stephan Gerhold wrote: > > > > On Mon, Jun 28, 2021 at 08:15:28PM +0300, Ramon Fried wrote: > > > On Mon, Jun 28, 2021 at 11:40 AM Stephan Gerhold > > > wrote: > > > > > > > > At the moment, the

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Ramon Fried
On Mon, Jun 28, 2021 at 9:59 PM Stephan Gerhold wrote: > > On Mon, Jun 28, 2021 at 08:15:28PM +0300, Ramon Fried wrote: > > On Mon, Jun 28, 2021 at 11:40 AM Stephan Gerhold > > wrote: > > > > > > At the moment, the U-Boot serial_msm driver does not initialize the > > > UART_DM_DMEN register

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Stephan Gerhold
On Mon, Jun 28, 2021 at 08:15:28PM +0300, Ramon Fried wrote: > On Mon, Jun 28, 2021 at 11:40 AM Stephan Gerhold wrote: > > > > At the moment, the U-Boot serial_msm driver does not initialize the > > UART_DM_DMEN register with the required value. Usually this does not > > cause any problems,

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Simon Glass
Hi Tom, On Mon, 28 Jun 2021 at 11:27, Tom Rini wrote: > > On Mon, Jun 28, 2021 at 10:26:35AM -0600, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 28 Jun 2021 at 09:20, Heinrich Schuchardt > > wrote: > > > > > > On 6/28/21 4:18 PM, Simon Glass wrote: > > > > Hi Tom, Mark, > > > > > > > >

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Simon Glass
Hi Heinrich, On Mon, 28 Jun 2021 at 11:10, Heinrich Schuchardt wrote: > > On 6/28/21 6:26 PM, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 28 Jun 2021 at 09:20, Heinrich Schuchardt > > wrote: > >> > >> On 6/28/21 4:18 PM, Simon Glass wrote: > >>> Hi Tom, Mark, > >>> > >>> On Mon, 28 Jun

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Mark Kettenis
> From: Simon Glass > Date: Mon, 28 Jun 2021 08:18:26 -0600 > > Hi Tom, Mark, > > On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: > > > > On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: > > > > From: Simon Glass > > > > Date: Sun, 27 Jun 2021 19:48:34 -0600 > > > > > > > > It has

Re: [PATCH] xilinx: Sync CONFIG_DEFAULT_DEVICE_TREE position

2021-06-28 Thread Tom Rini
On Mon, Jun 28, 2021 at 03:50:55PM +0200, Michal Simek wrote: > Kconfig layout has changed that's why option has been moved. > > Signed-off-by: Michal Simek In that I'm going to include a global resync like I typically do on tagged releases shortly, nak. -- Tom signature.asc Description:

Re: [PATCH 1/3] cmd: setexpr: add fmt format string operation

2021-06-28 Thread Rasmus Villemoes
On 28/06/2021 17.17, Roland Gaudig wrote: > From: Roland Gaudig > > Add format string "fmt" operation to the setexpr command > which converts the input value according the format string > specification and stores the result into the variable named name. > > Signed-off-by: Roland Gaudig > --- >

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Tom Rini
On Mon, Jun 28, 2021 at 10:26:35AM -0600, Simon Glass wrote: > Hi Heinrich, > > On Mon, 28 Jun 2021 at 09:20, Heinrich Schuchardt wrote: > > > > On 6/28/21 4:18 PM, Simon Glass wrote: > > > Hi Tom, Mark, > > > > > > On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: > > >> > > >> On Mon, Jun 28,

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Ramon Fried
On Mon, Jun 28, 2021 at 11:40 AM Stephan Gerhold wrote: > > At the moment, the U-Boot serial_msm driver does not initialize the > UART_DM_DMEN register with the required value. Usually this does not > cause any problems, because there is Qualcomm's LK bootloader running > before U-Boot which

Re: [PATCH 0/2] Add support for 10G/25G to AXI emac driver

2021-06-28 Thread Ramon Fried
On Mon, Jun 28, 2021 at 10:07 AM Michal Simek wrote: > > > > On 6/24/21 8:34 AM, Ashok Reddy Soma wrote: > > - Cleanup of_to_plat() to access platform data only in it > > - Copy plat data to priv data in probe function > > - Add support for 10G/25G to the AXI emac driver > > - Keep all phy

Re: [PATCH 2/3] net: xilinx: axi_mrmac: Add MRMAC driver

2021-06-28 Thread Ramon Fried
On Mon, Jun 28, 2021 at 9:37 AM Michal Simek wrote: > > Hi Ramon, > we have been internally talking about splitting DMA handling out of > driver. It is also about taking out axi dma out of axi emac driver. I > have already asked Ashok to take a look at it but I expect it is not > that

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Heinrich Schuchardt
On 6/28/21 6:26 PM, Simon Glass wrote: Hi Heinrich, On Mon, 28 Jun 2021 at 09:20, Heinrich Schuchardt wrote: On 6/28/21 4:18 PM, Simon Glass wrote: Hi Tom, Mark, On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: From: Simon

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Simon Glass
Hi Heinrich, On Mon, 28 Jun 2021 at 09:20, Heinrich Schuchardt wrote: > > On 6/28/21 4:18 PM, Simon Glass wrote: > > Hi Tom, Mark, > > > > On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: > >> > >> On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: > From: Simon Glass >

Re: [PATCH 3/7] disk: Tidy up #ifdefs in part_efi

2021-06-28 Thread Heinrich Schuchardt
On 28.06.21 15:50, Tom Rini wrote: > On Mon, Jun 28, 2021 at 01:20:05PM +0200, Heinrich Schuchardt wrote: >> On 6/28/21 3:48 AM, Simon Glass wrote: >>> This file does not correctly handle the various cases, sometimes >>> producing warnings about partition_basic_data_guid being defined but not >>>

Re: [PATCH v10 00/27] mtd: spi-nor-core: add xSPI Octal DTR support

2021-06-28 Thread Jagan Teki
On Sat, Jun 26, 2021 at 12:47 AM Pratyush Yadav wrote: > > Hi, > > This series adds support for octal DTR flashes in the SPI NOR framework, > and then adds hooks for the Cypress S28HS512T and Micron MT35XU512ABA > flashes. > > The Cadence QSPI controller driver is also updated to run in Octal DTR

Pull request: u-boot-spi/next for next

2021-06-28 Thread Jagan Teki
Hi Tom, Please pull this PR for next. Summary: - xSPI Octal DTR support (Pratyush Yadav) - MXIC SPI driver (Zhengxun) CI: https://source.denx.de/u-boot/custodians/u-boot-spi/-/pipelines/7959 thanks, Jagan. The following changes since commit 67edf2553f15e5148efca213af3f41cef3410680: Merge

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Heinrich Schuchardt
On 6/28/21 4:18 PM, Simon Glass wrote: > Hi Tom, Mark, > > On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: >> >> On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: From: Simon Glass Date: Sun, 27 Jun 2021 19:48:34 -0600 It has come to light that EFI_LOADER adds an

[PATCH 2/3] doc: usage: add description for setexpr command

2021-06-28 Thread Roland Gaudig
From: Roland Gaudig Add usage for the setexpr command. It has been added to describe mainly the new setexpr format string operation. Signed-off-by: Roland Gaudig --- MAINTAINERS | 6 ++ doc/usage/index.rst | 1 + doc/usage/setexpr.rst | 130

[PATCH 3/3] test: cmd: setexpr: add tests for format string operations

2021-06-28 Thread Roland Gaudig
From: Roland Gaudig Series-version 2 Signed-off-by: Roland Gaudig --- test/cmd/setexpr.c | 33 + 1 file changed, 33 insertions(+) diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c index c537e89353..f8b5eef62e 100644 --- a/test/cmd/setexpr.c +++

[PATCH 1/3] cmd: setexpr: add fmt format string operation

2021-06-28 Thread Roland Gaudig
From: Roland Gaudig Add format string "fmt" operation to the setexpr command which converts the input value according the format string specification and stores the result into the variable named name. Signed-off-by: Roland Gaudig --- cmd/setexpr.c | 102

[PATCH 0/3] cmd: setexpr: add fmt format string operation

2021-06-28 Thread Roland Gaudig
From: Roland Gaudig This patch series is the revised version of the previos proposal [PATCH v1 0/1] cmd: setexpr: add dec operation for converting variable to decimal In contrast to version 1, the "dec" operator has been replaced by a more flexible "fmt" operator to handle format strings.

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-28 Thread Tom Rini
On Mon, Jun 28, 2021 at 08:20:31AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 28 Jun 2021 at 07:39, Tom Rini wrote: > > > > On Sun, Jun 27, 2021 at 01:06:12PM -0600, Simon Glass wrote: > > > Hi Pali, > > > > > > On Fri, 25 Jun 2021 at 10:58, Pali Rohár wrote: > > > > > > > > On Friday 25

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Heinrich Schuchardt
On 6/28/21 3:37 PM, Tom Rini wrote: > On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: >>> From: Simon Glass >>> Date: Sun, 27 Jun 2021 19:48:34 -0600 >>> >>> It has come to light that EFI_LOADER adds an extraordinary amount of >>> code to U-Boot. For example, with nokia_rx51 the

Re: [PATCH 1/2] DM_USB: allow building without OF_CONTROL

2021-06-28 Thread Simon Glass
Hi Tom, On Mon, 28 Jun 2021 at 07:39, Tom Rini wrote: > > On Sun, Jun 27, 2021 at 01:06:12PM -0600, Simon Glass wrote: > > Hi Pali, > > > > On Fri, 25 Jun 2021 at 10:58, Pali Rohár wrote: > > > > > > On Friday 25 June 2021 10:43:11 Simon Glass wrote: > > > > Hi Pali, > > > > > > > > On Fri, 25

Re: [PATCH 0/7] efi: Various tidy-ups and drop the default

2021-06-28 Thread Simon Glass
Hi Tom, Mark, On Mon, 28 Jun 2021 at 07:37, Tom Rini wrote: > > On Mon, Jun 28, 2021 at 10:38:50AM +0200, Mark Kettenis wrote: > > > From: Simon Glass > > > Date: Sun, 27 Jun 2021 19:48:34 -0600 > > > > > > It has come to light that EFI_LOADER adds an extraordinary amount of > > > code to

Re: Pull request: u-boot-imx u-boot-imx-20210616

2021-06-28 Thread Tom Rini
On Fri, Jun 25, 2021 at 04:10:34PM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > this just contains fixes for warning in last PR + a couple of other fixes > (patches I missed last time). > > > The following changes since commit

[PATCH] arm64: zynqmp: Enable WDT command

2021-06-28 Thread Michal Simek
Enable watchdog command to be able to work with watchdogs. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs/xilinx_zynqmp_virt_defconfig index dc057f427e90..a7f0501fc77e

[PATCH] xilinx: Sync CONFIG_DEFAULT_DEVICE_TREE position

2021-06-28 Thread Michal Simek
Kconfig layout has changed that's why option has been moved. Signed-off-by: Michal Simek --- configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 2 +- configs/bitmain_antminer_s9_defconfig | 2 +- configs/microblaze-generic_defconfig

Re: [PATCH 3/7] disk: Tidy up #ifdefs in part_efi

2021-06-28 Thread Tom Rini
On Mon, Jun 28, 2021 at 01:20:05PM +0200, Heinrich Schuchardt wrote: > On 6/28/21 3:48 AM, Simon Glass wrote: > > This file does not correctly handle the various cases, sometimes > > producing warnings about partition_basic_data_guid being defined but not > > used. Fix it. > > > > Signed-off-by:

Re: [PATCH 7/7] efi: Make EBBR optional

2021-06-28 Thread Tom Rini
On Mon, Jun 28, 2021 at 11:48:00AM +0200, Heinrich Schuchardt wrote: > On 6/28/21 3:48 AM, Simon Glass wrote: > > Add a new Kconfig option for EBBR so that the naming is more explicit. > > Make EFI_LOADER depend on it. > > > > Avoid enabling the options (EBBR / EFI_LOADER) by default, to save

[PATCH] watchdog: cadence: Add expire_now method

2021-06-28 Thread Michal Simek
It is working in a way that only minimal timeout is setup to reach expiration just right after it is setup. Please make sure that PMUFW is compiled with ENABLE_EM flag. On U-Boot prompt you can test it like: ZynqMP> wdt dev watchdog@fd4d ZynqMP> wdt list watchdog@fd4d (cdns_wdt) ZynqMP>

  1   2   >