ipq40xx: drop bus driver, its a no-op and only does lots of alloc/free
[openwrt/openwrt.git] / target / linux / ipq40xx / files-4.14 / arch / arm / boot / dts / qcom-ipq4019-a62.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2017-2018, Sven Eckelmann <sven.eckelmann@openmesh.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/soc/qcom,tcsr.h>
22
23 / {
24 model = "OpenMesh A62";
25 compatible = "openmesh,a62", "qcom,ipq4019";
26
27 soc {
28 mdio@90000 {
29 status = "okay";
30 };
31
32 ess-psgmii@98000 {
33 status = "okay";
34 };
35
36 tcsr@194b000 {
37 /* select hostmode */
38 compatible = "qcom,tcsr";
39 reg = <0x194b000 0x100>;
40 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
41 status = "okay";
42 };
43
44 tcsr@1949000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1949000 0x100>;
47 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
48 };
49
50 ess_tcsr@1953000 {
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
54 };
55
56 tcsr@1957000 {
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
60 };
61
62 usb2: usb2@60f8800 {
63 status = "okay";
64 };
65
66 serial@78af000 {
67 pinctrl-0 = <&serial_pins>;
68 pinctrl-names = "default";
69 status = "okay";
70 };
71
72 crypto@8e3a000 {
73 status = "okay";
74 };
75
76 watchdog@b017000 {
77 status = "okay";
78 };
79
80 ess-switch@c000000 {
81 switch_lan_bmp = <0x10>;
82 switch_wan_bmp = <0x20>;
83
84 status = "okay";
85 };
86
87 edma@c080000 {
88 status = "okay";
89 };
90 };
91
92 gpio-keys {
93 compatible = "gpio-keys";
94
95 reset {
96 label = "reset";
97 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RESTART >;
99 };
100 };
101
102 aliases {
103 led-boot = &power;
104 led-failsafe = &power;
105 led-running = &power;
106 led-upgrade = &power;
107 };
108
109 gpio-leds {
110 compatible = "gpio-leds";
111
112 red {
113 label = "a62:red:status";
114 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
115 linux,default-trigger = "default-off";
116 };
117
118 power: green {
119 label = "a62:green:status";
120 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
121 };
122
123 blue {
124 label = "a62:blue:status";
125 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
126 linux,default-trigger = "default-off";
127 };
128 };
129
130 watchdog {
131 compatible = "linux,wdt-gpio";
132 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
133 hw_algo = "toggle";
134 /* hw_margin_ms is actually 300s but driver limits it to 60s */
135 hw_margin_ms = <60000>;
136 always-running;
137 };
138 };
139
140 &tlmm {
141 serial_pins: serial_pinmux {
142 mux {
143 pins = "gpio16", "gpio17";
144 function = "blsp_uart0";
145 bias-disable;
146 };
147 };
148
149 spi_0_pins: spi_0_pinmux {
150 pin {
151 function = "blsp_spi0";
152 pins = "gpio13", "gpio14", "gpio15";
153 drive-strength = <12>;
154 bias-disable;
155 };
156 pin_cs {
157 function = "gpio";
158 pins = "gpio12";
159 drive-strength = <2>;
160 bias-disable;
161 output-high;
162 };
163 };
164
165 enable-usb-power {
166 gpio-hog;
167 gpios = <58 GPIO_ACTIVE_HIGH>;
168 output-low;
169 line-name = "enable USB2 power";
170 };
171 };
172
173 &blsp_dma {
174 status = "okay";
175 };
176
177 &spi_0 {
178 pinctrl-0 = <&spi_0_pins>;
179 pinctrl-names = "default";
180 status = "okay";
181 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
182
183 m25p80@0 {
184 #address-cells = <1>;
185 #size-cells = <1>;
186 compatible = "jedec,spi-nor";
187 reg = <0>;
188 spi-max-frequency = <24000000>;
189 /* partitions are passed via bootloader */
190 };
191 };
192
193 &cryptobam {
194 status = "okay";
195 };
196
197 &gmac0 {
198 qcom,phy_mdio_addr = <3>;
199 qcom,poll_required = <1>;
200 qcom,forced_speed = <1000>;
201 qcom,forced_duplex = <1>;
202 vlan_tag = <1 0x10>;
203 };
204
205 &usb2_hs_phy {
206 status = "okay";
207 };
208
209 &pcie0 {
210 status = "okay";
211 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
212 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
213
214 bridge@0,0 {
215 reg = <0x00000000 0 0 0 0>;
216 #address-cells = <3>;
217 #size-cells = <2>;
218 ranges;
219
220 wifi2: wifi@0,0 {
221 compatible = "qcom,ath10k";
222 status = "okay";
223 reg = <0x00010000 0 0 0 0>;
224 qcom,ath10k-calibration-variant = "OM-A62";
225 };
226 };
227 };
228
229 &wifi0 {
230 status = "okay";
231 qcom,ath10k-calibration-variant = "OM-A62";
232 };
233
234 &wifi1 {
235 status = "okay";
236 qcom,ath10k-calibration-variant = "OM-A62";
237 };