lantiq: fix building AVM/EVA sysupgrade images on NOR devices
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV7518PW.dts
index ec08b29d7a304b88f26a27d3fb52739a7e05a6f1..6e2b8ef6d3cccdf727128b5ca0df71b6287821f7 100644 (file)
                                #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 0x7d0000>;
-                               };
-
-                               partition@400000 {
-                                       label = "boardconfig";
-                                       reg = <0x7f0000 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 0x7d0000>;
+                                       };
+
+                                       boardconfig: partition@400000 {
+                                               label = "boardconfig";
+                                               reg = <0x7f0000 0x10000>;
+                                               read-only;
+                                       };
                                };
                        };
 
                                lantiq,shadow = <0x0>;
                        };
 
-                       mac_addr {
-                               compatible = "lantiq,eth-mac";
-                               reg = <0 0x7f0016 0x6>;
-                               mac-increment = <2>;
-                       };
-
                        ath9k_eep {
                                compatible = "ath9k,eeprom";
-                               reg = <0 0x7f0400 0x1000
-                                       0 0x7f0016 0x6>;
+                               ath,eep-flash = <&boardconfig 0x400>;
+                               ath,mac-offset = <0x16>;
                                ath,mac-increment = <1>;
                                ath,pci-slot = <14>;
                                ath,eep-endian;
 
                etop@E180000 {
                        phy-mode = "mii";
+                       mtd-mac-address = <&boardconfig 0x16>;
                };
 
                ifxhcd@E101000 {