ipq40xx: use existing labels for prng node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-x1pro.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 compatible = "tel,x1pro","qcom,ipq4019";
11 aliases {
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 serial0 = &blsp1_uart1;
17 serial1 = &blsp1_uart2;
18 };
19
20 soc {
21 mdio@90000 {
22 status = "okay";
23 pinctrl-0 = <&mdio_pins>;
24 pinctrl-names = "default";
25 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
26 reset-delay-us = <2000>;
27 };
28
29 tcsr@1949000 {
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 };
34
35 tcsr@194b000 {
36 compatible = "qcom,tcsr";
37 reg = <0x194b000 0x100>;
38 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
39 status = "okay";
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 leds {
55 compatible = "gpio-leds";
56 pinctrl-0 = <&led_pins>;
57 pinctrl-names = "default";
58
59 led_status: status {
60 function = LED_FUNCTION_STATUS;
61 color = <LED_COLOR_ID_GREEN>;
62 gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 keys {
67 compatible = "gpio-keys";
68
69 reset {
70 label = "reset";
71 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
73 };
74 };
75 };
76 };
77
78 &watchdog {
79 status = "okay";
80 };
81
82 &prng {
83 status = "okay";
84 };
85
86 &blsp_dma {
87 status = "okay";
88 };
89
90 &blsp1_uart1 {
91 pinctrl-0 = <&serial_0_pins>;
92 pinctrl-names = "default";
93 status = "okay";
94 };
95
96 &blsp1_uart2 {
97 pinctrl-0 = <&serial_1_pins>;
98 pinctrl-names = "default";
99 status = "okay";
100 };
101
102 &qpic_bam {
103 status = "okay";
104 };
105
106 &tlmm {
107 mdio_pins: mdio_pinmux {
108 mux_1 {
109 pins = "gpio6";
110 function = "mdio";
111 bias-pull-up;
112 };
113 mux_2 {
114 pins = "gpio7";
115 function = "mdc";
116 bias-pull-up;
117 };
118 };
119
120 serial_0_pins: serial0-pinmux {
121 mux {
122 pins = "gpio16", "gpio17";
123 function = "blsp_uart0";
124 bias-disable;
125 };
126 };
127 serial_1_pins: serial1_pinmux {
128 mux {
129 pins = "gpio8", "gpio9";
130 function = "blsp_uart1";
131 bias-disable;
132 };
133 };
134
135 spi_0_pins: spi_0_pinmux {
136 pinmux {
137 function = "blsp_spi0";
138 pins = "gpio13", "gpio14", "gpio15";
139 drive-strength = <12>;
140 bias-disable;
141 };
142
143 pinmux_cs {
144 function = "gpio";
145 pins = "gpio12";
146 drive-strength = <2>;
147 bias-disable;
148 output-high;
149 };
150 };
151
152 led_pins: led_pinmux {
153 mux {
154 function = "gpio";
155 pins = "gpio68";
156 bias-disabled;
157 output-low;
158 };
159 };
160 };
161
162 &usb3_ss_phy {
163 status = "okay";
164 };
165
166 &usb3_hs_phy {
167 status = "okay";
168 };
169
170 &usb3 {
171 status = "okay";
172 };
173
174 &usb3_dwc {
175 #address-cells = <1>;
176 #size-cells = <0>;
177
178 port@1 {
179 reg = <1>;
180 #trigger-source-cells = <0>;
181 };
182
183 port@2 {
184 reg = <2>;
185 #trigger-source-cells = <0>;
186 };
187 };
188
189 &usb2_hs_phy {
190 status = "okay";
191 };
192
193 &usb2 {
194 status = "okay";
195
196 usb@6000000 {
197 #address-cells = <1>;
198 #size-cells = <0>;
199
200 port@1 {
201 reg = <1>;
202 #trigger-source-cells = <0>;
203 };
204 };
205 };
206
207 &wifi0 {
208 status = "okay";
209 nvmem-cell-names = "pre-calibration";
210 nvmem-cells = <&precal_art_1000>;
211 };
212
213 &wifi1 {
214 status = "okay";
215 nvmem-cell-names = "pre-calibration";
216 nvmem-cells = <&precal_art_5000>;
217 };