reg = <0x520c 0x6>;
#nvmem-cell-cells = <1>;
};
+
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+
+ cal_art_5000: calibration@5000 {
+ reg = <0x5000 0xeb8>;
+ };
};
};
ath9k0: wifi@11,0 {
compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>;
- qca,no-eeprom;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
#gpio-cells = <2>;
gpio-controller;
};
ath9k1: wifi@12,0 {
compatible = "pci168c,0029";
reg = <0x9000 0 0 0 0>;
- qca,no-eeprom;
+ nvmem-cells = <&cal_art_5000>;
+ nvmem-cell-names = "calibration";
#gpio-cells = <2>;
gpio-controller;
};
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&macaddr_art_1002>;
- nvmem-cell-names = "mac-address";
- qca,no-eeprom;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
#gpio-cells = <2>;
gpio-controller;
qca,tx-gain-buffalo;
#address-cells = <1>;
#size-cells = <1>;
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
+
macaddr_art_1002: macaddr@1002 {
reg = <0x1002 0x6>;
};
avm,fritz300e)
caldata_extract_reverse "urloader" 0x1541 0x440
;;
- buffalo,wzr-hp-g450h)
- caldata_extract "art" 0x1000 0x440
- ;;
enterasys,ws-ap3705i)
caldata_extract "calibrate" 0x5000 0x440
ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env0 RADIOADDR0)
;;
"ath9k-eeprom-pci-0000:00:11.0.bin")
case $board in
- buffalo,wzr-600dhp|\
- buffalo,wzr-hp-ag300h)
- caldata_extract "art" 0x1000 0xeb8
- ;;
meraki,mr16)
caldata_extract "art" 0x11000 0xeb8
;;
;;
"ath9k-eeprom-pci-0000:00:12.0.bin")
case $board in
- buffalo,wzr-600dhp|\
- buffalo,wzr-hp-ag300h)
- caldata_extract "art" 0x5000 0xeb8
- ;;
meraki,mr16)
caldata_extract "art" 0x15000 0xeb8
;;