ipq40xx: switch default to 6.6
[openwrt/staging/blocktrron.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-lhgg-60ad.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2019, Robert Marko <robimarko@gmail.com>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 *
16 */
17
18 #include "qcom-ipq4019.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/leds/common.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
23
24 / {
25 model = "Mikrotik Wireless Wire Dish LHGG-60ad";
26 compatible = "mikrotik,lhgg-60ad";
27
28 memory {
29 device_type = "memory";
30 reg = <0x80000000 0x10000000>;
31 };
32
33 chosen {
34 stdout-path = "serial0:115200n8";
35 };
36
37 aliases {
38 led-boot = &user;
39 led-failsafe = &user;
40 led-running = &user;
41 led-upgrade = &user;
42 };
43
44 soc {
45 rng@22000 {
46 status = "okay";
47 };
48
49 mdio@90000 {
50 status = "okay";
51 };
52
53 counter@4a1000 {
54 compatible = "qcom,qca-gcnt";
55 reg = <0x4a1000 0x4>;
56 };
57
58 tcsr@1949000 {
59 compatible = "qcom,tcsr";
60 reg = <0x1949000 0x100>;
61 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
62 };
63
64 ess_tcsr@1953000 {
65 compatible = "qcom,tcsr";
66 reg = <0x1953000 0x1000>;
67 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
68 };
69
70 tcsr@1957000 {
71 compatible = "qcom,tcsr";
72 reg = <0x1957000 0x100>;
73 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
74 };
75
76 crypto@8e3a000 {
77 status = "okay";
78 };
79
80 watchdog@b017000 {
81 status = "okay";
82 };
83 };
84
85 keys {
86 compatible = "gpio-keys";
87
88 reset {
89 label = "reset";
90 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
92 };
93 };
94
95 leds {
96 compatible = "gpio-leds";
97
98 power: power {
99 function = LED_FUNCTION_POWER;
100 color = <LED_COLOR_ID_BLUE>;
101 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
102 default-state = "keep";
103 panic-indicator;
104 };
105
106 user: user {
107 label = "yellow:user";
108 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
109 };
110
111 wlan {
112 function = LED_FUNCTION_WLAN;
113 color = <LED_COLOR_ID_GREEN>;
114 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
115 };
116
117 align-left {
118 label = "green:align-left";
119 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
120 };
121
122 align-right {
123 label = "green:align-right";
124 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
125 };
126
127 wlan-rx {
128 label = "green:align-down";
129 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
130 };
131
132 wlan-tx {
133 label = "green:align-up";
134 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
135 };
136 };
137 };
138
139 &tlmm {
140 serial_pins: serial_pinmux {
141 mux {
142 pins = "gpio60", "gpio61";
143 function = "blsp_uart0";
144 bias-disable;
145 };
146 };
147
148 spi_0_pins: spi-0-pinmux {
149 pinmux {
150 function = "blsp_spi0";
151 pins = "gpio13", "gpio14", "gpio15";
152 bias-disable;
153 };
154
155 pinmux_cs {
156 function = "gpio";
157 pins = "gpio12";
158 bias-disable;
159 output-high;
160 };
161 };
162 };
163
164 &blsp_dma {
165 status = "okay";
166 };
167
168 &blsp1_spi1 {
169 pinctrl-0 = <&spi_0_pins>;
170 pinctrl-names = "default";
171 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
172 status = "okay";
173
174 m25p80@0 {
175 reg = <0>;
176 compatible = "jedec,spi-nor";
177 spi-max-frequency = <24000000>;
178
179 partitions {
180 compatible = "fixed-partitions";
181 #address-cells = <1>;
182 #size-cells = <1>;
183
184 partition@0 {
185 label = "Qualcomm";
186 reg = <0x0 0x80000>;
187 read-only;
188 };
189
190 partition@80000 {
191 compatible = "mikrotik,routerboot-partitions";
192 #address-cells = <1>;
193 #size-cells = <1>;
194 label = "RouterBoot";
195 reg = <0x80000 0x80000>;
196
197 hard_config {
198 read-only;
199 size = <0x2000>;
200 };
201
202 dtb_config {
203 read-only;
204 };
205
206 soft_config {
207 };
208 };
209
210 partition@100000 {
211 compatible = "mikrotik,minor";
212 label = "firmware";
213 reg = <0x100000 0xf00000>;
214 };
215 };
216 };
217 };
218
219 &blsp1_uart1 {
220 pinctrl-0 = <&serial_pins>;
221 pinctrl-names = "default";
222 status = "okay";
223 };
224
225 &cryptobam {
226 status = "okay";
227 };
228
229 &pcie0 {
230 status = "okay";
231 perst-gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>;
232
233 bridge@0,0 {
234 reg = <0x00000000 0 0 0 0>;
235 #address-cells = <3>;
236 #size-cells = <2>;
237 ranges;
238
239 /* wil6210 802.11ad card */
240 wifi: wifi@1,0 {
241 status = "okay";
242 /* wil6210 driver has no compatible */
243 reg = <0x00010000 0 0 0 0>;
244 };
245 };
246 };
247
248 &ethphy1 {
249 status = "disabled";
250 };
251
252 &ethphy2 {
253 status = "disabled";
254 };
255
256 &ethphy3 {
257 status = "disabled";
258 };
259
260 &ethphy4 {
261 status = "disabled";
262 };
263
264 &psgmiiphy {
265 status = "disabled";
266 };
267
268 &gmac {
269 status = "okay";
270 };
271
272 &switch {
273 status = "okay";
274
275 /delete-property/ psgmii-ethphy;
276 };
277
278 &swport5 {
279 status = "okay";
280
281 label = "lan";
282 phy-handle = <&ethphy0>;
283 phy-mode = "rgmii-id";
284 };