Skip to contentSkip to conversation

dt-bindings: Add doc for Fastrhino R66S / R68S

PATCH Superseded Tianling Shen 3 participants 10 messages Apr 28, 2023 – May 2, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 dt-bindings: Add doc for Fastrhino R66S / R68S

Add devicetree binding documentation for the
Lunzn Fastrhino R66S and R68S boards.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml    | 7 +++++++
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 2 files changed, 9 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
index ec141c937b8b..b1d271778179 100644
@@ -562,6 +562,13 @@ properties:
           - const: leez,p710
           - const: rockchip,rk3399
 
+      - description: Lunzn FastRhino R66S / R68S
+        items:
+          - enum:
+              - lunzn,fastrhino-r66s
+              - lunzn,fastrhino-r68s
+          - const: rockchip,rk3568
+
       - description: mqmaker MiQi
         items:
           - const: mqmaker,miqi
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 3e29fbd53b6d..20a77b193ed2 100644
@@ -779,6 +779,8 @@ patternProperties:
     description: Loongson Technology Corporation Limited
   "^lsi,.*":
     description: LSI Corp. (LSI Logic)
+  "^lunzn,.*":
+    description: Shenzhen Lunzn Technology Co., Ltd.
   "^lwn,.*":
     description: Liebherr-Werk Nenzing GmbH
   "^lxa,.*":
Signature · 1 line
2.40.1
#1 lore raw

PATCH 2/3 arm64: dts: rockchip: Add Lunzn Fastrhino R66S

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +27 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+
+/ {
+	model = "Lunzn FastRhino R66S";
+	compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+	aliases {
+		mmc0 = &sdmmc0;
+	};
+};
+
+&sdmmc0 {
+	max-frequency = <150000000>;
+	no-sdio;
+	no-mmc;
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	disable-wp;
+	vmmc-supply = <&vcc3v3_sd>;
+	vqmmc-supply = <&vccio_sd>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
+	status = "okay";
+};
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi new file +507 -0

507 lines not on this page · raw message

Signature · 1 line
2.40.1
#2 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: Add Lunzn Fastrhino R66S

Quoted 77 lines · Tianling Shen

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +27 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+
+/ {
+	model = "Lunzn FastRhino R66S";
+	compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+	aliases {
+		mmc0 = &sdmmc0;
+	};
+};
+
+&sdmmc0 {
+	max-frequency = <150000000>;
+	no-sdio;
+	no-mmc;
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	disable-wp;
+	vmmc-supply = <&vcc3v3_sd>;
+	vqmmc-supply = <&vccio_sd>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
+	status = "okay";
+};
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi new file +6 -0
new file mode 100644
index 000000000000..a58592b2f13b
@@ -0,0 +1,507 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi line 16

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi new file +10 -0
+#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
+#include "rk3568.dtsi"
+
+/ {
+	aliases {
+		led-boot = &status_led;
+		led-failsafe = &status_led;
+		led-running = &status_led;
+		led-upgrade = &status_led;

Why do you need these? Which upstream kernel driver parses these?

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: Add Lunzn Fastrhino R66S

Hi Krzysztof,

Quoted 83 lines · Krzysztof Kozlowski
Quoted 81 lines · Tianling Shen

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +27 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+
+/ {
+     model = "Lunzn FastRhino R66S";
+     compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+     aliases {
+             mmc0 = &sdmmc0;
+     };
+};
+
+&sdmmc0 {
+     max-frequency = <150000000>;
+     no-sdio;
+     no-mmc;
+     bus-width = <4>;
+     cap-mmc-highspeed;
+     cap-sd-highspeed;
+     disable-wp;
+     vmmc-supply = <&vcc3v3_sd>;
+     vqmmc-supply = <&vccio_sd>;
+     pinctrl-names = "default";
+     pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
+     status = "okay";
+};
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi new file +10 -0
new file mode 100644
index 000000000000..a58592b2f13b
@@ -0,0 +1,507 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/soc/rockchip,vop2.h>
+#include "rk3568.dtsi"
+
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi line 16

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi new file +6 -0
+/ {
+     aliases {
+             led-boot = &status_led;
+             led-failsafe = &status_led;
+             led-running = &status_led;
+             led-upgrade = &status_led;

Why do you need these? Which upstream kernel driver parses these?

Oh sorry these aliases are used for OpenWrt and I forgot to remove them when submitting patches. Will send v2 for it.

Thanks,
Tianling.

Quoted 5 lines

Best regards,
Krzysztof

maintainer
#4 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: Add Lunzn Fastrhino R66S

In reply to Tianling Shen

Hi,

Am Freitag, 28. April 2023, 03:37:37 CEST schrieb Tianling Shen:

Quoted 42 lines

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +4 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts line 14

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +10 -0
+/ {
+	model = "Lunzn FastRhino R66S";
+	compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+	aliases {
+		mmc0 = &sdmmc0;
+	};
+};
+
+&sdmmc0 {

that whole element seems to be duplicated from rk3568-fastrhino-r66s.dtsi? I don't think we need to declare that twice. If something really changes, please only declare the new properties when going from dtsi to dts.

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts line 27

Quoted 13 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +13 -0
+	max-frequency = <150000000>;
+	no-sdio;
+	no-mmc;
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	disable-wp;
+	vmmc-supply = <&vcc3v3_sd>;
+	vqmmc-supply = <&vccio_sd>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
+	status = "okay";
+};

Thanks
Heiko

maintainer
#5 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: Add Lunzn Fastrhino R66S

Am Dienstag, 2. Mai 2023, 11:28:22 CEST schrieb Heiko Stübner:

Quoted 51 lines

Hi,

Am Freitag, 28. April 2023, 03:37:37 CEST schrieb Tianling Shen:

Quoted 48 lines

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +10 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+
+/ {
+	model = "Lunzn FastRhino R66S";
+	compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+	aliases {
+		mmc0 = &sdmmc0;
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts line 14

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +4 -0
+	};
+};
+
+&sdmmc0 {

that whole element seems to be duplicated from rk3568-fastrhino-r66s.dtsi? I don't think we need to declare that twice. If something really changes, please only declare the new properties when going from dtsi to dts.

Looking at patch3 I see the explanation :-) .

The base dtsi should not contain the &sdmmc0 node, and it should only be included in the rk3568-fastrhino-r66s.dts, right?

Heiko

#6 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: Add Lunzn Fastrhino R66S

Hi Heiko,

Quoted 62 lines · Heiko Stübner

Am Dienstag, 2. Mai 2023, 11:28:22 CEST schrieb Heiko Stübner:

Quoted 51 lines

Hi,

Am Freitag, 28. April 2023, 03:37:37 CEST schrieb Tianling Shen:

Quoted 48 lines

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +10 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+
+/ {
+   model = "Lunzn FastRhino R66S";
+   compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+   aliases {
+           mmc0 = &sdmmc0;
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts line 14

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +4 -0
+   };
+};
+
+&sdmmc0 {

that whole element seems to be duplicated from rk3568-fastrhino-r66s.dtsi? I don't think we need to declare that twice. If something really changes, please only declare the new properties when going from dtsi to dts.

Quoted 5 lines

Looking at patch3 I see the explanation :-) .

The base dtsi should not contain the &sdmmc0 node, and it should only be included in the rk3568-fastrhino-r66s.dts, right?

Yes, nice catch!

And I found another error in the R68S dts file (gmac pcfg pull type). Unfortunately I don't have this board right now, and I'm still waiting for the test result from my friend. Suppose sending v2 in the next few days.

Thanks,
Tianling.

Quoted 4 lines

Heiko

maintainer
#7 lore raw

Re: [PATCH 2/3] arm64: dts: rockchip: Add Lunzn Fastrhino R66S

Am Dienstag, 2. Mai 2023, 11:53:58 CEST schrieb Tianling Shen:

Quoted 71 lines

Hi Heiko,

Quoted 62 lines · Heiko Stübner

Am Dienstag, 2. Mai 2023, 11:28:22 CEST schrieb Heiko Stübner:

Quoted 51 lines

Hi,

Am Freitag, 28. April 2023, 03:37:37 CEST schrieb Tianling Shen:

Quoted 48 lines

Lunzn Fastrhino R66S is a high-performance mini router.

Specification:
- Rockchip RK3568
- 1/2GB LPDDR4 RAM
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125b)
- 12v DC Jack

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dts    |  27 +
 .../dts/rockchip/rk3568-fastrhino-r66s.dtsi   | 507 ++++++++++++++++++
 3 files changed, 535 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 2d585bbb8f3a..15089a78555a 100644
@@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-box-demo.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +10 -0
new file mode 100644
index 000000000000..fc9e1bdab128
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-fastrhino-r66s.dtsi"
+
+/ {
+   model = "Lunzn FastRhino R66S";
+   compatible = "lunzn,fastrhino-r66s", "rockchip,rk3568";
+
+   aliases {
+           mmc0 = &sdmmc0;
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts line 14

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts new file +4 -0
+   };
+};
+
+&sdmmc0 {

that whole element seems to be duplicated from rk3568-fastrhino-r66s.dtsi? I don't think we need to declare that twice. If something really changes, please only declare the new properties when going from dtsi to dts.

Quoted 5 lines

Looking at patch3 I see the explanation :-) .

The base dtsi should not contain the &sdmmc0 node, and it should only be included in the rk3568-fastrhino-r66s.dts, right?

Quoted 6 lines

Yes, nice catch!

And I found another error in the R68S dts file (gmac pcfg pull type). Unfortunately I don't have this board right now, and I'm still waiting for the test result from my friend. Suppose sending v2 in the next few days.

no worries, send when you're ready :-)

Heiko

#8 lore raw

PATCH 3/3 arm64: dts: rockchip: Add Lunzn Fastrhino R68S

In reply to Tianling Shen

It's similar to Fastrhino R66S with the following changes:
+ 2/4GB LPDDR4 RAM
+ 2x 1000 Base-T (native, RTL8211f)
+ ADC button
+ 16GB eMMC on-board
- No SD card slot

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3568-fastrhino-r68s.dts    | 112 ++++++++++++++++++
 2 files changed, 113 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 15089a78555a..1cf105d7407f 100644
@@ -86,6 +86,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-lubancat-1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r66s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-fastrhino-r68s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-lubancat-2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts new file +112 -0

112 lines not on this page · raw message

Signature · 1 line
2.40.1