aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/dts-5.10
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-06-07 09:21:51 +0200
committerSander Vanheule <sander@svanheule.net>2022-07-10 09:54:35 +0200
commit3edb5e841c1ab9fe6a1768610103ffa363dbc279 (patch)
treecb985f9274451830f569cfb7ab59d6fda178a7c3 /target/linux/realtek/dts-5.10
parentcd7a225d28494478c2d588d23b0021167bba1bad (diff)
downloadupstream-3edb5e841c1ab9fe6a1768610103ffa363dbc279.tar.gz
upstream-3edb5e841c1ab9fe6a1768610103ffa363dbc279.tar.bz2
upstream-3edb5e841c1ab9fe6a1768610103ffa363dbc279.zip
realtek: add system LED for ZyXEL XGS1250-12
The devicetree for the ZyXEL XGS1250-12 was missing the description of the front panel LED labeled "PWR SYS". Let's add it so it can be controlled by the user. Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/realtek/dts-5.10')
-rw-r--r--target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts b/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts
index d8164fd5c2..a57fc00c6e 100644
--- a/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts
+++ b/target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts
@@ -5,11 +5,19 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "zyxel,xgs1250-12", "realtek,rtl838x-soc";
model = "Zyxel XGS1250-12 Switch";
+ aliases {
+ led-boot = &led_pwr_sys;
+ led-failsafe = &led_pwr_sys;
+ led-running = &led_pwr_sys;
+ led-upgrade = &led_pwr_sys;
+ };
+
keys {
compatible = "gpio-keys";
@@ -31,6 +39,19 @@
clock-frequency = <100000>;
};
+ leds {
+ compatible = "gpio-leds";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinmux_disable_sys_led>;
+
+ led_pwr_sys: led-0 {
+ label = "green:power";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_POWER;
+ gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+ };
+ };
sfp0: sfp-p12 {
compatible = "sff,sfp";