ramips: set usb led trigger via devicetree
[oweals/openwrt.git] / target / linux / ramips / dts / NA930.dts
index 1d117bd539ba560c280a274e1dee78155897e530..7dd4d1b234f12d46d39afc66aab956506c44e69c 100644 (file)
        };
 
        nand {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "mtk,mt7620-nand";
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x20000>;
-                       read-only;
-               };
-
-               partition@200000 {
-                       label = "factory";
-                       reg = <0x200000 0x40000>;
-                       read-only;
-               };
-
-               partition@240000 {
-                       label = "Config";
-                       reg = <0x240000 0x400000>;
-                       read-only;
-               };
-
-               partition@640000 {
-                       label = "firmware";
-                       reg = <0x640000 0x1400000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x20000>;
+                               read-only;
+                       };
+
+                       partition@200000 {
+                               label = "factory";
+                               reg = <0x200000 0x40000>;
+                               read-only;
+                       };
+
+                       partition@240000 {
+                               label = "Config";
+                               reg = <0x240000 0x400000>;
+                               read-only;
+                       };
+
+                       partition@640000 {
+                               label = "firmware";
+                               reg = <0x640000 0x1400000>;
+                       };
                };
        };
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -82,6 +84,8 @@
                status {
                        label = "na930:blue:status";
                        gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                service {