0ab10c36ce2ab26311256b9a1f1a4679be61327b
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_watchguard_ap100.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,ap100", "qca,ar9344";
7 model = "WatchGuard AP100";
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 status = "disabled";
66
67 wifi@0,0,0 {
68 nvmem-cells = <&calibration_art_5000>;
69 nvmem-cell-names = "calibration";
70 };
71 };
72
73 &wmac {
74 /delete-property/ ieee80211-freq-limit;
75
76 nvmem-cells = <&macaddr_art_0>, <&calibration_art_1000>;
77 nvmem-cell-names = "mac-address", "calibration";
78 mac-address-increment = <(-2)>;
79 };
80
81 &art {
82 compatible = "nvmem-cells";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 macaddr_art_0: macaddr@0 {
87 reg = <0x0 0x6>;
88 };
89
90 calibration_art_1000: calibration@1000 {
91 reg = <0x1000 0x440>;
92 };
93
94 calibration_art_5000: calibration@5000 {
95 reg = <0x5000 0x440>;
96 };
97 };