ipq806x: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8062-wg2600hp3.dts
index 3e04618d5782cb4dd3127c4dba8dcf2b670e2059..c6feb71a8ef6861f067a54330a1f94b986f89400 100644 (file)
        phy-mode = "rgmii";
        qcom,id = <1>;
        mdiobus = <&mdio0>;
-       mtd-mac-address = <&factory 0x0>;
+       nvmem-cells = <&macaddr_factory_0>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <1000>;
        phy-mode = "sgmii";
        qcom,id = <2>;
        mdiobus = <&mdio0>;
-       mtd-mac-address = <&factory 0x6>;
+       nvmem-cells = <&macaddr_factory_6>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <1000>;
                full-duplex;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_factory_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};