ath79: add support for ASUS RP-AC66
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_asus_rp-ac66.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "ASUS RP-AC66";
11 compatible = "asus,rp-ac66", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_orange;
15 led-failsafe = &led_orange;
16 led-running = &led_power;
17 led-upgrade = &led_orange;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 label = "green:power";
25 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
26 };
27
28 led_orange: wps {
29 label = "orange:wps";
30 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
31 };
32
33 rssilow-wlan0 {
34 label = "blue:rssilow-wlan0";
35 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
36 };
37
38 rssimedium-wlan0 {
39 label = "red:rssimedium-wlan0";
40 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
41 };
42
43 rssihigh-wlan0 {
44 label = "green:rssihigh-wlan0";
45 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
46 };
47
48 rssilow-wlan1 {
49 label = "blue:rssilow-wlan1";
50 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
51 };
52
53 rssimedium-wlan1 {
54 label = "red:rssimedium-wlan1";
55 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
56 };
57
58 rssihigh-wlan1 {
59 label = "green:rssihigh-wlan1";
60 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
61 };
62 };
63
64 keys {
65 compatible = "gpio-keys";
66
67 wps {
68 linux,code = <KEY_WPS_BUTTON>;
69 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
71 };
72
73 reset {
74 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
77 };
78 };
79 };
80
81 &pcie {
82 status = "okay";
83 };
84
85 &spi {
86 status = "okay";
87
88 flash@0 {
89 compatible = "jedec,spi-nor";
90 reg = <0>;
91 spi-max-frequency = <50000000>;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 partition@0 {
99 label = "u-boot";
100 reg = <0x000000 0x40000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "u-boot-env";
106 reg = <0x040000 0x10000>;
107 read-only;
108 };
109
110 art: partition@50000 {
111 label = "art";
112 reg = <0x050000 0x10000>;
113 read-only;
114
115 compatible = "nvmem-cells";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 macaddr_art_1002: macaddr@1002 {
120 reg = <0x1002 0x6>;
121 };
122 };
123
124 partition@60000 {
125 compatible = "denx,uimage";
126 label = "firmware";
127 reg = <0x060000 0xf20000>;
128 };
129 };
130 };
131 };
132
133 &mdio0 {
134 status = "okay";
135
136 phy-mask = <0>;
137
138 phy0: ethernet-phy@3 {
139 reg = <0x3>;
140 phy-mode = "sgmii";
141 qca,mib-poll-interval = <500>;
142 };
143 };
144
145 &eth0 {
146 status = "okay";
147
148 phy-mode = "sgmii";
149 nvmem-cells = <&macaddr_art_1002>;
150 nvmem-cell-names = "mac-address";
151 phy-handle = <&phy0>;
152 };
153
154 &wmac {
155 status = "okay";
156
157 qca,no-eeprom;
158 };