d22661131130c14db3d1ec738bcdf7e8d986f608
[openwrt/staging/stintel.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-e2600ac.dtsi
1 /* SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 *
3 * Copyright (c) 2018 Peng Zhang <sd20@qxwlan.com>
4 *
5 */
6
7 #include "qcom-ipq4019.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/soc/qcom,tcsr.h>
12
13 / {
14
15 model = "Qxwlan E2600AC";
16 compatible = "qcom,ipq4019";
17
18 memory {
19 device_type = "memory";
20 reg = <0x80000000 0x10000000>; /* 256MB */
21 };
22
23 soc {
24 rng@22000 {
25 status = "okay";
26 };
27
28 mdio@90000 {
29 status = "okay";
30 pinctrl-0 = <&mdio_pins>;
31 pinctrl-names = "default";
32 };
33
34 tcsr@1949000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
38 };
39
40 tcsr@194b000 {
41 /* select hostmode */
42 compatible = "qcom,tcsr";
43 reg = <0x194b000 0x100>;
44 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
45 status = "okay";
46 };
47
48 ess_tcsr@1953000 {
49 compatible = "qcom,tcsr";
50 reg = <0x1953000 0x1000>;
51 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
52 };
53
54 tcsr@1957000 {
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
58 };
59
60 usb2: usb2@60f8800 {
61 status = "okay";
62
63 dwc3@6000000 {
64 #address-cells = <1>;
65 #size-cells = <0>;
66
67 usb2_port1: port@1 {
68 reg = <1>;
69 #trigger-source-cells = <0>;
70 };
71 };
72 };
73
74 serial@78af000 {
75 pinctrl-0 = <&serial_0_pins>;
76 pinctrl-names = "default";
77 status = "okay";
78 };
79
80 serial@78b0000 {
81 pinctrl-0 = <&serial_1_pins>;
82 pinctrl-names = "default";
83 status = "okay";
84 };
85
86 i2c@78b7000 { /* BLSP1 QUP2 */
87 pinctrl-0 = <&i2c_0_pins>;
88 pinctrl-names = "default";
89
90 status = "okay";
91 };
92
93 usb3: usb3@8af8800 {
94 status = "okay";
95
96 dwc3@8a00000 {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 usb3_port1: port@1 {
101 reg = <1>;
102 #trigger-source-cells = <0>;
103 };
104
105 usb3_port2: port@2 {
106 reg = <2>;
107 #trigger-source-cells = <0>;
108 };
109 };
110 };
111
112 crypto@8e3a000 {
113 status = "okay";
114 };
115
116 watchdog@b017000 {
117 status = "okay";
118 };
119
120 leds {
121 compatible = "gpio-leds";
122
123 led1 {
124 label = "green:wlan0";
125 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
126 };
127
128 led2 {
129 label = "green:wlan1";
130 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
131 };
132
133 led3 {
134 function = LED_FUNCTION_USB;
135 color = <LED_COLOR_ID_GREEN>;
136 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
137 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
138 linux,default-trigger = "usbport";
139 };
140
141 led4 {
142 label = "green:ctrl1";
143 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
144 };
145
146 led5 {
147 label = "green:ctrl2";
148 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
149 };
150
151 led6 {
152 label = "green:ctrl3";
153 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
154 };
155 };
156
157 keys {
158 compatible = "gpio-keys";
159
160 reset {
161 label = "reset";
162 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
163 linux,code = <KEY_RESTART>;
164 };
165 };
166 };
167 };
168
169 &blsp_dma {
170 status = "okay";
171 };
172
173 &cryptobam {
174 status = "okay";
175 };
176
177 &qpic_bam {
178 status = "okay";
179 };
180
181 &tlmm {
182 i2c_0_pins: i2c-0-pinmux {
183 mux {
184 pins = "gpio20", "gpio21";
185 function = "blsp_i2c0";
186 bias-disable;
187 };
188 };
189
190 mdio_pins: mdio_pinmux {
191 mux_1 {
192 pins = "gpio6";
193 function = "mdio";
194 bias-pull-up;
195 };
196 mux_2 {
197 pins = "gpio7";
198 function = "mdc";
199 bias-pull-up;
200 };
201 };
202
203 serial_0_pins: serial0-pinmux {
204 mux {
205 pins = "gpio16", "gpio17";
206 function = "blsp_uart0";
207 bias-disable;
208 };
209 };
210
211 serial_1_pins: serial1_pinmux {
212 mux {
213 pins = "gpio8", "gpio9";
214 function = "blsp_uart1";
215 bias-disable;
216 };
217 };
218
219 spi_0_pins: spi_0_pinmux {
220 pinmux {
221 function = "blsp_spi0";
222 pins = "gpio13", "gpio14", "gpio15";
223 drive-strength = <12>;
224 bias-disable;
225 };
226 pinmux_cs {
227 function = "gpio";
228 pins = "gpio12";
229 drive-strength = <2>;
230 bias-disable;
231 output-high;
232 };
233 };
234 };
235
236 &usb3_ss_phy {
237 status = "okay";
238 };
239
240 &usb3_hs_phy {
241 status = "okay";
242 };
243
244 &usb2_hs_phy {
245 status = "okay";
246 };