Skip to contentSkip to conversation

board: rockchip: add OneThing Edge Cube series

PATCH Superseded Jun Yan 3 participants 9 messages Jan 31 – Feb 1

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Jun Yan

author
#0 lore raw

v2 cover board: rockchip: add OneThing Edge Cube series

This series adds support for the OneThing Edge Cube series, which were initially marketed by OneThing Tech as PCDN (P2P Content Delivery Network) devices. The Edge Cube series is based on Rockchip RK3566 SoC and is designed for PCDN applications.

The V2 patches adds a new device, the OneThing OEC. Together with the V1 patch OneThing OEC-turbo, these two devices share identical hardware specifications except for the RAM capacity, enabling convenient support implementation.

The V1 patch was submitted quite some time ago and is now in an archived state[1]. it has not been processed due to scheduling conflicts – apologies for this.

Changes in v2:
- Fix typo in vendor-prefixes.
- Simplify company and device names.
- Add the new device OEC as part of the OneThing Edge Cube series for support.
- Set display-subsystem node to "disabled" instead of using "delete-node".
- Using generic node names for leds.
- Follow DTS codeing style in vcc5v0_usb_host_en pinctrl node.
- Modify the phy_mode of GMAC from rgmii to rgmii-id.
- Adjust device tree node ordering to follow code style.

Link to v1: https://lore.kernel.org/all/[email protected]/

[1] https://patchwork.kernel.org/project/linux-rockchip/cover/[email protected]/

Jun Yan (3):
dt-bindings: vendor-prefixes: Add Shenzhen OneThing Technologies Co.,
Ltd.
dt-bindings: arm: rockchip: Add OneThing Edge Cube series
arm64: dts: rockchip: Add OneThing Edge Cube series

 .../devicetree/bindings/arm/rockchip.yaml     |   6 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/rockchip/Makefile         |   2 +
 .../rockchip/rk3566-onething-oec-turbo.dts    |  10 +
 .../boot/dts/rockchip/rk3566-onething-oec.dts |  10 +
 .../dts/rockchip/rk3566-onething-oec.dtsi     | 313 ++++++++++++++++++
 6 files changed, 343 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dtsi
Signature · 1 line
2.52.0
author
#1 lore raw

PATCH v2 1/3 dt-bindings: vendor-prefixes: Add Shenzhen OneThing Technologies Co., Ltd.

OneThing is a company engaged in edge computing.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index ee7fd3cfe203..49607cf2941e 100644
@@ -1199,6 +1199,8 @@ patternProperties:
     description: One Laptop Per Child
   "^oneplus,.*":
     description: OnePlus Technology (Shenzhen) Co., Ltd.
+  "^onething,.*":
+    description: Shenzhen OneThing Technologies Co., Ltd.
   "^onie,.*":
     description: Open Network Install Environment group
   "^onion,.*":
Signature · 1 line
2.52.0
author
#3 lore raw

PATCH v2 2/3 dt-bindings: arm: rockchip: Add OneThing Edge Cube series

In reply to Jun Yan

Add devicetree binding for the OneThing OEC and OEC-turbo

The OneThing Edge Cube (OEC) series features the RK3566 SoC, 8GB eMMC storage, and supports one SATA interface, one Gigabit Ethernet port, and one USB 3.0 port.
Among the lineup, the standard OEC model comes with 2GB of RAM, while the OEC-turbo features 4GB of RAM; The rest of the specifications are identical.

The OneThing Edge Cube series (shipping with the vendor firmware) is originally designed as a PCDN (P2P Content Delivery Network) device.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +6 -0
index ae77ded9fe47..eeafe40e0f23 100644
@@ -813,6 +813,12 @@ properties:
           - const: openailab,eaidk-610
           - const: rockchip,rk3399
 
+      - description: OneThing Edge Cube series
+        items:
+          - const: onething,oec
+          - const: onething,oec-turbo
+          - const: rockchip,rk3566
+
       - description: Xunlong Orange Pi RK3399 board
         items:
           - const: xunlong,rk3399-orangepi
Signature · 1 line
2.52.0
author
#6 lore raw

PATCH v2 3/3 arm64: dts: rockchip: Add OneThing Edge Cube series

In reply to Jun Yan

The OneThing Edge Cube (OEC) series features the RK3566 SoC, 8GB eMMC storage, and supports one SATA interface, one Gigabit Ethernet port, and one USB 3.0 port.

Other than the difference in RAM capacity, the OEC and OEC-turbo are identical in all other specifications.

Specification:
- Rockchip RK3566
- LPDDR4X 2GB (OEC) / 4GB (OEC-turbo)
- eMMC 8GB
- Gigabit Ethernet port x 1
- USB 3.0 port x 1
- USB-C 2.0 port x 1
- 12V DC Power supply
- SATA 3.0 connector x 1

---
 arch/arm64/boot/dts/rockchip/Makefile         |   2 +
 .../rockchip/rk3566-onething-oec-turbo.dts    |  10 +
 .../boot/dts/rockchip/rk3566-onething-oec.dts |  10 +
 .../dts/rockchip/rk3566-onething-oec.dtsi     | 309 ++++++++++++++++++
 4 files changed, 331 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dtsi
arch/arm64/boot/dts/rockchip/Makefile +2 -0
index 4d384f153c13..ec57719e4573 100644
@@ -104,6 +104,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353v.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353vs.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg503.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-odroid-m1s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-onething-oec.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-onething-oec-turbo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b-v1.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b-v2.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts new file +10 -0
new file mode 100644
index 000000000000..16d0cd0cf577
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3566-onething-oec.dtsi"
+
+/ {
+	model = "OneThing OEC-turbo";
+	compatible = "onething,oec-turbo", "rockchip,rk3566";
+};
arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts new file +10 -0
new file mode 100644
index 000000000000..81da771ad63d
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3566-onething-oec.dtsi"
+
+/ {
+	model = "OneThing OEC";
+	compatible = "onething,oec", "rockchip,rk3566";
+};
arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dtsi new file +309 -0

309 lines not on this page · raw message

Signature · 1 line
2.52.0
#7 lore raw

Re: [PATCH 3/3] arm64: dts: rockchip: Add OneThing Edge Cube series

Hello Jun,

Please, see a quick remark below, for now.

Quoted 63 lines · Jun Yan

The OneThing Edge Cube (OEC) series features the RK3566 SoC, 8GB eMMC storage, and supports one SATA interface, one Gigabit Ethernet port, and one USB 3.0 port.

Other than the difference in RAM capacity, the OEC and OEC-turbo are identical in all other specifications.

Specification:
- Rockchip RK3566
- LPDDR4X 2GB (OEC) / 4GB (OEC-turbo)
- eMMC 8GB
- Gigabit Ethernet port x 1
- USB 3.0 port x 1
- USB-C 2.0 port x 1
- 12V DC Power supply
- SATA 3.0 connector x 1

---
 arch/arm64/boot/dts/rockchip/Makefile         |   2 +
 .../rockchip/rk3566-onething-oec-turbo.dts    |  10 +
 .../boot/dts/rockchip/rk3566-onething-oec.dts |  10 +
 .../dts/rockchip/rk3566-onething-oec.dtsi     | 309 ++++++++++++++++++
 4 files changed, 331 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dtsi
arch/arm64/boot/dts/rockchip/Makefile +2 -0
index 4d384f153c13..ec57719e4573 100644
@@ -104,6 +104,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353v.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353vs.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg503.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-odroid-m1s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-onething-oec.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-onething-oec-turbo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b-v1.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b-v2.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts new file +10 -0
new file mode 100644
index 000000000000..16d0cd0cf577
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3566-onething-oec.dtsi"
+
+/ {
+	model = "OneThing OEC-turbo";
+	compatible = "onething,oec-turbo", "rockchip,rk3566";
+};
arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts new file +0 -0
new file mode 100644
index 000000000000..81da771ad63d

arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts line 10

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts new file +10 -0
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3566-onething-oec.dtsi"
+
+/ {
+	model = "OneThing OEC";
+	compatible = "onething,oec", "rockchip,rk3566";
+};

The only difference between the two OneThing OEC board variants is, as far as I can tell, the amount of LPDDR4X DRAM they have, so I don't think it's justified to have two separate board dts files that descend from the common dtsi ancestor.

Having different amounts of DRAM on the same board design is present on virtually all boards from other manufacturers, and some kind of special DT treatment is needed only in some special cases, such as when different types of DRAM are used for different capacities.

The different naming of the two board variants could be solved by having something like this is the single board dts file:

  model = "OneThing OEC/OEC-turbo";

Having two separate board dts files only makes it harder down the road, such as having to build and provide two separate U-Boot builds, with no real benefits. Every user can run free(1) to check the amount of available DRAM on their board, which also tells them the board variant.

#4 lore raw

Re: [PATCH 2/3] dt-bindings: arm: rockchip: Add OneThing Edge Cube series

In reply to Jun Yan
Quoted 22 lines · Jun Yan

Add devicetree binding for the OneThing OEC and OEC-turbo

The OneThing Edge Cube (OEC) series features the RK3566 SoC, 8GB eMMC storage, and supports one SATA interface, one Gigabit Ethernet port, and one USB 3.0 port.
Among the lineup, the standard OEC model comes with 2GB of RAM, while the OEC-turbo features 4GB of RAM; The rest of the specifications are identical.

The OneThing Edge Cube series (shipping with the vendor firmware) is originally designed as a PCDN (P2P Content Delivery Network) device.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index ae77ded9fe47..eeafe40e0f23 100644

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 819

Quoted 7 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +4 -0
@@ -813,6 +813,12 @@ properties:
           - const: openailab,eaidk-610
           - const: rockchip,rk3399
 
+      - description: OneThing Edge Cube series
+        items:
+          - const: onething,oec
+          - const: onething,oec-turbo

This doesn't match your dts, so clearly you have not tested this sufficiently. oec and oec-turbo should be in an enum.
pw-bot: changes-requested

Quoted 8 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +2 -0
+          - const: rockchip,rk3566
+
       - description: Xunlong Orange Pi RK3399 board
         items:
           - const: xunlong,rk3399-orangepi
Signature · 1 line
2.52.0
author
#8 lore raw

Re: [PATCH 3/3] arm64: dts: rockchip: Add OneThing Edge Cube series

In reply to Dragan Simic
Quoted 89 lines

Hello Jun,

Please, see a quick remark below, for now.

Quoted 63 lines · Jun Yan

The OneThing Edge Cube (OEC) series features the RK3566 SoC, 8GB eMMC storage, and supports one SATA interface, one Gigabit Ethernet port, and one USB 3.0 port.

Other than the difference in RAM capacity, the OEC and OEC-turbo are identical in all other specifications.

Specification:
- Rockchip RK3566
- LPDDR4X 2GB (OEC) / 4GB (OEC-turbo)
- eMMC 8GB
- Gigabit Ethernet port x 1
- USB 3.0 port x 1
- USB-C 2.0 port x 1
- 12V DC Power supply
- SATA 3.0 connector x 1

---
 arch/arm64/boot/dts/rockchip/Makefile         |   2 +
 .../rockchip/rk3566-onething-oec-turbo.dts    |  10 +
 .../boot/dts/rockchip/rk3566-onething-oec.dts |  10 +
 .../dts/rockchip/rk3566-onething-oec.dtsi     | 309 ++++++++++++++++++
 4 files changed, 331 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dtsi
arch/arm64/boot/dts/rockchip/Makefile +2 -0
index 4d384f153c13..ec57719e4573 100644
@@ -104,6 +104,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353v.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353vs.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg503.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-odroid-m1s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-onething-oec.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-onething-oec-turbo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b-v1.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-orangepi-3b-v2.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-turbo.dts new file +10 -0
new file mode 100644
index 000000000000..16d0cd0cf577
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3566-onething-oec.dtsi"
+
+/ {
+	model = "OneThing OEC-turbo";
+	compatible = "onething,oec-turbo", "rockchip,rk3566";
+};
arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts new file +0 -0
new file mode 100644
index 000000000000..81da771ad63d

arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts line 10

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec.dts new file +10 -0
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+
+#include "rk3566-onething-oec.dtsi"
+
+/ {
+	model = "OneThing OEC";
+	compatible = "onething,oec", "rockchip,rk3566";
+};

The only difference between the two OneThing OEC board variants is, as far as I can tell, the amount of LPDDR4X DRAM they have, so I don't think it's justified to have two separate board dts files that descend from the common dtsi ancestor.

Having different amounts of DRAM on the same board design is present on virtually all boards from other manufacturers, and some kind of special DT treatment is needed only in some special cases, such as when different types of DRAM are used for different capacities.

Quoted 4 lines

The different naming of the two board variants could be solved by having something like this is the single board dts file:

  model = "OneThing OEC/OEC-turbo";

I agree with your suggestion and will implement it in the V3 patch set. Thanks for your valuable feedback!

Quoted 4 lines

Having two separate board dts files only makes it harder down the road, such as having to build and provide two separate U-Boot builds, with no real benefits. Every user can run free(1) to check the amount of available DRAM on their board, which also tells them the board variant.

author
#5 lore raw

Re: [PATCH 2/3] dt-bindings: arm: rockchip: Add OneThing Edge Cube series

In reply to Conor Dooley
Quoted 19 lines

Docume=

Quoted 18 lines

Add devicetree binding for the OneThing OEC and OEC-turbo =20
The OneThing Edge Cube (OEC) series features the RK3566 SoC, 8GB eMMC storage, and supports one SATA interface, one Gigabit Ethernet port, and one USB 3.0 port.
Among the lineup, the standard OEC model comes with 2GB of RAM, while the OEC-turbo features 4GB of RAM; The rest of the specifications are identical.
=20
The OneThing Edge Cube series (shipping with the vendor firmware) is originally designed as a PCDN (P2P Content Delivery Network) device. =20

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

=20

Docume= renamed from Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0

ntation/devicetree/bindings/arm/rockchip.yaml

Quoted 15 lines

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 819

Quoted 11 lines

index ae77ded9fe47..eeafe40e0f23 100644

Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
@@ -813,6 +813,12 @@ properties:
           - const: openailab,eaidk-610
           - const: rockchip,rk3399

=20

Documentation/devicetree/bindings/arm/rockchip.yaml +4 -0
+      - description: OneThing Edge Cube series
+        items:
+          - const: onething,oec
+          - const: onething,oec-turbo

This doesn't match your dts, so clearly you have not tested this sufficiently. oec and oec-turbo should be in an enum.
pw-bot: changes-requested

Sorry for that. Following Dragan Simic's suggestion, I will merge these two board items into one in the V3 patch set.

Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +2 -1
+          - const: rockchip,rk3566
+
       - description: Xunlong Orange Pi RK3399 board
         items:
           - const: xunlong,rk3399-orangepi
--=20

2.52.0
=20