diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts index 82b7c8070e..13095319e2 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts @@ -4,6 +4,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> / { compatible = "dlink,dap-x1860-a1", "mediatek,mt7621-soc"; @@ -41,18 +42,21 @@ compatible = "gpio-leds"; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_GREEN>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_power_red: power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_RED>; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; power_orange { - label = "orange:power"; + function = LED_FUNCTION_POWER; + color = <LED_COLOR_ID_ORANGE>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; |