tools/elfutils: refresh portability patch for macOS
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_netgear_wndr.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 aliases {
15 led-boot = &led_power_amber;
16 led-failsafe = &led_power_amber;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_amber;
19 label-mac-device = &eth0;
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 wps {
26 label = "wps";
27 linux,code = <KEY_WPS_BUTTON>;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 };
30
31 reset {
32 label = "reset";
33 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
35 };
36
37 rfkill {
38 label = "rfkill";
39 linux,code = <KEY_RFKILL>;
40 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 leds: leds {
45 compatible = "gpio-leds";
46
47 pinctrl-names = "default";
48 pinctrl-0 = <&enable_gpio_11>;
49
50 led_power_green: power_green {
51 label = "green:power";
52 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 };
54
55 led_power_amber: power_amber {
56 label = "amber:power";
57 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
58 default-state = "keep";
59 };
60
61 wlan2g_green {
62 label = "green:wlan2g";
63 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0tpt";
65 };
66
67 wlan5g_blue {
68 label = "blue:wlan5g";
69 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy1tpt";
71 };
72
73 wps_green {
74 label = "green:wps";
75 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
76 };
77
78 wps_amber {
79 label = "amber:wps";
80 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
81 };
82 };
83
84 ubi-concat {
85 compatible = "mtd-concat";
86 devices = <&ubiconcat0 &ubiconcat1>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 ubi@ac0000 {
94 label = "ubi";
95 reg = <0x0 0x7500000>;
96 };
97 };
98 };
99 };
100
101 &pinmux {
102 enable_gpio_11: pinmux_enable_gpio_11 {
103 pinctrl-single,bits = <0x8 0x0 0xff000000>;
104 };
105 };
106
107 &nand {
108 status = "okay";
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partition@0 {
116 label = "u-boot";
117 reg = <0x0 0x40000>;
118 read-only;
119 };
120
121 partition@40000 {
122 label = "u-boot-env";
123 reg = <0x40000 0x40000>;
124 };
125
126 caldata: partition@80000 {
127 label = "caldata";
128 reg = <0x80000 0x40000>;
129 read-only;
130 };
131
132 partition@c0000 {
133 label = "pot";
134 reg = <0xc0000 0x80000>;
135 };
136
137 partition@140000 {
138 label = "language";
139 reg = <0x140000 0x200000>;
140 };
141
142 partition@340000 {
143 label = "config";
144 reg = <0x340000 0x80000>;
145 };
146
147 partition@3c0000 {
148 label = "traffic_meter";
149 reg = <0x3c0000 0x300000>;
150 };
151
152 kernel@6c0000 {
153 label = "kernel";
154 reg = <0x6c0000 0x400000>;
155 };
156
157 ubiconcat0: partition@ac0000 {
158 label = "ubiconcat0";
159 reg = <0xac0000 0x1500000>;
160 };
161
162 partition@6c0000 {
163 label = "firmware";
164 reg = <0x6c0000 0x1900000>;
165 compatible = "openwrt,uimage", "denx,uimage";
166 openwrt,ih-magic = <0x33373033>;
167 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
168 };
169
170 partition@1fc0000 {
171 label = "caldata_backup";
172 reg = <0x1fc0000 0x40000>;
173 read-only;
174 };
175
176 ubiconcat1: partition@2000000 {
177 label = "ubiconcat1";
178 reg = <0x2000000 0x6000000>;
179 };
180 };
181 };
182
183 &ref {
184 clock-frequency = <40000000>;
185 };
186
187 &builtin_switch {
188 resets = <&rst 8>, <&rst 12>;
189 reset-names = "switch", "switch-analog";
190 };
191
192 &mdio0 {
193 status = "okay";
194
195 phy-mask = <0>;
196
197 phy0: ethernet-phy@0 {
198 reg = <0>;
199 phy-mode = "rgmii";
200 qca,mib-poll-interval = <500>;
201
202 qca,ar8327-initvals = <
203 0x04 0x07600000
204 0x0c 0x01000000
205 0x10 0xc1000000
206 0x50 0xcc35cc35
207 0x54 0xcb37cb37
208 0x58 0x00000000
209 0x5c 0x00f3cf00
210 0x7c 0x0000007e
211 0x94 0x0000007e
212 >;
213 };
214 };
215
216 &eth0 {
217 status = "okay";
218
219 /* default for ar934x, except for 1000M */
220 pll-data = <0x06000000 0x00000101 0x00001616>;
221
222 mtd-mac-address = <&caldata 0x0>;
223
224 phy-mode = "rgmii";
225 phy-handle = <&phy0>;
226 };
227
228 &gpio {
229 lna0 {
230 gpio-hog;
231 line-name = "netgear:ext:lna0";
232 gpios = <18 GPIO_ACTIVE_HIGH>;
233 output-high;
234 };
235
236 lna1 {
237 gpio-hog;
238 line-name = "netgear:ext:lna1";
239 gpios = <19 GPIO_ACTIVE_HIGH>;
240 output-high;
241 };
242 };
243
244 &wmac {
245 status = "okay";
246
247 mtd-mac-address = <&caldata 0x0>;
248 qca,no-eeprom;
249 };
250
251 &pcie {
252 status = "okay";
253
254 ath9k: wifi@0,0 {
255 compatible = "pci168c,0033";
256 reg = <0x0000 0 0 0 0>;
257 mtd-mac-address = <&caldata 0xc>;
258 qca,no-eeprom;
259 #gpio-cells = <2>;
260 gpio-controller;
261 };
262 };