Re: [PATCH v3 3/4] spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4

2022-07-26 Thread Pratyush Yadav
On 20/07/22 05:42PM, Xavier Drudis Ferran wrote: > XTX25F32B does not use octal mode and accepts soft reset, despite its > SFDP tables. Soft reset at U-Boot exit seems to be required to write > to /dev/mtd0 from flashrom in linux. Soft reset at U-Boot start seems > to help booting from SPI (at leas

Re: [PATCH v12 12/13] fpga: zynqmp: support loading authenticated images

2022-07-26 Thread Michal Simek
On 7/22/22 16:16, Oleksandr Suvorov wrote: Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti --- (no changes since v11) Chang

Re: [PATCH v12 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-07-26 Thread Michal Simek
On 7/22/22 16:16, Oleksandr Suvorov wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. This patchset introduces support for the authenticated and encrypted FPGA i

Re: [PATCH v6] board: purism: add the Purism Librem5 phone

2022-07-26 Thread Stefano Babic
On 30.06.22 21:29, Angus Ainslie wrote: Hi Stefano, On 2022-06-30 12:09, Stefano Babic wrote: Hi Angus, On 30.06.22 19:30, Angus Ainslie wrote: Hi All, Are there any remaining issues with this patch ? Rather yes, it was supposed that issues with dwc3 was already fixed, maybe another patch

Re: [PATCH 0/4] Xilinx zynq_qspi updates

2022-07-26 Thread Michal Simek
On 7/15/22 16:01, Ashok Reddy Soma wrote: This patch series does below things - Add child preprobe function - Use dummy buswidth in dummy byte calculation - Add support for zynq_qspi_mem_exec_op - Fix qspi speed issue Ashok Reddy Soma (2): spi: zynq_qspi: Add support for zynq_qsp

Re: [PATCH 0/2] Xilinx AXI qspi driver enhancements

2022-07-26 Thread Michal Simek
On 7/16/22 08:58, Ashok Reddy Soma wrote: In this patch series below support is added - Added mem_ops structure to support exec_op function - Added support_ops function to check controller bus width capabilities. T Karthik Reddy (2): spi: xilinx_spi: Add support for spi memory oper

Re: MVEBU A38x Regulator

2022-07-26 Thread Pali Rohár
Hello! On Monday 25 July 2022 17:04:33 Tony Dinh wrote: > Hi Pali, > > Great work! I applied the patch and removed the DM Regulator configs, > rebuilt, and kwboot it. > > Using the improved GPIO command, I discovered my problem was the pins > were misconfigured in the DTS include chain, or in th

[PATCH V2 00/53] NXP-IMX pending patches

2022-07-26 Thread Peng Fan (OSS)
From: Peng Fan V2: Rebased on Stefano's imx/master Resolve conflicts. CI: https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq/-/pipelines/12881 V1: This is to resend the pending patches [1,2,3] for Stefano to pick Patchset base: fc97ff2695d6d7fbea7d5fda7b080f405d6ee744 (origin/master,

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

2022-07-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. The DDR firmware max uses 96KB, there is a 4KB padding header before SPL_TEXT_BASE, so the SPL MAX SIZE is `256KB - 96KB - 4KB`. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- comm

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

2022-07-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 05/53] imx: simplify dependency with SPL_BOOTROM_SUPPORT

2022-07-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 | 3 --- arch/arm/

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

2022-07-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 03/53] imx: Change USB boot device type

2022-07-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 06/53] imx: move get_boot_device to common header

2022-07-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/53] imx: move get_boot_device to common file

2022-07-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 08/53] imx: add USB2_BOOT type

2022-07-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/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 16/53] imx: imx9: Add function to initialize timer

2022-07-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 V2 15/53] spl: Use SPL_FIT_IMAGE_TINY for iMX9

2022-07-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 1358b45e28b..a399a38aa7d 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig

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

2022-07-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 13/53] imx: imx9: Add CCM and clock API support

2022-07-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 20/53] misc: s4mu: Support iMX93 with Sentinel MU

2022-07-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 23/53] misc: s400_api: introduce ahab_release_m33_trout

2022-07-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 26/53] imx: imx9: Get the chip revision through S400 API

2022-07-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 28/53] misc: imx8ulp: move fuse.c from imx8ulp to sentinel

2022-07-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 34/53] imx: imx9: Support booting m33 from Acore

2022-07-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 37/53] ddr: imx: Add i.MX9 DDR controller driver

2022-07-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 48/53] board: freescale: imx93_evk: support ethernet

2022-07-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 47/53] net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr

2022-07-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 46/53] net: eqos: add function to get phy node and address

2022-07-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 52/53] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-07-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 V2 11/53] gpio: pca953x: support pcal6524

2022-07-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 10/53] fsl_lpuart: add i.MX9 support

2022-07-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 12/53] imx: pinctrl: add pinctrl and pinfunc file for i.MX93

2022-07-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 14/53] mmc: fsl_esdhc_imx: Support i.MX9

2022-07-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 6e9fcf57510..95d63b62260 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/

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

2022-07-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/53] imx: imx9: support romapi

2022-07-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/53] misc: imx: S400_API: Move S400 MU and API to a common place

2022-07-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/53] misc: S400_API: Update release RDC API

2022-07-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/53] misc: S400_API: New API for FW status and chip info

2022-07-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 24/53] imx: imx9: Add TRDC driver for TRDC init

2022-07-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/53] misc: S400_API: Rename imx8ulp_s400_msg to sentinel_msg

2022-07-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 25/53] imx: imx9: Add AHAB boot support

2022-07-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 31/53] imx: imx9: Add gpio registers structure

2022-07-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 33/53] imx: imx9: Add M33 release prepare function

2022-07-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 29/53] misc: fuse: support to access fuse on i.MX93

2022-07-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 V2 36/53] imx: imx9: clock: Add DDR clock support

2022-07-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 41/53] imx: imx93_evk: Set ARM clock to 1.7Ghz

2022-07-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 38/53] ddr: imx9: enable Performance monitor counter

2022-07-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 42/53] net: fec_mxc: support i.MX93

2022-07-26 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX93 in fec_mxc driver Reviewed-by: Ramon Fried 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 b671e72580e..5d90a9

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

2022-07-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 45/53] net: dwc_eth_qos: move i.MX code out

2022-07-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 Reviewed-by: Ramon Fried Signed-off-by: Peng Fan --- drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 92 -- drivers/net/dwc_eth_qos.h | 2 +

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

2022-07-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)" Take eqos definition out the CONFIG_CLK ifdef. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH V2 50/53] arm: dts: imx8m: update binman ddr firmware node name

2022-07-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 V2 51/53] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-07-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

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

2022-07-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 53/53] imx: imx8mm-icore: migrate to use BINMAN

2022-07-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 35/53] imx: imx9: Support multiple env storages at runtime

2022-07-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 32/53] imx: imx9: Add MIX power init

2022-07-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 30/53] misc: fuse: update the code for accessing fuse of i.MX93

2022-07-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 44/53] net: dwc_eth_qos: public some functions

2022-07-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 39/53] arm: dts: Add i.MX93 SoC DTSi file

2022-07-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

Re: [PATCH] pmic: pca9450: permit config on all bucks and LDOs

2022-07-26 Thread Jaehoon Chung
On 6/20/22 12:49, Heiko Thiery wrote: > In order to have the possibility to configure the regulators at system > startup through DM support, all LDOs and bucks must be able to be > changeable. Currently there is a limitation to change the values when > the output is enabled. Since the driver is bas

Re: [PATCH] fastboot: release usb_gadget on reboot commands

2022-07-26 Thread Mattijs Korpershoek
On Mon, Jul 25, 2022 at 17:30, Marek Vasut wrote: > On 7/25/22 15:19, Mattijs Korpershoek wrote: >> On ven., juil. 22, 2022 at 23:48, Marek Vasut wrote: >> >>> On 7/21/22 15:59, Mattijs Korpershoek wrote: >>> >>> [...] >>> diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/ga

Build with CONFIG_TOOLS_LIBCRYPTO disabled is broken

2022-07-26 Thread Alexander Dahl
Hei hei, once again I tried building U-Boot with CONFIG_TOOLS_LIBCRYPTO disabled and with no libssl-dev installed on the build machine. It does not work. Even porting the patch disabling the build with kwbimage (see links below) does not help anymore, because since commit 6e052d1cbafb ("mkimag

Re: [PATCH v3 3/4] spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4

2022-07-26 Thread Xavier Drudis Ferran
Thank you for your time looking at the patch. El Tue, Jul 26, 2022 at 12:43:06PM +0530, Pratyush Yadav deia: > > Please don't put the changelog in the commit message. Put it below the 3 > dashed lines below. > Sorry. Will try to remember it next time. Not sure there's a next version of this

Re: [PATCH] mmc: Do not send status of send_status is false

2022-07-26 Thread Jaehoon Chung
On 7/15/22 08:58, Marek Vasut wrote: > Commit 44645f87de5 ("mmc: Fix mmc_switch excessive timeout") introduced > a side effect where CMD13 SEND_STATUS is issued in case mmc_wait_dat0() > does not return -ENOSYS and $send_status is not set. This happens on all > hardware which does implement .mmc_wa

Re: [PATCH v2] mmc: fsl_esdhc_spl: Add support for loading proper U-Boot from unaligned location

2022-07-26 Thread Jaehoon Chung
On 6/20/22 19:54, Pali Rohár wrote: > This allows to concatenate SPL and proper U-Boot without extra alignment. > > Signed-off-by: Pali Rohár Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > Changes in v2: > * Rebased on top of the U-Boot next branch, commit > 98c4828740f49444

Re: [PATCH] drivers: mmc: Reset watchdog when accessing mmc device

2022-07-26 Thread Jaehoon Chung
On 7/13/22 16:32, qianfangui...@163.com wrote: > From: qianfan Zhao > > watchdog will reset when 'mmc read' or 'ext4load' a large file from mmc > device. Reset watchdog when accessing mmc device. I don't know why this patch is need. Best Regards, Jaehoon Chung > > Signed-off-by: qianfan Zhao

Re: Replace make-fit-atf.py with binman. Was: migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-07-26 Thread Quentin Schulz
Hi Xavier, On 7/25/22 19:33, Xavier Drudis Ferran wrote: El Mon, Jul 25, 2022 at 07:29:53PM +0200, Xavier Drudis Ferran deia: I copy here the rockchip-u-boot.dtsi file and then 2 patches on top of yours. Sorry I copied a dirty version that din't work. The patches were correct, the dtsi was

Re: [PATCH v3 3/4] spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4

2022-07-26 Thread Pratyush Yadav
On 26/07/22 10:27AM, Xavier Drudis Ferran wrote: > > Thank you for your time looking at the patch. > > El Tue, Jul 26, 2022 at 12:43:06PM +0530, Pratyush Yadav deia: > > > > Please don't put the changelog in the commit message. Put it below the 3 > > dashed lines below. > > > > Sorry. Will tr

Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-07-26 Thread Stefano Babic
Hi Gaurav, On 29.06.22 10:35, Gaurav Jain wrote: Hi Stefano this patch is fixing dcache issue in fsl_rsa.c The thread changed name, I mean "crypto/fsl: fsl_hash: Fix crash in flush dcache" Error reported is in drivers/crypto/fsl/fsl_hash.c addr = (addr << 32) | sec_in32(&ctx->sg_tbl[i].a

Re: [SPAM] Re: [PATCH v3 3/4] spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4

2022-07-26 Thread Xavier Drudis Ferran
El Tue, Jul 26, 2022 at 02:39:09PM +0530, Pratyush Yadav deia: > > Yes, this is indeed a chicken and egg problem of sorts. The octal mode > soft reset I added is a hack that gets _some_ flashes working but not > all. I see 3 possible ways to solve this: > But it was a hack that solved a proble

[GIT PULL] xilinx patches for v2022.10-rc2

2022-07-26 Thread Michal Simek
Hi Tom, please pull the following patches to your tree. CI loop doesn't show any problem. Thanks, Michal The following changes since commit 6e15cda270a060cf87c6c643a1cc3da65ffb242d: Prepare v2022.10-rc1 (2022-07-25 20:31:12 -0400) are available in the Git repository at: g...@source.denx

Re: [ANN] U-Boot v2022.10-rc1 released

2022-07-26 Thread Alexander Dahl
Hey hey, Am Dienstag, 26. Juli 2022, 02:33:33 CEST schrieb Tom Rini: > Hey all, > > It's release day and so here's v2022.10-rc1. There's a lot in here, and > there's a few more things yet to come, hopefully this week, in terms of > pull requests, and also pulling things out of my own queue. > >

Re: [PATCH] net: phy: Read physical phy IDs before phy is created

2022-07-26 Thread Michal Simek
po 25. 7. 2022 v 13:13 odesílatel Michal Simek napsal: > > ethernet-phy-id directly specify phy ID which is present on the board but > there is no code which really checks that specified phy ID is actually > present on the board. That's why read phy ID regs with get_phy_id() call > and compare it

[PATCH v4 1/4] board: dhelectronics: Implement common MAC address functions

2022-07-26 Thread Philip Oberfichtner
This is a starting point for unifying duplicate code in the DH board files. The functions for setting up MAC addresses are very similar for the i.MX6, i.MX8 and stm32mp1 based boards. All pre-existing implementations follow the same logic: (1) Check if ethaddr is already set in the environment (2

[PATCH v4 2/4] ARM: imx6: DH: Use common MAC address functions

2022-07-26 Thread Philip Oberfichtner
To reduce code duplication, let the imx6 based DH boards use the common code for setting up their MAC addresses. Signed-off-by: Philip Oberfichtner Tested-by: Marek Vasut Reviewed-by: Marek Vasut --- (no changes since v3) Changes in v3: - Reviewed by Marek Changes in v2: - Te

[PATCH v4 0/4] Deduplicate dhelectronics board files

2022-07-26 Thread Philip Oberfichtner
This series unifies common MAC address code for imx6, imx8 and stm32 based boards by DH. It is thought of as a starting point for more deduplication in the future. Changes in v4: - Replace printf() by log_err() in stm32 board file - stm32 changes reviewed by Patrick Changes in v

[PATCH v4 3/4] ARM: imx8: DH: Use common MAC address functions

2022-07-26 Thread Philip Oberfichtner
To reduce code duplication, let the imx8 based DH boards use the common code for setting up their MAC addresses. Signed-off-by: Philip Oberfichtner Tested-by: Marek Vasut Reviewed-by: Marek Vasut --- (no changes since v3) Changes in v3: - Reviewed by Marek Changes in v2: - Te

[PATCH v4 4/4] ARM: stm32: DH: Use common MAC address functions

2022-07-26 Thread Philip Oberfichtner
To reduce code duplication, let the stm32 based DH boards use the common code for setting up their MAC addresses. Signed-off-by: Philip Oberfichtner Tested-by: Marek Vasut Reviewed-by: Marek Vasut Reviewed-by: Patrick Delaunay --- Changes in v4: - Replace printf() by log_err()

Re: [PATCH] fastboot: release usb_gadget on reboot commands

2022-07-26 Thread Marek Vasut
On 7/26/22 10:25, Mattijs Korpershoek wrote: [...] implementation, which would cover all such odd states for every other USB UDC mode of operation, not just fastboot ? Implementing a platform_reset to reset the usb controller also works. I discussed this with Neil at [1] and he suggested to sen

[PATCH] MAINTAINERS: Update file list for ARM Freescale IMX

2022-07-26 Thread sbabic
> The MAINTAINERS file currently lists files in > arch/arm/include/asm/arch-imx/ being part of the IMX maintainers > purview, however the arch/arm/include/asm/ directory also contains the > directories arch-imx8, arch-imx8m, arch-imx8ulp and arch-imxrt which > would also appear to be relevant to th

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

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

2022-07-26 Thread sbabic
> From: Peng Fan > Add USB2_BOOT type for i.MX8ULP and i.MX9 > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang D

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

2022-07-26 Thread sbabic
> From: Ye Li > Select env storages according to boot device at runtime > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering Gm

[PATCH] imx: syscounter: support timer_get_boot_us

2022-07-26 Thread sbabic
> With supporting timer_get_boot_us, we can profile boot up time with below > configs and function bootstage_mark_name(). > CONFIG_BOOTSTAGE=y > CONFIG_BOOTSTAGE_REPORT=y > CONFIG_CMD_BOOTSTAGE=y > Signed-off-by: Jun Nie > Acked-by: Shawn Guo > Reviewed-by: Fabio Estevam Applied to u-boot-imx, m

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Softwa

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Ste

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

2022-07-26 Thread sbabic
> From: Peng Fan > When CONFIG_CLK is not enabled, there will be buil break: > "error: ‘eqos’ undeclared (first use in this function)" > Take eqos definition out the CONFIG_CLK ifdef. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH V2 51/53] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-07-26 Thread sbabic
> 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

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano B

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DEN

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

2022-07-26 Thread sbabic
> From: Peng Fan > i.MX9 shares same register layout as i.MX7ULP, so > add the i.MX9 define here. > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering Gmb

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

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

2022-07-26 Thread sbabic
> 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 Gu

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

2022-07-26 Thread sbabic
> 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. A

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

2022-07-26 Thread sbabic
> 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

  1   2   >