ramips: move partitions into partition table node
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / NBG-419N2.dts
index a6e48039641a672e2fb32741af6e980324433d62..ee5045e1a48fb5b9534832168a762a8146f9faee 100644 (file)
@@ -9,37 +9,45 @@
        compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
        model = "ZyXEL NBG-419N v2";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        palmbus@10000000 {
                spi@b00 {
                        status = "okay";
                        m25p80@0 {
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                compatible = "jedec,spi-nor";
                                reg = <0 0>;
                                spi-max-frequency = <10000000>;
 
-                               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 0x7b0000>;
+                               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 0x7b0000>;
+                                       };
                                };
                        };
                };
@@ -48,7 +56,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "nbg-419n2:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
@@ -66,8 +74,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
                reset {
                        label = "reset";