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