arm64: dts: rockchip: Add Radxa ZERO 3W/3E
Subsystems (2)
v3 cover arm64: dts: rockchip: Add Radxa ZERO 3W/3E
This series adds initial support for the Radxa ZERO 3W/3E boards.
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces.
Schematic for ZERO 3W and ZERO 3E can be found at:
https://dl.radxa.com/zero3/docs/hw/3w/radxa_zero_3w_v1110_schematic.pdf
https://dl.radxa.com/zero3/docs/hw/3e/radxa_zero_3e_v1200_schematic.pdf
Changes in v2:
- Collect acked-by tag
- Add to Makefile
- Add patch to fix #sound-dai-cells warning
Changes in v3:
- Fix devicetree spelling
- Sort hdmi-con, leds, pmic@20 and regulator@40 nodes
- Change to regulator-off-in-suspend for vdd_logic
- Drop patch to fix #sound-dai-cells warning, similar patch [1] already exists
[1] https://lore.kernel.org/linux-rockchip/[email protected]/
Jonas Karlman (2):
dt-bindings: arm: rockchip: Add Radxa ZERO 3W/3E
arm64: dts: rockchip: Add Radxa ZERO 3W/3E
.../devicetree/bindings/arm/rockchip.yaml | 7 + arch/arm64/boot/dts/rockchip/Makefile | 2 + .../dts/rockchip/rk3566-radxa-zero-3e.dts | 41 ++ .../dts/rockchip/rk3566-radxa-zero-3w.dts | 26 + .../boot/dts/rockchip/rk3566-radxa-zero3.dtsi | 443 ++++++++++++++++++ 5 files changed, 519 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi
Signature · 1 line
2.43.2
PATCH v3 1/2 dt-bindings: arm: rockchip: Add Radxa ZERO 3W/3E
Add devicetree binding documentation for Radxa ZERO 3W/3E boards.
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces.
---
v2: Collect acked-by tag
v3: Fix devicetree spelling
--- Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
@@ -804,6 +804,13 @@ properties: - const: radxa,rock-5b - const: rockchip,rk3588 + - description: Radxa ZERO 3W/3E + items: + - enum: + - radxa,zero-3e + - radxa,zero-3w + - const: rockchip,rk3566 + - description: Rikomagic MK808 v1 items: - const: rikomagic,mk808
Signature · 1 line
2.43.2
PATCH v3 2/2 arm64: dts: rockchip: Add Radxa ZERO 3W/3E
In reply to Jonas KarlmanThe Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces.
The ZERO 3W and ZERO 3E are basically the same size and model, but differ only in storage and network interfaces.
- eMMC (3W)
- SD-card (both)
- Ethernet (3E)
- WiFi/BT (3W)
This adds initial support for eMMC, SD-card, Ethernet, HDMI and USB.
---
v2: Add to Makefile
v3: Sort hdmi-con and leds nodes alphabetically
v3: Sort pmic@20 and regulator@40 nodes by reg
v3: Change to regulator-off-in-suspend for vdd_logic
Following issue is reported by dtbs_check and is fixed by patch at [1]:
hdmi@fe0a0000: Unevaluated properties are not allowed ('#sound-dai-cells' was unexpected) from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#
[1] https://lore.kernel.org/linux-rockchip/[email protected]/
--- arch/arm64/boot/dts/rockchip/Makefile | 2 + .../dts/rockchip/rk3566-radxa-zero-3e.dts | 41 ++ .../dts/rockchip/rk3566-radxa-zero-3w.dts | 26 + .../boot/dts/rockchip/rk3566-radxa-zero3.dtsi | 443 ++++++++++++++++++ 4 files changed, 512 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi
arch/arm64/boot/dts/rockchip/Makefile +2 -0
@@ -90,6 +90,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-powkiddy-x55.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-b.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-cm3-io.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-zero-3e.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-zero-3w.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-blade.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts new file +41 -0
41 lines not on this page · raw message
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts new file +26 -0
@@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include "rk3566-radxa-zero3.dtsi" + +/ { + model = "Radxa ZERO 3W"; + compatible = "radxa,zero-3w", "rockchip,rk3566"; + + aliases { + mmc1 = &sdhci; + }; +}; + +&sdhci { + bus-width = <8>; + max-frequency = <200000000>; + mmc-hs200-1_8v; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; + vmmc-supply = <&vcc_3v3>; + vqmmc-supply = <&vcc_1v8>; + status = "okay"; +};
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +443 -0
443 lines not on this page · raw message
Signature · 1 line
2.43.2
Quoted 37 lines · Jonas Karlman
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces.
The ZERO 3W and ZERO 3E are basically the same size and model, but differ only in storage and network interfaces.
- eMMC (3W)
- SD-card (both)
- Ethernet (3E)
- WiFi/BT (3W)This adds initial support for eMMC, SD-card, Ethernet, HDMI and USB.
Signed-off-by Jonas Karlman <[email protected]>---
v2: Add toMakefile
v3: Sort hdmi-con and leds nodes alphabetically
v3: Sort pmic@20 and regulator@40 nodes by reg
v3: Change to regulator-off-in-suspend forvdd_logicFollowing issue is reported by
dtbs_checkand is fixed by patch at [1]:hdmi@fe0a0000: Unevaluated properties are not allowed ('#sound-dai-cells' was unexpected) from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#
[1] https://lore.kernel.org/linux-rockchip/[email protected]/
--- arch/arm64/boot/dts/rockchip/Makefile | 2 + .../dts/rockchip/rk3566-radxa-zero-3e.dts | 41 ++ .../dts/rockchip/rk3566-radxa-zero-3w.dts | 26 + .../boot/dts/rockchip/rk3566-radxa-zero3.dtsi | 443 ++++++++++++++++++ 4 files changed, 512 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi
[snip]
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +0
-0
[snip]
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +4
-0+ +&i2c0 { + status = "okay"; +
[snip]
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi line 332
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +2
-0+ vdd_cpu: regulator@40 { + compatible = "silergy,syr827";
After checking once more on schematic and inspecting the board this is actually a RK860-0 regulator and should use following:
compatible = "rockchip,rk8600";
Will send a v4 with this change later this week.
Regards,
Jonas
Quoted 15 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +15
-0+ reg = <0x40>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <712500>; + regulator-max-microvolt = <1390000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +};
[snip]
Heiko Stübner
maintainerAm Dienstag, 16. April 2024, 10:05:09 CEST schrieb Jonas Karlman:
Quoted 62 lines · Jonas Karlman
Quoted 37 lines
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces.
The ZERO 3W and ZERO 3E are basically the same size and model, but differ only in storage and network interfaces.
- eMMC (3W)
- SD-card (both)
- Ethernet (3E)
- WiFi/BT (3W)This adds initial support for eMMC, SD-card, Ethernet, HDMI and USB.
Signed-off-by Jonas Karlman <[email protected]>---
v2: Add toMakefile
v3: Sort hdmi-con and leds nodes alphabetically
v3: Sort pmic@20 and regulator@40 nodes by reg
v3: Change to regulator-off-in-suspend forvdd_logicFollowing issue is reported by
dtbs_checkand is fixed by patch at [1]:hdmi@fe0a0000: Unevaluated properties are not allowed ('#sound-dai-cells' was unexpected) from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#
[1] https://lore.kernel.org/linux-rockchip/[email protected]/
--- arch/arm64/boot/dts/rockchip/Makefile | 2 + .../dts/rockchip/rk3566-radxa-zero-3e.dts | 41 ++ .../dts/rockchip/rk3566-radxa-zero-3w.dts | 26 + .../boot/dts/rockchip/rk3566-radxa-zero3.dtsi | 443 ++++++++++++++++++ 4 files changed, 512 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi[snip]
Quoted 5 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +0
-0[snip]
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +4
-0+ +&i2c0 { + status = "okay"; +[snip]
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi line 332
Quoted 2 lines
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi new file +2
-0+ vdd_cpu: regulator@40 { + compatible = "silergy,syr827";After checking once more on schematic and inspecting the board this is actually a RK860-0 regulator and should use following:
Quoted 3 lines
compatible = "rockchip,rk8600";Will send a v4 with this change later this week.
ok, will wait for that then.
Heiko
Rob Herring
maintainerQuoted 38 lines · Jonas Karlman
This series adds initial support for the Radxa ZERO 3W/3E boards.
The Radxa ZERO 3W/3E is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor and rich interfaces.
Schematic for ZERO 3W and ZERO 3E can be found at:
https://dl.radxa.com/zero3/docs/hw/3w/radxa_zero_3w_v1110_schematic.pdf
https://dl.radxa.com/zero3/docs/hw/3e/radxa_zero_3e_v1200_schematic.pdfChanges in v2:
- Collect acked-by tag
- Add toMakefile
- Add patch to fix #sound-dai-cells warningChanges in v3:
- Fix devicetree spelling
- Sort hdmi-con, leds, pmic@20 and regulator@40 nodes
- Change to regulator-off-in-suspend forvdd_logic
- Drop patch to fix #sound-dai-cells warning, similar patch [1] already exists[1] https://lore.kernel.org/linux-rockchip/[email protected]/
Jonas Karlman (2):
dt-bindings: arm: rockchip: Add Radxa ZERO 3W/3E
arm64: dts: rockchip: Add Radxa ZERO 3W/3E.../devicetree/bindings/arm/rockchip.yaml | 7 + arch/arm64/boot/dts/rockchip/Makefile | 2 + .../dts/rockchip/rk3566-radxa-zero-3e.dts | 41 ++ .../dts/rockchip/rk3566-radxa-zero-3w.dts | 26 + .../boot/dts/rockchip/rk3566-radxa-zero3.dtsi | 443 ++++++++++++++++++ 5 files changed, 519 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-radxa-zero3.dtsi
Quoted 5 lines
--
2.43.2
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y rockchip/rk3566-radxa-zero-3e.dtb rockchip/rk3566-radxa-zero-3w.dtb' for [email protected]:
arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3e.dtb: hdmi@fe0a0000: Unevaluated properties are not allowed ('#sound-dai-cells' was unexpected)
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dtb: hdmi@fe0a0000: Unevaluated properties are not allowed ('#sound-dai-cells' was unexpected)
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#