ipq806x: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-vr2600v.dts
index 79b22ff0c361401dcc2d1222386fe37b93f75999..54ae07590af8041ff713284fb4eb83a5270ddaca 100644 (file)
        pinctrl-0 = <&rgmii2_pins>;
        pinctrl-names = "default";
 
-       mtd-mac-address = <&defaultmac 0>;
+       nvmem-cells = <&macaddr_defaultmac_0>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 
        fixed-link {
        phy-mode = "sgmii";
        qcom,id = <2>;
 
-       mtd-mac-address = <&defaultmac 0>;
+       nvmem-cells = <&macaddr_defaultmac_0>;
+       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_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};