ramips: move partitions into partition table node
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WCR150GN.dts
index 9a4c4fc7d1205805f2b718c01c446e98c46a3562..93c7c54932c7085654eb21869ea0c0acb1a7ab5c 100644 (file)
@@ -9,35 +9,43 @@
        compatible = "sparklan,wcr150gn", "ralink,rt3050-soc";
        model = "Sparklan WCR-150GN";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                bank-width = <2>;
                device-width = <2>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
 
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0x3b0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               label = "firmware";
+                               reg = <0x50000 0x3b0000>;
+                       };
                };
        };
 
@@ -49,7 +57,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wcr-150gn:amber:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
@@ -57,8 +65,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                wps {