ath79: calibrate nand netgear wndrxxxx with nvmem
authorEdward Chow <equu@openmail.cc>
Sun, 20 Nov 2022 03:22:31 +0000 (11:22 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 20 Nov 2022 15:13:48 +0000 (16:13 +0100)
commit3d343ca713aaa1e59962cdb4f09df99b3c7ad9a2
tree40b93a75db93c825e47efdfebde9ae80be280de0
parentbca663f20f08713eb998af579945323718d21ce7
ath79: calibrate nand netgear wndrxxxx 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 wndr3700v4 and wndr4500v3.
Signed-off-by: Edward Chow <equu@openmail.cc>
target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
target/linux/ath79/dts/qca9563_netgear_wndr.dtsi
target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom