ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7620a_cameo_810.dtsi
index b1a50bb7116cdf45c6c7a72c6bee09c371fd295f..3174b98bbf8876a7308474cc71e4d53fa644dbed 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
        pinctrl-0 = <&pa_pins>;
 
        ralink,mtd-eeprom = <&factory 0x0>;
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&factory 0x8000>;
                ieee80211-freq-limit = <5000000 6000000>;
-               mtd-mac-address = <&factory 0x28>;
+               nvmem-cells = <&macaddr_factory_28>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <2>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};