ramips: set usb led trigger via devicetree
[openwrt/openwrt.git] / target / linux / ramips / dts / W2914NSV2.dts
index 37afffd475c545826af80d8efdb100e75994dbeb..4c13122c115c40dc0003c7e7c684886bec710784 100644 (file)
@@ -9,4 +9,15 @@
                device_type = "memory";
                reg = <0x0 0x8000000>;
        };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               usb {
+                       label = "w2914nsv2:green:usb";
+                       gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
+               };
+       };
 };