lantiq: fix building AVM/EVA sysupgrade images on NOR devices
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV7510PW22.dts
index 24c396d8bb1ef0df524b6b9998bef7de098d870d..fb03017f1dd5e6bea4b674008509e67fd555b7ef 100644 (file)
@@ -7,6 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       boot = &power;
+                       failsafe = &power;
+                       running = &power;
+
+                       internet = &internet;
+                       wifi = &wlan;
+               };
        };
 
        memory@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
 
-                               partition@0 {
-                                       label = "uboot";
-                                       reg = <0x00000 0x40000>;
-                                       read-only;
-                               };
-
-                               partition@40000 {
-                                       label = "uboot_env";
-                                       reg = <0x40000 0x20000>;
-                                       read-only;
-                               };
-
-                               partition@60000 {
-                                       label = "firmware";
-                                       reg = <0x60000 0xf80000>;
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       partition@0 {
+                                               label = "uboot";
+                                               reg = <0x00000 0x40000>;
+                                               read-only;
+                                       };
+
+                                       partition@40000 {
+                                               label = "uboot_env";
+                                               reg = <0x40000 0x20000>;
+                                               read-only;
+                                       };
+
+                                       partition@60000 {
+                                               label = "firmware";
+                                               reg = <0x60000 0xf80000>;
+                                       };
+
+                                       boardconfig: partition@fe0000 {
+                                               label = "board_config";
+                                               reg = <0xfe0000 0x20000>;
+                                               read-only;
+                                       };
                                };
-
-                               partition@fe0000 {
-                                       label = "board_config";
-                                       reg = <0xfe0000 0x20000>;
-                                       read-only;
-                               };
-                       };
-
-                       mac_addr {
-                               compatible = "lantiq,eth-mac";
-                               reg = <0 0xfe0016 0x6>;
-                               mac-increment = <2>;
                        };
                };
 
                };
 
                etop@E180000 {
-                       phy-mode = "mii";
                        /* Switch reset 19 */
+                       phy-mode = "mii";
+                       mtd-mac-address = <&boardconfig 0x16>;
                };
 
                pci@E105400 {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 2 1>;
+                       default-state = "keep";
                };
-               internet {
+               internet: internet {
                        label = "internet";
                        gpios = <&gpio 4 1>;
                };
-               wlan {
+               wlan: wlan {
                        label = "wlan";
                        gpios = <&gpio 10 1>;
                };