lantiq: remove mac-address-increment
authorRosen Penev <rosenp@gmail.com>
Sat, 11 Nov 2023 03:42:31 +0000 (19:42 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 21 Nov 2023 23:05:34 +0000 (00:05 +0100)
It's deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
24 files changed:
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_buffalo_wbmr-hp-g300h.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4518pwr01.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4519pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4520pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4525pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv452cqw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7510pw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7519pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7525pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_arv7519rw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360-v2.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7360sl.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw89x0.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dtsi

index c8e67537a94971ae8cab34fafb26b48948f77e0d..ba2b82dd670ae6f364446d49ed8dedc886b63504 100644 (file)
@@ -97,9 +97,8 @@
 &gsw {
        phy-mode = "rmii";
        phy-handle = <&phy0>;
-       nvmem-cells = <&macaddr_ath9k_cal_a91>;
+       nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 
        mdio-bus {
                #address-cells = <1>;
                                label = "urlader";
                                reg = <0x00000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_ath9k_cal_a91: macaddr@a91 {
+                                               compatible = "mac-base";
+                                               reg = <0xa91 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@20000 {
                qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
        };
 };
-
-&ath9k_cal {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_ath9k_cal_a91: macaddr@a91 {
-               reg = <0xa91 0x6>;
-       };
-};
index cd7b29ca6d1d604ad1bdfdf633a3148c3d327cf9..b04efd8a846cc4b48010e8e84464c5dd00fe93cc 100644 (file)
@@ -99,9 +99,8 @@
 &gsw {
        phy-mode = "mii";
        phy-handle = <&phy0>;
-       nvmem-cells = <&macaddr_ath9k_cal_a91>;
+       nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 
        mdio-bus {
                #address-cells = <1>;
                                label = "urlader";
                                reg = <0x00000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_ath9k_cal_a91: macaddr@a91 {
+                                               compatible = "mac-base";
+                                               reg = <0xa91 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@20000 {
        status = "okay";
        vbus-supply = <&usb1_vbus>;
 };
-
-&ath9k_cal {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_ath9k_cal_a91: macaddr@a91 {
-               reg = <0xa91 0x6>;
-       };
-};
index 8eaf566b26144abea89e4001ecdc08c7abb14d52..7e0f157bf323fe4838c70fbab4846366a28a0cd6 100644 (file)
                                label = "board";
                                reg = <0x1fc0000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_10024: macaddr@10024 {
+                                               reg = <0x10024 0x6>;
+                                       };
+                               };
                        };
 
                        partition@1fe0000 {
        status = "okay";
        vbus-supply = <&usb_vbus>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_10024: macaddr@10024 {
-               reg = <0x10024 0x6>;
-       };
-};
index b5e4537838bc91f1b4ff3a2f6225a7fc7f007eb5..3d56e76c46e77ea52846a55fd429a48154b2c9d4 100644 (file)
                                label = "boardconfig";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 35caf647a71c0d1b9e02becd770304acc3aaf956..72f8c3bc6615cdbfc36da664ac4e8e729ff21895 100644 (file)
                                label = "boardconfig";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 9a1c8b1bcb218d80a6bc67eb2a9929bf90fa1bfc..775aab4ba96b60b8a0d9cf5aea0ad66cc951f4db 100644 (file)
                                label = "boardconfig";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH
                &gpiomm 7 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 650c8872c959eab08d3d295c7f8317b389678a5c..182b0c0bb183bfeac1a06b865e5f73b03eabcdbd 100644 (file)
                                label = "boardconfig";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index dddf904af4c5d3fe64b5cde6e2407b8dc88a47aa..4825eb2952eae9465cb0a596ce841e5248cc26de 100644 (file)
                                label = "boardconfig";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH
                &gpiomm 7 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index cfa5dba7c6c822ac72d3719b88b6d42a34e8bb9b..3f957c63a604087b04884c25dcaaf5dad381f766 100644 (file)
 /* GPIO 19: switch reset */
 &gsw {
        phy-mode = "rmii";
-       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cells = <&macaddr_boardconfig_16 0>;
        nvmem-cell-names = "mac-address";
 };
 
                                label = "board_config";
                                reg = <0x7f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               compatible = "mac-base";
+                                               reg = <0x16 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
                };
        };
                reg = <0x7000 0 0 0 0>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,eeprom-swap;
-               nvmem-cells = <&macaddr_boardconfig_16>;
+               nvmem-cells = <&macaddr_boardconfig_16 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
-       };
-};
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
        };
 };
index 9299f11fe32be4c74763b9f6c666d6ab87881239..52ba5e1a3bff4223e021c441ec47851212c4ecb4 100644 (file)
                                label = "board_config";
                                reg = <0xfe0000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index a327635c3310d780409e5b5b05a53ab1f16d7e19..fb3363b2e2aab8c7b8ea97e82ce7d324c2862ade 100644 (file)
 */
 &gsw {
        phy-mode = "mii";
-       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cells = <&macaddr_boardconfig_16 0>;
        nvmem-cell-names = "mac-address";
 };
 
                                label = "boardconfig";
                                reg = <0x7f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               compatible = "mac-base";
+                                               reg = <0x16 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
                };
        };
                compatible = "pci168c,0029";
                reg = <0x7000 0 0 0 0>;
                qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
-               nvmem-cells = <&macaddr_boardconfig_16>;
+               nvmem-cells = <&macaddr_boardconfig_16 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
        };
 };
 
 &vmmc {
        status = "okay";
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 4f8f941c8b7360e48eb65ea61f19f192c4aca0f3..1f8db69f3096d030b1f1e4b1e053fbc2f257e64b 100644 (file)
                                label = "board_config";
                                reg = <0xfe0000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
 &vmmc {
        status = "okay";
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 12de92ec530522de1e045ac2ce035057c969ac3a..d67efb4fca5f2fef85da6f91e99201fb61a197b8 100644 (file)
                                label = "board_config";
                                reg = <0x3f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index f0900b56cc58b4a84bab5aee569a417fc01605c7..41a0e1b74a963b32ee77d9bb2ad2f968cea0ca48 100644 (file)
                                label = "board_config";
                                reg = <0x7f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 8897c9703cd765fe30adb9d4417d709a4e6b103d..4fb135763d5ba50ce12911cedad15bc7656a9909 100644 (file)
                                label = "board_config";
                                reg = <0x7f0000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 83a303b9e821b2e1ec8f8d74b19bd7e1908ceeb7..d6a917057d71e5004f1731ba2e7948c7db678b1e 100644 (file)
 
 &gsw {
        phy-mode = "mii";
-       nvmem-cells = <&macaddr_art_16>;
+       nvmem-cells = <&macaddr_art_16 0>;
        nvmem-cell-names = "mac-address";
 };
 
                                label = "art";
                                reg = <0x7f0000 0x10000>;       /* 64 KiB*/
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_art_16: macaddr@16 {
+                                               compatible = "mac-base";
+                                               reg = <0x16 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
                };
        };
                compatible = "pci168c,0029";
                reg = <0x7000 0 0 0 0>;
                qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
-               nvmem-cells = <&macaddr_art_16>;
+               nvmem-cells = <&macaddr_art_16 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
        };
 };
 
        status = "okay";
        gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 343f3533d8be1adc2cc0eec737545f089a2cab53..935aa08cb906056805ce8b2dfeaa30c583027023 100644 (file)
                                label = "boardconfig";
                                reg = <0x1f80000 0x80000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               reg = <0x16 0x6>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        vbus-supply = <&usb_vbus>;
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 1f8ad430c00718de103c8e0b939aba47f74ec3c1..69685d801b82189704b38e8b791f4ad0becb1f47 100644 (file)
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cells = <&macaddr_boardconfig_16 0>;
        nvmem-cell-names = "mac-address";
 };
 
                                label = "board_config";
                                reg = <0xfe0000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               compatible = "mac-base";
+                                               reg = <0x16 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
                };
        };
                reg = <0x7000 0 0 0 0>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,eeprom-swap;
-               nvmem-cells = <&macaddr_boardconfig_16>;
+               nvmem-cells = <&macaddr_boardconfig_16 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
        };
 };
 
                         &gpio 31 GPIO_ACTIVE_HIGH  //still unknown
                         &gpio 3  GPIO_ACTIVE_HIGH>; //reset_slic?
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index 5e6a6f0c64fa7733e68121076ac85055eebcddc4..71046cfd58c68af90aef3e4c7ef6c1b4c27886c7 100644 (file)
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cells = <&macaddr_boardconfig_16 1>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <1>;
 };
 
 &gphy0 {
                                label = "board_config";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_boardconfig_16: macaddr@16 {
+                                               compatible = "mac-base";
+                                               reg = <0x16 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
                };
        };
                reg = <0x7000 0 0 0 0>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,eeprom-swap;
-               nvmem-cells = <&macaddr_boardconfig_16>;
+               nvmem-cells = <&macaddr_boardconfig_16 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
        };
 };
 
                 &gpio 31 GPIO_ACTIVE_HIGH  //still unknown
                 &gpio 3  GPIO_ACTIVE_HIGH>; //reset_slic?
 };
-
-&boardconfig {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_boardconfig_16: macaddr@16 {
-               reg = <0x16 0x6>;
-       };
-};
index a30746cde2b4307ce8d8a4c125dcbce0c489a619..cc15324b56e08b15c402fe6b2845b1fa1f4e00c4 100644 (file)
                                reg = <0x00000 0x20000>;
                                read-only;
 
-                               compatible = "nvmem-cells";
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-
-                               cal_urlader_985: cal@985 {
-                                       reg = <0x985 0x440>;
-                               };
-
-                               macaddr_urlader_a91: macaddr@a91 {
-                                       reg = <0xa91 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       cal_urlader_985: cal@985 {
+                                               reg = <0x985 0x440>;
+                                       };
+
+                                       macaddr_urlader_a91: macaddr@a91 {
+                                               compatible = "mac-base";
+                                               reg = <0xa91 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
                                };
                        };
 
@@ -77,9 +81,8 @@
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_urlader_a91>;
+       nvmem-cells = <&macaddr_urlader_a91 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 };
 
 &phy0 {
index 31523eaae00340cda88304a7c2f7d96dc3f10211..cbe6c14c991fdc2143beb7c8eecdca7c5c9f185a 100644 (file)
                                label = "urlader";
                                reg = <0x00000 0x20000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_urlader_a91: macaddr@a91 {
+                                               compatible = "mac-base";
+                                               reg = <0xa91 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@20000 {
@@ -66,9 +78,8 @@
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_urlader_a91>;
+       nvmem-cells = <&macaddr_urlader_a91 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 };
 
 &phy0 {
 &phy1 {
        reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
 };
-
-&urlader {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_urlader_a91: macaddr@a91 {
-               reg = <0xa91 0x6>;
-       };
-};
index 7995b34971abb38aa4910b3932b4b78c18183684..7929bde6cfe68bfccf687ccedcc940988cbbc993 100644 (file)
                                reg = <0x0 0x40000>;
                                label = "urlader";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_urlader_a91: macaddr@a91 {
+                                               compatible = "mac-base";
+                                               reg = <0xa91 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@40000 {
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_urlader_a91>;
+       nvmem-cells = <&macaddr_urlader_a91 (-2)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
 };
 
 &phy0 {
 &phy1 {
        reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
 };
-
-&urlader {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_urlader_a91: macaddr@a91 {
-               reg = <0xa91 0x6>;
-       };
-};
index 5b7c10bb9dd49b5a3959a8818015bee06ea93da4..39d7b4908cd46e5a8a2244132bd2312d911ca7cd 100644 (file)
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_ath9k_cal_f100>;
+       nvmem-cells = <&macaddr_ath9k_cal_f100 0>;
        nvmem-cell-names = "mac-address";
 };
 
                        gpio-controller;
                        qca,no-eeprom;
                        ieee80211-freq-limit = <2402000 2482000>;
-                       nvmem-cells = <&macaddr_ath9k_cal_f100>;
+                       nvmem-cells = <&macaddr_ath9k_cal_f100 2>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <2>;
                };
        };
 };
                                reg = <0x7d0000 0x30000>;
                                label = "boardconfig";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_ath9k_cal_f100: macaddr@f100 {
+                                               compatible = "mac-base";
+                                               reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
                };
        };
        status = "okay";
        vbus-supply = <&usb_vbus>;
 };
-
-&ath9k_cal {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_ath9k_cal_f100: macaddr@f100 {
-               reg = <0xf100 0x6>;
-       };
-};
index e37f1ab37c837fcc8b3804f8141d5adeee328891..acb54ee80b317286d596d8920587696383621a4d 100644 (file)
 };
 
 &eth0 {
-       nvmem-cells = <&macaddr_romfile_f100>;
+       nvmem-cells = <&macaddr_romfile_f100 0>;
        nvmem-cell-names = "mac-address";
 };
 
                        mediatek,mtd-eeprom = <&radio 0x0000>;
                        big-endian;
                        ieee80211-freq-limit = <5000000 6000000>;
-                       nvmem-cells = <&macaddr_romfile_f100>;
+                       nvmem-cells = <&macaddr_romfile_f100 2>;
                        nvmem-cell-names = "mac-address";
-                       mac-address-increment = <2>;
                };
        };
 };
                                reg = <0xfd0000 0x10000>;
                                label = "romfile";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_romfile_f100: macaddr@f100 {
+                                               compatible = "mac-base";
+                                               reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@fe0000 {
        status = "okay";
        vbus-supply = <&usb_vbus>;
 };
-
-&romfile {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_romfile_f100: macaddr@f100 {
-               reg = <0xf100 0x6>;
-       };
-};