Skip to content

Commit

Permalink
realtek: add system LED for ZyXEL XGS1250-12
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
svanheule committed Jul 10, 2022
1 parent cd7a225 commit 3edb5e8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions target/linux/realtek/dts-5.10/rtl9302_zyxel_xgs1250-12.dts
Expand Up @@ -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";

Expand All @@ -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";
Expand Down

0 comments on commit 3edb5e8

Please sign in to comment.