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