88c7637fc9b11fef34fa56b3f2afcb83f513b52b
[openwrt/staging/hauke.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>;
60 nvmem-cell-names = "mac-address";
61 mac-address-increment = <(-2)>;
62 };
63
64 &pcie {
65 wifi@0,0,0 {
66 nvmem-cells = <&macaddr_art_0>, <&calibration_art_5000>;
67 nvmem-cell-names = "mac-address", "calibration";
68 mac-address-increment = <(-1)>;
69 };
70 };
71
72 &wmac {
73 nvmem-cells = <&macaddr_art_0>, <&calibration_art_1000>;
74 nvmem-cell-names = "mac-address", "calibration";
75 mac-address-increment = <(-2)>;
76 };
77
78 &art {
79 compatible = "nvmem-cells";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 macaddr_art_0: macaddr@0 {
84 reg = <0x0 0x6>;
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 };