base-files: reduce IPv6 ULA prefix generation to a single call
[openwrt/staging/stintel.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 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 serial@78af000 {
61 pinctrl-0 = <&serial_0_pins>;
62 pinctrl-names = "default";
63 status = "okay";
64 };
65
66 serial@78b0000 {
67 pinctrl-0 = <&serial_1_pins>;
68 pinctrl-names = "default";
69 status = "okay";
70 };
71
72 i2c@78b7000 { /* BLSP1 QUP2 */
73 pinctrl-0 = <&i2c_0_pins>;
74 pinctrl-names = "default";
75
76 status = "okay";
77 };
78
79 crypto@8e3a000 {
80 status = "okay";
81 };
82
83 watchdog@b017000 {
84 status = "okay";
85 };
86
87 leds {
88 compatible = "gpio-leds";
89
90 led1 {
91 label = "green:wlan0";
92 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
93 };
94
95 led2 {
96 label = "green:wlan1";
97 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
98 };
99
100 led3 {
101 function = LED_FUNCTION_USB;
102 color = <LED_COLOR_ID_GREEN>;
103 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
104 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
105 linux,default-trigger = "usbport";
106 };
107
108 led4 {
109 label = "green:ctrl1";
110 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
111 };
112
113 led5 {
114 label = "green:ctrl2";
115 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
116 };
117
118 led6 {
119 label = "green:ctrl3";
120 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
121 };
122 };
123
124 keys {
125 compatible = "gpio-keys";
126
127 reset {
128 label = "reset";
129 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_RESTART>;
131 };
132 };
133 };
134 };
135
136 &blsp_dma {
137 status = "okay";
138 };
139
140 &cryptobam {
141 status = "okay";
142 };
143
144 &qpic_bam {
145 status = "okay";
146 };
147
148 &tlmm {
149 i2c_0_pins: i2c-0-pinmux {
150 mux {
151 pins = "gpio20", "gpio21";
152 function = "blsp_i2c0";
153 bias-disable;
154 };
155 };
156
157 mdio_pins: mdio_pinmux {
158 mux_1 {
159 pins = "gpio6";
160 function = "mdio";
161 bias-pull-up;
162 };
163 mux_2 {
164 pins = "gpio7";
165 function = "mdc";
166 bias-pull-up;
167 };
168 };
169
170 serial_0_pins: serial0-pinmux {
171 mux {
172 pins = "gpio16", "gpio17";
173 function = "blsp_uart0";
174 bias-disable;
175 };
176 };
177
178 serial_1_pins: serial1_pinmux {
179 mux {
180 pins = "gpio8", "gpio9";
181 function = "blsp_uart1";
182 bias-disable;
183 };
184 };
185
186 spi_0_pins: spi_0_pinmux {
187 pinmux {
188 function = "blsp_spi0";
189 pins = "gpio13", "gpio14", "gpio15";
190 drive-strength = <12>;
191 bias-disable;
192 };
193 pinmux_cs {
194 function = "gpio";
195 pins = "gpio12";
196 drive-strength = <2>;
197 bias-disable;
198 output-high;
199 };
200 };
201 };
202
203 &usb3 {
204 status = "okay";
205
206 dwc3@8a00000 {
207 #address-cells = <1>;
208 #size-cells = <0>;
209
210 usb3_port1: port@1 {
211 reg = <1>;
212 #trigger-source-cells = <0>;
213 };
214
215 usb3_port2: port@2 {
216 reg = <2>;
217 #trigger-source-cells = <0>;
218 };
219 };
220 };
221
222 &usb3_ss_phy {
223 status = "okay";
224 };
225
226 &usb3_hs_phy {
227 status = "okay";
228 };
229
230 &usb2 {
231 status = "okay";
232
233 dwc3@6000000 {
234 #address-cells = <1>;
235 #size-cells = <0>;
236
237 usb2_port1: port@1 {
238 reg = <1>;
239 #trigger-source-cells = <0>;
240 };
241 };
242 };
243
244 &usb2_hs_phy {
245 status = "okay";
246 };