aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2022-02-22 16:29:27 +0100
committerPiotr Dymacz <pepe2k@gmail.com>2022-02-27 15:09:36 +0100
commit53ac6ee552baca52f3f18fc95b793c03e1bf9581 (patch)
tree6fb5ad878c7426ce2b96bae4d9a7f813468540aa /target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
parentf645bacd06643ba6141f9be34c22681449a42392 (diff)
downloadupstream-53ac6ee552baca52f3f18fc95b793c03e1bf9581.tar.gz
upstream-53ac6ee552baca52f3f18fc95b793c03e1bf9581.tar.bz2
upstream-53ac6ee552baca52f3f18fc95b793c03e1bf9581.zip
ath79: utilize ath9k 'nvmem-cells' on ALFA Network boards
Drop custom 'mtd-cal-data' and switch to 'nvmem-cells' based solution for fetching radio calibration data and its MAC address. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts/ar9344_alfa-network_n5q.dts')
-rw-r--r--target/linux/ath79/dts/ar9344_alfa-network_n5q.dts39
1 files changed, 23 insertions, 16 deletions
diff --git a/target/linux/ath79/dts/ar9344_alfa-network_n5q.dts b/target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
index c54270a78d..ca762c3bca 100644
--- a/target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
+++ b/target/linux/ath79/dts/ar9344_alfa-network_n5q.dts
@@ -131,10 +131,30 @@
reg = <0x060000 0x010000>;
};
- art: partition@70000 {
+ partition@70000 {
label = "art";
reg = <0x070000 0x010000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ cal_art_1000: cal@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+
+ macaddr_art_1002: macaddr@1002 {
+ reg = <0x1002 0x6>;
+ };
};
partition@80000 {
@@ -149,19 +169,6 @@
&wmac {
status = "okay";
- mtd-cal-data = <&art 0x1000>;
-};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-
- macaddr_art_6: macaddr@6 {
- reg = <0x6 0x6>;
- };
+ nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
+ nvmem-cell-names = "calibration", "mac-address";
};