Skip to contentSkip to conversation

rockchip: rk3568: Add support for FriendlyARM NanoPi R5S

PATCH Superseded Tianling Shen 1 participant 3 messages May 28, 2023

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rockchip: rk3568: Add support for FriendlyARM NanoPi R5S

FriendlyElec Nanopi R5S is an open-sourced mini IoT gateway device.

Board Specifications
- Rockchip RK3568
- 2 or 4GB LPDDR4X
- 8GB or 16GB eMMC, SD card slot
- GbE LAN (Native)
- 2x 2.5G LAN (PCIe)
- M.2 Connector
- HDMI 2.0, MIPI DSI/CSI
- 2xUSB 3.0 Host
- USB Type C PD, 5V/9V/12V
- GPIO: 12-pin 0.5mm FPC connector

The device tree is taken from kernel v6.4-rc1.

---
 arch/arm/dts/Makefile                      |   1 +
 arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi |  33 ++
 arch/arm/dts/rk3568-nanopi-r5s.dts         | 136 +++++
 arch/arm/dts/rk3568-nanopi-r5s.dtsi        | 590 +++++++++++++++++++++
 board/rockchip/evb_rk3568/MAINTAINERS      |   8 +
 configs/nanopi-r5s-rk3568_defconfig        |  90 ++++
 6 files changed, 858 insertions(+)
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5s.dts
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5s.dtsi
 create mode 100644 configs/nanopi-r5s-rk3568_defconfig
arch/arm/dts/Makefile +1 -0
index 480269fa60..e2eda3ffcb 100644
@@ -169,6 +169,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3568) += \
 	rk3566-anbernic-rgxx3.dtb \
 	rk3566-radxa-cm3-io.dtb \
 	rk3568-evb.dtb \
+	rk3568-nanopi-r5s.dtb \
 	rk3568-rock-3a.dtb
 
 dtb-$(CONFIG_ROCKCHIP_RK3588) += \
arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi new file +33 -0
new file mode 100644
index 0000000000..b37ad1e72d
@@ -0,0 +1,33 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd.
+ * (http://www.friendlyelec.com)
+ *
+ * Copyright (c) 2023 Tianling Shen <[email protected]>
+ */
+
+#include "rk356x-u-boot.dtsi"
+
+/ {
+	chosen {
+		stdout-path = &uart2;
+		u-boot,spl-boot-order = "same-as-spl", &sdmmc0, &sdhci;
+	};
+};
+
+&sdhci {
+	cap-mmc-highspeed;
+	mmc-hs200-1_8v;
+};
+
+&sdmmc0 {
+	bus-width = <4>;
+	bootph-pre-ram;
+	u-boot,spl-fifo-mode;
+};
+
+&uart2 {
+	clock-frequency = <24000000>;
+	bootph-pre-ram;
+	status = "okay";
+};
arch/arm/dts/rk3568-nanopi-r5s.dts new file +136 -0

136 lines not on this page · raw message

arch/arm/dts/rk3568-nanopi-r5s.dtsi new file +590 -0

590 lines not on this page · raw message

board/rockchip/evb_rk3568/MAINTAINERS +8 -0
index 6b2e7c7575..9222682461 100644
@@ -7,6 +7,14 @@ F:      configs/evb-rk3568_defconfig
 F:	arch/arm/dts/rk3568-evb-boot.dtsi
 F:	arch/arm/dts/rk3568-evb.dts
 
+NANOPI-R5S
+M:      Tianling Shen <[email protected]>
+S:      Maintained
+F:      configs/nanopi-r5s-rk3568_defconfig
+F:      arch/arm/dts/rk3568-nanopi-r5s.dts
+F:      arch/arm/dts/rk3568-nanopi-r5s.dtsi
+F:      arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi
+
 RADXA-CM3
 M:	Jagan Teki <[email protected]>
 S:	Maintained
configs/nanopi-r5s-rk3568_defconfig new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.40.1
#1 lore raw

PATCH 2/2 rockchip: rk3568: Add support for FriendlyARM NanoPi R5C

FriendlyARM NanoPi R5C is an open-sourced mini IoT gateway device.

Specification:
- Rockchip RK3568
- 1/4GB LPDDR4X RAM
- 8/32GB eMMC
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125)
- HDMI 2.0
- MIPI DSI/CSI
- USB Type C 5V

The device tree is taken from kernel v6.4-rc1.

---
 arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi |   3 +
 arch/arm/dts/rk3568-nanopi-r5c.dts         | 112 +++++++++++++++++++++
 board/rockchip/evb_rk3568/MAINTAINERS      |   7 ++
 configs/nanopi-r5c-rk3568_defconfig        |  90 +++++++++++++++++
 4 files changed, 212 insertions(+)
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5c.dts
 create mode 100644 configs/nanopi-r5c-rk3568_defconfig
arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi new file +3 -0
new file mode 100644
index 0000000000..fe5bc6af47
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-nanopi-r5s-u-boot.dtsi"
arch/arm/dts/rk3568-nanopi-r5c.dts new file +112 -0

112 lines not on this page · raw message

board/rockchip/evb_rk3568/MAINTAINERS +7 -0
index 9222682461..a8ed2508a1 100644
@@ -7,6 +7,13 @@ F:      configs/evb-rk3568_defconfig
 F:	arch/arm/dts/rk3568-evb-boot.dtsi
 F:	arch/arm/dts/rk3568-evb.dts
 
+NANOPI-R5C
+M:      Tianling Shen <[email protected]>
+S:      Maintained
+F:      configs/nanopi-r5c-rk3568_defconfig
+F:      arch/arm/dts/rk3568-nanopi-r5c.dts
+F:      arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi
+
 NANOPI-R5S
 M:      Tianling Shen <[email protected]>
 S:      Maintained
configs/nanopi-r5c-rk3568_defconfig new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.40.1
#2 lore raw

Re: [PATCH 2/2] rockchip: rk3568: Add support for FriendlyARM NanoPi R5C

arch/arm/dts/rk3568-nanopi-r5c.dts

Quoted 42 lines · Tianling Shen

FriendlyARM NanoPi R5C is an open-sourced mini IoT gateway device.

Specification:
- Rockchip RK3568
- 1/4GB LPDDR4X RAM
- 8/32GB eMMC
- SD card slot
- M.2 Connector
- 2x USB 3.0 Port
- 2x 2500 Base-T (PCIe, r8125)
- HDMI 2.0
- MIPI DSI/CSI
- USB Type C 5V

The device tree is taken from kernel v6.4-rc1.

---
 arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi |   3 +
 arch/arm/dts/rk3568-nanopi-r5c.dts         | 112 +++++++++++++++++++++
 board/rockchip/evb_rk3568/MAINTAINERS      |   7 ++
 configs/nanopi-r5c-rk3568_defconfig        |  90 +++++++++++++++++
 4 files changed, 212 insertions(+)
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi
 create mode 100644 arch/arm/dts/rk3568-nanopi-r5c.dts
 create mode 100644 configs/nanopi-r5c-rk3568_defconfig
arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi new file +3 -0
new file mode 100644
index 0000000000..fe5bc6af47
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "rk3568-nanopi-r5s-u-boot.dtsi"
arch/arm/dts/rk3568-nanopi-r5c.dts new file +0 -0
new file mode 100644
index 0000000000..f70ca9f047

Forget to add this to arch/arm/dts/Makefile, will send v2 for it.

Quoted 1 line

[...]