Add support for Radxa ROCK 4SE
Subsystems (2)
cover Add support for Radxa ROCK 4SE
Add support for the RK3399T-based Radxa ROCK 4SE board. This board offers similar peripherals and form-factor to the ROCK Pi 4B but uses the cost-optimised RK3399T processor (which has different a OPP table but otherwise minimal changes) and some other minor hardware changes between the Rock Pi 4B (described in the devicetree).
The first patch moves the RK3399 OPP table from the generic Radxa ROCK Pi 4 dtsi into board-specific devicetree files, in preparation for the ROCK 4SE devicetree file (in later patches).
The second patch adds the devicetree binding documentation for the Radxa ROCK 4SE.
The third patch adds the board-specific devicetree file for the Radxa ROCK 4SE.
Christopher Obbard (3):
arm64: dts: rockchip: Move OPP table from ROCK Pi 4 dtsi
dt-bindings: arm: rockchip: Add Radxa ROCK 4SE
arm64: dts: rockchip: Add Radxa ROCK 4SE
.../devicetree/bindings/arm/rockchip.yaml | 5 ++ arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-4se.dts | 65 +++++++++++++++++++ .../boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 1 - .../boot/dts/rockchip/rk3399-rock-pi-4a.dts | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4b.dts | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4c.dts | 1 + 7 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts
Signature · 1 line
2.40.1
PATCH 1/3 arm64: dts: rockchip: Move OPP table from ROCK Pi 4 dtsi
The ROCK 4SE uses the RK3399-T variant of the RK3399 SoC, which has some changes to the OPP tables. Prepare for the bringup of this SoC by moving the inclusion of existing OPP tables from the common devicetree into each board-specific devicetree.
---
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 1 - arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts | 1 + 4 files changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +0 -1
@@ -9,7 +9,6 @@ #include <dt-bindings/leds/common.h> #include <dt-bindings/pwm/pwm.h> #include "rk3399.dtsi" -#include "rk3399-opp.dtsi" / { aliases {
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts +1 -0
@@ -6,6 +6,7 @@ /dts-v1/; #include "rk3399-rock-pi-4.dtsi" +#include "rk3399-opp.dtsi" / { model = "Radxa ROCK Pi 4A";
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts +1 -0
@@ -6,6 +6,7 @@ /dts-v1/; #include "rk3399-rock-pi-4.dtsi" +#include "rk3399-opp.dtsi" / { model = "Radxa ROCK Pi 4B";
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts +1 -0
@@ -7,6 +7,7 @@ /dts-v1/; #include "rk3399-rock-pi-4.dtsi" +#include "rk3399-opp.dtsi" / { model = "Radxa ROCK Pi 4C";
Signature · 1 line
2.40.1
PATCH 2/3 dt-bindings: arm: rockchip: Add Radxa ROCK 4SE
In reply to Christopher ObbardAdd devicetree binding entry for the Radxa ROCK 4SE.
---
Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
@@ -694,6 +694,11 @@ properties: - const: radxa,rock-4c-plus - const: rockchip,rk3399 + - description: Radxa ROCK 4SE + items: + - const: radxa,rock-4se + - const: rockchip,rk3399 + - description: Radxa ROCK Pi E items: - const: radxa,rockpi-e
Signature · 1 line
2.40.1
Re: [PATCH v1 2/3] dt-bindings: arm: rockchip: Add Radxa ROCK 4SE
Quoted 5 lines · Christopher Obbard
Add devicetree binding entry for the Radxa ROCK 4SE.
Signed-off-by Christopher Obbard <[email protected]>---
Best regards,
Krzysztof
PATCH 3/3 arm64: dts: rockchip: Add Radxa ROCK 4SE
In reply to Christopher ObbardAdd board-specific devicetree file for the RK3399T-based Radxa ROCK 4SE board. This board offers similar peripherals in a similar form-factor to the existing ROCK Pi 4B but uses the cost-optimised RK3399T processor (which has different OPP table than the RK3399) and other minimal hardware changes.
---
arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-4se.dts | 65 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
@@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4c-plus.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-4se.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b.dtb
arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
2.40.1
Re: [PATCH v1 3/3] arm64: dts: rockchip: Add Radxa ROCK 4SE
Quoted 11 lines · Christopher Obbard
Add board-specific devicetree file for the RK3399T-based Radxa ROCK 4SE board. This board offers similar peripherals in a similar form-factor to the existing ROCK Pi 4B but uses the cost-optimised RK3399T processor (which has different OPP table than the RK3399) and other minimal hardware changes.
Signed-off-by Christopher Obbard <[email protected]>---
arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts line 35
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts new file +9
-0+ +&sdio0 { + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
I just send a patch to fix this in some files, so let's try keep it good. Use proper interrupt type, not none.
Best regards,
Krzysztof
Re: [PATCH v1 3/3] arm64: dts: rockchip: Add Radxa ROCK 4SE
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 9 lines · Christopher Obbard
Add board-specific devicetree file for the RK3399T-based Radxa ROCK 4SE board. This board offers similar peripherals in a similar form-factor to the existing ROCK Pi 4B but uses the cost-optimised RK3399T processor (which has different OPP table than the RK3399) and other minimal hardware changes.
Signed-off-by Christopher Obbard <[email protected]>---
Quoted 12 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts line 35
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts new file +9
-0+ +&sdio0 { + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;I just send a patch to fix this in some files, so let's try keep it good. Use proper interrupt type, not none.
Thank you for your review. I missed that patch, sent only a few hours before mine. I will address this in v2.
Cheers!
Chris