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