ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c2-v1.dts
index 184af58d2920d7207943461094fe9ffdad67e947..63643927d51f078d9300a8f06aa432151508b38a 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
 
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 
        port@5 {
                status = "okay";
 
 &wmac {
        ralink,mtd-eeprom = <&radio 0x0>;
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ehci {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 0x8000>;
-               mtd-mac-address = <&rom 0xf100>;
-               mtd-mac-address-increment = <(-1)>;
+               nvmem-cells = <&macaddr_rom_f100>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <(-1)>;
+       };
+};
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
        };
 };