ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_fortinet_fap-220-b.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4 #include "arxxxx_fortinet_loader.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
9
10 / {
11 compatible = "fortinet,fap-220-b", "qca,ar7161";
12 model = "Fortinet FAP-220-B";
13
14 chosen {
15 bootargs = "console=ttyS0,9600";
16 };
17
18 aliases {
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
23 label-mac-device = &eth1;
24 };
25
26 keys {
27 compatible = "gpio-keys";
28 reset {
29 label = "reset";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power: power-green {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
43 default-state = "on";
44 };
45
46 status-green {
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 };
51
52 status-yellow {
53 function = LED_FUNCTION_STATUS;
54 color = <LED_COLOR_ID_YELLOW>;
55 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
56 panic-indicator;
57 };
58
59 mode-green {
60 label = "green:mode";
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 };
63
64 mode-yellow {
65 label = "yellow:mode";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 };
68
69 wlan2g-green {
70 label = "green:wlan2g";
71 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
73 };
74
75 wlan2g-yellow {
76 label = "yellow:wlan2g";
77 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy0assoc";
79 };
80
81 wlan5g-green {
82 label = "green:wlan5g";
83 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "phy1tpt";
85 };
86
87 wlan5g-yellow {
88 label = "yellow:wlan5g";
89 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
90 linux,default-trigger = "phy1assoc";
91 };
92 };
93
94 virtual_flash {
95 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
96 };
97 };
98
99 &pcie0 {
100 status = "okay";
101
102 ath9k0: wifi@11,0 { /* 2.4 GHz */
103 compatible = "pci168c,0029";
104 reg = <0x8800 0 0 0 0>;
105 ieee80211-freq-limit = <2402000 2482000>;
106 nvmem-cells = <&macaddr_uboot_3ff80 9>, <&cal_art_1000>;
107 nvmem-cell-names = "mac-address", "calibration";
108 #gpio-cells = <2>;
109 gpio-controller;
110 };
111
112 ath9k1: wifi@12,0 { /* 5 GHz */
113 compatible = "pci168c,0029";
114 reg = <0x9000 0 0 0 0>;
115 ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
116 nvmem-cells = <&macaddr_uboot_3ff80 2>, <&cal_art_5000>;
117 nvmem-cell-names = "mac-address", "calibration";
118 #gpio-cells = <2>;
119 gpio-controller;
120 };
121 };
122
123 &mdio0 {
124 status = "okay";
125
126 phy0: ethernet-phy@0 {
127 reg = <0x0>;
128 };
129 };
130
131 &eth0 {
132 status = "okay";
133 compatible = "syscon", "simple-mfd";
134 };
135
136 &eth1 {
137 status = "okay";
138 nvmem-cells = <&macaddr_uboot_3ff80 0>;
139 nvmem-cell-names = "mac-address";
140
141 pll-data = <0x00110000 0x00001099 0x00991099>;
142 phy-handle = <&phy0>;
143 phy-mode = "rgmii";
144 };
145
146 &usb1 {
147 status = "okay";
148 };
149
150 &usb_phy {
151 status = "okay";
152 };
153
154 &art {
155 nvmem-layout {
156 compatible = "fixed-layout";
157 #address-cells = <1>;
158 #size-cells = <1>;
159
160 cal_art_1000: calibration@1000 {
161 reg = <0x1000 0xeb8>;
162 };
163
164 cal_art_5000: calibration@5000 {
165 reg = <0x5000 0xeb8>;
166 };
167 };
168 };