ath79: convert Araknis AN-300-AP-I-N WiFis to nvmem-cells
[openwrt/openwrt.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
68 &wmac {
69 /delete-property/ qca,disable-2ghz;
70
71 nvmem-cells = <&macaddr_art_0>;
72 nvmem-cell-names = "mac-address";
73 mac-address-increment = <(-2)>;
74 };
75
76 &art {
77 compatible = "nvmem-cells";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 macaddr_art_0: macaddr@0 {
82 reg = <0x0 0x6>;
83 };
84 };