aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2022-12-15 10:08:39 +0100
committerChristian Lamparter <chunkeey@gmail.com>2022-12-15 15:45:47 +0100
commit08c114ee16ae5aa3c07241c36e6f76cc7abcd137 (patch)
treed33354fa6eb742743a4d03ed6d4389a0571ac9f5 /target/linux/ath79/dts
parentfd456106aa8730bb9d407b66d1eef5e26b5cb63e (diff)
downloadupstream-08c114ee16ae5aa3c07241c36e6f76cc7abcd137.tar.gz
upstream-08c114ee16ae5aa3c07241c36e6f76cc7abcd137.tar.bz2
upstream-08c114ee16ae5aa3c07241c36e6f76cc7abcd137.zip
ath79: convert Winchannel WB2000 WiFis to nvmem-cells
Pull the calibration data from the nvmem subsystem. This allows us to move userspace caldata extraction into the device-tree definition. Signed-off-by: Nick Hainke <vincent@systemli.org> (removed mtd-cal-data property, merged art + addr nodes back into partition) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/ar9344_winchannel_wb2000.dts43
1 files changed, 26 insertions, 17 deletions
diff --git a/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts b/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
index cb59559426..cbde191ac7 100644
--- a/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
+++ b/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
@@ -119,16 +119,36 @@
read-only;
};
- art: partition@fe0000 {
+ partition@fe0000 {
label = "art";
reg = <0xfe0000 0x10000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ calibration_art_1000: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ calibration_art_5000: calibration@5000 {
+ reg = <0x5000 0x440>;
+ };
};
- addr: partition@ff0000 {
+ partition@ff0000 {
label = "addr";
reg = <0xff0000 0x10000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_addr_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
};
};
};
@@ -140,9 +160,8 @@
ath9k: wifi@0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
- qca,no-eeprom;
- nvmem-cells = <&macaddr_addr_0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_addr_0>, <&calibration_art_5000>;
+ nvmem-cell-names = "mac-address", "calibration";
mac-address-increment = <0x10>;
#gpio-cells = <2>;
gpio-controller;
@@ -160,9 +179,8 @@
&wmac {
status = "okay";
- mtd-cal-data = <&art 0x1000>;
- nvmem-cells = <&macaddr_addr_0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_addr_0>, <&calibration_art_1000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
&mdio0 {
@@ -193,12 +211,3 @@
};
};
-&addr {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_addr_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-};