ipq806x: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-unifi-ac-hd.dts
index d6ac1fef1de164ff37ea7a237d9bfdca84c8800c..a50204fee14674cb5dccfff6f68d4109df4200b2 100644 (file)
        phy-mode = "sgmii";
        qcom,id = <1>;
 
-       mtd-mac-address = <&eeprom 0x6>;
+       nvmem-cells = <&macaddr_eeprom_6>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gmac2 {
        phy-mode = "sgmii";
        qcom,id = <2>;
 
-       mtd-mac-address = <&eeprom 0x0>;
+       nvmem-cells = <&macaddr_eeprom_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie0 {
 &usb3_1 {
        status = "okay";
 };
+
+&eeprom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_eeprom_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_eeprom_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};