File tree Expand file tree Collapse file tree 3 files changed +34
-36
lines changed
generic/base-files/etc/hotplug.d/firmware Expand file tree Collapse file tree 3 files changed +34
-36
lines changed Original file line number Diff line number Diff line change 7474&pcie0 {
7575 status = "okay";
7676
77- ath9k0: wifi@11,0 { /* 2.4 GHz */
77+ wifi@11,0 { /* 2.4 GHz */
7878 compatible = "pci168c,0029";
7979 reg = <0x8800 0 0 0 0>;
80- qca,no-eeprom;
81- nvmem-cells = <&macaddr_config_66 1>;
82- nvmem-cell-names = "mac-address";
80+ nvmem-cells = <&macaddr_config_66 1>, <&cal_art_11000>;
81+ nvmem-cell-names = "mac-address", "calibration";
8382 #gpio-cells = <2>;
8483 gpio-controller;
8584 };
8685
87- ath9k1: wifi@12,0 { /* 5 GHz */
86+ wifi@12,0 { /* 5 GHz */
8887 compatible = "pci168c,0029";
8988 reg = <0x9000 0 0 0 0>;
90- qca,no-eeprom;
91- nvmem-cells = <&macaddr_config_66 2>;
92- nvmem-cell-names = "mac-address";
89+ nvmem-cells = <&macaddr_config_66 2>, <&cal_art_15000>;
90+ nvmem-cell-names = "mac-address", "calibration";
9391 #gpio-cells = <2>;
9492 gpio-controller;
9593 };
139137 read-only;
140138 };
141139
142- config: partition@80000 {
140+ partition@80000 {
143141 label = "config";
144142 reg = <0x80000 0x20000>;
145143 read-only;
167165 label = "art";
168166 reg = <0xfe0000 0x20000>;
169167 read-only;
168+
169+ nvmem-layout {
170+ compatible = "fixed-layout";
171+ #address-cells = <1>;
172+ #size-cells = <1>;
173+
174+ cal_art_11000: calibration@11000 {
175+ reg = <0x11000 0xeb8>;
176+ };
177+
178+ cal_art_15000: calibration@15000 {
179+ reg = <0x15000 0xeb8>;
180+ };
181+ };
170182 };
171183 };
172184 };
Original file line number Diff line number Diff line change 7777 wifi@0,0 {
7878 compatible = "pci168c,002a";
7979 reg = <0x0000 0 0 0 0>;
80- qca,no-eeprom;
81- nvmem-cells = <&macaddr_config_66 1>;
82- nvmem-cell-names = "mac-address";
80+ nvmem-cells = <&macaddr_config_66 1>, <&cal_art_11000>;
81+ nvmem-cell-names = "mac-address", "calibration";
8382 };
8483};
8584
139138 read-only;
140139 };
141140
142- config: partition@80000 {
141+ partition@80000 {
143142 label = "config";
144143 reg = <0x80000 0x20000>;
145144 read-only;
167166 label = "art";
168167 reg = <0xfe0000 0x20000>;
169168 read-only;
169+
170+ nvmem-layout {
171+ compatible = "fixed-layout";
172+ #address-cells = <1>;
173+ #size-cells = <1>;
174+
175+ cal_art_11000: calibration@11000 {
176+ reg = <0x11000 0xeb8>;
177+ };
178+ };
170179 };
171180 };
172181 };
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ case "$FIRMWARE" in
2525 avm,fritz300e)
2626 caldata_extract_reverse " urloader" 0x1541 0x440
2727 ;;
28- meraki,mr12)
29- caldata_extract " art" 0x11000 0xeb8
30- ;;
3128 wd,mynet-wifi-rangeextender)
3229 caldata_extract " art" 0x1000 0x440
3330 ath9k_patch_mac $( nvram get wl0_hwaddr)
@@ -37,24 +34,4 @@ case "$FIRMWARE" in
3734 ;;
3835 esac
3936 ;;
40- " ath9k-eeprom-pci-0000:00:11.0.bin" )
41- case $board in
42- meraki,mr16)
43- caldata_extract " art" 0x11000 0xeb8
44- ;;
45- * )
46- caldata_die " board $board is not supported yet"
47- ;;
48- esac
49- ;;
50- " ath9k-eeprom-pci-0000:00:12.0.bin" )
51- case $board in
52- meraki,mr16)
53- caldata_extract " art" 0x15000 0xeb8
54- ;;
55- * )
56- caldata_die " board $board is not supported yet"
57- ;;
58- esac
59- ;;
6037esac
You can’t perform that action at this time.
0 commit comments