80951d62490c7d449bc11ed640358933f5ba30c6
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_netgear_r6100.dts
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
8 / {
9 model = "Netgear R6100";
10 compatible = "netgear,r6100", "qca,ar9344";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 };
19
20 gpio-export {
21 compatible = "gpio-export";
22 #size-cells = <0>;
23
24 usb-power {
25 gpio-export,name = "usb-power";
26 gpio-export,output = <1>;
27 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40
41 rfkill {
42 label = "rfkill";
43 linux,code = <KEY_RFKILL>;
44 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
46 };
47
48 wps {
49 label = "wps";
50 linux,code = <KEY_WPS_BUTTON>;
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
52 debounce-interval = <60>;
53 };
54 };
55
56 leds {
57 compatible = "gpio-leds";
58
59 led_power_amber: power_amber {
60 label = "amber:power";
61 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
62 };
63
64 led_power_green: power_green {
65 label = "green:power";
66 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 };
68
69 usb {
70 label = "blue:usb";
71 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&hub_port>;
73 linux,default-trigger = "usbport";
74 };
75
76 wan_amber {
77 label = "amber:wan";
78 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
79 };
80
81 wan_green {
82 label = "green:wan";
83 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
84 };
85
86 wlan {
87 label = "blue:wlan";
88 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
89 linux,default-trigger = "phy1tpt";
90 };
91 };
92 };
93
94 &eth0 {
95 status = "okay";
96
97 phy-handle = <&swphy0>;
98
99 nvmem-cells = <&macaddr_caldata_6>;
100 nvmem-cell-names = "mac-address";
101
102 gmac-config {
103 device = <&gmac>;
104 switch-phy-swap = <1>;
105 };
106 };
107
108 &eth1 {
109 status = "okay";
110
111 nvmem-cells = <&macaddr_caldata_0>;
112 nvmem-cell-names = "mac-address";
113 };
114
115 &nand {
116 status = "okay";
117
118 partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "u-boot";
125 reg = <0x0000000 0x0020000>;
126 read-only;
127 };
128
129 caldata: partition@20000 {
130 label = "caldata";
131 reg = <0x0020000 0x0040000>;
132 read-only;
133 };
134
135 partition@60000 {
136 label = "caldata-backup";
137 reg = <0x0060000 0x0040000>;
138 read-only;
139 };
140
141 partition@a0000 {
142 label = "config";
143 reg = <0x00a0000 0x0080000>;
144 read-only;
145 };
146
147 partition@120000 {
148 label = "pot";
149 reg = <0x0120000 0x0080000>;
150 read-only;
151 };
152
153 partition@1a0000 {
154 label = "kernel";
155 reg = <0x01a0000 0x0400000>;
156 };
157
158 partition@5a0000 {
159 label = "ubi";
160 reg = <0x05a0000 0x7560000>;
161 };
162
163 partition@7b00000 {
164 label = "language";
165 reg = <0x7b00000 0x0200000>;
166 read-only;
167 };
168
169 partition@7d00000 {
170 label = "traffic_meter";
171 reg = <0x7d00000 0x0300000>;
172 read-only;
173 };
174 };
175 };
176
177 &pcie {
178 status = "okay";
179
180 wifi@0,0,0 {
181 compatible = "qcom,ath10k";
182 reg = <0x0000 0 0 0 0>;
183
184 nvmem-cells = <&macaddr_caldata_c>;
185 nvmem-cell-names = "mac-address";
186 };
187 };
188
189 &ref {
190 clock-frequency = <40000000>;
191 };
192
193 &usb {
194 status = "okay";
195
196 #address-cells = <1>;
197 #size-cells = <0>;
198
199 hub_port: port@1 {
200 reg = <1>;
201 #trigger-source-cells = <0>;
202 };
203 };
204
205 &usb_phy {
206 status = "okay";
207 };
208
209 &wmac {
210 status = "okay";
211
212 mtd-cal-data = <&caldata 0x1000>;
213 };
214
215 &caldata {
216 compatible = "nvmem-cells";
217 #address-cells = <1>;
218 #size-cells = <1>;
219
220 macaddr_caldata_0: macaddr@0 {
221 reg = <0x0 0x6>;
222 };
223
224 macaddr_caldata_6: macaddr@6 {
225 reg = <0x6 0x6>;
226 };
227
228 macaddr_caldata_c: macaddr@c {
229 reg = <0xc 0x6>;
230 };
231 };