ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_aruba_ap-105.dts
index e24236324cc5c7ccd069a50861c297fd73d492a6..8180e0d6bd5232dd91d1b1419a706f3475d41166 100644 (file)
 
        ath9k0: wifi@0,11 { /* 2.4 GHz */
                compatible = "pci168c,0029";
-               mtd-mac-address = <&hwinfo 0x1c>;
-               mtd-mac-address-increment = <1>;
+               nvmem-cells = <&macaddr_hwinfo_1c>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <1>;
                reg = <0x8800 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
 
        ath9k1: wifi@0,12 { /* 5 GHz */
                compatible = "pci168c,0029";
-               mtd-mac-address = <&hwinfo 0x1c>;
-               mtd-mac-address-increment = <2>;
+               nvmem-cells = <&macaddr_hwinfo_1c>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <2>;
                reg = <0x9000 0 0 0 0>;
                #gpio-cells = <2>;
                gpio-controller;
 
 &eth0 {
        status = "okay";
-       mtd-mac-address = <&hwinfo 0x1c>;
+       nvmem-cells = <&macaddr_hwinfo_1c>;
+       nvmem-cell-names = "mac-address";
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
 
                };
        };
 };
+
+&hwinfo {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_hwinfo_1c: macaddr@1c {
+               reg = <0x1c 0x6>;
+       };
+};