diff options
author | Wenli Looi <wlooi@ucalgary.ca> | 2023-01-23 18:37:07 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-01-25 00:42:52 +0100 |
commit | 7396263680b951211f33f2aa266b11bdd0047adc (patch) | |
tree | 16c8a85932f992fb016344792f6c34716fc5bd88 /target/linux/ath79/dts | |
parent | f0eb73a888e2ed980b0943d4a2e4d19ad0af183a (diff) | |
download | upstream-7396263680b951211f33f2aa266b11bdd0047adc.tar.gz upstream-7396263680b951211f33f2aa266b11bdd0047adc.tar.bz2 upstream-7396263680b951211f33f2aa266b11bdd0047adc.zip |
ath79: convert Netgear EX7300 caldata to nvmem
Transition to specify caldata in the DTS.
Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/qca9558_netgear_ex7300.dts | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/qca9558_netgear_ex7300.dts b/target/linux/ath79/dts/qca9558_netgear_ex7300.dts index fc0b6de96c..b94ccd30b7 100644 --- a/target/linux/ath79/dts/qca9558_netgear_ex7300.dts +++ b/target/linux/ath79/dts/qca9558_netgear_ex7300.dts @@ -121,6 +121,14 @@ &pcie0 { status = "okay"; + + wifi@0,0 { + compatible = "qcom,ath10k"; + reg = <0 0 0 0 0>; + + nvmem-cells = <&macaddr_caldata_c>, <&precal_caldata_5000>; + nvmem-cell-names = "mac-address", "pre-calibration"; + }; }; &spi { @@ -186,9 +194,8 @@ &wmac { status = "okay"; - mtd-cal-data = <&caldata 0x1000>; - nvmem-cells = <&macaddr_caldata_6>; - nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_caldata_6>, <&cal_caldata_1000>; + nvmem-cell-names = "mac-address", "calibration"; }; &mdio0 { @@ -224,4 +231,16 @@ macaddr_caldata_6: macaddr@6 { reg = <0x6 0x6>; }; + + macaddr_caldata_c: macaddr@c { + reg = <0xc 0x6>; + }; + + cal_caldata_1000: cal@1000 { + reg = <0x1000 0x440>; + }; + + precal_caldata_5000: precal@5000 { + reg = <0x5000 0x2f20>; + }; }; |