igmpproxy: remove some bashism
[oweals/openwrt.git] / target / linux / ipq40xx / files-4.19 / arch / arm / boot / dts / qcom-ipq4019-u4019.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/soc/qcom,tcsr.h>
7
8 / {
9         compatible = "unielec,u4019","qcom,ipq4019";
10
11         soc {
12                 rng@22000 {
13                         status = "okay";
14                 };
15
16                 mdio@90000 {
17                         status = "okay";
18                         pinctrl-0 = <&mdio_pins>;
19                         pinctrl-names = "default";
20                         reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
21                         reset-delay-us = <2000>;
22                 };
23
24                 ess-psgmii@98000 {
25                         status = "okay";
26                 };
27
28                 tcsr@1949000 {
29                         compatible = "qcom,tcsr";
30                         reg = <0x1949000 0x100>;
31                         qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
32                 };
33
34                 tcsr@194b000 {
35                         compatible = "qcom,tcsr";
36                         reg = <0x194b000 0x100>;
37                         qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
38                         status = "okay";
39                 };
40
41                 ess_tcsr@1953000 {
42                         compatible = "qcom,tcsr";
43                         reg = <0x1953000 0x1000>;
44                         qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45                 };
46
47                 tcsr@1957000 {
48                         compatible = "qcom,tcsr";
49                         reg = <0x1957000 0x100>;
50                         qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
51                 };
52
53                 usb2@60f8800 {
54                         status = "okay";
55
56                         dwc3@6000000 {
57                                 #address-cells = <1>;
58                                 #size-cells = <0>;
59
60                                 port@1 {
61                                         reg = <1>;
62                                         #trigger-source-cells = <0>;
63                                 };
64                         };
65                 };
66
67                 usb3@8af8800 {
68                         status = "okay";
69
70                         dwc3@8a00000 {
71                                 #address-cells = <1>;
72                                 #size-cells = <0>;
73
74                                 port@1 {
75                                         reg = <1>;
76                                         #trigger-source-cells = <0>;
77                                 };
78
79                                 port@2 {
80                                         reg = <2>;
81                                         #trigger-source-cells = <0>;
82                                 };
83                         };
84                 };
85
86                 watchdog@b017000 {
87                         status = "okay";
88                 };
89
90                 ess-switch@c000000 {
91                         status = "okay";
92                 };
93
94                 edma@c080000 {
95                         status = "okay";
96                 };
97
98                 aliases {
99                         led-boot = &led_status;
100                         led-failsafe = &led_status;
101                         led-running = &led_status;
102                         led-upgrade = &led_status;
103                         serial0 = &blsp1_uart1;
104                         serial1 = &blsp1_uart2;
105                 };
106
107                 leds {
108                         compatible = "gpio-leds";
109                         pinctrl-0 = <&led_pins>;
110                         pinctrl-names = "default";
111
112                         led_status: led2 {
113                                 label = "u4019:green:led2";
114                                 gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
115                         };
116                 };
117
118                 keys {
119                         compatible = "gpio-keys";
120
121                         reset {
122                                 label = "reset";
123                                 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
124                                 linux,code = <KEY_RESTART>;
125                         };
126                 };
127         };
128 };
129
130 &blsp_dma {
131         status = "okay";
132 };
133
134 &blsp1_uart1 {
135         pinctrl-0 = <&serial_0_pins>;
136         pinctrl-names = "default";
137         status = "okay";
138 };
139
140 &blsp1_uart2 {
141         pinctrl-0 = <&serial_1_pins>;
142         pinctrl-names = "default";
143         status = "okay";
144 };
145
146 &qpic_bam {
147         status = "okay";
148 };
149
150 &tlmm {
151         mdio_pins: mdio_pinmux {
152                 mux_1 {
153                         pins = "gpio6";
154                         function = "mdio";
155                         bias-pull-up;
156                 };
157                 mux_2 {
158                         pins = "gpio7";
159                         function = "mdc";
160                         bias-pull-up;
161                 };
162         };
163
164         serial_0_pins: serial0-pinmux {
165                 mux {
166                         pins = "gpio16", "gpio17";
167                         function = "blsp_uart0";
168                         bias-disable;
169                 };
170         };
171         serial_1_pins: serial1_pinmux {
172                 mux {
173                         pins = "gpio8", "gpio9";
174                         function = "blsp_uart1";
175                         bias-disable;
176                 };
177         };
178
179         spi_0_pins: spi_0_pinmux {
180                 pinmux {
181                         function = "blsp_spi0";
182                         pins = "gpio13", "gpio14", "gpio15";
183                         drive-strength = <12>;
184                         bias-disable;
185                 };
186
187                 pinmux_cs {
188                         function = "gpio";
189                         pins = "gpio12";
190                         drive-strength = <2>;
191                         bias-disable;
192                         output-high;
193                 };
194         };
195
196         led_pins: led_pinmux {
197                 mux {
198                         function = "gpio";
199                         pins = "gpio68";
200                         bias-disabled;
201                         output-low;
202                 };
203         };
204 };
205
206 &usb3_ss_phy {
207         status = "okay";
208 };
209
210 &usb3_hs_phy {
211         status = "okay";
212 };
213
214 &usb2_hs_phy {
215         status = "okay";
216 };
217
218 &wifi0 {
219         status = "okay";
220 };
221
222 &wifi1 {
223         status = "okay";
224 };