aboutsummaryrefslogtreecommitdiff
path: root/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch
diff options
context:
space:
mode:
authorTianling Shen <cnsztl@immortalwrt.org>2024-02-12 19:21:38 +0800
committerNick Hainke <vincent@systemli.org>2024-02-22 17:30:05 +0100
commit08e249d43ca8011662bc862969534b6f0570a7a3 (patch)
tree8800f0fca8ce33f95a1bd0b14d4e341839fb8af9 /target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch
parent62acd9a2f9f18f30997d23b479abaea4940a4273 (diff)
rockchip: remove LED label hack
Now we support parsing the color and function properties. Ref: e814acc59948 ("base-files: support parse DT LED color and function") Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch')
-rw-r--r--target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch22
1 files changed, 17 insertions, 5 deletions
diff --git a/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch b/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch
index 01009c5eb8..683e5347f7 100644
--- a/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch
+++ b/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch
@@ -15,7 +15,15 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
-@@ -16,6 +16,11 @@
+@@ -6,6 +6,7 @@
+ /dts-v1/;
+
+ #include <dt-bindings/input/input.h>
++#include <dt-bindings/leds/common.h>
+ #include <dt-bindings/gpio/gpio.h>
+ #include "rk3328.dtsi"
+
+@@ -16,6 +17,11 @@
aliases {
ethernet1 = &rtl8153;
mmc0 = &sdmmc;
@@ -27,25 +35,29 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
};
chosen {
-@@ -49,18 +54,18 @@
+@@ -48,19 +54,22 @@
+ pinctrl-names = "default";
lan_led: led-0 {
++ color = <LED_COLOR_ID_GREEN>;
++ function = LED_FUNCTION_LAN;
gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
- label = "nanopi-r2s:green:lan";
-+ label = "green:lan";
};
sys_led: led-1 {
++ color = <LED_COLOR_ID_RED>;
++ function = LED_FUNCTION_STATUS;
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
- label = "nanopi-r2s:red:sys";
-+ label = "red:sys";
default-state = "on";
};
wan_led: led-2 {
++ color = <LED_COLOR_ID_GREEN>;
++ function = LED_FUNCTION_WAN;
gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>;
- label = "nanopi-r2s:green:wan";
-+ label = "green:wan";
};
};