1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "arxxxx_fortinet_loader.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "fortinet,fap-220-b", "qca,ar7161";
11 model = "Fortinet FAP-220-B";
14 bootargs = "console=ttyS0,9600";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
22 label-mac-device = ð1;
26 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
36 compatible = "gpio-leds";
38 led_power: power-green {
39 label = "green:power";
40 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
45 label = "green:status";
46 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 label = "yellow:status";
51 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
61 label = "yellow:mode";
62 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 label = "green:wlan2g";
67 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy0tpt";
72 label = "yellow:wlan2g";
73 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "phy0assoc";
78 label = "green:wlan5g";
79 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
80 linux,default-trigger = "phy1tpt";
84 label = "yellow:wlan5g";
85 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
86 linux,default-trigger = "phy1assoc";
91 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
98 ath9k0: wifi@0,11 { /* 2.4 GHz */
99 compatible = "pci168c,0029";
100 reg = <0x8800 0 0 0 0>;
101 ieee80211-freq-limit = <2402000 2482000>;
102 nvmem-cells = <&macaddr_art_120c>, <&cal_art_1000>;
103 nvmem-cell-names = "mac-address", "calibration";
104 mac-address-increment = <1>;
109 ath9k1: wifi@0,12 { /* 5 GHz */
110 compatible = "pci168c,0029";
111 reg = <0x9000 0 0 0 0>;
112 ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
113 nvmem-cells = <&macaddr_art_520c>, <&cal_art_5000>;
114 nvmem-cell-names = "mac-address", "calibration";
115 mac-address-increment = <9>;
124 phy0: ethernet-phy@0 {
131 compatible = "syscon", "simple-mfd";
136 nvmem-cells = <&macaddr_art_120c>;
137 nvmem-cell-names = "mac-address";
139 pll-data = <0x00110000 0x00001099 0x00991099>;
140 phy-handle = <&phy0>;
153 compatible = "nvmem-cells";
154 #address-cells = <1>;
157 /* Currently doesn't work, because this one lacks colons as delimiters */
158 macaddr_uboot_3ff80: mac-address-ascii@3ff80 {
164 compatible = "nvmem-cells";
165 #address-cells = <1>;
168 cal_art_1000: calibration@1000 {
169 reg = <0x1000 0xeb8>;
172 macaddr_art_120c: mac-address@120c {
176 cal_art_5000: calibration@5000 {
177 reg = <0x5000 0xeb8>;
180 macaddr_art_520c: mac-address@520c {