Re: [PATCH 21/42] watchdog: ulp_wdog: guard reset_cpu with condition check

2023-04-27 Thread Stefan Roese
On 4/28/23 06:08, Peng Fan (OSS) wrote: From: Peng Fan There will be build error if CONFIG_SYSRESET is enabled, so guard the reset_cpu with condition check here Signed-off-by: Peng Fan Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/watchdog/ulp_wdog.c | 2 ++ 1 file changed, 2

Re: [PATCH 00/42] imx: i.MX9 update

2023-04-27 Thread Stefan Roese
On 4/28/23 06:08, Peng Fan (OSS) wrote: From: Peng Fan This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP. For the watchdog

Re: [PATCH v3] doc:mmc:drop 0x prefixes in read/write examples

2023-04-27 Thread Heinrich Schuchardt
On 4/27/23 12:12, Alexander Shirokov wrote: The patch drops 0x prefixes because all numbers are interpreted as HEX by default. Also, it fixes the mismatch between input arguments and output at 'mmc write' example. Now it's 256 (0x100) blocks. Signed-off-by: Alexander Shirokov ---

Re: [PATCH v5 1/4] efi_loader: get version information from device tree

2023-04-27 Thread Heinrich Schuchardt
Am 28. April 2023 01:35:04 MESZ schrieb Simon Glass : >Hi Masahisa, > >On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima > wrote: >> >> Current FMP->GetImageInfo() always return 0 for the firmware >> version, user can not identify which firmware version is currently >> running through the EFI

Re: [PATCH 16/18] arm: dts: fsl-ls1088a: copy all missing bindings from Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This is effectively: cp linux/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi \ u-boot/arch/arm/dts/fsl-ls1088a.dtsi Tested working with Ten64 board (LS1088A) booting openSUSE Tumbleweed. Signed-off-by: Mathew McBride ---

Re: [PATCH 18/18] arm: dts: ten64: fix header typo and update copyright

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: Somehow, I managed to typo our company name in the U-Boot and Linux kernel submissions. Fix this and update the copyright year at the same time. Signed-off-by: Mathew McBride Acked-by: Peng Fan

Re: [PATCH 17/18] arm: dts: ten64: syncronise device tree with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This synchronises the Linux device tree with U-Boot (cp linux//fsl-ls1088a-ten64.dts uboot//fsl-ls1088a-ten64.dts), as of Linux v6.2-rc5. Missing from the U-Boot copy previously was the Ethernet PCS definitions (required for linking with

Re: [PATCH 16/18] arm: dts: fsl-ls1088a: copy all missing bindings from Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This is effectively: cp linux/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi \ u-boot/arch/arm/dts/fsl-ls1088a.dtsi Tested working with Ten64 board (LS1088A) booting openSUSE Tumbleweed. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 15/18] arm: dts: fsl-ls1088a: move and sync existing bindings to be under /soc

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: Our [U-Boot] copy of fsl-ls1088a.dtsi had all the hardware under the top level, until the DM_SERIAL implementation recently. In this commit, remove any remaining devices (that were in U-Boot, but not touched by previous patches in this series) to

Re: [PATCH 14/18] arm: dts: fsl-ls1088a: syncronise fsl-mc definition with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This moves the fsl-mc device tree definition under the /soc node, as well as adding interrupt and IOMMU definitions that were not in U-Boot before. There are slight differences between the two bindings as we add a "simple-mfd" compatible to

Re: [PATCH 13/18] arm: dts: fsl-ls1088a: syncronise MDIO+PCS U-Boot definitions with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: Synchronise the MDIO controller definitions with Linux, so the controllers will be usable when passing U-Boot's control FDT to Linux. This also adds the PCS (internal controller) definitions which are not used by U-Boot. Caveat: The kernel

Re: [PATCH 12/18] arm: dts: fsl-ls1088a: sync usb controller nodes with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: Synchronise the USB device tree definition with Linux, allowing the U-Boot control FDT to be used to boot a Linux system with working USB. An extra compatible string, "fsl,layerscape-dwc3" is needed for special handling in U-Boot, so has been added

Re: [PATCH 12/18] arm: dts: fsl-ls1088a: sync usb controller nodes with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: Synchronise the USB device tree definition with Linux, allowing the U-Boot control FDT to be used to boot a Linux system with working USB. An extra compatible string, "fsl,layerscape-dwc3" is needed for special handling in U-Boot, so has been added

Re: [PATCH 11/18] arm: dts: fsl-ls1088a: move I2C nodes under "soc" and syncronize with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: U-Boot's definition for the I2C controllers did not contain any clock information. This resulted in the I2C not functioning when the U-Boot control FDT was passed to Linux. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 10/18] arm: dts: fsl-ls1088a: move GPIO controller under "soc" per Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: Move the GPIO controller definitions under the "soc" and in the same relative position as the Linux kernel fsl-ls1088a.dtsi. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 09/18] arm: dts: fsl-ls1088a: import CPU definition from Linux kernel

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This is required for Linux to boot using the same FDT as U-Boot (such as passing the control FDT to bootefi). Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 08/18] arm: dts: fsl-ls1088a: match Linux FDT by disabling PCIe by default

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: The Linux kernel fsl-ls1088a.dtsi disables (status="disabled") all PCIe controllers by default, with the bootloader (i.e U-Boot) enabling the appropriate controllers (specified by the board reset control word/RCW) by FDT fixup. However, U-Boot

Re: [PATCH 07/18] arm: dts: fsl-ls1088a: sync PCIe controller definition with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This moves the PCIe controller definitions under /soc and adopts the same bindings (fsl,ls1088a-pcie) as Linux. Previously, the format was different between the two versions. Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 06/18] arm: dts: fsl-ls1088a: import and sync full SMMU nodes with Linux

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: To synchronise the device tree in U-Boot with Linux, the GIC (Interrupt Controller) and SMMU/IOMMU nodes need to be synchronised before changing any dependent components like PCIe and DPAA2/fsl-mc. Signed-off-by: Mathew McBride Reviewed-by: Peng

[PATCH 14/42] imx9: simplify clk settings

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Simplify the clk root settings with an array Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 6 arch/arm/mach-imx/imx9/clock.c | 38 +++--- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git

Re: [PATCH 05/18] pci: layerscape: add support for kernel/official fsl,ls1088a-pcie binding

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This allows the Layerscape PCIe RC driver to use the upstream style binding (two "reg" entries instead of four). It is similar to the previous commit e10da1f985ad ("pci: layerscape: add official ls1028a binding support") which implemented this for

Re: [PATCH 04/18] arm: dts: fsl-ls1088a: move memory node into U-Boot specific file

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: The top-level "memory" node does not exist in the Linux version of the fsl-ls1088a.dtsi file. Move it to the U-Boot "tweak" file, so we can have an identical copy of fsl-ls1088a.dtsi between the projects in the end. Signed-off-by: Mathew McBride

Re: [PATCH 03/18] arm: dts: fsl-ls1088a: move u-boot bootph tags into u-boot only files

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This moves the bootph-all tags that were added in commit a593c1fec579 ("arch: arm: dts: fsl-ls1088a.dtsi: tag serial nodes with bootph-all") into a u-boot only include. Due to the way the U-Boot device tree "tweak" system is setup[1], we need to

Re: [PATCH 02/18] configs: ten64: enable DM_SERIAL

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: The recent series "Convert LS1088A and LX2160 to DM_SERIAL" from Ioana Ciornei provided the necessary support to enable DM_SERIAL on the Ten64 board (LS1088A). Signed-off-by: Mathew McBride Reviewed-by: Peng Fan

Re: [PATCH 01/18] armv8: fsl-layerscape: check for crypto node first in fdt_fixup_remove_jr

2023-04-27 Thread Peng Fan
On 4/12/2023 3:38 PM, Mathew McBride wrote: This a problem I found while updating the U-Boot fsl-ls1088a.dtsi to match the Linux version. fdt_fixup_remove_jr did not check whether there was a "crypto" alias in the device tree before calling more fdt_* functions, which resulted in a crash.

[PATCH 41/42] imx9: imx93_evk: update ddr timing file

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Update DDR timing file generated by DDR Config Tool 1. Dynamic refresh rate is set by default 2. The 3rd freq will be 625MTS based on power and performance better than 100MTS. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- board/freescale/imx93_evk/lpddr4x_timing.c | 3361

[PATCH 35/42] imx9: imx93_evk: Update spl stack & bss base address

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan As the ddr timing info will be saved at the last 16KB of the OCRAM, spl stack & bss base should be updated to avoid conflict. Signed-off-by: Peng Fan --- configs/imx93_11x11_evk_defconfig| 4 ++-- configs/imx93_11x11_evk_ld_defconfig | 4 ++-- 2 files changed, 4

[PATCH 31/42] imx9: allow to bootaux Mcore with input address

2023-04-27 Thread Peng Fan (OSS)
From: Ye Li Currently bootaux only supports to boot M33 core from TCM. Since ATF has changed to use x2 parameter for M33 image address, update the bootaux command to use input address, so we can support boot from any possilbe address like TCM, DDR, Flexspi NOR. Reviewed-by: Peng Fan

[PATCH 30/42] imx9: imx93_evk: add low drive mode support on 11x11 EVK

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Add a static u-boot config for i.MX93 low drive mode support. When low drive mode is enabled, VDD_SOC is set to 0.75V. Bus clocks, A55 core clock (900Mhz), DDR clock (1866MTS), and some peripherals clocks (USDHC/FLEXSPI/PDM/DISP_PIX/CAM_PIX) must decrease to meet max frequencies

[PATCH 42/42] imx9: imx93_evk: enable sysreset

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Enable sysreset for i.MX93 EVK. Signed-off-by: Peng Fan --- configs/imx93_11x11_evk_defconfig| 3 +++ configs/imx93_11x11_evk_ld_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index

[PATCH 39/42] ddr: imx9: update the rank setting for multi fsp support

2023-04-27 Thread Peng Fan (OSS)
From: Jacky Bai The rank setting flow should be updated to support multi fsp config. Signed-off-by: Jacky Bai Reviewed-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/ddr_init.c | 178 +--- 1 file changed, 116 insertions(+), 62 deletions(-) diff --git

[PATCH 40/42] imx9: Calculate DDR size from DDRC setting

2023-04-27 Thread Peng Fan (OSS)
From: Ye Li To avoid using static setting for ECC enabled DDR size, switch to calculate DDR size from DDRC setting Signed-off-by: Ye Li Reviewed-by: Peng Fan Reviewed-by: Jacky Bai Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 21 + 1 file changed, 17

[PATCH 37/42] ddr: imx93: Add 625M bypass clock support

2023-04-27 Thread Peng Fan (OSS)
From: Jacky Bai Add 625M bypass clock that may be used DRAM 625M bypass mode support. Signed-off-by: Jacky Bai Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 3 +++ drivers/ddr/imx/phy/ddrphy_utils.c | 3 +++ 2 files changed, 6 insertions(+) diff --git

[PATCH 38/42] ddr: imx93: update the ddr init to support mult setpoints

2023-04-27 Thread Peng Fan (OSS)
From: Jacky Bai Update the DDR init flow for multi-setpoint support on i.MX93. A new fsp_cfg struct need to be added in the timing file to store the diff part of the DDRC and DRAM MR register for each setpoint. Signed-off-by: Jacky Bai Reviewed-by: Ye Li Signed-off-by: Peng Fan ---

[PATCH 32/42] arm: dts: imx93: sync device tree with Linux

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Sync device tree with next-20230426 Signed-off-by: Peng Fan --- arch/arm/dts/imx93-11x11-evk-u-boot.dtsi| 29 - arch/arm/dts/imx93-11x11-evk.dts| 385 +++-- arch/arm/dts/imx93-pinfunc.h| 194 --- arch/arm/dts/imx93.dtsi

[PATCH 36/42] ddr: imx9: Change the saved ddr data base to 0x2051c000

2023-04-27 Thread Peng Fan (OSS)
From: Jacky Bai change the ddr saved info to the last 16KB of the OCRAM. Signed-off-by: Jacky Bai Reviewed-by: Peng Fan Reviewed-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 34/42] ddr: imx9: Add workaround for DDRPHY rank-to-rank errata

2023-04-27 Thread Peng Fan (OSS)
From: Ye Li According to DDRPHY errata, the Rank-to-Rank Spacing and tphy_rdcsgap specification does not include the Critical Delay Difference (CDD) to properly define the required rank-to-rank read command spacing after executing PHY training firmware. Following the errata workaround, at the

[PATCH 33/42] arm: dts: imx93: add tmu

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Add tmu nodes and thermal zone Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 48 + 1 file changed, 48 insertions(+) diff --git a/arch/arm/dts/imx93.dtsi b/arch/arm/dts/imx93.dtsi index 73ecd953ec8..13cf32d4b27 100644 ---

[PATCH 27/42] imx9: add i.MX93 variants support

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan According to datasheet, iMX93 has fused parts with CORE1 or NPU or both disabled. So update code to support it, the kernel device tree runtime update will be added in future patches. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 7 +++

[PATCH 29/42] imx9: use i.MX generic rom api function

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan There is no need to save gd with using the generic rom api function, so simplify code. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c

[PATCH 28/42] imx9: correct coding style

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan The end brace should be in a new line Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 074df1e73cf..f91f838e41a 100644 ---

[PATCH 26/42] imx9: clock: config arm alt root to 500mhz

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Config the A55 alt root clock to 500MHz(LD mode frequency) by default. Normally, this clock root is only used as an intermediate clock soure for A55 core/dsu when change the ARM PLL frequency. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 6 ++ 1 file

[PATCH 25/42] imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Add CONFIG_IMX9_LOW_DRIVE_MODE in imx9 clk, later we will add board support Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 arch/arm/mach-imx/imx9/clock.c | 55 +++--- 2 files changed, 56 insertions(+), 4 deletions(-) diff

[PATCH 24/42] imx9: clock: clear HW_CTRL_SEL

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan The HW_CTRL_SEL should be cleared when configuring PLL to avoid potential glitch Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c

[PATCH 23/42] imx9: Get market segment and speed grading

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Get the chip's market segment and speed grading from fuse and print them in boot log as other i.MX series. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/mach-imx/imx9/soc.c | 81 ++- 2 files changed, 83

[PATCH 22/42] imx9: soc: support reset cause

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Support print reset cause. Since SRSR is not accessible from non-secure world, so first save it to grp0, then read it in non-secure world. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 59 1 file changed, 59 insertions(+) diff

[PATCH 15/42] imx9: cut off OPTEE memory region from U-Boot

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan OPTEE memory region is set secure access only in ATF with configuration to TRDC, and need to remove it from U-Boot, otherwise U-Boot and Kernel may crash when accessing the memory Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 149 ++-

[PATCH 16/42] imx9: Change hard coded MAC to read from fuse

2023-04-27 Thread Peng Fan (OSS)
From: Ye Li The MAC addresses are hard coded for bring up. Change it to support reading from fuse. Reviewed-by: Jacky Bai Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 49 +++- 1 file changed, 43 insertions(+), 6 deletions(-)

[PATCH 18/42] imx9: imx93_evk: drop unused macro

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Drop unused macro Signed-off-by: Peng Fan --- include/configs/imx93_evk.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/imx93_evk.h b/include/configs/imx93_evk.h index 7b7bef3ca75..2705587a015 100644 --- a/include/configs/imx93_evk.h +++

[PATCH 21/42] watchdog: ulp_wdog: guard reset_cpu with condition check

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan There will be build error if CONFIG_SYSRESET is enabled, so guard the reset_cpu with condition check here Signed-off-by: Peng Fan --- drivers/watchdog/ulp_wdog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/watchdog/ulp_wdog.c b/drivers/watchdog/ulp_wdog.c

[PATCH 19/42] imx9: imx93_evk: select IMX_TMU

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Select thermal config to print current temperature Signed-off-by: Peng Fan --- configs/imx93_11x11_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index f116d52a655..9f376d39c03 100644

[PATCH 20/42] imx9: imx93_evk: enable CONFIG_WDT

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Without this config, there is boot error: Error binding ulp_wdt driver Signed-off-by: Peng Fan --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index

[PATCH 17/42] imx9: imx93_evk: enable CPU_IMX

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan select CONFIG_CPU_IMX to display cpu info Signed-off-by: Peng Fan --- configs/imx93_11x11_evk_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index 4f8777161e4..f116d52a655 100644 ---

[PATCH 13/42] imx9: correct getting LPI2C clk

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan LPI2C_CLK_ROOT should be used instead of LPUART_CLK_ROOT for i2c Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index

[PATCH 11/42] imx9: add more PLL settings

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Add more PLL settings for A55 and Display Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index 51aa259aa05..7d3a4c01333 100644 ---

[PATCH 12/42] imx9: use parameter freq when set_arm_clk

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan The freq parameter was ignored, should use it when configuring ARM PLL Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index

[PATCH 08/42] imx: imx8_cpu: support get temperature for i.MX9

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Use CONFIG_DM_THERMAL to make the temperature function could be reused by i.MX8 and i.MX9 Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index

[PATCH 10/42] imx9: configure M33 systick to 24M

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan The M33 systick should be 24M per reference mannual, so correct it. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index

[PATCH 07/42] imx: imx8_cpu: support i.MX9

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Add CPU_IMX Kconfig Support imx8_cpu driver for i.MX9 Signed-off-by: Peng Fan --- drivers/cpu/Kconfig| 6 +++ drivers/cpu/Makefile | 1 + drivers/cpu/imx8_cpu.c | 83 -- 3 files changed, 62 insertions(+), 28 deletions(-) diff

[PATCH 09/42] imx: imx8_cpu: print cpu grade temperature

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Support print out cpu grade temperature Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 4da7a99bf30..304d5e59013 100644 ---

[PATCH 06/42] imx: imx8_cpu: use static for local functions

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan For local functions, use static for function. Signed-off-by: Peng Fan --- drivers/cpu/imx8_cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index dc060513b38..e7f45e60dbd 100644 ---

[PATCH 05/42] imx: firmware: sci: add inline functions when IMX8 not enabled

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Since we might reuse some drivers for other platforms, while the drivers have sci firmware api, so to avoid build failure add inline functions Signed-off-by: Peng Fan --- include/firmware/imx/sci/sci.h | 241 + 1 file changed, 241 insertions(+)

[PATCH 04/42] imx: move imx8 sci header file to include/firmware/imx

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Move imx8 sci header file to include/firmware/imx, then we could use build macro to reuse some i.MX8 drivers for i.MX9, such as drivers/cpu/imx8_cpu.c. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/power-domain.h | 2 +- arch/arm/include/asm/arch-imx8/sys_proto.h

[PATCH 03/42] imx: spl_imx_romapi: typo fix

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan Unknow->Unknown Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl_imx_romapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach-imx/spl_imx_romapi.c index 830d5d12c25..9164045115f 100644 ---

[PATCH 02/42] thermal: imx_tmu: Update TMU driver to support iMX93

2023-04-27 Thread Peng Fan (OSS)
From: Ye Li The TMU used on iMX93 is IP revision 2.1 which is different with previous revision used on iMX8MQ. So add a new FLAG V4 for this revision to distinguish the operations. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/thermal/Kconfig | 6 +--

[PATCH 00/42] imx: i.MX9 update

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP. For the watchdog reset_cpu, I will move it out from watchdog

[PATCH 01/42] imx8ulp: build ahab

2023-04-27 Thread Peng Fan (OSS)
From: Peng Fan The ahab was missed to be compiled, so add it back. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/Kconfig | 5 + arch/arm/mach-imx/imx8ulp/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/Kconfig

[PATCH v3 11/11] configs: starfive: Enable ID EEPROM configuration

2023-04-27 Thread Yanhong Wang
Enabled ID_EEPROM and I2C configuration for StarFive VisionFive2 board. Signed-off-by: Yanhong Wang --- configs/starfive_visionfive2_defconfig | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/configs/starfive_visionfive2_defconfig

[PATCH v3 10/11] configs: starfive: Enable ethernet configuration for StarFive VisionFive2

2023-04-27 Thread Yanhong Wang
Enable DWC_ETH_QOS and PHY_MOTORCOMM configuration to support ethernet function for StarFive VisionFive 2 board,including versions 1.2A and 1.3B. Signed-off-by: Yanhong Wang --- configs/starfive_visionfive2_defconfig | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff

[PATCH v3 09/11] doc: board: starfive: Reword the make defconfig information

2023-04-27 Thread Yanhong Wang
The defconfig file name for StarFive VisionFive2 has been changed, and the documentation description has also changed. Signed-off-by: Yanhong Wang --- doc/board/starfive/visionfive2.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/board/starfive/visionfive2.rst

[PATCH v3 08/11] riscv: dts: starfive: Add support eeprom device tree node

2023-04-27 Thread Yanhong Wang
Add support "atmel,24c04" eeprom for StarFive VisionFive2 board. Signed-off-by: Yanhong Wang --- .../dts/jh7110-starfive-visionfive-2-u-boot.dtsi | 14 ++ arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 8 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git

[PATCH v3 07/11] riscv: dts: jh7110: Combine the board device tree files of 1.2A and 1.3B

2023-04-27 Thread Yanhong Wang
The difference between 1.2A and 1.3B is dynamically configured according to the PCB version, and there is no difference on the board device tree, so the same DT file can be used. Signed-off-by: Yanhong Wang --- arch/riscv/dts/Makefile | 3 +- ...

[PATCH v3 06/11] riscv: dts: jh7110: Add ethernet device tree nodes

2023-04-27 Thread Yanhong Wang
Add ethernet device tree node to support StarFive ethernet driver for the JH7110 RISC-V SoC. Signed-off-by: Yanhong Wang --- .../dts/jh7110-starfive-visionfive-2.dtsi | 34 + arch/riscv/dts/jh7110.dtsi| 69 +++ 2 files changed, 103 insertions(+)

[PATCH v3 05/11] board: starfive: Dynamic configuration of DT for 1.2A and 1.3B

2023-04-27 Thread Yanhong Wang
The main difference between StarFive VisionFive 2 1.2A and 1.3B is gmac. You can read the PCB version of the current board by get_pcb_revision_from_eeprom(), and then dynamically configure the difference of gmac in spl_perform_fixups() according to different PCB versions, so that one DT and one

[PATCH v3 03/11] eeprom: starfive: Enable ID EEPROM configuration

2023-04-27 Thread Yanhong Wang
Enabled ID_EEPROM configuration for StarFive VisionFive2 board. Signed-off-by: Yanhong Wang --- arch/riscv/include/asm/arch-jh7110/eeprom.h | 13 + board/starfive/visionfive2/Makefile | 1 + .../visionfive2/visionfive2-i2c-eeprom.c | 560 ++ 3 files changed,

[PATCH v3 04/11] ram: starfive: Read memory size information from EEPROM

2023-04-27 Thread Yanhong Wang
StarFive VisionFive 2 has two versions, 1.2A and 1.3B, each version of DDR capacity includes 2G/4G/8G, a DT can not support multiple capacities, so the capacity size information is recorded to EEPROM, when DDR initialization required capacity size information is read from EEPROM. If there is no

[PATCH v3 02/11] net: dwc_eth_qos: Add StarFive ethernet driver glue layer

2023-04-27 Thread Yanhong Wang
The StarFive ETHQOS hardware has its own clock and reset,so add a corresponding glue driver to configure them. Signed-off-by: Yanhong Wang --- drivers/net/Kconfig| 7 + drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 6 +

[PATCH v3 01/11] net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy

2023-04-27 Thread Yanhong Wang
Add a driver for the motorcomm yt8531 gigabit ethernet phy. We have verified the driver on StarFive VisionFive2 board. Signed-off-by: Yanhong Wang Reviewed-by: Ramon Fried --- drivers/net/phy/Kconfig | 6 + drivers/net/phy/Makefile| 1 + drivers/net/phy/motorcomm.c | 437

[PATCH v3 00/11] Add ethernet driver for StarFive JH7110 SoC

2023-04-27 Thread Yanhong Wang
This series of patches base on the latest branch/master,and adds ethernet support for the StarFive JH7110 RISC-V SoC. The series includes EEPROM, PHY and MAC drivers. The PHY model is YT8531 (from Motorcomm Inc), and the MAC version is dwmac-5.20 (from Synopsys DesignWare). The implementation of

[PATCH] board: starfive: Fixed errors reported when executing get_maintainer.pl

2023-04-27 Thread Yanhong Wang
Fixed errors reported when executing 'scripts/get_maintainer.pl -f configs/starfive_visionfive2_defconfig'. Invalid MAINTAINERS address: 'startfive' Signed-off-by: Yanhong Wang --- board/starfive/visionfive2/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/1] doc: Indicate required OpenSBI release for VisionFive 2

2023-04-27 Thread Leo Liang
On Thu, Apr 27, 2023 at 11:56:58AM +0200, Heinrich Schuchardt wrote: > Support for the VisionFive 2 board is not contained in the most recent > OpenSBI release (v1.2). > > Signed-off-by: Heinrich Schuchardt > --- > doc/board/starfive/visionfive2.rst | 2 ++ > 1 file changed, 2 insertions(+)

[PATCH v1] arm64: dts: rockchip: Add Radxa ROCK 4C Plus support

2023-04-27 Thread Denis 'GNUtoo' Carikli
rk3399-rock-4c-plus.dts and rk3399-t-opp.dtsi were imported from Linux 6.3. Signed-off-by: Denis 'GNUtoo' Carikli --- arch/arm/dts/Makefile| 1 + arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi | 6 + arch/arm/dts/rk3399-rock-4c-plus.dts | 709

Re: [PATCH] Kconfig: Remove an impossible condition

2023-04-27 Thread Andre Przywara
On Sun, 22 Jan 2023 11:23:51 -0600 Samuel Holland wrote: > ARCH_SUNXI selects BINMAN, so the condition "!BINMAN && ARCH_SUNXI" > is impossible to satisfy. Indeed the generic ARCH_SUNXI entry in arch/arm/Kconfig selects BINMAN, so that looks fine. The same seems to be true for ARCH_ROCKCHIP,

Re: [PATCH 3/3] gpio: axp/sunxi: Remove virtual VBUS detection GPIO

2023-04-27 Thread Andre Przywara
On Sun, 22 Jan 2023 17:46:22 -0600 Samuel Holland wrote: > Now that this functionality is modeled using the device tree and > regulator uclass, the named GPIO is not referenced anywhere. Remove it. > > Signed-off-by: Samuel Holland There is indeed no config left that would set

Re: [PATCH 2/3] sunxi: Switch to PMIC USB power supply VBUS detection

2023-04-27 Thread Andre Przywara
On Sun, 22 Jan 2023 17:46:21 -0600 Samuel Holland wrote: > Update boards to use the USB power supply driver, as referenced in the > device tree, instead of a virtual GPIO. This removes the need for some > DM-incompatible special cases in the GPIO driver. Confirmed that it replaces

Re: [PATCH 1/3] power: regulator: Add a driver for the AXP USB power supply

2023-04-27 Thread Andre Przywara
On Sun, 22 Jan 2023 17:46:20 -0600 Samuel Holland wrote: > This driver reports the presence/absence of voltage on the PMIC's USB > VBUS pin. This information is used by the USB PHY driver. The > corresponding Linux driver uses the power supply class, which does not > exist in U-Boot.

Re: [PATCH v5 1/3] regulator: implement basic reference counter

2023-04-27 Thread Tim Harvey
On Wed, Apr 19, 2023 at 6:45 AM Eugen Hristev wrote: > > Some devices share a regulator supply, when the first one will request > regulator disable, the second device will have it's supply cut off before > graciously shutting down. Hence there will be timeouts and other failed > operations. >

Re: Question regarding CONFIG_SPL_OF_PLATDATA_INST usage

2023-04-27 Thread Simon Glass
Hi Lukasz, On Thu, 27 Apr 2023 at 09:23, Lukasz Majewski wrote: > > Hi Simon, > > I'm trying to convert imx28 based XEA board to use CONFIG_DM_SERIAL. > This board uses SPL_OF_PLATDATA to have as small SPL as possible. > > It looks like the 'duart' description/driver is properly instantiated, >

Re: [PATCH v5 1/4] efi_loader: get version information from device tree

2023-04-27 Thread Simon Glass
Hi Masahisa, On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima wrote: > > Current FMP->GetImageInfo() always return 0 for the firmware > version, user can not identify which firmware version is currently > running through the EFI interface. > > This commit gets the version information from device

Re: [PATCH v2 0/7] introduce NVM XIP block storage emulation

2023-04-27 Thread Tom Rini
On Mon, 17 Apr 2023 10:11:51 +0100, Abdellatif El Khlifi wrote: > Adding block storage emulation for NVM XIP flash devices. > > Some paltforms such as Corstone-1000 need to see NVM XIP raw flash > as a block storage device with read only capability. > > Here NVM flash devices are devices with

Re: [PATCH 1/3] arm: dts: imx8mm: Sync with Linux 6.3

2023-04-27 Thread Tim Harvey
On Thu, Apr 27, 2023 at 12:49 PM Fabio Estevam wrote: > > On Thu, Apr 27, 2023 at 4:44 PM Tim Harvey wrote: > > > Fabio, > > > > Sorry for the confusion. > > > > This imx8mm dt sync patch will hang on imx8mm boards that use 'both' > > usbotg1 and usbotg2. You can reproduce this hang on your

atmel_sdhci: SDMMC_CD pin still needed for card detection despite EMMC set to non-removable

2023-04-27 Thread Zixun Li
Hardware: SAMA5D27 customized board, EMMC connected to SDMMC0. SDMMC0_CD pin pulled-down for BootROM card detection, once booted it used as LED output. Software: u-boot-at91 76f7f55 Issue: U-Boot can't detect EMMC despite it set to non-removable in DT, unless SDMMC0_CD pin is used (so this pin

[RFC PATCH v1 7/7] cmd: clk: Remove __weak from soc_clk_dump

2023-04-27 Thread Igor Prusov
After introducing dump to clk_ops there is no need to override this symbol anymore. Signed-off-by: Igor Prusov --- cmd/clk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/clk.c b/cmd/clk.c index 55fb96e631..54491ac577 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -59,7

[RFC PATCH v1 6/7] clk: treewide: switch to clock dump from clk_ops

2023-04-27 Thread Igor Prusov
Switch to using new dump operation in clock provider drivers instead of overriding soc_clk_dump. Signed-off-by: Igor Prusov --- arch/mips/mach-pic32/cpu.c | 23 --- drivers/clk/aspeed/clk_ast2600.c | 13 - drivers/clk/clk_k210.c | 11

[RFC PATCH v1 5/7] cmd: clk: Use dump function from clk_ops

2023-04-27 Thread Igor Prusov
Add another loop to dump additional info from clock providers that implement dump operation. Signed-off-by: Igor Prusov --- cmd/clk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index ff7c7649a1..55fb96e631 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -62,6

[RFC PATCH v1 3/7] clk: k210: Move soc_clk_dump function

2023-04-27 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/clk_k210.c | 92 +- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/clk/clk_k210.c

[RFC PATCH v1 4/7] clk: Add dump operation to clk_ops

2023-04-27 Thread Igor Prusov
This adds dump function to struct clk_ops which should replace soc_clk_dump. It allows clock drivers to provide custom dump implementation without overriding generic CCF dump function. Signed-off-by: Igor Prusov --- include/clk-uclass.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[RFC PATCH v1 1/7] clk: zynq: Move soc_clk_dump to Zynq clock driver

2023-04-27 Thread Igor Prusov
Move clock dump function in preparation for switching to dump function in clk_ops. Signed-off-by: Igor Prusov --- arch/arm/mach-zynq/clk.c | 57 --- drivers/clk/clk_zynq.c | 58 2 files changed, 58 insertions(+), 57

[RFC PATCH v1 2/7] clk: ast2600: Move soc_clk_dump function

2023-04-27 Thread Igor Prusov
Move clock dump function to avoid forward declaration after switching to dump in clk_ops. Signed-off-by: Igor Prusov --- drivers/clk/aspeed/clk_ast2600.c | 70 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/clk/aspeed/clk_ast2600.c

[RFC PATCH v1 0/7] clk: Switch from soc_clk_dump to clk_ops function

2023-04-27 Thread Igor Prusov
Currently clock providers may override default implementation of soc_clk_dump function to replace clk dump command output. This causes confusing behaviour when u-boot is built with one of such drivers enabled but still has clocks defined using CCF. For example, enabling CMD_CLK and using clk dump

  1   2   >