ipq40xx: files-4.19: Clear some DTC warnings
[oweals/openwrt.git] / target / linux / ipq40xx / files-4.19 / arch / arm / boot / dts / qcom-ipq4029-gl-b1300.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2  *
3  * Permission to use, copy, modify, and/or distribute this software for any
4  * purpose with or without fee is hereby granted, provided that the above
5  * copyright notice and this permission notice appear in all copies.
6  *
7  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14  *
15  */
16
17 #include "qcom-ipq4019.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/soc/qcom,tcsr.h>
21
22 / {
23         model = "GL.iNet GL-B1300";
24         compatible = "glinet,gl-b1300", "qcom,ipq4019";
25
26         aliases {
27                 led-boot = &power;
28                 led-failsafe = &power;
29                 led-running = &power;
30                 led-upgrade = &power;
31         };
32
33         memory {
34                 device_type = "memory";
35                 reg = <0x80000000 0x10000000>;
36         };
37
38         soc {
39                 mdio@90000 {
40                         status = "okay";
41                 };
42
43                 ess-psgmii@98000 {
44                         status = "okay";
45                 };
46
47                 tcsr@1949000 {
48                         compatible = "qcom,tcsr";
49                         reg = <0x1949000 0x100>;
50                         qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
51                 };
52
53                 tcsr@194b000 {
54                         /* select hostmode */
55                         compatible = "qcom,tcsr";
56                         reg = <0x194b000 0x100>;
57                         qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
58                         status = "okay";
59                 };
60
61                 ess_tcsr@1953000 {
62                         compatible = "qcom,tcsr";
63                         reg = <0x1953000 0x1000>;
64                         qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
65                 };
66
67                 tcsr@1957000 {
68                         compatible = "qcom,tcsr";
69                         reg = <0x1957000 0x100>;
70                         qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
71                 };
72
73                 usb2@60f8800 {
74                         status = "okay";
75                 };
76
77                 usb3@8af8800 {
78                         status = "okay";
79                 };
80
81                 crypto@8e3a000 {
82                         status = "okay";
83                 };
84
85                 watchdog@b017000 {
86                         status = "okay";
87                 };
88
89                 ess-switch@c000000 {
90                         status = "okay";
91                         switch_lan_bmp = <0x18>;
92                         switch_wan_bmp = <0x20>;
93                 };
94
95                 edma@c080000 {
96                         status = "okay";
97                 };
98         };
99
100         gpio-keys {
101                 compatible = "gpio-keys";
102
103                 wps {
104                         label = "wps";
105                         gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
106                         linux,code = <KEY_WPS_BUTTON>;
107                 };
108
109                 reset {
110                         label = "reset";
111                         gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
112                         linux,code = <KEY_RESTART>;
113                 };
114         };
115
116         gpio-leds {
117                 compatible = "gpio-leds";
118
119                 power: power {
120                         label = "gl-b1300:green:power";
121                         gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
122                         default-state = "on";
123                 };
124
125                 mesh {
126                         label = "gl-b1300:green:mesh";
127                         gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
128                 };
129
130                 wlan {
131                         label = "gl-b1300:green:wlan";
132                         gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
133                 };
134         };
135 };
136
137 &blsp_dma {
138         status = "okay";
139 };
140
141 &cryptobam {
142         status = "okay";
143 };
144
145 &blsp1_spi1 {
146         pinctrl-0 = <&spi_0_pins>;
147         pinctrl-names = "default";
148         status = "okay";
149         cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
150
151         mx25l25635f@0 {
152                 compatible = "jedec,spi-nor";
153                 reg = <0>;
154                 spi-max-frequency = <24000000>;
155
156                 partitions {
157                         compatible = "fixed-partitions";
158                         #address-cells = <1>;
159                         #size-cells = <1>;
160
161                         SBL1@0 {
162                                 label = "SBL1";
163                                 reg = <0x0 0x40000>;
164                                 read-only;
165                         };
166
167                         MIBIB@40000 {
168                                 label = "MIBIB";
169                                 reg = <0x40000 0x20000>;
170                                 read-only;
171                         };
172
173                         QSEE@60000 {
174                                 label = "QSEE";
175                                 reg = <0x60000 0x60000>;
176                                 read-only;
177                         };
178
179                         CDT@c0000 {
180                                 label = "CDT";
181                                 reg = <0xc0000 0x10000>;
182                                 read-only;
183                         };
184
185                         DDRPARAMS@d0000 {
186                                 label = "DDRPARAMS";
187                                 reg = <0xd0000 0x10000>;
188                                 read-only;
189                         };
190
191                         APPSBLENV@e0000 {
192                                 label = "APPSBLENV";
193                                 reg = <0xe0000 0x10000>;
194                                 read-only;
195                         };
196
197                         APPSBL@f0000 {
198                                 label = "APPSBL";
199                                 reg = <0xf0000 0x80000>;
200                                 read-only;
201                         };
202
203                         ART@170000 {
204                                 label = "ART";
205                                 reg = <0x170000 0x10000>;
206                                 read-only;
207                         };
208
209                         firmware@180000 {
210                                 compatible = "denx,fit";
211                                 label = "firmware";
212                                 reg = <0x180000 0x1e80000>;
213                         };
214                 };
215         };
216 };
217
218 &blsp1_uart1 {
219         pinctrl-0 = <&serial_pins>;
220         pinctrl-names = "default";
221         status = "okay";
222 };
223
224 &tlmm {
225         serial_pins: serial_pinmux {
226                 mux {
227                         pins = "gpio60", "gpio61";
228                         function = "blsp_uart0";
229                         bias-disable;
230                 };
231         };
232
233         spi_0_pins: spi_0_pinmux {
234                 pinmux {
235                         function = "blsp_spi0";
236                         pins = "gpio55", "gpio56", "gpio57";
237                 };
238                 pinmux_cs {
239                         function = "gpio";
240                         pins = "gpio54";
241                 };
242                 pinconf {
243                         pins = "gpio55", "gpio56", "gpio57";
244                         drive-strength = <12>;
245                         bias-disable;
246                 };
247                 pinconf_cs {
248                         pins = "gpio54";
249                         drive-strength = <2>;
250                         bias-disable;
251                         output-high;
252                 };
253         };
254 };
255
256 &usb2_hs_phy {
257         status = "okay";
258 };
259
260 &usb3_hs_phy {
261         status = "okay";
262 };
263
264 &usb3_ss_phy {
265         status = "okay";
266 };
267
268 &wifi0 {
269         status = "okay";
270         qcom,ath10k-calibration-variant = "GL-B1300";
271 };
272
273 &wifi1 {
274         status = "okay";
275         qcom,ath10k-calibration-variant = "GL-B1300";
276 };