ath79: drop cs-gpios property
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / ar7242_buffalo_wzr-hp-g302h-a1a0.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "buffalo,wzr-hp-g302h-a1a0", "qca,ar7242";
10 model = "Buffalo WZR-HP-G302H A1A0";
11
12 aliases {
13 led-boot = &led_diag;
14 led-failsafe = &led_diag;
15 led-upgrade = &led_diag;
16 };
17
18 extosc: ref {
19 compatible = "fixed-clock";
20 #clock-cells = <0>;
21 clock-frequency = <40000000>;
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 };
33
34 usb {
35 label = "usb";
36 linux,code = <BTN_2>;
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40
41 router_on {
42 label = "router_on";
43 linux,code = <BTN_5>;
44 linux,input-type = <EV_SW>;
45 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
46 debounce-interval = <60>;
47 };
48
49 movie_engine {
50 label = "movie_engine";
51 linux,code = <BTN_3>;
52 linux,input-type = <EV_SW>;
53 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
54 debounce-interval = <60>;
55 };
56
57 wps {
58 label = "wps";
59 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
62 };
63 };
64
65 leds {
66 compatible = "gpio-leds";
67
68 led_diag: diag {
69 label = "red:diag";
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 ath9k-leds {
75 compatible = "gpio-leds";
76
77 usb {
78 label = "blue:usb";
79 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
80 trigger-sources = <&hub_port>;
81 linux,default-trigger = "usbport";
82 };
83
84 wireless {
85 label = "green:wireless";
86 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
87 linux,default-trigger = "phy0tpt";
88 };
89
90 security {
91 label = "orange:security";
92 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
93 };
94
95 router {
96 label = "green:router";
97 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
98 };
99
100 movie_engine_on {
101 label = "blue:movie_engine_on";
102 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
103 };
104
105 movie_engine_off {
106 label = "blue:movie_engine_off";
107 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
108 };
109 };
110
111 gpio-export {
112 compatible = "gpio-export";
113 #size-cells = <0>;
114
115 gpio_usb_power {
116 gpio-export,name = "buffalo:usb-power";
117 gpio-export,output = <1>;
118 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
119 };
120 };
121
122 virtual_flash {
123 compatible = "mtd-concat";
124 devices = <&flash0 &flash1>;
125
126 partitions {
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 reg = <0x0 0x40000>;
133 label = "u-boot";
134 read-only;
135 };
136
137 partition@40000 {
138 reg = <0x40000 0x10000>;
139 label = "u-boot-env";
140 };
141
142 art: partition@50000 {
143 reg = <0x50000 0x10000>;
144 label = "art";
145 read-only;
146 };
147
148 partition@60000 {
149 compatible = "denx,uimage";
150 reg = <0x60000 0x1f60000>;
151 label = "firmware";
152 };
153
154 partition@1fc0000 {
155 reg = <0x1fc0000 0x40000>;
156 label = "user_property";
157 read-only;
158 };
159 };
160 };
161 };
162
163 &spi {
164 status = "okay";
165
166 flash0: flash@0 {
167 compatible = "jedec,spi-nor";
168 reg = <0>;
169 spi-max-frequency = <25000000>;
170 };
171
172 flash1: flash@1 {
173 compatible = "jedec,spi-nor";
174 reg = <1>;
175 spi-max-frequency = <25000000>;
176 };
177 };
178
179 &mdio0 {
180 status = "okay";
181
182 phy-mask = <0x1>;
183
184 phy0: ethernet-phy@0 {
185 reg = <0>;
186 phy-mode = "rgmii";
187 };
188 };
189
190 &eth0 {
191 status = "okay";
192
193 pll-data = <0x1c000000 0x00000101 0x00001616>;
194
195 mtd-mac-address = <&art 0x120c>;
196
197 phy-mode = "rgmii";
198 phy-handle = <&phy0>;
199 };
200
201 &pcie {
202 status = "okay";
203
204 ath9k: wifi@0,0 {
205 compatible = "pci168c,002a";
206 reg = <0x0000 0 0 0 0>;
207 mtd-mac-address = <&art 0x120c>;
208 qca,no-eeprom;
209 #gpio-cells = <2>;
210 gpio-controller;
211 };
212 };
213
214 &pll {
215 clocks = <&extosc>;
216 };
217
218 &usb_phy {
219 status = "okay";
220 };
221
222 &usb {
223 #address-cells = <1>;
224 #size-cells = <0>;
225 status = "okay";
226
227 hub_port: port@1 {
228 reg = <1>;
229 #trigger-source-cells = <0>;
230 };
231 };