ath79: calibrate all ar9344 tl-WDRxxxx with nvmem
authorEdward Chow <equu@openmail.cc>
Wed, 9 Nov 2022 09:18:17 +0000 (17:18 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 18 Nov 2022 19:27:52 +0000 (20:27 +0100)
commite354b01baf886e7715dd7928472fb858f7c8e4c3
treeb5cf5a753b32673ef071028049c1f120af8026a7
parent224babfd6f85fbf8a76fde9f835ba48d3eacb060
ath79: calibrate all ar9344 tl-WDRxxxx with nvmem

Driver for both soc (2.4GHz Wifi) and pci (5 GHz) now pull the calibration
data from the nvmem subsystem.

This allows us to move the userspace caldata extraction for the pci-e ath9k
supported wifi into the device-tree definition of the device.

wmac's nodes are also changed over to use nvmem-cells over OpenWrt's
custom mtd-cal-data property.

The wifi mac address remains correct after these changes, because When both
"mac-address" and "calibration" are defined, the effective mac address
comes from the cell corresponding to "mac-address" and
mac-address-increment.

Test passed on my tplink tl-wdr4310.

Signed-off-by: Edward Chow <equu@openmail.cc>
target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi
target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom