ipq40xx: use existing labels for prng node
[openwrt/staging/blogic.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 mdio@90000 {
25 status = "okay";
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
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 ess_tcsr@1953000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1953000 0x1000>;
47 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
48 };
49
50 tcsr@1957000 {
51 compatible = "qcom,tcsr";
52 reg = <0x1957000 0x100>;
53 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
54 };
55
56 serial@78af000 {
57 pinctrl-0 = <&serial_0_pins>;
58 pinctrl-names = "default";
59 status = "okay";
60 };
61
62 serial@78b0000 {
63 pinctrl-0 = <&serial_1_pins>;
64 pinctrl-names = "default";
65 status = "okay";
66 };
67
68 i2c@78b7000 { /* BLSP1 QUP2 */
69 pinctrl-0 = <&i2c_0_pins>;
70 pinctrl-names = "default";
71
72 status = "okay";
73 };
74
75 crypto@8e3a000 {
76 status = "okay";
77 };
78
79 leds {
80 compatible = "gpio-leds";
81
82 led1 {
83 label = "green:wlan0";
84 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
85 };
86
87 led2 {
88 label = "green:wlan1";
89 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
90 };
91
92 led3 {
93 function = LED_FUNCTION_USB;
94 color = <LED_COLOR_ID_GREEN>;
95 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
96 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
97 linux,default-trigger = "usbport";
98 };
99
100 led4 {
101 label = "green:ctrl1";
102 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
103 };
104
105 led5 {
106 label = "green:ctrl2";
107 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
108 };
109
110 led6 {
111 label = "green:ctrl3";
112 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
113 };
114 };
115
116 keys {
117 compatible = "gpio-keys";
118
119 reset {
120 label = "reset";
121 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_RESTART>;
123 };
124 };
125 };
126 };
127
128 &watchdog {
129 status = "okay";
130 };
131
132 &prng {
133 status = "okay";
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
207 &usb3_dwc {
208 #address-cells = <1>;
209 #size-cells = <0>;
210
211 usb3_port1: port@1 {
212 reg = <1>;
213 #trigger-source-cells = <0>;
214 };
215
216 usb3_port2: port@2 {
217 reg = <2>;
218 #trigger-source-cells = <0>;
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 usb@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 };