diff options
author | Jan Forman <jforman@tuta.io> | 2022-10-31 22:15:56 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-05-20 13:43:09 +0200 |
commit | 2f4b6d0f89f1e6874a6452962d165884fca3cf3b (patch) | |
tree | 5955409c6250105d667308385f009e6e44d833c5 /target/linux/ath79/dts | |
parent | 6ea910ab54ffc0640f4e7fc977c1e076f4e86323 (diff) | |
download | upstream-2f4b6d0f89f1e6874a6452962d165884fca3cf3b.tar.gz upstream-2f4b6d0f89f1e6874a6452962d165884fca3cf3b.tar.bz2 upstream-2f4b6d0f89f1e6874a6452962d165884fca3cf3b.zip |
ath79: Convert calibration data to nvmem
For D-link DIR-859 and DIR-869
Replace the mtd-cal-data by an nvmem-cell.
Add the PCIe node for the ath10k radio to the devicetree.
Thanks to DragonBlue for this patch
Signed-off-by: Jan Forman <jforman@tuta.io>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi b/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi index 65948ecb22..556ba604a6 100644 --- a/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi +++ b/target/linux/ath79/dts/qca9563_dlink_dir-8x9-a1.dtsi @@ -26,6 +26,14 @@ &pcie { status = "okay"; + + wifi@0,0 { + compatible = "qcom,ath10k"; + reg = <0x0000 0 0 0 0>; + + nvmem-cells = <&calibration_ath10k>, <&macaddr_devdata_94>; + nvmem-cell-names = "calibration", "mac-address-ascii"; + }; }; &spi { @@ -57,6 +65,18 @@ label = "devdata"; reg = <0x050000 0x10000>; read-only; + + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_devdata_94: macaddr@94 { + reg = <0x94 0x11>; + }; + + macaddr_devdata_b0: macaddr@b0 { + reg = <0xb0 0x11>; + }; }; partition@60000 { @@ -71,10 +91,22 @@ reg = <0x070000 0xf80000>; }; - art: partition@ff0000 { + partition@ff0000 { label = "art"; reg = <0xff0000 0x010000>; read-only; + + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + calibration_ath9k: calibration@1000 { + reg = <0x1000 0x440>; + }; + + calibration_ath10k: calibration@5000 { + reg = <0x5000 0x844>; + }; }; }; }; @@ -114,5 +146,6 @@ &wmac { status = "okay"; - qca,no-eeprom; + nvmem-cells = <&calibration_ath9k>, <&macaddr_devdata_b0>; + nvmem-cell-names = "calibration", "mac-address-ascii"; }; |