ipq806x: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-ad7200-c2600.dtsi
index bbecdb7f0c1e0a24aad3dc00398d34995592d44b..daa7b148ccbd5371ba490532cd7ffa64b4509fac 100644 (file)
        pinctrl-0 = <&rgmii2_pins>;
        pinctrl-names = "default";
 
-       mtd-mac-address = <&defaultmac 0x8>;
+       nvmem-cells = <&macaddr_defaultmac_8>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 
        fixed-link {
        phy-mode = "sgmii";
        qcom,id = <2>;
 
-       mtd-mac-address = <&defaultmac 0x8>;
+       nvmem-cells = <&macaddr_defaultmac_8>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <1000>;
 &adm_dma {
        status = "okay";
 };
+
+&defaultmac {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_defaultmac_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};