Skip to contentSkip to conversation

board: rockchip: add OneThing Edge Cube series

PATCH Superseded Jun Yan 2 participants 9 messages Feb 2 – Feb 4

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Jun Yan

author
#0 lore raw

v3 cover board: rockchip: add OneThing Edge Cube series

This series adds support for the OneThing Edge Cube series, Rockchip RK3566-based PCDN (P2P Content Delivery Network) devices originally marketed by OneThing Tech.

The V3 patch merges the separate dts files for OEC and OEC-turbo, following Dragan Simic's suggestion.

The V2 patch 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 v3:
- Use a single device tree for both OEC and OEC-turbo.
- Align the compatible strings in dt-bindings and device tree.
- Link to v2: https://lore.kernel.org/all/[email protected]/

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         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 4 files changed, 321 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
Signature · 1 line
2.52.0
author
#1 lore raw

PATCH v3 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
#2 lore raw

PATCH v3 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..5cbc3bd31676 100644
@@ -813,6 +813,12 @@ properties:
           - const: openailab,eaidk-610
           - const: rockchip,rk3399
 
+      - description: OneThing Edge Cube series
+        items:
+          - const: onething,oec-turbo
+          - const: onething,oec
+          - const: rockchip,rk3566
+
       - description: Xunlong Orange Pi RK3399 board
         items:
           - const: xunlong,rk3399-orangepi
Signature · 1 line
2.52.0
author
#3 lore raw

PATCH v3 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

These devices do not have a PMIC, and their hardware circuit design is highly similar to that of the rk3566-box-demo[1]. Hardware schematics are not available at this time, with the vendor firmware dts available for reference[2].

Ethernet, USB 3.0 and SATA 3.0 ports tested, all working well.

[1] https://elixir.bootlin.com/linux/v6.18.6/source/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
[2] https://archive.org/download/wxy-oec-RK3566-4G-dump/wxy-oec-RK3566-4G-dump.dts

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 2 files changed, 313 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4d384f153c13..234fa53abe17 100644
@@ -104,6 +104,7 @@ 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-series.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-series.dts new file +312 -0

312 lines not on this page · raw message

Signature · 1 line
2.52.0
#4 lore raw

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

Hello Jun,

Quoted 54 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

These devices do not have a PMIC, and their hardware circuit design is highly similar to that of the rk3566-box-demo[1]. Hardware schematics are not available at this time, with the vendor firmware dts available for reference[2].

Ethernet, USB 3.0 and SATA 3.0 ports tested, all working well.

[1] https://elixir.bootlin.com/linux/v6.18.6/source/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
[2] https://archive.org/download/wxy-oec-RK3566-4G-dump/wxy-oec-RK3566-4G-dump.dts

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 2 files changed, 313 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4d384f153c13..234fa53abe17 100644
@@ -104,6 +104,7 @@ 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-series.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-series.dts new file +2 -0
new file mode 100644
index 000000000000..2007b93e190e
@@ -0,0 +1,312 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+

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

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts new file +10 -0
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rk3566.dtsi"
+
+/ {
+	model = "OneThing OEC/OEC-turbo";
+	compatible = "onething,oec-turbo", "onething,oec", "rockchip,rk3566";

Thanks for the v3! After thinking a bit more about it, it would be better to name the board dtb "rk3566-onething-edge-cube.dtb" and omit the "series" part, because the only difference between the board variants is the amount of DRAM. Also, "onething,oec-turbo" should be removed from the compatibles, and the single compatible renamed to "onething,edge-cube", because I see no need to have an additional compatible, which may be added later if really needed for some unforeseen differentiating purpose.

Also, it might be better to use "OneThing Edge Cube/Edge Cube Turbo" as the combined name, because "Edge Cube" is more self-descriptive than just "OEC", which may also help with various search engines down the road.

author
#5 lore raw

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

Quoted 76 lines

Hello Jun,

Quoted 54 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

These devices do not have a PMIC, and their hardware circuit design is highly similar to that of the rk3566-box-demo[1]. Hardware schematics are not available at this time, with the vendor firmware dts available for reference[2].

Ethernet, USB 3.0 and SATA 3.0 ports tested, all working well.

[1] https://elixir.bootlin.com/linux/v6.18.6/source/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
[2] https://archive.org/download/wxy-oec-RK3566-4G-dump/wxy-oec-RK3566-4G-dump.dts

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 2 files changed, 313 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4d384f153c13..234fa53abe17 100644
@@ -104,6 +104,7 @@ 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-series.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-series.dts new file +2 -0
new file mode 100644
index 000000000000..2007b93e190e
@@ -0,0 +1,312 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+

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

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts new file +10 -0
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rk3566.dtsi"
+
+/ {
+	model = "OneThing OEC/OEC-turbo";
+	compatible = "onething,oec-turbo", "onething,oec", "rockchip,rk3566";

Thanks for the v3! After thinking a bit more about it, it would be better to name the board dtb "rk3566-onething-edge-cube.dtb" and omit the "series" part, because the only difference between the board variants is the amount of DRAM. Also, "onething,oec-turbo" should be removed from the compatibles, and the single compatible renamed to "onething,edge-cube", because I see no need to have an additional compatible, which may be added later if really needed for some unforeseen differentiating purpose.

Quoted 3 lines

Also, it might be better to use "OneThing Edge Cube/Edge Cube Turbo" as the combined name, because "Edge Cube" is more self-descriptive than just "OEC", which may also help with various search engines down the road.

Thank you for your detailed feedback!

I fully agree with your suggestions and will implement all of them in the V4 patch.

Best regards,
Jun Yan

author
#6 lore raw

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

In reply to Dragan Simic
Quoted 76 lines

Hello Jun,

Quoted 54 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

These devices do not have a PMIC, and their hardware circuit design is highly similar to that of the rk3566-box-demo[1]. Hardware schematics are not available at this time, with the vendor firmware dts available for reference[2].

Ethernet, USB 3.0 and SATA 3.0 ports tested, all working well.

[1] https://elixir.bootlin.com/linux/v6.18.6/source/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
[2] https://archive.org/download/wxy-oec-RK3566-4G-dump/wxy-oec-RK3566-4G-dump.dts

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 2 files changed, 313 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4d384f153c13..234fa53abe17 100644
@@ -104,6 +104,7 @@ 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-series.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-series.dts new file +2 -0
new file mode 100644
index 000000000000..2007b93e190e
@@ -0,0 +1,312 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+

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

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts new file +10 -0
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rk3566.dtsi"
+
+/ {
+	model = "OneThing OEC/OEC-turbo";
+	compatible = "onething,oec-turbo", "onething,oec", "rockchip,rk3566";

Thanks for the v3! After thinking a bit more about it, it would be better to name the board dtb "rk3566-onething-edge-cube.dtb" and omit the "series" part, because the only difference between the board variants is the amount of DRAM. Also, "onething,oec-turbo" should be removed from the compatibles, and the single compatible renamed to "onething,edge-cube", because I see no need to have an additional compatible, which may be added later if really needed for some unforeseen differentiating purpose.

Quoted 3 lines

Also, it might be better to use "OneThing Edge Cube/Edge Cube Turbo" as the combined name, because "Edge Cube" is more self-descriptive than just "OEC", which may also help with various search engines down the road.

Sorry for the quick follow-up.
In official documentation (Most of it is in Chinese) from OneThing Tech[1], the designations "OEC/OEC-turbo" are more commonly and widely used. for this reason, I propose retaining the "OEC/OEC-turbo" naming in the model property.

[1] https://help.onethingcloud.com/be81/OEC1/80c5

Best regards,
Jun Yan

#7 lore raw

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

Hello Jun,

Quoted 78 lines · Jun Yan
Quoted 74 lines · Jun Yan
Quoted 54 lines

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

These devices do not have a PMIC, and their hardware circuit design is highly similar to that of the rk3566-box-demo[1]. Hardware schematics are not available at this time, with the vendor firmware dts available for reference[2].

Ethernet, USB 3.0 and SATA 3.0 ports tested, all working well.

[1] https://elixir.bootlin.com/linux/v6.18.6/source/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
[2] https://archive.org/download/wxy-oec-RK3566-4G-dump/wxy-oec-RK3566-4G-dump.dts

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 2 files changed, 313 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4d384f153c13..234fa53abe17 100644
@@ -104,6 +104,7 @@ 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-series.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-series.dts new file +2 -0
new file mode 100644
index 000000000000..2007b93e190e
@@ -0,0 +1,312 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+

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

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts new file +10 -0
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rk3566.dtsi"
+
+/ {
+	model = "OneThing OEC/OEC-turbo";
+	compatible = "onething,oec-turbo", "onething,oec", "rockchip,rk3566";

Thanks for the v3! After thinking a bit more about it, it would be better to name the board dtb "rk3566-onething-edge-cube.dtb" and omit the "series" part, because the only difference between the board variants is the amount of DRAM. Also, "onething,oec-turbo" should be removed from the compatibles, and the single compatible renamed to "onething,edge-cube", because I see no need to have an additional compatible, which may be added later if really needed for some unforeseen differentiating purpose.

Quoted 3 lines

Also, it might be better to use "OneThing Edge Cube/Edge Cube Turbo" as the combined name, because "Edge Cube" is more self-descriptive than just "OEC", which may also help with various search engines down the road.

Quoted 5 lines

Sorry for the quick follow-up.
In official documentation (Most of it is in Chinese) from OneThing Tech[1], the designations "OEC/OEC-turbo" are more commonly and widely used. for this reason, I propose retaining the "OEC/OEC-turbo" naming in the model property.

I see, that's an interesting twist. As some kind of a compromise, it would be best to have the board dtb named "rk3566-onething-edge-cube.dtb" and use "OneThing Edge Cube (OEC)/OEC Turbo" as the combined name. That way the board dtb name isn't too short, while "OEC" is present in the model name, for search engines to pick it up, hopefully, and for people to see it in a few places. :)

Quoted 1 line

[1] https://help.onethingcloud.com/be81/OEC1/80c5

author
#8 lore raw

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

Hello,

Quoted 87 lines

Hello Jun,

Quoted 78 lines · Jun Yan
Quoted 74 lines · Jun Yan
Quoted 54 lines

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

These devices do not have a PMIC, and their hardware circuit design is highly similar to that of the rk3566-box-demo[1]. Hardware schematics are not available at this time, with the vendor firmware dts available for reference[2].

Ethernet, USB 3.0 and SATA 3.0 ports tested, all working well.

[1] https://elixir.bootlin.com/linux/v6.18.6/source/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
[2] https://archive.org/download/wxy-oec-RK3566-4G-dump/wxy-oec-RK3566-4G-dump.dts

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3566-onething-oec-series.dts   | 312 ++++++++++++++++++
 2 files changed, 313 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4d384f153c13..234fa53abe17 100644
@@ -104,6 +104,7 @@ 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-series.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-series.dts new file +2 -0
new file mode 100644
index 000000000000..2007b93e190e
@@ -0,0 +1,312 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+

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

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3566-onething-oec-series.dts new file +10 -0
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include "rk3566.dtsi"
+
+/ {
+	model = "OneThing OEC/OEC-turbo";
+	compatible = "onething,oec-turbo", "onething,oec", "rockchip,rk3566";

Thanks for the v3! After thinking a bit more about it, it would be better to name the board dtb "rk3566-onething-edge-cube.dtb" and omit the "series" part, because the only difference between the board variants is the amount of DRAM. Also, "onething,oec-turbo" should be removed from the compatibles, and the single compatible renamed to "onething,edge-cube", because I see no need to have an additional compatible, which may be added later if really needed for some unforeseen differentiating purpose.

Quoted 3 lines

Also, it might be better to use "OneThing Edge Cube/Edge Cube Turbo" as the combined name, because "Edge Cube" is more self-descriptive than just "OEC", which may also help with various search engines down the road.

Quoted 5 lines

Sorry for the quick follow-up.
In official documentation (Most of it is in Chinese) from OneThing Tech[1], the designations "OEC/OEC-turbo" are more commonly and widely used. for this reason, I propose retaining the "OEC/OEC-turbo" naming in the model property.

Quoted 7 lines

I see, that's an interesting twist. As some kind of a compromise, it would be best to have the board dtb named "rk3566-onething-edge-cube.dtb" and use "OneThing Edge Cube (OEC)/OEC Turbo" as the combined name. That way the board dtb name isn't too short, while "OEC" is present in the model name, for search engines to pick it up, hopefully, and for people to see it in a few places. :)

I appreciate the compromise and fully agree with it: naming the dtb "rk3566-onething-edge-cube.dtb" and using "OneThing Edge Cube (OEC)/OEC Turbo" as the combined name.

The V4 patch will follow shortly.

Best regards,

Jun Yan

Quoted 1 line
Quoted 1 line

[1] https://help.onethingcloud.com/be81/OEC1/80c5