diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts index 29350a8556..1a693b1df2 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts @@ -2,6 +2,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> / { compatible = "asus,rt-n12p", "ralink,mt7620n-soc"; @@ -22,17 +23,20 @@ compatible = "gpio-leds"; wan { - label = "green:wan"; + function = LED_FUNCTION_WAN; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; lan { - label = "green:lan"; + function = LED_FUNCTION_LAN; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; |