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