lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_vgv7510kw22.dtsi
index 8faf335c02bed21f17c35e7afc4da09d0bed616f..1158aa371ec3d70f3c0e9dd04d06c58b8b9000e3 100644 (file)
 };
 
 &eth0 {
-       mtd-mac-address = <&boardconfig 0x16>;
+       nvmem-cells = <&macaddr_boardconfig_16>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gphy0 {
                reg = <0x7000 0 0 0 0>;
                ralink,mtd-eeprom = <&boardconfig 0x410>;
                ralink,mtd-eeprom-swap;
-               mtd-mac-address = <&boardconfig 0x16>;
-               mtd-mac-address-increment = <1>;
+               nvmem-cells = <&macaddr_boardconfig_16>;
+               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>;
+       };
+};