ipq806x: convert mtd-mac-address to nvmem implementation
[openwrt/staging/chunkeey.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-d7800.dts
index 82535cc86bf5c0a68831a5932df48e28b598c562..6e022cece066a0b03b8f702be02b4e6058cfdbb9 100644 (file)
        pinctrl-0 = <&rgmii2_pins>;
        pinctrl-names = "default";
 
-       mtd-mac-address = <&art 6>;
+       nvmem-cells = <&macaddr_art_6>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <1000>;
        phy-mode = "sgmii";
        qcom,id = <2>;
 
-       mtd-mac-address = <&art 0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <1000>;
 &adm_dma {
        status = "okay";
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_art_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};