[PATCH v2] configs: rockchip: sync ENV_MEM_LAYOUT_SETTINGS for px30 to rk3308/etc

2025-05-06 Thread Heiko Stuebner
From: Heiko Stuebner Loading a FIT image for kernel, initrd and rootfs on px30 can result in an memory overlap, resulting in the not 100% helpful message of "This will not be a case any time" from lmb_fix_over_lap_regions(). Adding a bit of debug info to lmb_fix_over_lap_region

[PATCH v3 12/15] arm64: dts: rockchip: add rk3576 otp node

2025-04-15 Thread Heiko Stuebner
This adds the otp node to the rk3576 soc devicetree including the individual fields we know about. Tested-by: Nicolas Frattaroli Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210224510.1194963-7-he...@sntech.de [ upstream commit: 8715d2eeb062f6859c252bb6c87b363230b66e9f

[PATCH v3 11/15] net: dwc_eth_qos_rockchip: Add support for RK3576

2025-04-15 Thread Heiko Stuebner
Add rk_gmac_ops and other special handling that is needed for GMAC to work on RK3576. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/net/dwc_eth_qos.c | 4 + drivers/net/dwc_eth_qos_rockchip.c | 154 - 2 files changed, 157 insertions

[PATCH v3 15/15] rockchip: rk3576: Add support for ROC-RK3576-PC board

2025-04-15 Thread Heiko Stuebner
The ROC-RK3576-PC is a SBC made by Firefly, designed around the RK3576 SoC. This adds the needed board infrastructure and config for it. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- arch/arm/dts/rk3576-roc-pc-u-boot.dtsi | 11 ++ arch/arm/mach-rockchip/rk3576/Kconfig

[PATCH v3 10/15] mmc: rockchip_dw_mmc: Add support for rk3576

2025-04-15 Thread Heiko Stuebner
The rk3576 uses a different base-compatible, as starting with this generation, the clock phase tuning is done via registers inside the mmc controller and not from inside the CRU. In U-Boot we do not tune at all, so no other code changes are necessary. Signed-off-by: Heiko Stuebner Reviewed-by

[PATCH v3 14/15] arm64: dts: rockchip: Add devicetree for the ROC-RK3576-PC

2025-04-15 Thread Heiko Stuebner
header Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210205126.1173631-3-he...@sntech.de [ upstream commit: 887ff17cdd8f088a52e2b61e71f2b6c9b9678de6 ] (cherry picked from commit 388e7272d092bd20e414cd408bac39d8fd02d765) --- .../src/arm64/rockchip/rk3576-roc-pc.dts

[PATCH v3 13/15] dt-bindings: arm: rockchip: Add Firefly ROC-RK3576-PC binding

2025-04-15 Thread Heiko Stuebner
Add devicetree binding for the ROC-RK3576-PC SBC. The board is based on the RK3576 SoC (4*Cortex-A72 + 4*Cortex-A53). Acked-by: Rob Herring (Arm) Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210205126.1173631-2-he...@sntech.de [ upstream commit

[PATCH v3 03/15] arm: rockchip: Add RK3576 arch core support

2025-04-15 Thread Heiko Stuebner
, UART, SPI, GPIO and PWM. Add arch core support for it. Signed-off-by: Xuhui Lin [adapted for mainline u-boot] Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- arch/arm/dts/rk3576-u-boot.dtsi | 131 +++ arch/arm/include/asm/arch-rk3576/boot0.h | 11

[PATCH v3 09/15] mmc: rockchip_sdhci: Add support for RK3576

2025-04-15 Thread Heiko Stuebner
Add support for RK3576 to the rockchip sdhci driver. It's pretty similar to its cousins found in the RK3568 and RK3588 and the specific hs400-tx-tap number was taken from the vendor-u-boot. Signed-off-by: Heiko Stuebner Reviewed-by: Jaehoon Chung Reviewed-by: Jonas Karlman --- driver

[PATCH v3 05/15] clk: rockchip: Add rk3576 clk support

2025-04-15 Thread Heiko Stuebner
From: Elaine Zhang Add clock driver support for Rockchip RK3576 SoC. Signed-off-by: Elaine Zhang [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- .../include/asm/arch-rockchip/cru_rk3576.h| 491 drivers/clk/rockchip/Makefile

[PATCH v3 02/15] rockchip: mkimage: Add rk3576 support

2025-04-15 Thread Heiko Stuebner
From: Xuhui Lin Add support for rk3576 package header in mkimage tool. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index f158d156228..a0caa029cc0 100644 --- a/tools

[PATCH v3 00/15] Support for the RK3576

2025-04-15 Thread Heiko Stuebner
move SYS_CONFIG_NAME symbol in rk3576/Kconfig - one more CFG_SYS_SDRAM_BASE nitpick :-) Elaine Zhang (2): clk: rockchip: Add rk3576 clk support reset: rockchip: implement rk3576 lookup table Heiko Stuebner (10): rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions ram: rockchip

[PATCH v3 07/15] ram: rockchip: Add rk3576 ddr driver support

2025-04-15 Thread Heiko Stuebner
Add ddr driver for rk3576 to get the ram capacity. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3576.c | 35 + 2 files changed, 36 insertions(+) create mode 100644 drivers/ram

[PATCH v3 08/15] rockchip: otp: Add support for RK3576

2025-04-15 Thread Heiko Stuebner
Add support for RK3576 compatible. The RK3576 OTP uses the same read mechanism as the RK3588, just with different values for offset and size. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v3 06/15] reset: rockchip: implement rk3576 lookup table

2025-04-15 Thread Heiko Stuebner
implementation done in the Linux-Kernel and also how the rk3588 does this both in the Linux-Kernel as well as U-Boot. Signed-off-by: Elaine Zhang [adapted from mainline Linux code for u-boot] Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- arch/arm/include/asm/arch-rockchip/clock.h

[PATCH v3 01/15] rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions

2025-04-15 Thread Heiko Stuebner
well as the ATAG parser to be usable on devices where CFG_SYS_SDRAM_BASE is not 0. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman Reviewed-by: Quentin Schulz --- arch/arm/mach-rockchip/sdram.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach

[PATCH v3 04/15] pinctrl: rockchip: support rk3576 pinctrl

2025-04-15 Thread Heiko Stuebner
From: Steven Liu Add support for the rk3576 variant of pinctrl. Signed-off-by: Steven Liu [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman --- drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl-rk3576.c | 278

[PATCH v2 15/16] arm64: dts: rockchip: Add devicetree for the ROC-RK3576-PC

2025-04-15 Thread Heiko Stuebner
header Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210205126.1173631-3-he...@sntech.de [ upstream commit: 887ff17cdd8f088a52e2b61e71f2b6c9b9678de6 ] (cherry picked from commit 388e7272d092bd20e414cd408bac39d8fd02d765) --- .../src/arm64/rockchip/rk3576-roc-pc.dts

[PATCH v2 14/16] dt-bindings: arm: rockchip: Add Firefly ROC-RK3576-PC binding

2025-04-15 Thread Heiko Stuebner
Add devicetree binding for the ROC-RK3576-PC SBC. The board is based on the RK3576 SoC (4*Cortex-A72 + 4*Cortex-A53). Acked-by: Rob Herring (Arm) Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210205126.1173631-2-he...@sntech.de [ upstream commit

[PATCH v2 05/16] pinctrl: rockchip: support rk3576 pinctrl

2025-04-14 Thread Heiko Stuebner
From: Steven Liu Add support for the rk3576 variant of pinctrl. Signed-off-by: Steven Liu [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner --- drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl-rk3576.c | 279 drivers

[PATCH v2 06/16] clk: rockchip: Add rk3576 clk support

2025-04-14 Thread Heiko Stuebner
From: Elaine Zhang Add clock driver support for Rockchip RK3576 SoC. Signed-off-by: Elaine Zhang [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner --- .../include/asm/arch-rockchip/cru_rk3576.h| 491 drivers/clk/rockchip/Makefile |1 + drivers/clk

[PATCH v2 10/16] mmc: rockchip_sdhci: Add support for RK3576

2025-04-14 Thread Heiko Stuebner
Add support for RK3576 to the rockchip sdhci driver. It's pretty similar to its cousins found in the RK3568 and RK3588 and the specific hs400-tx-tap number was taken from the vendor-u-boot. Signed-off-by: Heiko Stuebner Reviewed-by: Jaehoon Chung --- drivers/mmc/rockchip_sdhci.c

[PATCH v2 16/16] rockchip: rk3576: Add support for ROC-RK3576-PC board

2025-04-14 Thread Heiko Stuebner
The ROC-RK3576-PC is a SBC made by Firefly, designed around the RK3576 SoC. This adds the needed board infrastructure and config for it. Signed-off-by: Heiko Stuebner --- arch/arm/dts/rk3576-roc-pc-u-boot.dtsi | 11 ++ arch/arm/mach-rockchip/rk3576/Kconfig | 8 + board/firefly/roc

[PATCH v2 12/16] net: dwc_eth_qos_rockchip: Add support for RK3576

2025-04-14 Thread Heiko Stuebner
Add rk_gmac_ops and other special handling that is needed for GMAC to work on RK3576. Signed-off-by: Heiko Stuebner --- drivers/net/dwc_eth_qos.c | 4 + drivers/net/dwc_eth_qos_rockchip.c | 154 - 2 files changed, 157 insertions(+), 1 deletion(-) diff

[PATCH v2 11/16] mmc: rockchip_dw_mmc: Add support for rk3576

2025-04-14 Thread Heiko Stuebner
The rk3576 uses a different base-compatible, as starting with this generation, the clock phase tuning is done via registers inside the mmc controller and not from inside the CRU. In U-Boot we do not tune at all, so no other code changes are necessary. Signed-off-by: Heiko Stuebner Reviewed-by

[PATCH v2 13/16] arm64: dts: rockchip: add rk3576 otp node

2025-04-14 Thread Heiko Stuebner
This adds the otp node to the rk3576 soc devicetree including the individual fields we know about. Tested-by: Nicolas Frattaroli Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20250210224510.1194963-7-he...@sntech.de [ upstream commit: 8715d2eeb062f6859c252bb6c87b363230b66e9f

[PATCH v2 00/16] Support for the RK3576

2025-04-14 Thread Heiko Stuebner
: add RK3576-specific syscon ids Elaine Zhang (2): clk: rockchip: Add rk3576 clk support reset: rockchip: implement rk3576 lookup table Heiko Stuebner (10): rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions ram: rockchip: Add rk3576 ddr driver support rockchip: otp: Add su

[PATCH v2 08/16] ram: rockchip: Add rk3576 ddr driver support

2025-04-14 Thread Heiko Stuebner
Add ddr driver for rk3576 to get the ram capacity. Signed-off-by: Heiko Stuebner --- drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3576.c | 35 + 2 files changed, 36 insertions(+) create mode 100644 drivers/ram/rockchip/sdram_rk3576.c

[PATCH v2 09/16] rockchip: otp: Add support for RK3576

2025-04-14 Thread Heiko Stuebner
Add support for RK3576 compatible. The RK3576 OTP uses the same read mechanism as the RK3588, just with different values for offset and size. Signed-off-by: Heiko Stuebner --- drivers/misc/rockchip-otp.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/misc/rockchip

[PATCH v2 07/16] reset: rockchip: implement rk3576 lookup table

2025-04-14 Thread Heiko Stuebner
implementation done in the Linux-Kernel and also how the rk3588 does this both in the Linux-Kernel as well as U-Boot. Signed-off-by: Elaine Zhang [adapted from mainline Linux code for u-boot] Signed-off-by: Heiko Stuebner --- arch/arm/include/asm/arch-rockchip/clock.h | 10 + drivers/reset

[PATCH v2 04/16] arm: rockchip: Add RK3576 arch core support

2025-04-14 Thread Heiko Stuebner
, UART, SPI, GPIO and PWM. Add arch core support for it. Signed-off-by: Xuhui Lin [adapted for mainline u-boot] Signed-off-by: Heiko Stuebner --- arch/arm/dts/rk3576-u-boot.dtsi | 131 +++ arch/arm/include/asm/arch-rk3576/boot0.h | 11 ++ arch/arm/include/asm/arch

[PATCH v2 03/16] arm: rockchip: add RK3576-specific syscon ids

2025-04-14 Thread Heiko Stuebner
From: Detlev Casanova The rk3576 defines some more different syscons, namely the IOC-syscon holding io-controller registers and sdgmac holding settings for the gmac controller. Signed-off-by: Detlev Casanova Signed-off-by: Heiko Stuebner Reviewed-by: Quentin Schulz --- arch/arm/include/asm

[PATCH v2 01/16] rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions

2025-04-14 Thread Heiko Stuebner
well as the ATAG parser to be usable on devices where CFG_SYS_SDRAM_BASE is not 0. Signed-off-by: Heiko Stuebner Reviewed-by: Jonas Karlman Reviewed-by: Quentin Schulz --- arch/arm/mach-rockchip/sdram.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach

[PATCH v2 02/16] rockchip: mkimage: Add rk3576 support

2025-04-14 Thread Heiko Stuebner
From: Xuhui Lin Add support for rk3576 package header in mkimage tool. Signed-off-by: Heiko Stuebner --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index f158d156228..a0caa029cc0 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c

[PATCH] boot: call dhcp_run in pxe bootmethod

2025-04-05 Thread Heiko Stuebner
. Suggested-by: Heinrich Schuchardt Fixes: 1f68057e0320 ("net: eth_bootdev_hunt() should not run DHCP") Signed-off-by: Heiko Stuebner --- This also seems to work, to fix the dhcp problem. So this is the counter-idea to the revert submitted in https://lore.kernel.org/u-boot/20250401083830.23

[PATCH] configs: rockchip: sync ENV_MEM_LAYOUT_SETTINGS for px30 to rk3308/etc

2025-04-01 Thread Heiko Stuebner
From: Heiko Stuebner Loading a FIT image for kernel, initrd and rootfs on px30 can result in an memory overlap, resulting in the not 100% helpful message of "This will not be a case any time" from lmb_fix_over_lap_regions(). Adding a bit of debug info to lmb_fix_over_lap_region

[PATCH] Revert "net: eth_bootdev_hunt() should not run DHCP"

2025-04-01 Thread Heiko Stuebner
RROR: `serverip' not set As the original commit message talks about speed efficiencies for the EFI side mostly, reverting this should just restore previous functionality (and in fact does so on my Rockchip boards). Signed-off-by: Heiko Stuebner --- net/eth_bootdev.c | 30 -

[PATCH 08/20] rockchip: sdram: honor CFG_SYS_SDRAM_BASE when defining ram regions

2024-11-21 Thread Heiko Stuebner
well as the ATAG parser to be usable on devices where CFG_SYS_SDRAM_BASE is not 0. Signed-off-by: Heiko Stuebner --- arch/arm/mach-rockchip/sdram.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-rockchip/sdram.c b/arch/arm/mach-rockchip/sdram.c index

[PATCH 11/20] arm: rockchip: Add RK3576 arch core support

2024-11-21 Thread Heiko Stuebner
, UART, SPI, GPIO and PWM. Add arch core support for it. Signed-off-by: Xuhui Lin [adapted for mainline u-boot] Signed-off-by: Heiko Stuebner --- arch/arm/dts/rk3576-u-boot.dtsi | 119 + arch/arm/include/asm/arch-rk3576/boot0.h | 11 + arch/arm/include/asm/arch-rk3576

[PATCH 14/20] reset: rockchip: implement rk3576 lookup table

2024-11-21 Thread Heiko Stuebner
implementation done in the Linux-Kernel and also how the rk3588 does this both in the Linux-Kernel as well as U-Boot. Signed-off-by: Elaine Zhang [adapted from mainline Linux code for u-boot] Signed-off-by: Heiko Stuebner --- arch/arm/include/asm/arch-rockchip/clock.h | 10 + drivers/reset

[PATCH 01/20] dt-bindings: clock, reset: Add support for rk3576

2024-11-21 Thread Heiko Stuebner
the rk3576 CRU core. Signed-off-by: Elaine Zhang Signed-off-by: Sugar Zhang Signed-off-by: Detlev Casanova Reviewed-by: Rob Herring (Arm) Link: https://lore.kernel.org/r/0102019199a76766-f3a2b53f-d063-458b-b0d1-dfbc2ea1893c-000...@eu-west-1.amazonses.com Signed-off-by: Heiko Stuebner

[PATCH 06/20] DONOTMERGE: dt-bindings: arm: rockchip: Add Firefly ROC-RK3576-PC binding

2024-11-21 Thread Heiko Stuebner
Add devicetree binding for the ROC-RK3576-PC SBC. The board is based on the RK3576 SoC (4*Cortex-A72 + 4*Cortex-A53). Signed-off-by: Heiko Stuebner --- dts/upstream/Bindings/arm/rockchip.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/dts/upstream/Bindings/arm/rockchip.yaml b

[PATCH 05/20] DONOTMERGE: arm64: dts: rockchip: add rk3576 otp node

2024-11-21 Thread Heiko Stuebner
This adds the otp node to the rk3576 soc devicetree including the individual fields we know about. Signed-off-by: Heiko Stuebner --- dts/upstream/src/arm64/rockchip/rk3576.dtsi | 39 + 1 file changed, 39 insertions(+) diff --git a/dts/upstream/src/arm64/rockchip/rk3576.dtsi

[PATCH 20/20] rockchip: rk3576: Add support for ROC-RK3576-PC board

2024-11-21 Thread Heiko Stuebner
The ROC-RK3576-PC is a SBC made by Firefly, designed around the RK3576 SoC. This adds the needed board infrastructure and config for it. Signed-off-by: Heiko Stuebner --- arch/arm/dts/rk3576-roc-pc-u-boot.dtsi | 12 arch/arm/mach-rockchip/rk3576/Kconfig | 9 +++ board/firefly/roc-pc

[PATCH 09/20] rockchip: mkimage: Add rk3576 support

2024-11-21 Thread Heiko Stuebner
From: Xuhui Lin Add support for rk3576 package header in mkimage tool. Signed-off-by: Heiko Stuebner --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 3e52236b15a..d89c7d3afea 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c

[PATCH 07/20] DONOTMERGE: arm64: dts: rockchip: Add devicetree for the ROC-RK3576-PC

2024-11-21 Thread Heiko Stuebner
header Signed-off-by: Heiko Stuebner --- .../src/arm64/rockchip/rk3576-roc-pc.dts | 736 ++ 1 file changed, 736 insertions(+) create mode 100644 dts/upstream/src/arm64/rockchip/rk3576-roc-pc.dts diff --git a/dts/upstream/src/arm64/rockchip/rk3576-roc-pc.dts b/dts/upstream

[PATCH 00/20] Support for the RK3576

2024-11-21 Thread Heiko Stuebner
): dt-bindings: power: Add support for RK3576 SoC Heiko Stuebner (11): dt-bindings: clock, reset: fix top-comment indentation rk3576 headers DONOTMERGE: arm64: dts: rockchip: add rk3576 otp node DONOTMERGE: dt-bindings: arm: rockchip: Add Firefly ROC-RK3576-PC binding DONOTMERGE

[PATCH 02/20] dt-bindings: clock, reset: fix top-comment indentation rk3576 headers

2024-11-21 Thread Heiko Stuebner
Block comments should align the * on each line, as checkpatch rightfully pointed out, so fix that style issue on the newly added rk3576 headers. Fixes: 49c04453db81 ("dt-bindings: clock, reset: Add support for rk3576") Signed-off-by: Heiko Stuebner Link: https://lore.ke

[PATCH 15/20] ram: rockchip: Add rk3576 ddr driver support

2024-11-21 Thread Heiko Stuebner
Add ddr driver for rk3576 to get the ram capacity. Signed-off-by: Heiko Stuebner --- drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3576.c | 65 + 2 files changed, 66 insertions(+) create mode 100644 drivers/ram/rockchip/sdram_rk3576.c

[PATCH 17/20] mmc: rockchip_sdhci: Add support for RK3576

2024-11-21 Thread Heiko Stuebner
Add support for RK3576 to the rockchip sdhci driver. It's pretty similar to its cousins found in the RK3568 and RK3588 and the specific hs400-tx-tap number was taken from the vendor-u-boot. Signed-off-by: Heiko Stuebner --- drivers/mmc/rockchip_sdhci.c | 12 1 file change

[PATCH 19/20] net: dwc_eth_qos_rockchip: Add support for RK3576

2024-11-21 Thread Heiko Stuebner
Add rk_gmac_ops and other special handling that is needed for GMAC to work on RK3576. Signed-off-by: Heiko Stuebner --- drivers/net/dwc_eth_qos.c | 4 + drivers/net/dwc_eth_qos_rockchip.c | 141 - 2 files changed, 144 insertions(+), 1 deletion(-) diff

[PATCH 16/20] rockchip: otp: Add support for RK3576

2024-11-21 Thread Heiko Stuebner
Add support for RK3588 compatible. The RK3576 OTP uses the same read mechanism as the RK3588, just with different values for offset and size. Signed-off-by: Heiko Stuebner --- drivers/misc/rockchip-otp.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/misc/rockchip

[PATCH 13/20] clk: rockchip: Add rk3576 clk support

2024-11-21 Thread Heiko Stuebner
From: Elaine Zhang Add clock driver support for Rockchip RK3576 SoC. Signed-off-by: Elaine Zhang [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner --- .../include/asm/arch-rockchip/cru_rk3576.h| 486 drivers/clk/rockchip/Makefile |1 + drivers/clk

[PATCH 10/20] arm: rockchip: add RK3576-specific syscon ids

2024-11-21 Thread Heiko Stuebner
From: Detlev Casanova The rk3576 defines some more different syscons, namely the IOC-syscon holding io-controller registers and sdgmac holding settings for the gmac controller. Signed-off-by: Detlev Casanova Signed-off-by: Heiko Stuebner --- arch/arm/include/asm/arch-rockchip/clock.h | 2

[PATCH 18/20] mmc: rockchip_dw_mmc: Add support for rk3576

2024-11-21 Thread Heiko Stuebner
The rk3576 uses a different base-compatible, as starting with this generation, the clock phase tuning is done via registers inside the mmc controller and not from inside the CRU. In U-Boot we do not tune at all, so no other code changes are necessary. Signed-off-by: Heiko Stuebner --- drivers

[PATCH 12/20] pinctrl: rockchip: support rk3576 pinctrl

2024-11-21 Thread Heiko Stuebner
From: Steven Liu Add support for the rk3576 variant of pinctrl. Signed-off-by: Steven Liu [adapted to mainline u-boot] Signed-off-by: Heiko Stuebner --- drivers/pinctrl/rockchip/Makefile | 1 + drivers/pinctrl/rockchip/pinctrl-rk3576.c | 287 drivers

[PATCH 03/20] dt-bindings: power: Add support for RK3576 SoC

2024-11-21 Thread Heiko Stuebner
From: Finley Xiao Define power domain IDs as described in the TRM and add compatible for rockchip,rk3576-power-controller Signed-off-by: Finley Xiao Co-Developed-by: Detlev Casanova Signed-off-by: Detlev Casanova Acked-by: Conor Dooley Link: https://lore.kernel.org/r/20240814222824.3170-2-d

Re: [PATCH] clk: rockchip: rk3588: fix mask define for aclk_vop_root

2024-11-20 Thread Heiko Stuebner
Am Mittwoch, 20. November 2024, 12:13:32 CET schrieb Quentin Schulz: > On 11/20/24 11:19 AM, Heiko Stuebner wrote: > > The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according > > to the TRM, so set the mask accordingly. > > > > Signed-off-by: Heiko Stuebner

[PATCH] clk: rockchip: rk3588: fix mask define for aclk_vop_root

2024-11-20 Thread Heiko Stuebner
The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according to the TRM, so set the mask accordingly. Signed-off-by: Heiko Stuebner --- arch/arm/include/asm/arch-rockchip/cru_rk3588.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-rockchip

[PATCH v3 17/18] arm64: dts: rockchip: add product-data eeproms to QNAP TS433

2024-10-28 Thread Heiko Stuebner
models. Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240810211438.286441-3-he...@sntech.de [ upstream commit: da6f4130234448122fe3e66c8116f7d9eea8a5c7 ] (cherry picked from commit 0b3109708caf5002ba188ae28eae9ce46b2c39b4) Reviewed-by: Kever Yang --- .../src/arm64/rockchip

[PATCH v3 13/18] arm64: dts: rockchip: enable gpu on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 doesn't provide display output, but the gpu nevertheless can be used for compute tasks for example. So there is no reason not to enable it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-14-he...@sntech.de [ ups

[PATCH v3 16/18] arm64: dts: rockchip: actually enable pmu-io-domains on qnap-ts433

2024-10-28 Thread Heiko Stuebner
add 2 pmu_io_domain supplies for Qnap-TS433") Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240805162052.3345768-1-he...@sntech.de [ upstream commit: 40cc4257169712f0ae3835820a4c5afbdd1a16ff ] (cherry picked from commit f509fcb1fb82117e551b489592ac5714a6c5cd8d) Reviewed-by: Kever Yang

[PATCH v3 15/18] arm64: dts: rockchip: Simplify network PHY connection on qnap-ts433

2024-10-28 Thread Heiko Stuebner
https://lore.kernel.org/r/20240304084612.711678-2-uklei...@debian.org Signed-off-by: Heiko Stuebner [ upstream commit: e8d45544f806f3b55c30345de84262cbb9504902 ] (cherry picked from commit e0bbe061fd537bd7b113c53eb046bbcbf0e6597d) Reviewed-by: Kever Yang --- dts/upstream/src/arm64/rockchip/rk3568-qnap-ts4

[PATCH v3 12/18] arm64: dts: rockchip: add missing pmic information on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
is related to vcc3v3_sd. This regulator needs to stay on. When turned off because of no users, access to both PCIe controllers will stall. Maybe this rail does supply the 100MHz refclk generation or so. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r

[PATCH v3 10/18] arm64: dts: rockchip: add gpio-keys to Qnap-TS433

2024-10-28 Thread Heiko Stuebner
: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-11-he...@sntech.de [ upstream commit: 9b682d31b24f1f70b5b4d0618095d46e0722b9d8 ] (cherry picked from commit f0b858c751382ee9faf18f9b19b0817c6b50ac1c) Reviewed-by: Kever Yang --- .../src/arm64

[PATCH v3 14/18] arm64: dts: rockchip: add 2 pmu_io_domain supplies for Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the two supplies for the pmu-io-domains that are defined in the vendor devicetree for the TS433. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-15-he...@sntech.de [ upstream commit: 64b7f16fb3947e5d08d9e9b860ce966250e45d52

[PATCH v3 18/18] board: rockchip: add support for Qnap TS433 devices

2024-10-28 Thread Heiko Stuebner
ff-by: Heiko Stuebner --- arch/arm/dts/rk3568-qnap-ts433-u-boot.dtsi | 6 ++ arch/arm/mach-rockchip/rk3568/Kconfig | 14 board/qnap/ts433/Kconfig | 12 +++ board/qnap/ts433/MAINTAINERS | 8 ++ configs/qnap-ts433-rk3568_defconfig

[PATCH v3 11/18] arm64: dts: rockchip: define cpu-supply on the Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-12-he...@sntech.de [ upstream commit: 99b36ba910d896bddbb9a190ca686c6d9cd0325f ] (cherry picked from commit 2f0afd1a3cbf6f3192dc7a5c496affab718671b3) Reviewed-by: Kever Yang --- .../src/arm64/rockchip/rk3568

[PATCH v3 08/18] arm64: dts: rockchip: add hdd leds to Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the 4 gpio-controlled LEDs to the Qnap-TS433. They are meant for individual disk activitivy, but I haven't found a way for how to connect them to their individual sata slot yet. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.11

[PATCH v3 07/18] arm64: dts: rockchip: add board-aliases for Qnap-TS433

2024-10-28 Thread Heiko Stuebner
battery backed to keep the time. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-8-he...@sntech.de [ upstream commit: dadd4256e12360d3ff1f6481b2e4697f9d890caf ] (cherry picked from commit cb53815764403f7f17967a32eec2aeb6625b396f

[PATCH v3 01/18] arm64: dts: rockchip: add PCIe supply regulator to Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Add the vcc3v3-supply regulator and its link to the pcie controllers. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-2-he...@sntech.de [ upstream commit: e0ec6d48226fb3d4df18895b56f0b7a94c0fe474 ] (cherry picked from commit

[PATCH v3 09/18] arm64: dts: rockchip: enable the tsadc on the Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Enable the tsadc node to allow for temperature measurements of the soc. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-10-he...@sntech.de [ upstream commit: 2df9d20306fd0d04b88fcbbf36d76fb67f11 ] (cherry picked from commit

[PATCH v3 06/18] arm64: dts: rockchip: enable sata1+2 on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 has 4 bays. The last two are accessed via a pci-connected sata controller, while the first two are accessed via the rk3568's sata controllers. Enable these two now. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436

[PATCH v3 04/18] arm64: dts: rockchip: enable usb ports on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Enable usb controllers and phys and add regulator infrastructure for the usb ports on the TS433. Of course there are no schematics available for the device, so the regulator information comes from the vendor-devicetree with unknown accuracy. Tested-by: Uwe Kleine-König Signed-off-by: Heiko

[PATCH v3 02/18] arm64: dts: rockchip: enable second PCIe controller on the Qnap-TS433

2024-10-28 Thread Heiko Stuebner
The TS433 uses both pcie controllers for sata and the 2nd network interface. Set the needed data-lanes in the pcie3 phy and enable the second pcie controller, as well as remove the bifurcation comment. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r

[PATCH v3 03/18] arm64: dts: rockchip: enable uart0 on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
Uart0 is connected to an MCU on the board that handles system control like the fan-speed. So far no driver for it is available though. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-4-he...@sntech.de [ upstream commit

[PATCH v3 05/18] arm64: dts: rockchip: add stdout path on Qnap-TS433

2024-10-28 Thread Heiko Stuebner
As most Rockchip boards do, the TS433 also uses uart2 for its serial output. Set the correct chosen entry for it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-6-he...@sntech.de [ upstream commit

[PATCH v3 00/18] Support for rk3568 based QNAP TS433 NAS

2024-10-28 Thread Heiko Stuebner
icked upstream dts commits, now that they are merged Heiko Stuebner (17): arm64: dts: rockchip: add PCIe supply regulator to Qnap-TS433 arm64: dts: rockchip: enable second PCIe controller on the Qnap-TS433 arm64: dts: rockchip: enable uart0 on Qnap-TS433 arm64: dts: rockchip: enable usb por

Re: [PATCH v2 18/18] board: rockchip: add support for Qnap TS433 devices

2024-10-28 Thread Heiko Stuebner
Hi Kever, Am Montag, 28. Oktober 2024, 09:39:27 CET schrieb Kever Yang: > On 2024/10/26 10:39, Kever Yang wrote: > > Hi Heiko, > > > > I got a ci error for this patch: > > > > https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/jobs/929839 > > > > +Image 'simple-bin-spi' is missing exte

[PATCH v2 13/18] arm64: dts: rockchip: enable gpu on Qnap-TS433

2024-10-13 Thread Heiko Stuebner
The TS433 doesn't provide display output, but the gpu nevertheless can be used for compute tasks for example. So there is no reason not to enable it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-14-he...@sntech.de [ ups

[PATCH v2 17/18] arm64: dts: rockchip: add product-data eeproms to QNAP TS433

2024-10-13 Thread Heiko Stuebner
models. Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240810211438.286441-3-he...@sntech.de [ upstream commit: da6f4130234448122fe3e66c8116f7d9eea8a5c7 ] (cherry picked from commit 0b3109708caf5002ba188ae28eae9ce46b2c39b4) --- .../src/arm64/rockchip/rk3568-qnap-ts433.dts

[PATCH v2 16/18] arm64: dts: rockchip: actually enable pmu-io-domains on qnap-ts433

2024-10-13 Thread Heiko Stuebner
add 2 pmu_io_domain supplies for Qnap-TS433") Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240805162052.3345768-1-he...@sntech.de [ upstream commit: 40cc4257169712f0ae3835820a4c5afbdd1a16ff ] (cherry picked from commit f509fcb1fb82117e551b489592ac5714a6c5cd8d) --- dts/upstream

[PATCH v2 18/18] board: rockchip: add support for Qnap TS433 devices

2024-10-13 Thread Heiko Stuebner
ff-by: Heiko Stuebner --- arch/arm/dts/rk3568-qnap-ts433-u-boot.dtsi | 6 ++ arch/arm/mach-rockchip/rk3568/Kconfig | 14 board/qnap/ts433/Kconfig | 12 +++ board/qnap/ts433/MAINTAINERS | 8 ++ configs/qnap-ts433-rk3568_defconfig

[PATCH v2 14/18] arm64: dts: rockchip: add 2 pmu_io_domain supplies for Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Add the two supplies for the pmu-io-domains that are defined in the vendor devicetree for the TS433. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-15-he...@sntech.de [ upstream commit: 64b7f16fb3947e5d08d9e9b860ce966250e45d52

[PATCH v2 11/18] arm64: dts: rockchip: define cpu-supply on the Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-12-he...@sntech.de [ upstream commit: 99b36ba910d896bddbb9a190ca686c6d9cd0325f ] (cherry picked from commit 2f0afd1a3cbf6f3192dc7a5c496affab718671b3) --- .../src/arm64/rockchip/rk3568-qnap-ts433.dts | 41

[PATCH v2 10/18] arm64: dts: rockchip: add gpio-keys to Qnap-TS433

2024-10-13 Thread Heiko Stuebner
: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-11-he...@sntech.de [ upstream commit: 9b682d31b24f1f70b5b4d0618095d46e0722b9d8 ] (cherry picked from commit f0b858c751382ee9faf18f9b19b0817c6b50ac1c) --- .../src/arm64/rockchip/rk3568-qnap-ts433

[PATCH v2 12/18] arm64: dts: rockchip: add missing pmic information on Qnap-TS433

2024-10-13 Thread Heiko Stuebner
is related to vcc3v3_sd. This regulator needs to stay on. When turned off because of no users, access to both PCIe controllers will stall. Maybe this rail does supply the 100MHz refclk generation or so. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r

[PATCH v2 15/18] arm64: dts: rockchip: Simplify network PHY connection on qnap-ts433

2024-10-13 Thread Heiko Stuebner
https://lore.kernel.org/r/20240304084612.711678-2-uklei...@debian.org Signed-off-by: Heiko Stuebner [ upstream commit: e8d45544f806f3b55c30345de84262cbb9504902 ] (cherry picked from commit e0bbe061fd537bd7b113c53eb046bbcbf0e6597d) --- dts/upstream/src/arm64/rockchip/rk3568-qnap-ts433.dts | 4 +--- 1 file c

[PATCH v2 00/18] Support for rk3568 based QNAP TS433 NAS

2024-10-13 Thread Heiko Stuebner
cherry-picked dts patches landed in the 6.12-rc1 merge window in the Linux kernel. This currently goes on top of today's u-boot master. Heiko Stuebner (17): arm64: dts: rockchip: add PCIe supply regulator to Qnap-TS433 arm64: dts: rockchip: enable second PCIe controller on the Qnap-TS433

[PATCH v2 09/18] arm64: dts: rockchip: enable the tsadc on the Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Enable the tsadc node to allow for temperature measurements of the soc. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-10-he...@sntech.de [ upstream commit: 2df9d20306fd0d04b88fcbbf36d76fb67f11 ] (cherry picked from commit

[PATCH v2 08/18] arm64: dts: rockchip: add hdd leds to Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Add the 4 gpio-controlled LEDs to the Qnap-TS433. They are meant for individual disk activitivy, but I haven't found a way for how to connect them to their individual sata slot yet. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.11

[PATCH v2 05/18] arm64: dts: rockchip: add stdout path on Qnap-TS433

2024-10-13 Thread Heiko Stuebner
As most Rockchip boards do, the TS433 also uses uart2 for its serial output. Set the correct chosen entry for it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-6-he...@sntech.de [ upstream commit

[PATCH v2 06/18] arm64: dts: rockchip: enable sata1+2 on Qnap-TS433

2024-10-13 Thread Heiko Stuebner
The TS433 has 4 bays. The last two are accessed via a pci-connected sata controller, while the first two are accessed via the rk3568's sata controllers. Enable these two now. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436

[PATCH v2 03/18] arm64: dts: rockchip: enable uart0 on Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Uart0 is connected to an MCU on the board that handles system control like the fan-speed. So far no driver for it is available though. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-4-he...@sntech.de [ upstream commit

[PATCH v2 07/18] arm64: dts: rockchip: add board-aliases for Qnap-TS433

2024-10-13 Thread Heiko Stuebner
battery backed to keep the time. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-8-he...@sntech.de [ upstream commit: dadd4256e12360d3ff1f6481b2e4697f9d890caf ] (cherry picked from commit cb53815764403f7f17967a32eec2aeb6625b396f

[PATCH v2 01/18] arm64: dts: rockchip: add PCIe supply regulator to Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Add the vcc3v3-supply regulator and its link to the pcie controllers. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-2-he...@sntech.de [ upstream commit: e0ec6d48226fb3d4df18895b56f0b7a94c0fe474 ] (cherry picked from commit

[PATCH v2 02/18] arm64: dts: rockchip: enable second PCIe controller on the Qnap-TS433

2024-10-13 Thread Heiko Stuebner
The TS433 uses both pcie controllers for sata and the 2nd network interface. Set the needed data-lanes in the pcie3 phy and enable the second pcie controller, as well as remove the bifurcation comment. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r

[PATCH v2 04/18] arm64: dts: rockchip: enable usb ports on Qnap-TS433

2024-10-13 Thread Heiko Stuebner
Enable usb controllers and phys and add regulator infrastructure for the usb ports on the TS433. Of course there are no schematics available for the device, so the regulator information comes from the vendor-devicetree with unknown accuracy. Tested-by: Uwe Kleine-König Signed-off-by: Heiko

[PATCH 10/15] DONOTMERGE: arm64: dts: rockchip: add gpio-keys to Qnap-TS433

2024-08-03 Thread Heiko Stuebner
: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-11-he...@sntech.de [this needs to be replaced, once the patch hits the devicetree-rebasing repo] Signed-off-by: Heiko Stuebner --- .../src/arm64/rockchip/rk3568-qnap-ts433.dts | 29

[PATCH 13/15] DONOTMERGE: arm64: dts: rockchip: enable gpu on Qnap-TS433

2024-08-03 Thread Heiko Stuebner
The TS433 doesn't provide display output, but the gpu nevertheless can be used for compute tasks for example. So there is no reason not to enable it. Tested-by: Uwe Kleine-König Signed-off-by: Heiko Stuebner Link: https://lore.kernel.org/r/20240723195538.1133436-14-he...@sntech.de [this

  1   2   3   4   5   >