ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / ar9344_aerohive_hiveap-121.dts
index 2f871943758a79b5acb68e473f01b319757bf24b..a2ac53b9963785c8be2edf643259fe029ca01fbd 100644 (file)
                compatible = "pci168c,0030";
                reg = <0x0000 0 0 0 0>;
 
-               mtd-mac-address = <&hw_info 0x0>;
+               nvmem-cells = <&macaddr_hw_info_0>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <2>;
        };
 };
 &wmac {
        status = "okay";
 
-       mtd-mac-address = <&hw_info 0x0>;
+       nvmem-cells = <&macaddr_hw_info_0>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
 
        pll-data = <0x06000000 0x00000101 0x00001313>;
 
-       mtd-mac-address = <&hw_info 0x0>;
+       nvmem-cells = <&macaddr_hw_info_0>;
+       nvmem-cell-names = "mac-address";
 
        phy-mode = "rgmii-id";
        phy-handle = <&phy0>;
                rxdv-delay = <1>;
        };
 };
+
+&hw_info {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_hw_info_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};