[PATCH v2] rockchip: spl-boot-order: Defer probe of boot device

2025-08-04 Thread Jonas Karlman
Boot devices are being probed when SPL boot order is determined, this may unnecessarily delay boot slightly. Instead defer probe of the boot device until SPL try to load image from the boot device by using uclass_find_device_by_of_offset() instead of the get variant. Signed-off-by: Jonas Karlman

[PATCH v2 2/3] rockchip: rk3588-generic: Enable support for RK3582

2025-08-04 Thread Jonas Karlman
fail cpu cpu@700 Signed-off-by: Jonas Karlman --- v2: Mention RK3582 in generic board device tree and documentation --- arch/arm/dts/rk3588-generic.dts | 4 ++-- configs/generic-rk3588_defconfig | 1 + doc/board/rockchip/rockchip.rst | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff

[PATCH v2 1/3] rockchip: Add initial RK3582 support

2025-08-04 Thread Jonas Karlman
policy as vendor U-Boot for RK3582, i.e. two big cpu cores and the gpu is always failed/disabled. Enable Kconfig option OF_SYSTEM_SETUP in board defconfig to make use of the required DT fixups for RK3582 board variants. Signed-off-by: Jonas Karlman --- Changes in v2: - Refactor code to first

[PATCH v2 3/3] rockchip: rk3588s-rock-5c: Add support for ROCK 5C Lite variant

2025-08-04 Thread Jonas Karlman
fail rkvdec0 fail rkvdec1 fail rkvenc1 fail cpu cpu@600 fail cpu cpu@700 Signed-off-by: Jonas Karlman --- v2: New patch --- arch/arm/mach-rockchip/rk3588/Kconfig | 9 + configs/rock-5c-rk3588s_defconfig | 1 + doc/board/rockchip/rockchip.rst | 2 +- 3 files changed, 7

[PATCH v2 0/3] rockchip: Add initial RK3582 support

2025-08-04 Thread Jonas Karlman
policy to ip-state and then fail cores based on the updated ip-state - Add support for failing rkvdec and rkvenc cores - Append soc compatible to board model - Add patch to add support for ROCK 5C Lite variant Jonas Karlman (3): rockchip: Add initial RK3582 support rockchip: rk3588-generic: Enable

Re: [PATCH] USB OTG: make dwc2 otg driver dependent on Exynos platform

2025-08-04 Thread Jonas Karlman
Hi Marius, On 8/4/2025 11:43 AM, Marius Dinu wrote: > drivers/usb/gadget/dwc2_udc_otg_phy.c uses s5p_cpu_id, > which is only defined for Exynos CPUs. > > Signed-off-by: Marius Dinu > --- > drivers/usb/gadget/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/dri

[PATCH v3 4/4] HACK: rockchip: Add miniall.ini files to simplify test of RAM boot

2025-08-02 Thread Jonas Karlman
loader image can be used with tools such as rkdeveloptool or rockusb tools when a device is in maskrom mode, e.g.: $ rkdeveloptool db u-boot-rockchip-rk3588-loader.bin or $ rockusb download-boot u-boot-rockchip-rk3588-loader.bin Signed-off-by: Jonas Karlman --- v3: New patch NOT intended to

[PATCH v3 3/4] rockchip: sdram: Add fallback that fixup DRAM gaps on RK3588

2025-08-02 Thread Jonas Karlman
RK3588 boards with 16+ GiB DRAM into Linux. Signed-off-by: Jonas Karlman --- v3: No change v2: New patch to fix booting into OS on RK3588 boards with 16+ GiB DRAM --- arch/arm/mach-rockchip/rk3588/rk3588.c | 27 ++ arch/arm/mach-rockchip/sdram.c | 7 ++- 2 files

[PATCH v3 2/4] rockchip: Add support for RAM boot from maskrom mode

2025-08-02 Thread Jonas Karlman
bin $ rkflashtool L < u-boot-rockchip-usb472.bin or $ rkusbboot u-boot-rockchip-usb471.bin u-boot-rockchip-usb472.bin Signed-off-by: Jonas Karlman Tested-by: Arnaud Patard --- Changes in v3: - Use read_brom_bootsource_id() to support RAM boot on RK3576 - Add a rockchip-ramboot.config fragment to

[PATCH v3 1/4] rockchip: Move TEXT_BASE to 8 MiB offset from start of DRAM

2025-08-02 Thread Jonas Karlman
DRAM. Signed-off-by: Jonas Karlman Tested-by: Arnaud Patard Reviewed-by: Kever Yang --- v3: Collect r-b tag v2: Collect t-b tag --- arch/arm/mach-rockchip/Kconfig| 6 +++--- arch/arm/mach-rockchip/rk3308/Kconfig | 3 --- arch/arm/mach-rockchip/rk3568/Kconfig | 3 --- arch/arm/mach-rockchip

[PATCH v3 0/4] rockchip: Add support for RAM boot from maskrom mode

2025-08-02 Thread Jonas Karlman
board: rockchip: Add Radxa ROCK 4D" [2] series for a clean apply. See [3] for a branch including both depends. [1] https://patchwork.ozlabs.org/cover/2118033/ [2] https://patchwork.ozlabs.org/cover/2118088/ [3] https://source.denx.de/u-boot/contributors/kwiboo/u-boot/-/commits/ramboot-v3

[PATCH v2 3/4] rockchip: rk3576: Add SPI Flash boot support

2025-08-01 Thread Jonas Karlman
: Jonas Karlman --- v2: No change --- arch/arm/dts/rk3576-u-boot.dtsi| 36 ++ arch/arm/mach-rockchip/rk3576/rk3576.c | 23 2 files changed, 59 insertions(+) diff --git a/arch/arm/dts/rk3576-u-boot.dtsi b/arch/arm/dts/rk3576-u-boot.dtsi index fb5a107f47d9

[PATCH v2 2/4] rockchip: spl: Add a read_brom_bootsource_id() helper

2025-08-01 Thread Jonas Karlman
board using this config). - Booting from USB report a new bootsource id 0x81. Add a helper function to read the bootsource id. This helper function will be used to translate the new values to the common BROM_BOOTSOURCE enum values on RK3576. Signed-off-by: Jonas Karlman --- v2: No change

[PATCH v2 4/4] board: rockchip: Add Radxa ROCK 4D

2025-08-01 Thread Jonas Karlman
these boards. Signed-off-by: Jonas Karlman --- v2: Add comment about the reset-gpios prop rename --- arch/arm/dts/rk3576-rock-4d-u-boot.dtsi | 19 +++ arch/arm/mach-rockchip/rk3576/MAINTAINERS | 6 ++ configs/rock-4d-rk3576_defconfig | 68 +++ doc/board/ro

[PATCH v2 0/4] board: rockchip: Add Radxa ROCK 4D

2025-08-01 Thread Jonas Karlman
port sclk_x2 version Jonas Karlman (3): rockchip: spl: Add a read_brom_bootsource_id() helper rockchip: rk3576: Add SPI Flash boot support board: rockchip: Add Radxa ROCK 4D arch/arm/dts/rk3576-rock-4d-u-boot.dtsi | 19 ++ arch/arm/dts/rk3576-u-boot.dtsi | 36 +++

[PATCH v2 1/4] spi: rockchip_sfc: Support sclk_x2 version

2025-08-01 Thread Jonas Karlman
From: Jon Lin SFC after version 8 supports dtr mode, so the IO is the binary output of the controller clock. Signed-off-by: Jon Lin Signed-off-by: Jonas Karlman --- v2: No change --- drivers/spi/rockchip_sfc.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a

[PATCH v3 2/3] phy: rockchip: naneng-combphy: Add support for RK3576

2025-08-01 Thread Jonas Karlman
From: Jon Lin Add support for the PCIe/USB3/SATA combo PHYs used in the RK3576 SoC. Config values are taken from vendor U-Boot linux-6.1-stan-rkr5 tag. Signed-off-by: Jon Lin Signed-off-by: Jonas Karlman --- v3: Ensure USB3OTG U3 port is enabled when USB3 PHY is used v2: New patch I have

[PATCH v3 3/3] board: rockchip: Add ArmSoM Sige5

2025-08-01 Thread Jonas Karlman
and various video outputs. Features tested on a ArmSoM Sige5 v1.1: - SD-card boot - eMMC boot - Ethernet - PCIe NVMe Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- Changes in v3: - No change Changes in v2: - Enable PCIe, NVMe and USB Kconfig options - Collect r-b tag --- arch/arm

[PATCH v3 1/3] rockchip: clk: clk_rk3576: Add dummy CLK_REF_PCIEx_PHY support

2025-08-01 Thread Jonas Karlman
Add dummy support for the CLK_REF_PCIEx_PHY clocks to allow probe of the phy-rockchip-naneng-combphy driver on RK3576. Signed-off-by: Jonas Karlman --- v3: No change v2: New patch --- drivers/clk/rockchip/clk_rk3576.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip

[PATCH v3 0/3] board: rockchip: Add ArmSoM Sige5

2025-08-01 Thread Jonas Karlman
patchwork.ozlabs.org/cover/2118071/ Jon Lin (1): phy: rockchip: naneng-combphy: Add support for RK3576 Jonas Karlman (2): rockchip: clk: clk_rk3576: Add dummy CLK_REF_PCIEx_PHY support board: rockchip: Add ArmSoM Sige5 arch/arm/dts/rk3576-armsom-sige5-u-boot.dtsi | 18 +++ arch/arm/

[PATCH v3 7/8] phy: rockchip-inno-usb2: Add support for RK3576

2025-08-01 Thread Jonas Karlman
From: Frank Wang Add support for the USB2.0 PHYs used in the RK3576 SoC. Config values are taken from vendor U-Boot linux-6.1-stan-rkr5 tag. Signed-off-by: Frank Wang Signed-off-by: Jonas Karlman --- v3: New patch --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 26 +++ 1

[PATCH v3 2/8] rockchip: Add default USB_GADGET_PRODUCT_NUM for RK3576

2025-08-01 Thread Jonas Karlman
Use 0x350e as the default USB Product ID for Rockchip RK3576, same PID being used by the BootROM when the device is in MASKROM mode. Signed-off-by: Jonas Karlman Reviewed-by: Mattijs Korpershoek --- v3: Collect r-b tag v2: New patch --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1

[PATCH v3 6/8] usb: dwc3-generic: Use combined glue and ctrl node for RK3576

2025-08-01 Thread Jonas Karlman
Like Rockchip RK3328, RK3568 and RK3588, the RK3576 also have a single node to represent the glue and ctrl for USB 3.0. Use rk_ops as driver data to select correct ctrl node for RK3576 DWC3. Signed-off-by: Jonas Karlman --- v3: New patch --- drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file

[PATCH v3 8/8] phy: rockchip: usbdp: Add support for RK3576

2025-08-01 Thread Jonas Karlman
From: Frank Wang Add support for the USB3.0+DP PHY used in the RK3576 SoC. Config values are taken from vendor U-Boot linux-6.1-stan-rkr5 tag. Signed-off-by: Frank Wang Signed-off-by: Jonas Karlman --- v3: New patch --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 26

[PATCH v3 5/8] arm: dts: rockchip: Include OTP in U-Boot pre-reloc phase for RK3576

2025-08-01 Thread Jonas Karlman
Signed-off-by: Jonas Karlman --- v3: No change --- arch/arm/dts/rk3576-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3576-u-boot.dtsi b/arch/arm/dts/rk3576-u-boot.dtsi index be99a48a630f..fb5a107f47d9 100644 --- a/arch/arm/dts/rk3576-u-boot.dtsi +++ b/arch/arm

[PATCH v3 4/8] rockchip: rk3576: Implement checkboard() to print SoC variant

2025-08-01 Thread Jonas Karlman
Implement checkboard() to print current SoC model used by a board when U-Boot proper is running. U-Boot 2025.04 (Apr 22 2025 - 20:43:17 +) Model: Generic RK3576 SoC: RK3576 DRAM: 8 GiB Information about the SoC model and variant is read from OTP. Signed-off-by: Jonas Karlman

[PATCH v3 3/8] board: rockchip: Add minimal generic RK3576 board

2025-08-01 Thread Jonas Karlman
Omni3576 - Toybrick TB-RK3576D Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v3: Drop use of USBDP PHY v2: Add nodes and Kconfig options for USB OTG --- arch/arm/dts/rk3576-generic-u-boot.dtsi | 3 ++ arch/arm/dts/rk3576-generic.dts | 63 +++ arch/arm/mach

[PATCH v3 1/8] rng: rockchip_rng: Add compatible for RK3576

2025-08-01 Thread Jonas Karlman
.6...=.. 0010: f5 84 de 75 6b 27 48 9e 13 62 12 6c 50 ca 47 1a ...uk'H..b.lP.G. 0020: b3 4d fc 43 c5 b5 2d be 07 27 03 26 bb 69 61 2a .M.C..-..'.&.ia* 0030: 6f 70 01 83 4e ce 91 7a 5a 6c 7c 00 43 87 3e c5 op..N..zZl|.C.>. Signed-off-by: Jonas Karlman --- v3:

[PATCH v3 0/8] rockchip: rk3576: Add rng, checkboard() and generic board

2025-08-01 Thread Jonas Karlman
kchip-inno-usb2: Add support for RK3576 phy: rockchip: usbdp: Add support for RK3576 Jonas Karlman (6): rng: rockchip_rng: Add compatible for RK3576 rockchip: Add default USB_GADGET_PRODUCT_NUM for RK3576 board: rockchip: Add minimal generic RK3576 board rockchip: rk3576: Implement check

[PATCH v2 2/2] rockchip: rock5b-rk3588: Add support for ROCK 5B+

2025-08-01 Thread Jonas Karlman
ROCK 5B+ v1.2: - SD-card boot - eMMC boot - SPI flash boot - PCIe/NVMe - Ethernet - USB/TCPM Signed-off-by: Jonas Karlman --- Changes in v2: - Add DRAM type check in addition to SARADC check --- arch/arm/dts/rk3588-rock-5b-plus-u-boot.dtsi | 3 + arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 5

[PATCH v2 1/2] rockchip: sdram: Add rockchip_sdram_type() helper

2025-08-01 Thread Jonas Karlman
Add a helper function based on rockchip_sdram_size() that return what DRAM type is used on current running board. Signed-off-by: Jonas Karlman --- v2: New patch --- arch/arm/include/asm/arch-rockchip/sdram.h | 3 +++ arch/arm/mach-rockchip/sdram.c | 15 +++ 2 files

[PATCH v2 0/2] rockchip: Add support for ROCK 5B+

2025-08-01 Thread Jonas Karlman
-card boot - eMMC boot - SPI flash boot - PCIe/NVMe - Ethernet - USB/TCPM Changes in v2: - Add a DRAM type check to detected ROCK 5B+ variant - Drop device tree patches merged with the v6.16-dts sync Jonas Karlman (2): rockchip: sdram: Add rockchip_sdram_type() helper rockchip: rock5b-rk3588

Re: [PATCH 1/2] rockchip: Add initial RK3582 support

2025-08-01 Thread Jonas Karlman
er re-spinning some of my other series. Regards, Jonas > > Best regards, > > -- > FUKAUMI Naoki > Radxa Computer (Shenzhen) Co., Ltd. > > On 12/11/24 07:23, Jonas Karlman wrote: >> The RK3582 SoC is a variant of the RK3588S with some IP blocks disabled. >>

Re: [PATCH 4/4] rockchip: rock5b-rk3588: Add support for ROCK 5B+

2025-08-01 Thread Jonas Karlman
Hi, On 8/1/2025 8:28 AM, FUKAUMI Naoki wrote: > Hi Jonas, > > On 7/16/25 03:26, Jonas Karlman wrote: >> Hi Sebastian, >> >> On 7/15/2025 6:48 PM, Sebastian Reichel wrote: >>> Hello Jonas, >>> >>> On Mon, Jul 14, 2025 at 10:34:01PM +, J

[PATCH 4/8] rockchip: rk3528: Disable USB3OTG U3 port early

2025-07-30 Thread Jonas Karlman
the USB3OTG U3 port early and leave it to the COMBPHY driver to re-enable the U3 port when a usb3-phy is described in the board device tree. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/rk3528/rk3528.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip

[PATCH 3/8] arm: dts: rockchip: Set init-microvolt for pwm-regulators on Radxa E20C

2025-07-30 Thread Jonas Karlman
Radxa E20C has two main pwm-regulators, vdd_arm and vdd_logic. Add init-microvolt props to ensure the regulators are initialized at the recommended power-on sequence voltage instead of at max voltage. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3528-radxa-e20c-u-boot.dtsi | 8 1

[PATCH 7/8] phy: rockchip: naneng-combphy: Add support for RK3528

2025-07-30 Thread Jonas Karlman
From: Jianwei Zheng Add support for the PCIe/USB3 combo PHY used in the RK3528 SoC. Config values are taken from vendor U-Boot linux-6.1-stan-rkr5 tag. Signed-off-by: Jianwei Zheng Signed-off-by: Jonas Karlman --- .../rockchip/phy-rockchip-naneng-combphy.c| 102 ++ 1

[PATCH 6/8] usb: dwc3-generic: Use combined glue and ctrl node for RK3528

2025-07-30 Thread Jonas Karlman
Like Rockchip RK3328, RK3568 and RK3588, the RK3528 also have a single node to represent the glue and ctrl for USB 3.0. Use rk_ops as driver data to select correct ctrl node for RK3528 DWC3. Signed-off-by: Jonas Karlman --- drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion

[PATCH 5/8] rockchip: clk: clk_rk3528: Add dummy CLK_REF_PCIE_INNER_PHY support

2025-07-30 Thread Jonas Karlman
Add dummy support for the CLK_REF_PCIE_INNER_PHY clock to allow probe of the phy-rockchip-naneng-combphy driver on RK3528. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3528.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk_rk3528.c b/drivers/clk

[PATCH 8/8] rockchip: rk3528-radxa-e20c: Enable USB gadget Kconfig options

2025-07-30 Thread Jonas Karlman
Radxa E20C has a USB OTG Type-C port for Debug and Data. Add required Kconfig options to use USB gadget features once pending USB nodes finally lands in dts/upstream by a future sync. Signed-off-by: Jonas Karlman --- USB nodes for RK3528 has not yet landed in linux-rockchip maintainer tree

[PATCH 1/8] rockchip: rk3528-generic: Fix boot after dts/upstream v6.16-dts merge

2025-07-30 Thread Jonas Karlman
r an alias for serial0 defined for the U-Boot only rk3528-generic device tree. Add a board specific aliases node that include the missing serial0 alias to resolve the boot issue and ensure that stdout-path = "serial0:..." can be resolved by U-Boot. Signed-off-by: Jonas Karlman ---

[PATCH 2/8] arm: dts: rockchip: Use sdmmc node from dts/upstream on RK3528

2025-07-30 Thread Jonas Karlman
Drop the sdmmc node from soc u-boot.dtsi and instead use the sdmmc node from rk3528.dtsi with v6.16-dts now merged to dts/upstream. This cleanup has no intended functional change. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3528-generic-u-boot.dtsi| 9 - arch/arm/dts/rk3528

[PATCH 0/8] rockchip: Fixes and updates for RK3528

2025-07-30 Thread Jonas Karlman
Jonas Karlman (7): rockchip: rk3528-generic: Fix boot after dts/upstream v6.16-dts merge arm: dts: rockchip: Use sdmmc node from dts/upstream on RK3528 arm: dts: rockchip: Set init-microvolt for pwm-regulators on Radxa E20C rockchip: rk3528: Disable USB3OTG U3 port early rockchip: clk

Re: [PATCH v2] rockchip: rockchip-inno-usb2: Fix Synchronous Abort on usb start

2025-07-22 Thread Jonas Karlman
t; clkout_ctl_phy"). >> Fixes: ac30d90f3367 ("clk: Ensure the parent clocks are enabled while >> reparenting") >> Co-authored-by: Jonas Karlman >> Signed-off-by: Alex Shumsky >> --- >> >> Changes in v2: >> - rework patch (add NULL chec

[PATCH 10/10] rockchip: rk3588-generic: Move usb nodes to board dts

2025-07-21 Thread Jonas Karlman
hile at it, also drop use of the usb3-phy as we only want to enable the usb2-phy to be compatible with as many boards as possible. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-generic-u-boot.dtsi | 18 -- arch/arm/dts/rk3588-generic.dts | 16 confi

[PATCH 09/10] rockchip: rk3576: Disable USB3OTG0 U3 port early

2025-07-21 Thread Jonas Karlman
disable the USB3OTG0 U3 port early and leave it to the USBDP PHY driver to re-enable the U3 port when a usb3-phy is described in the board device tree. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/rk3576/rk3576.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach

[PATCH 08/10] rockchip: rk3588: Disable USB3OTG U3 ports early

2025-07-21 Thread Jonas Karlman
disable the USB3OTG U3 ports early and leave it to the USBDP PHY driver to re-enable the U3 port when a usb3-phy is described in the board device tree. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/rk3588/rk3588.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach

[PATCH 07/10] phy: rockchip: typec: Fix improper use of UCLASS_PHY

2025-07-21 Thread Jonas Karlman
. Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-typec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index c48a5cd52676..66d1d32d25cb 100644 --- a/drivers/phy

[PATCH 06/10] phy: rockchip: inno-usb2: Fix improper use of UCLASS_PHY

2025-07-21 Thread Jonas Karlman
this. Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 88b33de1b2a0..d6ce12b5e83d 100644 --- a

[PATCH 05/10] phy: rockchip: naneng-combphy: Use syscon_regmap_lookup_by_phandle

2025-07-21 Thread Jonas Karlman
Change to use syscon_regmap_lookup_by_phandle() helper instead of finding the syscon udevice and making a call to syscon_get_regmap(). No runtime change is expected with this simplication. Signed-off-by: Jonas Karlman --- .../phy/rockchip/phy-rockchip-naneng-combphy.c | 17

[PATCH 04/10] phy: rockchip: naneng-combphy: Simplify init ops

2025-07-21 Thread Jonas Karlman
reset_deassert_bulk() is propertly propagated to the caller. No other runtime change is expected with this simplication. Signed-off-by: Jonas Karlman --- .../rockchip/phy-rockchip-naneng-combphy.c| 101 -- 1 file changed, 19 insertions(+), 82 deletions(-) diff --git a/drivers/phy

[PATCH 03/10] phy: rockchip: naneng-combphy: Fix Generic PHY reference counting

2025-07-21 Thread Jonas Karlman
use of unshared reference counting among different struct phy instances. Initialize the PHY-id in of_xlate ops to ensure use of shared reference counting among all struct phy instances. Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 1 + 1 file changed, 1

[PATCH 02/10] phy: rockchip: usbdp: Simplify init ops

2025-07-21 Thread Jonas Karlman
simplication. No runtime change is expected with this simplication. Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 71 +++ 1 file changed, 8 insertions(+), 63 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy

[PATCH 00/10] rockchip: Fix misc USB PHY related issues

2025-07-21 Thread Jonas Karlman
, this series also moves usb otg related device tree nodes for the Generic RK3588 board from the board u-boot.dtsi to the main board dts. Jonas Karlman (10): phy: rockchip: usbdp: Fix Generic PHY reference counting phy: rockchip: usbdp: Simplify init ops phy: rockchip: naneng-combphy: Fix G

[PATCH 01/10] phy: rockchip: usbdp: Fix Generic PHY reference counting

2025-07-21 Thread Jonas Karlman
evice(s) found scanning usb for storage devices... 1 Storage Device(s) found Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip

Re: [PATCH 4/4] rockchip: rock5b-rk3588: Add support for ROCK 5B+

2025-07-15 Thread Jonas Karlman
Hi Sebastian, On 7/15/2025 6:48 PM, Sebastian Reichel wrote: > Hello Jonas, > > On Mon, Jul 14, 2025 at 10:34:01PM +0000, Jonas Karlman wrote: >> Include FDTs for both ROCK 5B and 5B+ in the FIT and add board >> selection code to load the 5B+ FDT when the ADC channel 5 valu

Re: [PATCH] rockchip: spl-boot-order: Defer probe of boot device

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 3:11 PM, Quentin Schulz wrote: > Hi Jonas, > > On 7/15/25 11:36 AM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 7/15/2025 11:07 AM, Quentin Schulz wrote: >>> Hi Jonas, >>> >>> On 7/12/25 11:12 PM, Jonas Karlman w

Re: [PATCH 4/4] board: rockchip: Add Radxa ROCK 4D

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 12:42 PM, Quentin Schulz wrote: > Hi Jonas, > > On 7/14/25 6:46 PM, Jonas Karlman wrote: >> Hi Quentin, >> >> On 7/14/2025 6:35 PM, Quentin Schulz wrote: >>> Hi Jonas, >>> >>> On 7/12/25 1:06 AM, Jonas Karlman w

Re: [PATCH 12/17] rockchip: odroid-go2: Use env from same storage FIT was loaded from

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 11:46 AM, Quentin Schulz wrote: > Hi Jonas, > > On 7/14/25 1:34 AM, Jonas Karlman wrote: >> Change to dynamically select what storage media to use for the U-Boot >> environment depending on from what storage media the FIT images was >> loaded

Re: [PATCH v2] mmc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528

2025-07-15 Thread Jonas Karlman
ssue is causing this discrepancy. To my knowlede Linux is using interrups during sdhci card inizialization compared to U-Boot, so Linux may not be affected of this issue. Regards, Jonas > > Thanks, > Peng. > >> >> Signed-off-by: Jonas Karlman >> --- >> Cha

Re: [PATCH 03/17] rockchip: odroid-go2: Remove u-boot.dtsi props already defined

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 11:34 AM, Quentin Schulz wrote: > Hi Jonas > > On 7/14/25 1:33 AM, Jonas Karlman wrote: >> DTs from dts/upstream already contain aliases for i2c, mmc and serial. >> >> Remove the aliases and status=okay that are already defined in

Re: [PATCH] rockchip: Ensure env in SPI Flash can work correctly

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 11:11 AM, Quentin Schulz wrote: > Hi Jonas, > > On 7/12/25 11:27 PM, Jonas Karlman wrote: >> Ensure that the spi/sfc node for SPI flash is aviliable during pre-reloc >> phase so that env can successfully be loaded from SPI Flash. >> > &

Re: [PATCH 02/17] rockchip: odroid-go2: Remove cru assigned-clocks override

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 11:19 AM, Quentin Schulz wrote: > Hi Jonas, > > On 7/14/25 1:33 AM, Jonas Karlman wrote: >> Remove the cru assigned-clocks override now that SCLK_GPU is supported >> by the clock driver. >> >> Signed-off-by: Jonas Karlman > > Rev

Re: [PATCH] rockchip: spl-boot-order: Defer probe of boot device

2025-07-15 Thread Jonas Karlman
Hi Quentin, On 7/15/2025 11:07 AM, Quentin Schulz wrote: > Hi Jonas, > > On 7/12/25 11:12 PM, Jonas Karlman wrote: >> Boot devices are being probed when SPL boot order is determined. This >> may delay boot slightly and can prevent booting from SPI Flash on boards >>

[PATCH 4/4] rockchip: rock5b-rk3588: Add support for ROCK 5B+

2025-07-14 Thread Jonas Karlman
boot - eMMC boot - SPI flash boot - PCIe/NVMe - Ethernet - USB/TCPM Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3588-rock-5b-plus-u-boot.dtsi | 3 ++ arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 5 ++ board/radxa/rock5b-rk3588/Kconfig| 5 ++ board/radxa/rock5b-rk3588

[PATCH 3/4] arm64: dts: rockchip: add Rock 5B+

2025-07-14 Thread Jonas Karlman
ed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20250508-rock5bp-for-upstream-v2-4-677033cc1...@kernel.org Signed-off-by: Heiko Stuebner [ upstream commit: 376cb9696298df2028afb620a9dc6c4b10a18605 ] (cherry picked from commit 73262063f45da4fc1cab7cac91f568edc9d0eb7d) Signed-off-by:

[PATCH 0/4] rockchip: Add support for ROCK 5B+

2025-07-14 Thread Jonas Karlman
) on 5B+ variants. Features tested on a ROCK 5B+ v1.2: - SD-card boot - eMMC boot - SPI flash boot - PCIe/NVMe - Ethernet - USB/TCPM Diederik de Haas (1): arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3588-rock-5b Jonas Karlman (1): rockchip: rock5b-rk3588: Add support for ROCK 5B

[PATCH 2/4] arm64: dts: rockchip: move rock 5b to include file

2025-07-14 Thread Jonas Karlman
squash of both of them to facilitate bisectability and was also intended by the original author] Signed-off-by: Heiko Stuebner [ upstream commit: aadfbdcf7e1e7f3892e0e4bdcc3c9c7c9adfb723 ] (cherry picked from commit 4238190b0f4922314c15a8fe575cb90ee263825d) Signed-off-by: Jonas Karlman

[PATCH 1/4] arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3588-rock-5b

2025-07-14 Thread Jonas Karlman
rom commit b31830e88153e20bf3454e210760264b7f24b206) Signed-off-by: Jonas Karlman --- dts/upstream/src/arm64/rockchip/rk3588-rock-5b.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/dts/upstream/src/arm64/rockchip/rk3588-rock-5b.dts b/dts/upstream/src/arm64/rockchip/rk3588-rock-5b.dts index d2

[PATCH v2] mmc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528

2025-07-14 Thread Jonas Karlman
RK3528, remaining SoCs still use the automatic tap value, (DLL_LOCK_VALUE * 2) % 256, same value we configure manually for RK3528. Signed-off-by: Jonas Karlman --- Changes in v2: - Rename flag and field value to function name, TAPVALUE_FROM_SW - Simplify and make code more understandable with use of

Re: [PATCH 4/4] board: rockchip: Add Radxa ROCK 4D

2025-07-14 Thread Jonas Karlman
Hi Quentin, On 7/14/2025 6:35 PM, Quentin Schulz wrote: > Hi Jonas, > > On 7/12/25 1:06 AM, Jonas Karlman wrote: >> The Radxa ROCK 4D is a compact single-board computer (SBC) featuring >> numerous top-tier functions, features, and expansion options. >> >> Equ

Re: [PATCH] mmc: rockchip_sdhci: Set xx_TAP_VALUE for RK3528

2025-07-14 Thread Jonas Karlman
Hi Quentin, On 7/14/2025 5:38 PM, Quentin Schulz wrote: > Hi Jonas, > > On 7/10/25 6:21 PM, Jonas Karlman wrote: >> eMMC erase and write support on RK3528 is somewhat unreliable, sometime >> e.g. mmc erase and write commands will fail with an error. >> >> Use t

[PATCH 15/17] rockchip: odroid-go2: Enable more commands

2025-07-13 Thread Jonas Karlman
Enable the default commands and some more useful commands that can be useful to determin the state of the board from U-Boot CLI. Signed-off-by: Jonas Karlman --- configs/odroid-go2_defconfig | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/configs/odroid

[PATCH 14/17] rockchip: odroid-go2: Turn on the blue LED at boot

2025-07-13 Thread Jonas Karlman
Use default-state prop to ensure that the blue heartbeat LED turns on at boot to inticate that U-Boot proper has been reached. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/rk3326-odroid-go2-u

[PATCH 17/17] arm: dts: rockchip: Include OTP in U-Boot pre-reloc phase for RK3326

2025-07-13 Thread Jonas Karlman
(total 1022 MiB) Signed-off-by: Jonas Karlman --- This patch only makes sense together with "rockchip: px30/rk3326: Implement checkboard() to print SoC variant" [1] [1] https://patchwork.ozlabs.org/patch/2095941/ --- arch/arm/dts/rk3326-u-boot.dtsi | 4 1 file changed, 4 insertion

[PATCH 16/17] rockchip: odroid-go2: Add myself as a reviewer

2025-07-13 Thread Jonas Karlman
I have the ORDOID-GO Super variant of this board. Add myself as a reviewer to help review future patches targeting this device. Signed-off-by: Jonas Karlman --- board/hardkernel/odroid_go2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/hardkernel/odroid_go2/MAINTAINERS

[PATCH 13/17] rockchip: odroid-go2: Enable RockUSB, button, LED and RNG support

2025-07-13 Thread Jonas Karlman
Enable Kconfig options to support RockUSB, buttons, LEDs and RNG featured on the board or SoC. Signed-off-by: Jonas Karlman --- configs/odroid-go2_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/odroid-go2_defconfig b/configs/odroid-go2_defconfig index

[PATCH 12/17] rockchip: odroid-go2: Use env from same storage FIT was loaded from

2025-07-13 Thread Jonas Karlman
MMC... Reading from MMC(0)... or U-Boot SPL 2025.07 (Jul 13 2025 - 10:07:16 +) Trying to boot from SPI ... Loading Environment from SPIFlash... Signed-off-by: Jonas Karlman --- board/hardkernel/odroid_go2/Kconfig | 1 + board/hardkernel/odroid_go2/go2.c | 34

[PATCH 11/17] rockchip: odroid-go2: Select board FDT from FIT in SPL

2025-07-13 Thread Jonas Karlman
) PMIC: RK817 (on=0x80, off=0x08) Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi| 3 +- .../arm/dts/rk3326-odroid-go2-v11-u-boot.dtsi | 3 ++ arch/arm/dts/rk3326-odroid-go3-u-boot.dtsi| 3 ++ board/hardkernel/odroid_go2/Kconfig | 6 +++ board

[PATCH 10/17] rockchip: odroid-go2: Add support for SPI flash boot

2025-07-13 Thread Jonas Karlman
The ODROID GO2 devices come with onboard SPI flash, add support for using the SPI flash. The BootROM seem to expect the IDBlock at 64 KiB offset compared to the typical 32 KiB offset from start of SPI flash used by other SoCs. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-u-boot.dtsi

[PATCH 09/17] rockchip: odroid-go2: Use power off at power plug-in event

2025-07-13 Thread Jonas Karlman
Include the RK817 PMIC in SPL and enable Kconfig options to power off the handheld gaming device when it was powered on due to a power cable plug-in event: DDR3, 333MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS=1 Die BW=16 Size=1024MB out Power Off due to plug-in event Signed-off-by: Jonas Karlman

[PATCH 06/17] rockchip: odroid-go2: Remove unsupported Kconfig options

2025-07-13 Thread Jonas Karlman
display/video related Kconfig options. There is no real functional change expected with these options removed. Signed-off-by: Jonas Karlman --- configs/odroid-go2_defconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/configs/odroid-go2_defconfig b/configs/odroid-go2_defconfig index

[PATCH 07/17] rockchip: odroid-go2: Update Kconfig options for SPL

2025-07-13 Thread Jonas Karlman
to ensure device aliases are applied in SPL. Drop use of SPL_TINY_MEMSET, there is plenty room for the normal memset. Signed-off-by: Jonas Karlman --- configs/odroid-go2_defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/odroid-go2_defconfig b/configs

[PATCH 08/17] rockchip: odroid-go2: Include pinctrl for sdmmc, sfc and uart in SPL

2025-07-13 Thread Jonas Karlman
Include pinctrl nodes and props for sdmmc, sfc and uart in SPL to ensure pins are configured according to the device tree. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 10 arch/arm/dts/rk3326-u-boot.dtsi| 58 ++ configs

[PATCH 05/17] rockchip: odroid-go2: Move SoC common overrides into a SoC u-boot.dtsi

2025-07-13 Thread Jonas Karlman
Add a new common rk3326-u-boot.dtsi and move the SoC common overrides into it. This should not contain any changes other than a possible reorder of nodes and props. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 78 ++ arch/arm/dts/rk3326-u

[PATCH 03/17] rockchip: odroid-go2: Remove u-boot.dtsi props already defined

2025-07-13 Thread Jonas Karlman
DTs from dts/upstream already contain aliases for i2c, mmc and serial. Remove the aliases and status=okay that are already defined in upstream board or SoC DT. Signed-off-by: Jonas Karlman --- This also remove a bad re-defined alias for spi0, SPI flash support will be added/fixed in a later

[PATCH 04/17] rockchip: odroid-go2: Use appropriate bootph props

2025-07-13 Thread Jonas Karlman
GPIO devices are needed in U-Boot proper phase, sdmmc and sfc devices are needed in SPL and pre-reloc phase. Update bootph- props to match what boot phase devices are needed at. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 16 +++- 1 file changed, 7

[PATCH 02/17] rockchip: odroid-go2: Remove cru assigned-clocks override

2025-07-13 Thread Jonas Karlman
Remove the cru assigned-clocks override now that SCLK_GPU is supported by the clock driver. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi b/arch/arm/dts

[PATCH 01/17] clk: px30: Allow use of GPU and WIFI_PMU in assigned-clocks

2025-07-13 Thread Jonas Karlman
Add dummy implementation of set_rate for SCLK_GPU and SCLK_WIFI_PMU to allow use of dts/upstream assigned-clocks in cru and pmucru nodes. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_px30.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/rockchip/clk_px30.c b

[PATCH 00/17] rockchip: odroid-go2: Add support for SPI flash boot and more

2025-07-13 Thread Jonas Karlman
@ff16 Err: serial@ff16 Net: No ethernet found. Hit any key to stop autoboot: 0 => The final patch in this series enables use of the feature added in "rockchip: px30/rk3326: Implement checkboard() to print SoC variant" [1] [1] https://patchwork.ozlabs.org/patch/20

Re: [PATCH v3] rockchip: px30/rk3326: Implement checkboard() to print SoC variant

2025-07-13 Thread Jonas Karlman
ff-by: Quentin Schulz I have now tested this on my RK3326 ODROID-GO Super: U-Boot 2025.07 (Jul 13 2025 - 10:07:16 +) Model: ODROID-GO Super SoC: RK3326 DRAM: 1 GiB (total 1022 MiB) so this is, Reviewed-by: Jonas Karlman Regards, Jonas > --- > Tested on a PX30 Ringneck

[PATCH] rockchip: Ensure env in SPI Flash can work correctly

2025-07-12 Thread Jonas Karlman
Ensure that the spi/sfc node for SPI flash is aviliable during pre-reloc phase so that env can successfully be loaded from SPI Flash. No boards with these SoCs seem to be affected as there is no default use of ENV_IS_IN_SPI_FLASH=y. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3328-u

[PATCH] rockchip: spl-boot-order: Defer probe of boot device

2025-07-12 Thread Jonas Karlman
image from the boot device by using uclass_find_device_by_of_offset() instead of the get variant. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/spl-boot-order.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach

[PATCH 4/4] board: rockchip: Add Radxa ROCK 4D

2025-07-11 Thread Jonas Karlman
these boards. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3576-rock-4d-u-boot.dtsi | 15 + arch/arm/mach-rockchip/rk3576/MAINTAINERS | 6 ++ configs/rock-4d-rk3576_defconfig | 68 +++ doc/board/rockchip/rockchip.rst | 1 + 4 files changed, 90 inse

[PATCH 3/4] rockchip: rk3576: Add SPI Flash boot support

2025-07-11 Thread Jonas Karlman
: Jonas Karlman --- arch/arm/dts/rk3576-u-boot.dtsi| 36 ++ arch/arm/mach-rockchip/rk3576/rk3576.c | 23 2 files changed, 59 insertions(+) diff --git a/arch/arm/dts/rk3576-u-boot.dtsi b/arch/arm/dts/rk3576-u-boot.dtsi index fb5a107f47d9..c7ed09e03eec

[PATCH 2/4] rockchip: spl: Add a read_brom_bootsource_id() helper

2025-07-11 Thread Jonas Karlman
board using this config). - Booting from USB report a new bootsource id 0x81. Add a helper function to read the bootsource id. This helper function will be used to translate the new values to the common BROM_BOOTSOURCE enum values on RK3576. Signed-off-by: Jonas Karlman --- arch/arm/include/asm

[PATCH 0/4] board: rockchip: Add Radxa ROCK 4D

2025-07-11 Thread Jonas Karlman
lean apply. [1] https://patchwork.ozlabs.org/cover/2110236/ Jon Lin (1): spi: rockchip_sfc: Support sclk_x2 version Jonas Karlman (3): rockchip: spl: Add a read_brom_bootsource_id() helper rockchip: rk3576: Add SPI Flash boot support board: rockchip: Add Radxa ROCK 4D arch/arm/dts/rk35

[PATCH 1/4] spi: rockchip_sfc: Support sclk_x2 version

2025-07-11 Thread Jonas Karlman
From: Jon Lin SFC after version 8 supports dtr mode, so the IO is the binary output of the controller clock. Signed-off-by: Jon Lin Signed-off-by: Jonas Karlman --- drivers/spi/rockchip_sfc.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/spi

[PATCH v2 6/6] board: rockchip: Add ArmSoM Sige5

2025-07-11 Thread Jonas Karlman
and various video outputs. Features tested on a ArmSoM Sige5 v1.1: - SD-card boot - eMMC boot - Ethernet - PCIe NVMe Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- Changes in v2: - Enable PCIe, NVMe and USB Kconfig options - Collect r-b tag --- arch/arm/dts/rk3576-armsom-sige5-u-boot.

[PATCH v2 4/6] rockchip: clk: clk_rk3576: Add dummy CLK_REF_PCIEx_PHY support

2025-07-11 Thread Jonas Karlman
Add dummy support for the CLK_REF_PCIEx_PHY clocks to allow probe of the phy-rockchip-naneng-combphy driver on RK3576. Signed-off-by: Jonas Karlman --- v2: New patch --- drivers/clk/rockchip/clk_rk3576.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3576.c b

  1   2   3   4   5   6   7   8   9   10   >