mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-26 00:22:47 +00:00
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>
This commit is contained in:
parent
cd7a225d28
commit
3edb5e841c
@ -5,11 +5,19 @@
|
|||||||
|
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "zyxel,xgs1250-12", "realtek,rtl838x-soc";
|
compatible = "zyxel,xgs1250-12", "realtek,rtl838x-soc";
|
||||||
model = "Zyxel XGS1250-12 Switch";
|
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 {
|
keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
|
|
||||||
@ -31,6 +39,19 @@
|
|||||||
clock-frequency = <100000>;
|
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 {
|
sfp0: sfp-p12 {
|
||||||
compatible = "sff,sfp";
|
compatible = "sff,sfp";
|
||||||
|
Loading…
Reference in New Issue
Block a user