ath9k: wifi@0,0 {
compatible = "168c,0030";
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&art 0x0>;
- mtd-mac-address-increment = <(-2)>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-2)>;
mtd-cal-data = <&art 0x5000>;
qca,no-eeprom;
- qca,disable-5ghz;
+ ieee80211-freq-limit = <2402000 2482000>;
#gpio-cells = <2>;
gpio-controller;
};
&wmac {
status = "okay";
- qca,disable-2ghz;
+ ieee80211-freq-limit = <4900000 5990000>;
mtd-cal-data = <&art 0x1000>;
- mtd-mac-address = <&art 0x0>;
- mtd-mac-address-increment = <(-1)>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-1)>;
};
&mdio0 {
status = "okay";
- phy-mask = <0>;
-
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "rgmii";
/* default for ar934x, except for 1000M */
pll-data = <0x06000000 0x00000101 0x00001616>;
- mtd-mac-address = <&art 0x0>;
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+};