diff options
author | Rosen Penev <rosenp@gmail.com> | 2024-02-17 21:22:13 -0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2024-06-09 12:24:15 +0200 |
commit | 79fc4dba6014cf653bf43099e6742028b222f6f5 (patch) | |
tree | bcd7fe7399367ec9b39895d97cafd746fb8cde10 /target/linux/ath79/dts | |
parent | 6483615580ef7a72efcd5205ef4b34788dd8a69a (diff) | |
download | openwrt-79fc4dba6014cf653bf43099e6742028b222f6f5.tar.gz openwrt-79fc4dba6014cf653bf43099e6742028b222f6f5.tar.bz2 openwrt-79fc4dba6014cf653bf43099e6742028b222f6f5.zip |
ath79: convert pcs,cap324 calibration to nvmem
Userspace handling is deprecated.
Also fix a bug with userspace handling where the wrong calibration data
was being used for the PCI card. The dts was correct but userspace was
not.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/ar9344_pcs_cap324.dts | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/target/linux/ath79/dts/ar9344_pcs_cap324.dts b/target/linux/ath79/dts/ar9344_pcs_cap324.dts index f7f3ef06c9..e03d0593ba 100644 --- a/target/linux/ath79/dts/ar9344_pcs_cap324.dts +++ b/target/linux/ath79/dts/ar9344_pcs_cap324.dts @@ -110,7 +110,7 @@ reg = <0x050000 0x0fa0000>; }; - art: partition@7f0000 { + partition@7f0000 { label = "art"; reg = <0xff0000 0x010000>; read-only; @@ -125,6 +125,14 @@ reg = <0x0 0x6>; #nvmem-cell-cells = <1>; }; + + cal_art_1000: calibration@1000 { + reg = <0x1000 0x440>; + }; + + cal_art_5000: calibration@5000 { + reg = <0x5000 0x440>; + }; }; }; }; @@ -137,10 +145,8 @@ ath9k: wifi@0,0 { compatible = "168c,0030"; reg = <0x0000 0 0 0 0>; - nvmem-cells = <&macaddr_art_0 (-2)>; - nvmem-cell-names = "mac-address"; - mtd-cal-data = <&art 0x5000>; - qca,no-eeprom; + nvmem-cells = <&macaddr_art_0 (-2)>, <&cal_art_5000>; + nvmem-cell-names = "mac-address", "calibration"; ieee80211-freq-limit = <2402000 2482000>; #gpio-cells = <2>; gpio-controller; @@ -151,9 +157,8 @@ status = "okay"; ieee80211-freq-limit = <4900000 5990000>; - mtd-cal-data = <&art 0x1000>; - nvmem-cells = <&macaddr_art_0 (-1)>; - nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_art_0 (-1)>, <&cal_art_1000>; + nvmem-cell-names = "mac-address", "calibration"; }; &mdio0 { |