Skip to contentSkip to conversation

rockchip: rk3568: Add support for FriendlyARM NanoPi R5S

PATCH New Tianling Shen 1 participant 2 messages May 30, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

FriendlyARM 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.

---

Changes since v2:
* https://lore.kernel.org/u-boot/[email protected]/
* Added more supported emmc modes and pinctrl to sdhci node
* Collected Reviewed-by tag
* Removed sdmmc node
* Removed unused configs, reordered
* Switched to use bootph-all for uart
* Huge thanks to Jonas for suggestions

Changes since v1:
* https://lore.kernel.org/u-boot/[email protected]/
* No changes

---
 arch/arm/dts/Makefile                      |   1 +
 arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi |  31 ++
 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        |  85 +++
 6 files changed, 851 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 +31 -0
new file mode 100644
index 0000000000..0ecca85b20
@@ -0,0 +1,31 @@
+// 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-ddr-1_8v;
+	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	mmc-hs400-enhanced-strobe;
+	pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
+};
+
+&uart2 {
+	clock-frequency = <24000000>;
+	bootph-all;
+	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 +85 -0

85 lines not on this page · raw message

Signature · 1 line
2.40.1
#1 lore raw

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

---

Changes since v2:
* https://lore.kernel.org/u-boot/[email protected]/
* Collected Reviewed-by tag
* Removed unused configs, reordered

Changes since v1:
* https://lore.kernel.org/u-boot/[email protected]/
* Added dtb to Makefile

---
 arch/arm/dts/Makefile                      |   1 +
 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        |  85 ++++++++++++++++
 5 files changed, 208 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/Makefile +1 -0
index e2eda3ffcb..507bfb512a 100644
@@ -169,6 +169,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3568) += \
 	rk3566-anbernic-rgxx3.dtb \
 	rk3566-radxa-cm3-io.dtb \
 	rk3568-evb.dtb \
+	rk3568-nanopi-r5c.dtb \
 	rk3568-nanopi-r5s.dtb \
 	rk3568-rock-3a.dtb
 
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 +85 -0

85 lines not on this page · raw message

Signature · 1 line
2.40.1