127 lines
3.0 KiB
Diff
127 lines
3.0 KiB
Diff
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
|
|
index 52def0cf2..cc1d8ec30 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/Makefile
|
|
+++ b/arch/arm64/boot/dts/rockchip/Makefile
|
|
@@ -56,6 +56,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-m4.dtb
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-m4b.dtb
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-neo4.dtb
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-r4s.dtb
|
|
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-nanopi-r4se.dtb
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-orangepi.dtb
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pinebook-pro.dtb
|
|
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb
|
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4se.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4se.dts
|
|
new file mode 100644
|
|
index 000000000..a15620a73
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4se.dts
|
|
@@ -0,0 +1,108 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
+/*
|
|
+ * FriendlyElec NanoPC-T4 board device tree source
|
|
+ *
|
|
+ * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd.
|
|
+ * (http://www.friendlyarm.com)
|
|
+ *
|
|
+ * Copyright (c) 2018 Collabora Ltd.
|
|
+ *
|
|
+ * Copyright (c) 2020 Jensen Huang <jensenhuang@friendlyarm.com>
|
|
+ * Copyright (c) 2020 Marty Jones <mj8263788@gmail.com>
|
|
+ * Copyright (c) 2021 Tianling Shen <cnsztl@gmail.com>
|
|
+ */
|
|
+
|
|
+/dts-v1/;
|
|
+#include "rk3399-nanopi-r4s.dts"
|
|
+
|
|
+/ {
|
|
+ model = "FriendlyElec NanoPi R4SE";
|
|
+ compatible = "friendlyelec,nanopi-r4se", "rockchip,rk3399";
|
|
+ /delete-node/ display-subsystem;
|
|
+
|
|
+ gpio-leds {
|
|
+ pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>;
|
|
+
|
|
+ /delete-node/ led-0;
|
|
+
|
|
+ sys_led: led-sys {
|
|
+ gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
|
|
+ label = "red:power";
|
|
+ default-state = "on";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ gpio-keys {
|
|
+ pinctrl-0 = <&reset_button_pin>;
|
|
+
|
|
+ /delete-node/ power;
|
|
+
|
|
+ reset {
|
|
+ debounce-interval = <50>;
|
|
+ gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
+ label = "reset";
|
|
+ linux,code = <KEY_RESTART>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ vdd_5v: vdd-5v {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "vdd_5v";
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ };
|
|
+};
|
|
+
|
|
+&pinctrl {
|
|
+ gpio-leds {
|
|
+ /delete-node/ status-led-pin;
|
|
+
|
|
+ lan_led_pin: lan-led-pin {
|
|
+ rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
+ };
|
|
+
|
|
+ sys_led_pin: sys-led-pin {
|
|
+ rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
+ };
|
|
+
|
|
+ wan_led_pin: wan-led-pin {
|
|
+ rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ rockchip-key {
|
|
+ /delete-node/ power-key;
|
|
+
|
|
+ reset_button_pin: reset-button-pin {
|
|
+ rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&emmc_phy {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&sdhci {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&gmac {
|
|
+ nvmem-cells = <&mac_address>;
|
|
+ nvmem-cell-names = "mac-address";
|
|
+};
|
|
+
|
|
+&i2c2 {
|
|
+ eeprom@51 {
|
|
+ compatible = "microchip,24c02", "atmel,24c02";
|
|
+ reg = <0x51>;
|
|
+ pagesize = <16>;
|
|
+ size = <256>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ mac_address: mac-address@fa {
|
|
+ reg = <0xfa 0x06>;
|
|
+ };
|
|
+ };
|
|
+};
|