ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
};
};
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0x200>;
+ };
+};
+
&usb_phy {
status = "okay";
};
&usb {
status = "okay";
};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002b";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0x3d8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002e";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
compatible = "ubnt,nanostation-m", "ubnt,xm", "qca,ar7241";
model = "Ubiquiti Nanostation M (XM)";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
ð1 {
compatible = "syscon", "simple-mfd";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
&usb {
status = "okay";
};
+
+&art {
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0xeb8>;
+ };
+};
+
+&pcie {
+ wifi: wifi@0,0 {
+ compatible = "pci168c,002a";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+ };
+};
reg = <0x7f0000 0x010000>;
read-only;
- nvmem-layout {
+ art: nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
&pcie {
status = "okay";
-
- wifi: wifi@0,0 {
- reg = <0x0000 0 0 0 0>;
- qca,no-eeprom;
- };
};
ð0 {
base_mac=$(mtd_get_mac_binary info 0x8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
- ubnt,powerbridge-m|\
- ubnt,rocket-m|\
ubnt,unifi)
label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
;;
meraki,mr12)
caldata_extract "art" 0x11000 0xeb8
;;
- ubnt,powerbridge-m|\
- ubnt,rocket-m)
- caldata_extract "art" 0x1000 0x1000
- ;;
wd,mynet-wifi-rangeextender)
caldata_extract "art" 0x1000 0x440
ath9k_patch_mac $(nvram get wl0_hwaddr)
lan_mac=$(get_mac_label)
wan_mac=$(macaddr_add "$lan_mac" 3)
;;
- engenius,enh202-v1|\
- ubnt,airrouter|\
- ubnt,bullet-m-ar7240|\
- ubnt,bullet-m-ar7241|\
- ubnt,nanobridge-m|\
- ubnt,nanostation-loco-m|\
- ubnt,nanostation-m|\
- ubnt,picostation-m)
+ engenius,enh202-v1)
label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
;;
nec,wg600hp|\
+++ /dev/null
-#!/bin/sh
-
-[ -e /lib/firmware/$FIRMWARE ] && exit 0
-
-. /lib/functions/caldata.sh
-
-board=$(board_name)
-
-case "$FIRMWARE" in
-"ath9k-eeprom-pci-0000:00:00.0.bin")
- case $board in
- ubnt,airrouter|\
- ubnt,bullet-m-ar7240|\
- ubnt,bullet-m-ar7241|\
- ubnt,nanobridge-m|\
- ubnt,nanostation-loco-m|\
- ubnt,nanostation-m|\
- ubnt,picostation-m)
- caldata_extract "art" 0x1000 0x1000
- ;;
- *)
- caldata_die "board $board is not supported yet"
- ;;
- esac
- ;;
-esac