ath79: convert Araknis AN-300-AP-I-N WiFis to nvmem-cells
Pull the calibration data from the nvmem subsystem. This allows us to move userspace caldata extraction into the device-tree definition. Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
708ea56fb9
commit
1b125aabf4
@ -87,11 +87,10 @@
|
|||||||
ath9k: wifi@0,0,0 {
|
ath9k: wifi@0,0,0 {
|
||||||
compatible = "pci168c,0030";
|
compatible = "pci168c,0030";
|
||||||
reg = <0x0 0 0 0 0>;
|
reg = <0x0 0 0 0 0>;
|
||||||
nvmem-cells = <&macaddr_art_0>;
|
nvmem-cells = <&macaddr_art_0>, <&calibration_art_5000>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address", "calibration";
|
||||||
mac-address-increment = <1>;
|
mac-address-increment = <1>;
|
||||||
qca,disable-5ghz;
|
qca,disable-5ghz;
|
||||||
qca,no-eeprom;
|
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
};
|
};
|
||||||
@ -102,10 +101,8 @@
|
|||||||
|
|
||||||
qca,disable-2ghz;
|
qca,disable-2ghz;
|
||||||
|
|
||||||
mtd-cal-data = <&art 0x1000>;
|
nvmem-cells = <&macaddr_art_0>, <&calibration_art_1000>;
|
||||||
|
nvmem-cell-names = "mac-address", "calibration";
|
||||||
nvmem-cells = <&macaddr_art_0>;
|
|
||||||
nvmem-cell-names = "mac-address";
|
|
||||||
mac-address-increment = <2>;
|
mac-address-increment = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -117,4 +114,12 @@
|
|||||||
macaddr_art_0: macaddr@0 {
|
macaddr_art_0: macaddr@0 {
|
||||||
reg = <0x0 0x6>;
|
reg = <0x0 0x6>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
calibration_art_1000: calibration@1000 {
|
||||||
|
reg = <0x1000 0x440>;
|
||||||
|
};
|
||||||
|
|
||||||
|
calibration_art_5000: calibration@5000 {
|
||||||
|
reg = <0x5000 0x440>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -83,7 +83,6 @@ case "$FIRMWARE" in
|
|||||||
;;
|
;;
|
||||||
"ath9k-eeprom-pci-0000:00:00.0.bin")
|
"ath9k-eeprom-pci-0000:00:00.0.bin")
|
||||||
case $board in
|
case $board in
|
||||||
araknis,an-300-ap-i-n|\
|
|
||||||
atheros,db120|\
|
atheros,db120|\
|
||||||
engenius,eap600|\
|
engenius,eap600|\
|
||||||
engenius,ecb600|\
|
engenius,ecb600|\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user