ec8b825ef2f5120dcf8a51013b5a148619b396cf
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_asus_rp-ac51.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "ASUS RP-AC51";
10 compatible = "asus,rp-ac51", "qca,qca9531";
11
12 aliases {
13 led-boot = &led_wps;
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = &eth0;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 wps {
24 linux,code = <KEY_WPS_BUTTON>;
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28
29 reset {
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power: power {
40 label = "blue:power";
41 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
42 };
43
44 led_wps: wps {
45 label = "red:wps";
46 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
47 };
48
49 lan {
50 label = "blue:lan";
51 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
52 };
53
54 wlan2g {
55 label = "blue:wlan2g";
56 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
57 };
58
59 wlan5g {
60 label = "blue:wlan5g";
61 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
62 };
63 };
64 };
65
66 &pcie0 {
67 status = "okay";
68 };
69
70 &spi {
71 status = "okay";
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <50000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x40000>;
86 read-only;
87 };
88
89 partition@40000 {
90 label = "u-boot-env";
91 reg = <0x040000 0x10000>;
92 read-only;
93 };
94
95 art: partition@50000 {
96 label = "art";
97 reg = <0x050000 0x10000>;
98 read-only;
99
100 compatible = "nvmem-cells";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_art_0: macaddr@0 {
105 reg = <0x0 0x6>;
106 };
107
108 macaddr_art_1002: macaddr@1002 {
109 reg = <0x1002 0x6>;
110 };
111 };
112
113 partition@60000 {
114 compatible = "denx,uimage";
115 label = "firmware";
116 reg = <0x060000 0xfa0000>;
117 };
118 };
119 };
120 };
121
122 &eth0 {
123 status = "okay";
124
125 phy-handle = <&swphy4>;
126
127 nvmem-cells = <&macaddr_art_0>;
128 nvmem-cell-names = "mac-address";
129 };
130
131 &eth1 {
132 nvmem-cells = <&macaddr_art_1002>;
133 nvmem-cell-names = "mac-address";
134 };
135
136 &wmac {
137 status = "okay";
138
139 qca,no-eeprom;
140 };