lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4519PW.dts
index cf26f5e640f5914648701c20521db54ae8ad2b36..d6b6da3ee8989cd7f3f7b3a4e99aebfcf6c031dd 100644 (file)
@@ -3,10 +3,21 @@
 /include/ "danube.dtsi"
 
 / {
-       model = "ARV4519PW - Vodafone, Pirelli";
+       model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       boot = &power_green;
+                       failsafe = &power_red;
+                       running = &power_green;
+
+                       dsl = &dsl;
+                       internet = &internet_green;
+                       usb = &usb;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
 
-                               partition@0 {
-                                       label = "uboot";
-                                       reg = <0x00000 0x10000>;
-                                       read-only;
-                               };
-
-                               partition@10000 {
-                                       label = "uboot_env";
-                                       reg = <0x10000 0x10000>;
-                               };
-
-                               partition@20000 {
-                                       label = "linux";
-                                       reg = <0x20000 0x3d0000>;
-                               };
-
-                               partition@3f0000 {
-                                       label = "boardconfig";
-                                       reg = <0x3f0000 0x10000>;
-                                       read-only;
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       partition@0 {
+                                               label = "uboot";
+                                               reg = <0x00000 0x10000>;
+                                               read-only;
+                                       };
+
+                                       partition@10000 {
+                                               label = "uboot_env";
+                                               reg = <0x10000 0x10000>;
+                                       };
+
+                                       partition@20000 {
+                                               label = "firmware";
+                                               reg = <0x20000 0x3d0000>;
+                                       };
+
+                                       partition@3f0000 {
+                                               label = "boardconfig";
+                                               reg = <0x3f0000 0x10000>;
+                                               read-only;
+                                       };
                                };
                        };
 
@@ -81,7 +98,7 @@
                };
 
                etop@E180000 {
-                       phy-mode = "rmii";
+                       phy-mode = "mii";
                };
 
                ifxhcd@E101000 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
-                       label = "power";
+               power_green: power {
+                       label = "arv4519pw:green:power";
                        gpios = <&gpio 2 1>;
+                       default-state = "keep";
                };
-               power2 {
-                       label = "power2";
+               power_red: power2 {
+                       label = "arv4519pw:red:power";
                        gpios = <&gpio 7 1>;
                };
-               wifi {
-                       label = "wifi";
+               wifi: wifi {
+                       label = "arv4519pw:green:wlan";
                        gpios = <&gpio 6 1>;
                };
-               dsl {
-                       label = "dsl";
+               dsl: dsl {
+                       label = "arv4519pw:green:dsl";
                        gpios = <&gpio 4 1>;
                };
-               online {
-                       label = "online";
+               internet_green: online {
+                       label = "arv4519pw:green:internet";
                        gpios = <&gpio 5 1>;
                };
                online2 {
-                       label = "online2";
+                       label = "arv4519pw:red:internet";
                        gpios = <&gpio 8 1>;
                };
-               usb {
-                       label = "usb";
+               usb: usb {
+                       label = "arv4519pw:green:usb";
                        gpios = <&gpio 19 1>;
                };
                voip {
-                       label = "voip";
+                       label = "arv4519pw:green:voip";
                        gpios = <&gpiomm 0 1>;
                };
                fxs1 {
-                       label = "fxs1";
+                       label = "arv4519pw:green:phone1";
                        gpios = <&gpiomm 1 1>;
                };
                fxs2 {
-                       label = "fxs2";
+                       label = "arv4519pw:green:phone2";
                        gpios = <&gpiomm 2 1>;
                };
                fxo {
-                       label = "fxo";
+                       label = "arv4519pw:green:line";
                        gpios = <&gpiomm 3 1>;
                };
-               wps {
-                       label = "wps";
-                       gpios = <&gpiomm 5 1>;
-               };
                wps2 {
-                       label = "wps2";
+                       label = "arv4519pw:green:wps";
                        gpios = <&gpiomm 4 1>;
                };
+               wps {
+                       label = "arv4519pw:orange:wps";
+                       gpios = <&gpiomm 5 1>;
+               };
                wps3 {
-                       label = "wps3";
+                       label = "arv4519pw:red:wps";
                        gpios = <&gpiomm 6 1>;
                };
        };