ath79: add support for Fortinet FAP-221-B
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_fortinet_fap-221-b.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_fortinet_ap-dual.dtsi"
4
5 / {
6 compatible = "fortinet,fap-221-b", "qca,ar9344";
7 model = "Fortinet FAP-221-B";
8
9 leds {
10 compatible = "gpio-leds";
11
12 led_power: power_green {
13 label = "green:power";
14 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
15 default-state = "on";
16 };
17
18 power_amber {
19 label = "amber:power";
20 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
21 };
22
23 eth_green {
24 label = "green:eth";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
26 };
27
28 eth_amber {
29 label = "amber:eth";
30 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
31 };
32
33 wifi5g {
34 label = "green:wifi5g";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 wifi2g {
40 label = "amber:wifi2g";
41 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44 };
45
46 virtual_flash {
47 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
48 };
49 };
50
51 &ath9k {
52 ieee80211-freq-limit = <2402000 2482000>;
53
54 nvmem-cells = <&calibration_pcie>;
55 nvmem-cell-names = "calibration";
56 };
57
58 &wmac {
59 ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
60
61 nvmem-cells = <&calibration_wmac>;
62 nvmem-cell-names = "calibration";
63 };
64
65 &art {
66 compatible = "nvmem-cells";
67
68 calibration_wmac: calibration@1000 {
69 reg = <0x1000 0x440>;
70 };
71
72 calibration_pcie: calibration@5000 {
73 reg = <0x5000 0x440>;
74 };
75 };