&wmac {
status = "okay";
- nvmem-cells = <&macaddr_caldata_0>;
- nvmem-cell-names = "mac-address";
- qca,no-eeprom;
+ nvmem-cells = <&macaddr_caldata_0>, <&cal_art_1000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
&pcie {
ath9k: wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&macaddr_caldata_c>;
- nvmem-cell-names = "mac-address";
- qca,no-eeprom;
+ nvmem-cells = <&macaddr_caldata_c>, <&cal_art_5000>;
+ nvmem-cell-names = "mac-address", "calibration";
#gpio-cells = <2>;
gpio-controller;
};
macaddr_caldata_c: macaddr@c {
reg = <0xc 0x6>;
};
+
+ cal_art_1000: cal@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ cal_art_5000: cal@5000 {
+ reg = <0x5000 0x440>;
+ };
};
&wmac {
status = "okay";
- nvmem-cells = <&macaddr_caldata_0>;
- nvmem-cell-names = "mac-address";
- qca,no-eeprom;
+ nvmem-cells = <&macaddr_caldata_0>, <&cal_art_1000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
&pcie {
/* chip is AR9580, override bogus PCI ID 168c:abcd */
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&macaddr_caldata_c>;
- nvmem-cell-names = "mac-address";
- qca,no-eeprom;
+ nvmem-cells = <&macaddr_caldata_c>, <&cal_art_5000>;
+ nvmem-cell-names = "mac-address", "calibration";
qca,gpio-mask=<0xf6ff>; /* unmask pin 9 for RFKILL button */
#gpio-cells = <2>;
gpio-controller;
macaddr_caldata_c: macaddr@c {
reg = <0xc 0x6>;
};
+
+ cal_art_1000: cal@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ cal_art_5000: cal@5000 {
+ reg = <0x5000 0x440>;
+ };
};
8dev,rambutan)
caldata_extract "caldata" 0x1000 0x800
;;
- netgear,wndr3700-v4|\
- netgear,wndr4300|\
- netgear,wndr4300sw|\
- netgear,wndr4300tn|\
- netgear,wndr4300-v2|\
- netgear,wndr4500-v3)
- caldata_extract "caldata" 0x1000 0x440
- ;;
- *)
- caldata_die "board $board is not supported yet"
- ;;
- esac
- ;;
-"ath9k-eeprom-pci-0000:00:00.0.bin")
- case $board in
- netgear,wndr3700-v4|\
- netgear,wndr4300|\
- netgear,wndr4300sw|\
- netgear,wndr4300tn|\
- netgear,wndr4300-v2|\
- netgear,wndr4500-v3)
- caldata_extract "caldata" 0x5000 0x440
- ;;
*)
caldata_die "board $board is not supported yet"
;;