lantiq: fix building AVM/EVA sysupgrade images on NOR devices
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV4520PW.dts
index 8a5b7977c4f41a8e1b136ea21cdf5cf3342eb362..a7d529bc63086c02aeaeaca667cd7bb6870e25f4 100644 (file)
@@ -7,6 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       boot = &power_blue;
+                       failsafe = &power_red;
+                       running = &power_blue;
+
+                       dsl = &dsl;
+                       internet = &internet_blue;
+                       usb = &usb;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
 
-                               partition@0 {
-                                       label = "uboot";
-                                       reg = <0x00000 0x20000>;
-                                       read-only;
-                               };
-
-                               partition@20000 {
-                                       label = "uboot_env";
-                                       reg = <0x20000 0x10000>;
-                                       read-only;
-                               };
-
-                               partition@30000 {
-                                       label = "firmware";
-                                       reg = <0x30000 0x3c0000>;
-                               };
-
-                               partition@7f0000 {
-                                       label = "boardconfig";
-                                       reg = <0x3f0000 0x10000>;
-                                       read-only;
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       partition@0 {
+                                               label = "uboot";
+                                               reg = <0x00000 0x20000>;
+                                               read-only;
+                                       };
+
+                                       partition@20000 {
+                                               label = "uboot_env";
+                                               reg = <0x20000 0x10000>;
+                                               read-only;
+                                       };
+
+                                       partition@30000 {
+                                               label = "firmware";
+                                               reg = <0x30000 0x3c0000>;
+                                       };
+
+                                       boardconfig: partition@7f0000 {
+                                               label = "boardconfig";
+                                               reg = <0x3f0000 0x10000>;
+                                               read-only;
+                                       };
                                };
                        };
 
-                       mac_addr {
-                               compatible = "lantiq,eth-mac";
-                               reg = <0 0x3f0016 0x6>;
-                               mac-increment = <2>;
-                       };
-
                        gpiomm: gpiomm@4000000 {
                                compatible = "lantiq,gpio-mm";
                                reg = <1 0x0 0x10 >;
 
                etop@E180000 {
                        phy-mode = "rmii";
+                       mtd-mac-address = <&boardconfig 0x16>;
                };
 
                ifxhcd@E101000 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
-                       label = "power";
+               power_blue: power {
+                       label = "arv4520pw:blue:power";
                        gpios = <&gpio 3 1>;
+                       default-state = "keep";
                };
-               adsl {
-                       label = "adsl";
+               dsl: dsl {
+                       label = "arv4520pw:blue:dsl";
                        gpios = <&gpio 4 1>;
                };
-               internet {
-                       label = "internet";
+               internet_blue: internet {
+                       label = "arv4520pw:blue:internet";
                        gpios = <&gpio 5 1>;
                };
-               power2 {
-                       label = "power2";
+               power_red: power2 {
+                       label = "arv4520pw:red:power";
                        gpios = <&gpio 6 1>;
                };
                wps {
-                       label = "wps";
+                       label = "arv4520pw:yellow:wps";
                        gpios = <&gpio 7 1>;
                };
                wps2 {
-                       label = "wps2";
+                       label = "arv4520pw:red:wps";
                        gpios = <&gpio 9 1>;
                };
+               /*
+                       wps green is missing
+               */
                fxs1 {
-                       label = "fxs1";
+                       label = "arv4520pw:blue:telefon1";
                        gpios = <&gpiomm 0 1>;
                };
                fxs2 {
-                       label = "fxs2";
+                       label = "arv4520pw:blue:telefon2";
                        gpios = <&gpiomm 1 1>;
                };
                isdn {
-                       label = "isdn";
+                       label = "arv4520pw:blue:isdn";
                        gpios = <&gpiomm 2 1>;
                };
                fxo {
-                       label = "fxo";
+                       label = "arv4520pw:blue:line";
                        gpios = <&gpiomm 3 1>;
                };
                voice {
-                       label = "voice";
+                       label = "arv4520pw:blue:sprache";
                        gpios = <&gpiomm 4 1>;
                };
-               usb {
-                       label = "usb";
+               usb: usb {
+                       label = "arv4520pw:blue:usb";
                        gpios = <&gpiomm 5 1>;
                };
-               wifi {
-                       label = "wifi";
+               wifi: wifi {
+                       label = "arv4520pw:blue:wifi";
                        gpios = <&gpiomm 6 1>;
                };
                internet2 {
-                       label = "internet2";
+                       label = "arv4520pw:red:internet";
                        gpios = <&gpiomm 9 1>;
                };
+               /*
+                       info is missing
+               */
        };
 };