ramips: express diag led handling via devicetree
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / HPM.dts
index 2610db8b474666e7860befd2eef29ef94009a351..9d50697d887e95a8e6e1da371dbd098037a3c383 100644 (file)
                power {
                        label = "hpm:orange:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
                };
 
                led_status: status {
                        label = "hpm:green:status";
                        gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
                };
 
                eth {
                compatible = "jedec,spi-nor";
                spi-max-frequency = <25000000>;
                reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
 
-               partition@0 {
-                       reg = <0x0 0x0030000>;
-                       label = "u-boot";
-                       read-only;
-               };
-
-               partition@30000 {
-                       reg = <0x00030000 0x00010000>;
-                       label = "config";
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       reg = <0x00040000 0x00010000>;
-                       label = "factory";
-                       read-only;
-               };
-
-               partition@50000 {
-                       reg = <0x00050000 0x00fb0000>;
-                       label = "firmware";
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               reg = <0x0 0x0030000>;
+                               label = "u-boot";
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               reg = <0x00030000 0x00010000>;
+                               label = "config";
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               reg = <0x00040000 0x00010000>;
+                               label = "factory";
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               reg = <0x00050000 0x00fb0000>;
+                               label = "firmware";
+                       };
                };
        };
 };