mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 15:03:07 +00:00
cee7622ab0
Addresses were swapped compared to the factory firmware. In addition to that, one of them was shifted by -1. Fix that by setting wlan0 MAC offset to 9, and wlan1 MAC offset to 2. Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
184 lines
3.4 KiB
Plaintext
184 lines
3.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar7100.dtsi"
|
|
#include "arxxxx_fortinet_loader.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
compatible = "fortinet,fap-220-b", "qca,ar7161";
|
|
model = "Fortinet FAP-220-B";
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,9600";
|
|
};
|
|
|
|
aliases {
|
|
led-boot = &led_power;
|
|
led-failsafe = &led_power;
|
|
led-running = &led_power;
|
|
led-upgrade = &led_power;
|
|
label-mac-device = ð1;
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
reset {
|
|
label = "reset";
|
|
linux,code = <KEY_RESTART>;
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
debounce-interval = <60>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_power: power-green {
|
|
label = "green:power";
|
|
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
|
default-state = "on";
|
|
};
|
|
|
|
status-green {
|
|
label = "green:status";
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
status-yellow {
|
|
label = "yellow:status";
|
|
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
|
panic-indicator;
|
|
};
|
|
|
|
mode-green {
|
|
label = "green:mode";
|
|
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
mode-yellow {
|
|
label = "yellow:mode";
|
|
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wlan2g-green {
|
|
label = "green:wlan2g";
|
|
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
wlan2g-yellow {
|
|
label = "yellow:wlan2g";
|
|
gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0assoc";
|
|
};
|
|
|
|
wlan5g-green {
|
|
label = "green:wlan5g";
|
|
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1tpt";
|
|
};
|
|
|
|
wlan5g-yellow {
|
|
label = "yellow:wlan5g";
|
|
gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1assoc";
|
|
};
|
|
};
|
|
|
|
virtual_flash {
|
|
devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
|
|
};
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "okay";
|
|
|
|
ath9k0: wifi@0,11 { /* 2.4 GHz */
|
|
compatible = "pci168c,0029";
|
|
reg = <0x8800 0 0 0 0>;
|
|
ieee80211-freq-limit = <2402000 2482000>;
|
|
nvmem-cells = <&macaddr_art_120c>, <&cal_art_1000>;
|
|
nvmem-cell-names = "mac-address", "calibration";
|
|
mac-address-increment = <9>;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
|
|
ath9k1: wifi@0,12 { /* 5 GHz */
|
|
compatible = "pci168c,0029";
|
|
reg = <0x9000 0 0 0 0>;
|
|
ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
|
|
nvmem-cells = <&macaddr_art_520c>, <&cal_art_5000>;
|
|
nvmem-cell-names = "mac-address", "calibration";
|
|
mac-address-increment = <2>;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
};
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
|
|
phy0: ethernet-phy@0 {
|
|
reg = <0x0>;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
compatible = "syscon", "simple-mfd";
|
|
};
|
|
|
|
ð1 {
|
|
status = "okay";
|
|
nvmem-cells = <&macaddr_art_120c>;
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
pll-data = <0x00110000 0x00001099 0x00991099>;
|
|
phy-handle = <&phy0>;
|
|
phy-mode = "rgmii";
|
|
};
|
|
|
|
&usb1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&uboot {
|
|
compatible = "nvmem-cells";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
/* Currently doesn't work, because this one lacks colons as delimiters */
|
|
macaddr_uboot_3ff80: mac-address-ascii@3ff80 {
|
|
reg = <0x3ff80 0xc>;
|
|
};
|
|
};
|
|
|
|
&art {
|
|
compatible = "nvmem-cells";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
cal_art_1000: calibration@1000 {
|
|
reg = <0x1000 0xeb8>;
|
|
};
|
|
|
|
macaddr_art_120c: mac-address@120c {
|
|
reg = <0x120c 0x6>;
|
|
};
|
|
|
|
cal_art_5000: calibration@5000 {
|
|
reg = <0x5000 0xeb8>;
|
|
};
|
|
|
|
macaddr_art_520c: mac-address@520c {
|
|
reg = <0x520c 0x6>;
|
|
};
|
|
};
|