ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_watchguard_ap200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_senao_ap-dual.dtsi"
4
5 / {
6 compatible = "watchguard,ap200", "qca,ar9344";
7 model = "WatchGuard AP200";
8
9 aliases {
10 led-boot = &led_power_amber;
11 led-failsafe = &led_power_amber;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_amber;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_power_amber: power_amber {
20 label = "amber:power";
21 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
22 };
23
24 led_power_green: power_green {
25 label = "green:power";
26 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29
30 lan_data {
31 label = "orange:lan_data";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 };
34
35 lan_link {
36 label = "green:lan_link";
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38 };
39
40 wifi_amber {
41 label = "amber:wifi";
42 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 wifi_green {
47 label = "green:wifi";
48 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51 };
52 };
53
54 &ref {
55 clock-frequency = <25000000>;
56 };
57
58 &eth0 {
59 nvmem-cells = <&macaddr_art_0 (-2)>;
60 nvmem-cell-names = "mac-address";
61 };
62
63 &pcie {
64 wifi@0,0 {
65 nvmem-cells = <&macaddr_art_0 (-1)>, <&calibration_art_5000>;
66 nvmem-cell-names = "mac-address", "calibration";
67 };
68 };
69
70 &wmac {
71 nvmem-cells = <&macaddr_art_0 (-2)>, <&calibration_art_1000>;
72 nvmem-cell-names = "mac-address", "calibration";
73 };
74
75 &art {
76 nvmem-layout {
77 compatible = "fixed-layout";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 macaddr_art_0: macaddr@0 {
82 compatible = "mac-base";
83 reg = <0x0 0x6>;
84 #nvmem-cell-cells = <1>;
85 };
86
87 calibration_art_1000: calibration@1000 {
88 reg = <0x1000 0x440>;
89 };
90
91 calibration_art_5000: calibration@5000 {
92 reg = <0x5000 0x440>;
93 };
94 };
95 };