aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts')
-rw-r--r--target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts14
1 files changed, 10 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
index f1d2c87337..254472f72c 100644
--- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
+++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
@@ -37,12 +37,14 @@
compatible = "gpio-leds";
power1 {
- label = "yellow:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
led_power_blue: power2 {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
@@ -57,12 +59,14 @@
};
usb1 {
- label = "yellow:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
};
usb2 {
- label = "blue:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
@@ -114,4 +118,6 @@
&gsw {
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
+#include <dt-bindings/leds/common.h>
+
};