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>
8 #include <dt-bindings/leds/common.h>
11 compatible = "fortinet,fap-220-b", "qca,ar7161";
12 model = "Fortinet FAP-220-B";
15 bootargs = "console=ttyS0,9600";
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
23 label-mac-device = ð1;
27 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 compatible = "gpio-leds";
39 led_power: power-green {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_STATUS;
54 color = <LED_COLOR_ID_YELLOW>;
55 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
65 label = "yellow:mode";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
70 label = "green:wlan2g";
71 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
76 label = "yellow:wlan2g";
77 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy0assoc";
82 label = "green:wlan5g";
83 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "phy1tpt";
88 label = "yellow:wlan5g";
89 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
90 linux,default-trigger = "phy1assoc";
95 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
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";
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";
126 phy0: ethernet-phy@0 {
133 compatible = "syscon", "simple-mfd";
138 nvmem-cells = <&macaddr_uboot_3ff80 0>;
139 nvmem-cell-names = "mac-address";
141 pll-data = <0x00110000 0x00001099 0x00991099>;
142 phy-handle = <&phy0>;
156 compatible = "fixed-layout";
157 #address-cells = <1>;
160 cal_art_1000: calibration@1000 {
161 reg = <0x1000 0xeb8>;
164 cal_art_5000: calibration@5000 {
165 reg = <0x5000 0xeb8>;