ath79: fix pci_device_reg errors
[openwrt/staging/nbd.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 nvmem-layout {
135 compatible = "fixed-layout";
136 #address-cells = <1>;
137 #size-cells = <1>;
138
139 cal_ath9k: calibration@1000 {
140 reg = <0x1000 0x440>;
141 };
142
143 cal_ath10k: calibration@5000 {
144 reg = <0x5000 0x844>;
145 };
146
147 macaddr_caldata_0: macaddr@0 {
148 reg = <0x0 0x6>;
149 };
150
151 macaddr_caldata_6: macaddr@6 {
152 reg = <0x6 0x6>;
153 };
154
155 macaddr_caldata_c: macaddr@c {
156 reg = <0xc 0x6>;
157 };
158 };
159 };
160
161 partition@60000 {
162 label = "caldata-backup";
163 reg = <0x0060000 0x0040000>;
164 read-only;
165 };
166
167 partition@a0000 {
168 label = "config";
169 reg = <0x00a0000 0x0080000>;
170 read-only;
171 };
172
173 partition@120000 {
174 label = "pot";
175 reg = <0x0120000 0x0080000>;
176 read-only;
177 };
178
179 partition@1a0000 {
180 label = "kernel";
181 reg = <0x01a0000 0x0400000>;
182 };
183
184 partition@5a0000 {
185 label = "ubi";
186 reg = <0x05a0000 0x7560000>;
187 };
188
189 partition@7b00000 {
190 label = "language";
191 reg = <0x7b00000 0x0200000>;
192 read-only;
193 };
194
195 partition@7d00000 {
196 label = "traffic_meter";
197 reg = <0x7d00000 0x0300000>;
198 read-only;
199 };
200 };
201 };
202
203 &pcie {
204 status = "okay";
205
206 wifi@0,0 {
207 compatible = "qcom,ath10k";
208 reg = <0x0000 0 0 0 0>;
209
210 nvmem-cells = <&cal_ath10k>, <&macaddr_caldata_c>;
211 nvmem-cell-names = "calibration", "mac-address";
212 };
213 };
214
215 &ref {
216 clock-frequency = <40000000>;
217 };
218
219 &usb {
220 status = "okay";
221 };
222
223 &usb_phy {
224 status = "okay";
225 };
226
227 &wmac {
228 status = "okay";
229
230 nvmem-cells = <&cal_ath9k>;
231 nvmem-cell-names = "calibration";
232 };