ramips: set F5D8235 v1 usb led trigger via devicetree
[openwrt/openwrt.git] / target / linux / ramips / dts / ArcherC20v1.dts
index dc5b99f4cbcd58cf4655ce79341ff23e881ffcf3..2ec948bc5410e88c09c1a23a0902eb9b939a02f6 100644 (file)
@@ -34,6 +34,8 @@
                usb {
                        label = "c20-v1:blue:usb";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wan {
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x20000>;
-                       read-only;
-               };
-
-               partition@20000 {
-                       label = "firmware";
-                       reg = <0x20000 0x7a0000>;
-               };
-
-               partition@7c0000 {
-                       label = "config";
-                       reg = <0x7c0000 0x10000>;
-                       read-only;
-               };
-
-               rom: partition@7d0000 {
-                       label = "rom";
-                       reg = <0x7d0000 0x10000>;
-                       read-only;
-               };
-
-               partition@7e0000 {
-                       label = "romfile";
-                       reg = <0x7e0000 0x10000>;
-                       read-only;
-               };
-
-               radio: partition@7f0000 {
-                       label = "radio";
-                       reg = <0x7f0000 0x10000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x20000>;
+                               read-only;
+                       };
+
+                       partition@20000 {
+                               label = "firmware";
+                               reg = <0x20000 0x7a0000>;
+                       };
+
+                       partition@7c0000 {
+                               label = "config";
+                               reg = <0x7c0000 0x10000>;
+                               read-only;
+                       };
+
+                       rom: partition@7d0000 {
+                               label = "rom";
+                               reg = <0x7d0000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@7e0000 {
+                               label = "romfile";
+                               reg = <0x7e0000 0x10000>;
+                               read-only;
+                       };
+
+                       radio: partition@7f0000 {
+                               label = "radio";
+                               reg = <0x7f0000 0x10000>;
+                               read-only;
+                       };
                };
        };
 };