From 128947db42036bcc98fa7f6d70e3b2e5cb494e18 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Wed, 23 Nov 2022 16:00:28 -0500 Subject: ath79: use nvmem-cells for radio calibration of EAP1200H Transition from userscript to DTS for all of ART. Signed-off-by: Michael Pratt --- .../linux/ath79/dts/qca9557_engenius_eap1200h.dts | 23 +++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'target/linux/ath79/dts/qca9557_engenius_eap1200h.dts') diff --git a/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts b/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts index 3b3a3e3c3d..13c03e717a 100644 --- a/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts +++ b/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts @@ -89,18 +89,31 @@ &wmac { status = "okay"; - mtd-cal-data = <&art 0x1000>; - nvmem-cells = <&macaddr_art_0>; - nvmem-cell-names = "mac-address"; + nvmem-cells = <&macaddr_art_0>, <&calibration_ath9k>; + nvmem-cell-names = "mac-address", "calibration"; mac-address-increment = <1>; }; +&ath10k { + status = "okay"; + + nvmem-cells = <&macaddr_art_0>, <&calibration_ath10k>; + nvmem-cell-names = "mac-address", "calibration"; + mac-address-increment = <2>; +}; + &art { compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; macaddr_art_0: macaddr@0 { reg = <0x0 0x6>; }; + + calibration_ath9k: calibration@1000 { + reg = <0x1000 0x440>; + }; + + calibration_ath10k: calibration@5000 { + reg = <0x5000 0x844>; + }; }; -- cgit v1.2.3