ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 <dt-bindings/leds/common.h>
4
5 #include "ar9344_fortinet_ap-dual.dtsi"
6
7 / {
8 compatible = "fortinet,fap-221-b", "qca,ar9344";
9 model = "Fortinet FAP-221-B";
10
11 aliases {
12 label-mac-device = <&eth0>;
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 led_power: power_green {
19 function = LED_FUNCTION_POWER;
20 color = <LED_COLOR_ID_GREEN>;
21 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
22 default-state = "on";
23 };
24
25 power_amber {
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_AMBER>;
28 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
29 };
30
31 eth_green {
32 label = "green:eth";
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 };
35
36 eth_amber {
37 label = "amber:eth";
38 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 };
40
41 wifi5g {
42 label = "green:wifi5g";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46
47 wifi2g {
48 label = "amber:wifi2g";
49 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy1tpt";
51 };
52 };
53
54 virtual_flash {
55 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
56 };
57 };
58
59 &ath9k {
60 ieee80211-freq-limit = <2402000 2482000>;
61
62 nvmem-cells = <&calibration_pcie>, <&macaddr_uboot_3ff80 8>;
63 nvmem-cell-names = "calibration", "mac-address";
64 };
65
66 &eth0 {
67 nvmem-cells = <&macaddr_uboot_3ff80 0>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &wmac {
72 ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
73
74 nvmem-cells = <&calibration_wmac>, <&macaddr_uboot_3ff80 1>;
75 nvmem-cell-names = "calibration", "mac-address";
76 };
77
78 &art {
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 calibration_wmac: calibration@1000 {
85 reg = <0x1000 0x440>;
86 };
87
88 calibration_pcie: calibration@5000 {
89 reg = <0x5000 0x440>;
90 };
91 };
92 };