Enable network link triggers for NanoPi R4S leds (#2571)

This commit is contained in:
Piotr Szczepanik 2021-01-22 12:57:01 +01:00 committed by GitHub
parent de4a4c3054
commit bd60eb7596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 4 deletions

View file

@ -11,7 +11,7 @@ new file mode 100644
index 000000000000..7b136d4707c8
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
@@ -0,0 +1,148 @@
@@ -0,0 +1,156 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
@ -77,7 +77,7 @@ index 000000000000..7b136d4707c8
+ label = "lan_led";
+ };
+
+ wan_len: led-3 {
+ wan_led: led-3 {
+ gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
+ label = "wan_led";
+ };
@ -147,6 +147,14 @@ index 000000000000..7b136d4707c8
+};
+
+// Armbian tweaks
+&lan_led {
+ linux,default-trigger = "stmmac-0:01:link";
+};
+
+&wan_led {
+ linux,default-trigger = "r8169-100:00:link";
+};
+
+&uart0 {
+ bluetooth {
+ status = "disabled";

View file

@ -11,7 +11,7 @@ new file mode 100644
index 000000000000..7b136d4707c8
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
@@ -0,0 +1,148 @@
@@ -0,0 +1,156 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
@ -77,7 +77,7 @@ index 000000000000..7b136d4707c8
+ label = "lan_led";
+ };
+
+ wan_len: led-3 {
+ wan_led: led-3 {
+ gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
+ label = "wan_led";
+ };
@ -147,6 +147,14 @@ index 000000000000..7b136d4707c8
+};
+
+// Armbian tweaks
+&lan_led {
+ linux,default-trigger = "stmmac-0:01:link";
+};
+
+&wan_led {
+ linux,default-trigger = "r8169-100:00:link";
+};
+
+&uart0 {
+ bluetooth {
+ status = "disabled";