Re: [PATCH v2 1/2] ARM: imx: imx8mn-evk: generate a single bootable flash.bin

2022-06-26 Thread Heiko Thiery
Hi Alper Am Mi., 22. Juni 2022 um 20:18 Uhr schrieb Alper Nebi Yasak : > > On 09/06/2022 23:49, Heiko Thiery wrote: > > To have a flash.bin file that also contains the U-Boot and TF-A/ATF > > create this like already done for other imx8 boards. > > > > Signed-off-by: Heiko Thiery > > Reviewed-by:

Re: [PATCH v2 2/2] ARM: imx: imx8mn-evk: use one common u-boot.dtsi for the evk boards

2022-06-26 Thread Heiko Thiery
Hi Alper. Am Mi., 22. Juni 2022 um 20:18 Uhr schrieb Alper Nebi Yasak : > > On 09/06/2022 23:49, Heiko Thiery wrote: > > To have only one place to describe the binman images us the > > imx8mn-u-boot.dtsi. To have support for different DDR firmwares this > > nodes are included dependent on the used

[PATCH v3 1/2] ARM: imx: imx8mn-evk: use one common u-boot.dtsi for the evk boards

2022-06-26 Thread Heiko Thiery
To have only one place to describe the common parts for all imx8mn evk boards move this parts to imx8mn-evk-common-u-boot.dtsi. To support the different DDR firmwares this nodes are included dependent on the used DDR config option. Signed-off-by: Heiko Thiery --- v3: - change name to imx8mn-evk-

[PATCH v3 2/2] ARM: imx: imx8mn-evk-common-u-boot.dtsi: cleanup

2022-06-26 Thread Heiko Thiery
This cleanup implements several review comments and its target is to prepare for a common imx8mn-common-u-boot.dtsi for all imx8mn boards. It includes changes in node names to use only dashes instead of underscores, improve the odd bloob-ext naming, use the atf-bl31 type and the use of of-list for

[RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting

2022-06-26 Thread Dario Binacchi
The series contains all the patches required by the BSH smm s2 board for booting from NAND and properly mounting the UBI rootfs. Dario Binacchi (4): configs: imx8mn_bsh_smm_s2: add NAND driver configs: imx8mn_bsh_smm_s2: add UBI commands configs: imx8mn_bsh_smm_s2: remove console from boo

[RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver

2022-06-26 Thread Dario Binacchi
It allows to boot from NAND. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defc

[RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands

2022-06-26 Thread Dario Binacchi
imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash it. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- configs/imx8mn_bsh_smm_s2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8mn_bsh_smm_s2_d

[RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs

2022-06-26 Thread Dario Binacchi
The Linux kernel device tree already specifies the device to be used for boot console output with a stdout-path property under /chosen. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 2 +- 1 file chan

[RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs

2022-06-26 Thread Dario Binacchi
Passing the mtdparts environment variable to the Linux kernel is required to properly mount the UBI rootfs. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- include/configs/imx8mn_bsh_smm_s2.h | 1 + 1 file changed, 1 insertion(+) diff --

Re: [v4 00/12] Add ASPEED SPI controller driver

2022-06-26 Thread Cédric Le Goater
On 6/26/22 06:56, Chin-Ting Kuo wrote: Hi All, Are there any comments about this patch series?* Sorry, I haven't had time to take a look at the driver. I will try this week. Thanks, C. Thanks. Best Wishes, Chin-Ting -Original Message- From: Chin-Ting Kuo Sent: Tuesday, May 24

Re: [PATCH 20/20] Convert CONFIG_SYS_BOOTM_LEN to Kconfig

2022-06-26 Thread Soeren Moch
On 26.06.22 00:44, Tom Rini wrote: On Sun, Jun 26, 2022 at 12:01:23AM +0200, Soeren Moch wrote: diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig index 892d7c60d283..f0ecfd049d65 100644 --- a/configs/tbs2910_defconfig +++ b/configs/tbs2910_defconfig @@ -35,6 +35,7 @@ CONFIG_C

[PATCH v5 0/2] Add MNT Reform 2 board support

2022-06-26 Thread Patrick Wildt
The MNT Reform 2 is a modular DIY laptop. In its initial version it is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been lifted from BoundaryDevices official U-Boot downstream project. This U-Boot patchset supports the serial console, the SD card and eMMC, Gigabit Ethernet and USB.

[PATCH v5 1/2] arm: dts: imx8mq: update MNT Reform 2 to Linux v5.19-rc3

2022-06-26 Thread Patrick Wildt
--- arch/arm/dts/imx8mq-mnt-reform2.dts | 145 +- arch/arm/dts/imx8mq-nitrogen-som.dtsi | 15 +-- 2 files changed, 152 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/imx8mq-mnt-reform2.dts b/arch/arm/dts/imx8mq-mnt-reform2.dts index 4f2db6197b..8956a46788 1006

[PATCH v5 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2022-06-26 Thread Patrick Wildt
The MNT Reform 2 is a modular DIY laptop. In its initial version it is based on the BoundaryDevices i.MX8MQ SoM. Some parts have been lifted from BoundaryDevices official U-Boot downstream project. Signed-off-by: Patrick Wildt --- arch/arm/dts/imx8mq-mnt-reform2-u-boot.dtsi | 11 + arch/ar

RE: [PATCH 3/5] config/ast2600: Disable hash hardware accel

2022-06-26 Thread ChiaWei Wang
Reply again to leave record on mailing list. > From: joel.s...@gmail.com On Behalf Of Joel Stanley > Sent: Friday, June 24, 2022 10:50 AM > > The Qemu model or the u-boot driver is unable to correctly compute the > SHA256 hash used in a FIT. Disable it by default while that issue is worked > ou

RE: [PATCH 4/5] ast2600: Configure u-boot-with-spl.bin target

2022-06-26 Thread ChiaWei Wang
Reply again to leave record on mailing list. > From: joel.s...@gmail.com On Behalf Of Joel Stanley > Sent: Friday, June 24, 2022 10:50 AM > > For the u-boot-with-spl.bin target to be useful for the AST2600, set the > maximum SPL size which also sets the padding length. > > The normal way of loa

Re: [PATCH] gpio: sunxi: Fix build with CONFIG_SPL_SERIAL=n

2022-06-26 Thread Andre Przywara
On Tue, 10 May 2022 19:03:34 -0500 Samuel Holland wrote: > This driver uses simple_strtol(), so it needs SPL_STRTO. Before commit > 88ca8e26958b6 ("disk: Add an option for partitions in SPL"), SPL_STRTO > was always selected indirectly. Now it is not, so select it here. > > Signed-off-by: Samuel

Re: [PATCH 1/7] clk: sunxi: Store the array sizes in the CCU descriptor

2022-06-26 Thread Andre Przywara
On Mon, 9 May 2022 00:29:31 -0500 Samuel Holland wrote: > The reset array size is currently used for bounds checking in the reset > driver. The same bounds check should really be done in the clock driver. > > Currently, the array size is provided to the reset driver separately > from the CCU de

Re: [PATCH 1/2] clk: sunxi: Add additional RTC compatible strings

2022-06-26 Thread Andre Przywara
On Sat, 30 Apr 2022 22:38:36 -0500 Samuel Holland wrote: > Compatible strings for some new RTC hardware variants were added to > the binding. Add them to the driver in preparation for supporting > those new SoCs. > > Signed-off-by: Samuel Holland Applied to sunxi/master, for v2022.07. Cheers,

Re: [PATCH 4/7] clk: sunxi: Use a single driver for all variants

2022-06-26 Thread Andre Przywara
On Mon, 9 May 2022 00:29:34 -0500 Samuel Holland wrote: Hi, > Now that all of the variants use the same bind/probe functions and ops, > there is no need to have a separate driver for each variant. Since most > SoCs contain two variants (the main CCU and PRCM CCU), this saves a bit > of firmware

Re: [PATCH v2] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-06-26 Thread Andre Przywara
On Sat, 14 May 2022 11:52:01 +0800 Chen-Yu Tsai wrote: Hi, > On Sat, May 14, 2022 at 11:19 AM wrote: > > > > From: qianfan Zhao > > > > linux system will die if we offline one of the cpu on R40 based board: > > eg: echo 0 > /sys/devices/system/cpu/cpu3/online > > > > Fixed sunxi_power_switch b

Re: [PATCH v2] sunxi: fix initial environment loading without MMC

2022-06-26 Thread Andre Przywara
On Fri, 24 Jun 2022 17:12:09 +0100 Andre Przywara wrote: > From: Samuel Holland > > Commit e42dad4168fe ("sunxi: use boot source for determining environment > location") changed our implementation of env_get_location() and enabled > it for every board, even those without MMC support (like the C

Re: [PATCH] sunxi: usb: convert PHY GPIO functions to DM

2022-06-26 Thread Andre Przywara
On Wed, 8 Jun 2022 01:06:04 +0100 Andre Przywara wrote: > The Allwinner USB PHY driver is still using the legacy GPIO interface, > which is now implemented by the DM_GPIO compat functions. > Those seem to have some design flaws, as setting the direction, then > later setting the value will not w

Re: [PATCH v2] ARM: dts: sun4i: Sync from Linux v5.18-rc1

2022-06-26 Thread Andre Przywara
On Wed, 25 May 2022 22:26:02 -0500 Samuel Holland wrote: Hi, > Copy the devicetree source for the A10 SoC and all existing boards > verbatim from the Linux v5.18-rc1 tag. > > The previous version of this change was only partially applied. Oops, indeed. Patchwork didn't pick this one patch up,

Re: [PATCH 2/7] clk: sunxi: Prevent out-of-bounds gate array access

2022-06-26 Thread Andre Przywara
On Mon, 9 May 2022 00:29:32 -0500 Samuel Holland wrote: > Because the gate arrays are not given explicit sizes, the arrays are > only as large as the highest-numbered gate described in the driver. > However, only a subset of the CCU clocks are needed by U-Boot. So there > are valid clock specifi

Re: [PATCH 3/7] reset: sunxi: Get the reset count from the CCU descriptor

2022-06-26 Thread Andre Przywara
On Mon, 9 May 2022 00:29:33 -0500 Samuel Holland wrote: > This allows all of the clock drivers to use a common bind function. Looks good, and a nice cleanup. Added the F1C100s on the way. > Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Thanks, Andre > --- > > drivers/clk/sun

Re: [PATCH v2] sunxi: fix initial environment loading without MMC

2022-06-26 Thread Samuel Holland
Hi Andre, On 6/24/22 11:12 AM, Andre Przywara wrote: > From: Samuel Holland > > Commit e42dad4168fe ("sunxi: use boot source for determining environment > location") changed our implementation of env_get_location() and enabled > it for every board, even those without MMC support (like the C.H.I.

RE: [v4 00/12] Add ASPEED SPI controller driver

2022-06-26 Thread Chin-Ting Kuo
Hi Cédric, > -Original Message- > From: Cédric Le Goater > Sent: Monday, June 27, 2022 12:16 AM > To: Chin-Ting Kuo ; ChiaWei Wang > ; lu...@denx.de; sean...@gmail.com; > Ryan Chen ; BMC-SW > ; ja...@amarulasolutions.com; vigne...@ti.com; > u-boot@lists.denx.de; p.ya...@ti.com > Cc: tr...

Re: [PATCH v5 1/2] arm: dts: imx8mq: update MNT Reform 2 to Linux v5.19-rc3

2022-06-26 Thread Fabio Estevam
On Sun, Jun 26, 2022 at 6:41 PM Patrick Wildt wrote: > > --- Commit log and Signed-off-by are missing.

Re: [PATCH v5 2/2] board: mntre: imx8mq: Add MNT Reform 2 board support

2022-06-26 Thread Fabio Estevam
On Sun, Jun 26, 2022 at 6:42 PM Patrick Wildt wrote: > +static iomux_v3_cfg_t const uart_pads[] = { > + IMX8MQ_PAD_UART1_RXD__UART1_RX | MUX_PAD_CTRL(UART_PAD_CTRL), > + IMX8MQ_PAD_UART1_TXD__UART1_TX | MUX_PAD_CTRL(UART_PAD_CTRL), > +}; As you use DM_SERIAL, this is no longer necess

[PATCH V2 01/49] spl: imx8mm: enlarge SPL_MAX_SIZE

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan The CONFIG_SPL_MAX_SIZE could be 0x27000 for i.MX8MM when SPL_TEXT_BASE set to 0x7E1000. Signed-off-by: Peng Fan --- common/spl/Kconfig| 1 + configs/imx8mm-cl-iot-gate-optee_defconfig| 1 - configs/imx8mm-cl-iot-gate_defconfig | 1 - con

[PATCH V2 02/49] arm: makefile: cleanup mach-imx usage

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan All the SoCs use mach-imx has CONFIG_MACH_IMX selected, so the macro could be the gate to build arch/arm/mach-imx to simplify the rules. Signed-off-by: Peng Fan --- arch/arm/Makefile | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/Makef

[PATCH V2 03/49] imx: Change USB boot device type

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li The SPL SDP is configured as BOOT_DEVICE_BOARD, so when booting from USB, change its type to BOOT_DEVICE_BOARD, so we can use SDP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH V2 05/49] imx: simplify dependency with SPL_BOOTROM_SUPPORT

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan For SoCs support ROM API, CONFIG_SPL_BOOTROM_SUPPORT is needed, so use this macro to guard the code to avoid extend the list. And drop the guard with structure definition, there is no need. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 -- arch/arm/m

[PATCH V2 06/49] imx: move get_boot_device to common header

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Most i.MX implements get_boot_device, move it to common header to simplify code Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h| 1 - arch/arm/include/asm/arch-imx8m/sys_proto.h | 1 - arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 - arch/arm/inc

[PATCH V2 07/49] imx: move get_boot_device to common file

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan i.MX8MN/P/ULP supports ROM API, they have almost same get_boot_device implementation, so move to a common file. And when support i.MX9, no need to include the other function copy. Since sys_proto.h is included in imx_romapi.c, there will be build warning for i.MX8M because wdog_re

[PATCH V2 11/49] gpio: pca953x: support pcal6524

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Support pcal6524 IO expander driver Signed-off-by: Peng Fan --- drivers/gpio/pca953x_gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index e98e1e56dbc..4654f9e0989 100644 --- a/drivers/gpio/pca953x_gpio.c +

[PATCH V2 08/49] imx: add USB2_BOOT type

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add USB2_BOOT type for i.MX8ULP and i.MX9 Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + arch/arm/mach-imx/imx_romapi.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arc

[PATCH V2 13/49] imx: imx9: Add CCM and clock API support

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add clock API to support CCM root clock and LPCG setting Set the CCM AUTHEN register to allow non-secure world to set root clock and lpcg. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ccm_regs.h | 266 arch/arm/include/asm/arch-imx9/c

[PATCH V2 14/49] mmc: fsl_esdhc_imx: Support i.MX9

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX9 for fsl_esdhc_imx driver Signed-off-by: Peng Fan --- drivers/mmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 5a87db6be08..4d31fbcd527 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/

[PATCH V2 12/49] imx: pinctrl: add pinctrl and pinfunc file for i.MX93

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add the pinctrl driver and pinfunc header file to support iMX93 Signed-off-by: Peng Fan --- arch/arm/dts/imx93-pinfunc.h| 625 drivers/pinctrl/nxp/Kconfig | 13 + drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinct

[PATCH V2 17/49] imx: imx9: disable watchdog

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Disable all 3 wdogs on AIPS2 and unmask SRC reset trigger for WDOG3-5 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 4 ++ arch/arm/mach-imx/imx9/soc.c | 45 ++- 2 files changed, 48 insertions(+), 1 de

[PATCH V2 18/49] imx: imx9: support romapi

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same ROM API with i.MX8ULP, so make the i.MX8ULP the function prototype common and usable by i.MX9. Also include mmc env functions that use ROM API. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 4 -- arch/arm/include/asm/mach-imx/sys

[PATCH V2 19/49] misc: imx: S400_API: Move S400 MU and API to a common place

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Since iMX9 uses S401 which shares the API with iMX8ULP. So move S400 MU driver and API to a common place and selected by CONFIG_IMX_SENTINEL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 4 + arch/arm/include/asm/global_data.h

[PATCH V2 21/49] misc: S400_API: Update release RDC API

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li To support more RDC instances on i.MX93, update API to latest definition. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- drivers/misc/sentinel/s400_api.c | 21 + 2 files changed, 18 insertions(+), 5 de

[PATCH V2 22/49] misc: S400_API: New API for FW status and chip info

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add new API to get sentinel FW status and SoC chip info Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 13 + drivers/misc/sentinel/s400_api.c | 61 2 files changed, 74 insertions(+) diff --git a/

[PATCH V2 23/49] misc: s400_api: introduce ahab_release_m33_trout

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Introduce Sentinel API ahab_release_m33_trout to make sure sentinel release M33 trout and make sure M33 could boot. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 1 + drivers/misc/sentinel/s400_api.c | 25 2 files change

[PATCH V2 20/49] misc: s4mu: Support iMX93 with Sentinel MU

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Support iMX93 communicate with Sentinel Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 30 +++ drivers/misc/sentinel/s4mu.c | 1 + 2 files changed, 31 insertions(+) diff --git a/arch/arm/include/asm/arch-imx9/imx-regs.h

[PATCH V2 24/49] imx: imx9: Add TRDC driver for TRDC init

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Add TRDC driver to iMX9. The TRDC init splits to two phases: 1. Early init phase will release TRDC from Sentinel and open write permission to the memory where SPL image runs. Sentinel will set the memory to RX only after ROM authentication for the OEM closed part. 2. Init pha

[PATCH V2 27/49] misc: S400_API: Rename imx8ulp_s400_msg to sentinel_msg

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Use more generic name for S40x msg structure Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- arch/arm/mach-imx/imx8ulp/rdc.c | 2 +- arch/arm/mach-imx/imx9/trdc.c| 2 +- drivers/misc/sentinel/s400_api.c

[PATCH V2 28/49] misc: imx8ulp: move fuse.c from imx8ulp to sentinel

2022-06-26 Thread Peng Fan (OSS)
From: Alice Guo The i.MX93 platform wants to reuse drivers/misc/imx8ulp/fuse.c. Moving fuse.c from the folder imx8ulp to sentinel makes it can be used by other platforms. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/Makefile | 2 -- drivers/misc/imx8ul

[PATCH V2 30/49] misc: fuse: update the code for accessing fuse of i.MX93

2022-06-26 Thread Peng Fan (OSS)
From: Alice Guo Sentinel have read access of OTP shadow register 0-511, and fsb have read access of shadow 0-51/312-511. Reviewed-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/sentinel/fuse.c | 86 +++- 1 file changed, 74 insertio

[PATCH V2 31/49] imx: imx9: Add gpio registers structure

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Add GPIO registers structure for iMX93, so that we can enable lpgpio driver Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-imx9/gpio.h | 20 2 files changed, 21 insertions(+) diff --git

[PATCH V2 32/49] imx: imx9: Add MIX power init

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add power init of MEDIAMIX, MLMIX and DDRMIX. And clear isolation of MIPI DSI/CSI, USBPHY after the power up. SPL should call the power init in its boot sequence before accessing above three MIX and USB. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1

[PATCH V2 33/49] imx: imx9: Add M33 release prepare function

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan To support on-demand booting M33 image from A core. SPL needs to follow M33 kick up sequence to release M33 firstly, then set M33 CPUWAIT signal. ATF will clear CPUWAIT to kick M33 to run. The prepare function also works around the M33 TCM ECC issue by clean the TCM. Also enable s

[PATCH V2 35/49] imx: imx9: Support multiple env storages at runtime

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Select env storages according to boot device at runtime Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c

[PATCH V2 36/49] imx: imx9: clock: Add DDR clock support

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Implement the DDR driver clock interfaces for set DDR rate and bypass DDR PLL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 3 ++ arch/arm/mach-imx/imx9/clock.c | 41 ++ 2 files changed, 44 insertions(+)

[PATCH V2 37/49] ddr: imx: Add i.MX9 DDR controller driver

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Since i.MX9 uses same DDR PHY with i.MX8M, split the DDRPHY to a common directory under imx, then use dedicated ddr controller driver for each iMX9 and iMX8M. The DDRPHY registers are space compressed, so it needs conversion to access the DDRPHY address. Introduce a common PHY addres

[PATCH V2 34/49] imx: imx9: Support booting m33 from Acore

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add bootaux command to support on-demand booting M33 from u-boot. It kicks M33 via ATF by "bootaux 0x201e 0" Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Makefile | 4 + arch/arm/mach-imx/imx9/imx_bootaux.c | 133 +++ arch/arm/mach-imx/im

[PATCH V2 39/49] arm: dts: Add i.MX93 SoC DTSi file

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add the DTSi file and DT header files for i.MX93 SoC Signed-off-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 688 include/dt-bindings/clock/imx93-clock.h | 203 +++ include/dt-bindings/pow

[PATCH V2 38/49] ddr: imx9: enable Performance monitor counter

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Add Kconfig for enabling reference events counter in DDRC performance monitor by default Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/Kconfig| 6 ++ drivers/ddr/imx/imx9/ddr_init.c | 4 2 files changed, 10 insertions(+) diff --git a/drivers/d

[PATCH V2 41/49] imx: imx93_evk: Set ARM clock to 1.7Ghz

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Set ARM clock to OD frequency 1.7Ghz, since we have set PMIC VDD_SOC to Overdrive voltage 0.9V Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 4 +++- arch/arm/mach-imx/imx9/clock.c | 9 + board/freescale/imx93_evk/spl.c

[PATCH V2 42/49] net: fec_mxc: support i.MX93

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX93 in fec_mxc driver Signed-off-by: Peng Fan --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 84d859c21eb..8cf8621467f 100644 --- a/drivers

[PATCH V2 43/49] net: dwc_eth_qos: fix build break when CLK not enabled

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan When CONFIG_CLK is not enabled, there will be buil break: "error: ‘eqos’ undeclared (first use in this function)" Should not guard the eqos under CONFIG_CLK macro Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH V2 40/49] imx: imx93_evk: Add basic board support

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add basic board codes and defconfig for i.MX93 11x11 EVK board. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/dts/Makefile |3 + arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 157 +++ arch/arm/dts/imx93-11x11-evk.dts | 527 +++

[PATCH V2 44/49] net: dwc_eth_qos: public some functions

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Move macros and structures to header file and make some functions public, so that could used by other files, this is to prepare split platform specific config to one file. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 280 +- drivers

[PATCH V2 04/49] imx: spl: Allow iMX7/8/8M to overwrite spl_board_boot_device

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Move the default mapping of spl_boot_device to weak function of spl_board_boot_device. So that every board of iMX7/8/8M can overwrite this function to implement specific mapping. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 80 +

[PATCH V2 09/49] imx: add basic i.MX9 support

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX9 Kconfig and basic files for the new SoC Signed-off-by: Peng Fan --- arch/arm/Kconfig| 11 + arch/arm/include/asm/arch-imx/cpu.h | 2 + arch/arm/include/asm/arch-imx9/clock.h | 0 arch/arm/include/asm/arch-imx9/gpio.h

[PATCH V2 00/49] imx: support i.MX93

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan V2: Fix issue reported by CI build - Enlarge SPL_MAX_SIZE for i.MX8MM - Fix i.MX8ULP break This patchset is to support i.MX93, during the development, there are some code cleanup and restructure to make i.MX93 code porting cleaner. i.MX9 is a new i.MX family and i.MX93 i

[PATCH V2 15/49] spl: Use SPL_FIT_IMAGE_TINY for iMX9

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Select SPL_FIT_IMAGE_TINY for i.MX9 Signed-off-by: Peng Fan --- common/spl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 848237c1e85..06cbad2ca85 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig

[PATCH V2 10/49] fsl_lpuart: add i.MX9 support

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same register layout as i.MX7ULP, so add the i.MX9 define here. 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 18e5cc15d61..93c996b764b 100644 ---

[PATCH V2 46/49] net: eqos: add function to get phy node and address

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Since new atheros PHY driver needs to access its PHY node through phy device, we have to assign the phy node in ethernet controller driver. Otherwise the PHY driver will fail to get some nodes and properties. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos

[PATCH V2 45/49] net: dwc_eth_qos: move i.MX code out

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX code to a standalone file to make it easy for adding new platform support Signed-off-by: Peng Fan --- drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 92 -- drivers/net/dwc_eth_qos.h | 2 + drivers/net/dwc_eth_qos_i

[PATCH V2 48/49] board: freescale: imx93_evk: support ethernet

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Add ethernet support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 7 + board/freescale/imx93_evk/imx93_evk.c | 32 +++ configs/imx93_11x11_evk_defconfig | 9 +++ 3 files changed, 48 insertions(+) diff --git a/

[PATCH V2 49/49] tools: image: support i.MX93

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Support build i.MX93 container image with mkimage Signed-off-by: Peng Fan --- include/imx8image.h | 15 +++-- tools/imx8image.c | 79 + 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/include/imx8image.h b/includ

[PATCH V2 26/49] imx: imx9: Get the chip revision through S400 API

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Update the get chip revision methond to use S400 API, also record other information like lifecycle and UID to global data. Signed-off-by: Peng Fan --- arch/arm/include/asm/global_data.h | 3 ++ arch/arm/mach-imx/imx9/soc.c | 49 +- 2 files chan

[PATCH V2 25/49] imx: imx9: Add AHAB boot support

2022-06-26 Thread Peng Fan (OSS)
From: Ye Li Add AHAB driver for iMX9 to do authentication by calling sentinel API Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/Makefile | 1 + arch/arm/mach-imx/imx9/ahab.c | 346 3 files

[PATCH V2 16/49] imx: imx9: Add function to initialize timer

2022-06-26 Thread Peng Fan (OSS)
From: Jian Li Add timer_init to update ARM arch timer with correct frequency from system counter and enable system counter. Signed-off-by: Jian Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1 + arch/arm/mach-imx/imx9/soc.c | 19 +++

[PATCH V7 1/4] arm: dts: imx8m: update binman ddr firmware node name

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan We are migrating to use binman symbols, the current names are inconsistent across different boards, so unify them. Also add `type = "blob-ext";`, since the new names are not valid binman types. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alpe

[PATCH V7 3/4] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan After we switch to use BINMAN_SYMBOLS, there is no need to pad the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, the u-boot-spl-ddr.bin shrink about 36KB with i.MX8MP-EVK. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alper Nebi Y

[PATCH V7 0/4] arm64: binman: use binman symbols for imx

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan V7: Rebased with follwoing patchset applied. [1] i.MX93 patchset: https://patchwork.ozlabs.org/project/uboot/cover/20220627032455.28280-1-peng@oss.nxp.com/ [2] binman symbols fix: https://patchwork.ozlabs.org/project/uboot/cover/20220618121316.12061-1-alpernebiya...@gmail.

[PATCH V7 4/4] imx: imx8mm-icore: migrate to use BINMAN

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan Use BINMAN instead of imx specific packing method. Signed-off-by: Peng Fan Reviewed-by: Alper Nebi Yasak --- arch/arm/mach-imx/imx8m/Kconfig | 1 + arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 10 +- configs/imx8mm-icore-mx8mm-ctouch2_defconfig

[PATCH V2 47/49] net: dwc_eth_qos: intrdouce eqos hook eqos_get_enetaddr

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan i.MX has specific hook to get MAC address, so introduce a hook and move i.MX code to its own driver Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 9 ++--- drivers/net/dwc_eth_qos.h | 1 + drivers/net/dwc_eth_qos_imx.c | 12 +++- 3 files changed, 1

[PATCH V2 29/49] misc: fuse: support to access fuse on i.MX93

2022-06-26 Thread Peng Fan (OSS)
From: Alice Guo i.MX93 fuse can be accessed through FSB and s400-api. Add mapping tables for i.MX93. The offset address of FSB accessing OTP shadow registers is different between i.MX8ULP and i.MX93, so use macro to define the offset address instead of hardcode. Signed-off-by: Alice Guo Signed-

[PATCH V7 2/4] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-06-26 Thread Peng Fan (OSS)
From: Peng Fan By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. And that could save binary size for many KBs. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alper

Re: [PATCH] i2c: fix stack buffer overflow vulnerability in i2c md command

2022-06-26 Thread Heiko Schocher
Hello Nicolas, On 21.06.22 16:04, Nicolas IOOSS wrote: > Hello, > > I sent some days ago the vulnerability fix below. I have not received any > reply yet. Could a maintainer take a look at it, please? Sorry for that, but I was on the road (embedded world in nuremberg). > Best regards, > Nicola

Re: [PATCH] efi_loader: Allow overlapped extra data for PE hashing

2022-06-26 Thread Heinrich Schuchardt
On 6/27/22 05:43, Su, Bao Cheng wrote: On Fri, 2022-06-24 at 11:44 +0200, Jan Kiszka wrote: On 24.06.22 10:53, Heinrich Schuchardt wrote: On 6/24/22 07:32, Su, Bao Cheng wrote: During PE hashing, when holes exists between sections, the extra data calculated could be a dupulicated region of the

Re: [PATCH v1] usb: host: nuvoton: Add nuvoton NPCM7xx ehci/ohci driver

2022-06-26 Thread Jim Liu
Hi Marek Thanks for your reply. The answer is yes. Our customer Dell is using our driver now. so need upstream uboot source to uboot master. On Sat, Jun 25, 2022 at 2:12 AM Marek Vasut wrote: > > On 6/21/22 11:09, Jim Liu wrote: > > Add nuvoton BMC NPCM750 ehci/ohci driver > > Is there going to

RE: [PATCH V2 00/49] imx: support i.MX93

2022-06-26 Thread Peng Fan
Hi Stefano, > Subject: [PATCH V2 00/49] imx: support i.MX93 This should be V3, not V2. Hope this not matter, I have marked the previous V2 as changes requested in patchwork. Thanks, Peng. > > From: Peng Fan > > V2: > Fix issue reported by CI build > - Enlarge SPL_MAX_SIZE for i.MX8MM >