2021-12-27 17:04:51 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
|
|
|
#include "qca956x.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "ASUS RP-AC66";
|
|
|
|
compatible = "asus,rp-ac66", "qca,qca9563";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_orange;
|
|
|
|
led-failsafe = &led_orange;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_orange;
|
2022-01-14 23:56:51 +00:00
|
|
|
label-mac-device = ð0;
|
2021-12-27 17:04:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_power: power {
|
2024-02-07 13:48:34 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2021-12-27 17:04:51 +00:00
|
|
|
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
led_orange: wps {
|
2024-02-07 13:48:34 +00:00
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
2021-12-27 17:04:51 +00:00
|
|
|
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rssilow-wlan0 {
|
|
|
|
label = "blue:rssilow-wlan0";
|
|
|
|
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rssimedium-wlan0 {
|
|
|
|
label = "red:rssimedium-wlan0";
|
|
|
|
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rssihigh-wlan0 {
|
|
|
|
label = "green:rssihigh-wlan0";
|
|
|
|
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rssilow-wlan1 {
|
|
|
|
label = "blue:rssilow-wlan1";
|
|
|
|
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rssimedium-wlan1 {
|
|
|
|
label = "red:rssimedium-wlan1";
|
|
|
|
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rssihigh-wlan1 {
|
|
|
|
label = "green:rssihigh-wlan1";
|
|
|
|
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
wps {
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
|
|
|
|
reset {
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2024-02-01 11:39:51 +00:00
|
|
|
|
|
|
|
wifi@0,0 {
|
|
|
|
compatible = "qcom,ath10k";
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
nvmem-cells = <&cal_art_5000>;
|
|
|
|
nvmem-cell-names = "calibration";
|
|
|
|
};
|
2021-12-27 17:04:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&spi {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x000000 0x40000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@40000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x040000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
art: partition@50000 {
|
|
|
|
label = "art";
|
|
|
|
reg = <0x050000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
|
2023-11-09 23:18:44 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_art_1002: macaddr@1002 {
|
|
|
|
reg = <0x1002 0x6>;
|
|
|
|
};
|
2024-02-01 11:39:51 +00:00
|
|
|
|
|
|
|
cal_art_5000: calibration@5000 {
|
|
|
|
reg = <0x5000 0x844>;
|
|
|
|
};
|
2021-12-27 17:04:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@60000 {
|
|
|
|
compatible = "denx,uimage";
|
|
|
|
label = "firmware";
|
2022-01-25 13:16:37 +00:00
|
|
|
reg = <0x060000 0xfa0000>;
|
2021-12-27 17:04:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&mdio0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy0: ethernet-phy@3 {
|
|
|
|
reg = <0x3>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
qca,mib-poll-interval = <500>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
nvmem-cells = <&macaddr_art_1002>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
qca,no-eeprom;
|
|
|
|
};
|