arm64: dts: renesas: hihope-common: Add BT support
[linux-block.git] / arch / arm64 / boot / dts / renesas / hihope-common.dtsi
CommitLineData
438419eb
BD
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the HiHope RZ/G2[MN] main board common parts
4 *
5 * Copyright (C) 2019 Renesas Electronics Corp.
6 */
7
7433f1fb
BD
8#include <dt-bindings/gpio/gpio.h>
9
438419eb
BD
10/ {
11 aliases {
12 serial0 = &scif2;
d112c209 13 serial1 = &hscif0;
438419eb
BD
14 };
15
16 chosen {
17 bootargs = "ignore_loglevel";
18 stdout-path = "serial0:115200n8";
19 };
015a7507 20
89d6adc6
FC
21 hdmi0-out {
22 compatible = "hdmi-connector";
23 type = "a";
24
25 port {
26 hdmi0_con: endpoint {
27 remote-endpoint = <&rcar_dw_hdmi0_out>;
28 };
29 };
30 };
31
1485b635
FC
32 leds {
33 compatible = "gpio-leds";
34
d112c209
BD
35 bt_active_led {
36 label = "blue:bt";
37 gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "hci0-power";
39 default-state = "off";
40 };
41
1485b635
FC
42 led0 {
43 gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
1485b635
FC
44 };
45
46 led1 {
47 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
1485b635
FC
48 };
49
50 led2 {
51 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
1485b635
FC
52 };
53
54 led3 {
55 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
1485b635
FC
56 };
57 };
58
015a7507
FC
59 reg_1p8v: regulator0 {
60 compatible = "regulator-fixed";
61 regulator-name = "fixed-1.8V";
62 regulator-min-microvolt = <1800000>;
63 regulator-max-microvolt = <1800000>;
64 regulator-boot-on;
65 regulator-always-on;
66 };
67
68 reg_3p3v: regulator1 {
69 compatible = "regulator-fixed";
70 regulator-name = "fixed-3.3V";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
73 regulator-boot-on;
74 regulator-always-on;
75 };
76
734d277f
FC
77 vbus0_usb2: regulator-vbus0-usb2 {
78 compatible = "regulator-fixed";
79
80 regulator-name = "USB20_VBUS0";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
83
84 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
85 enable-active-high;
86 };
87
015a7507
FC
88 vccq_sdhi0: regulator-vccq-sdhi0 {
89 compatible = "regulator-gpio";
90
91 regulator-name = "SDHI0 VccQ";
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <3300000>;
94
95 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
96 gpios-states = <1>;
97 states = <3300000 1
98 1800000 0>;
99 };
89d6adc6
FC
100
101 x302_clk: x302-clock {
102 compatible = "fixed-clock";
103 #clock-cells = <0>;
104 clock-frequency = <33000000>;
105 };
106
107 x304_clk: x304-clock {
108 compatible = "fixed-clock";
109 #clock-cells = <0>;
110 clock-frequency = <25000000>;
111 };
112};
113
114&du {
115 clocks = <&cpg CPG_MOD 724>,
116 <&cpg CPG_MOD 723>,
117 <&cpg CPG_MOD 722>,
118 <&versaclock5 1>,
119 <&x302_clk>,
120 <&versaclock5 2>;
121 clock-names = "du.0", "du.1", "du.2",
122 "dclkin.0", "dclkin.1", "dclkin.2";
123 status = "okay";
438419eb
BD
124};
125
734d277f
FC
126&ehci0 {
127 status = "okay";
128};
129
130&ehci1 {
131 status = "okay";
132};
133
438419eb
BD
134&extal_clk {
135 clock-frequency = <16666666>;
136};
137
138&extalr_clk {
139 clock-frequency = <32768>;
140};
141
734d277f
FC
142&gpio6 {
143 usb1-reset {
144 gpio-hog;
145 gpios = <10 GPIO_ACTIVE_LOW>;
146 output-low;
147 line-name = "usb1-reset";
148 };
149};
150
89d6adc6
FC
151&hdmi0 {
152 status = "okay";
153
154 ports {
155 port@1 {
156 reg = <1>;
157 rcar_dw_hdmi0_out: endpoint {
158 remote-endpoint = <&hdmi0_con>;
159 };
160 };
161 };
162};
163
d112c209
BD
164&hscif0 {
165 pinctrl-0 = <&hscif0_pins>;
166 pinctrl-names = "default";
167
168 uart-has-rtscts;
169 status = "okay";
170
171 bluetooth {
172 compatible = "ti,wl1837-st";
173 enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
174 };
175};
176
734d277f
FC
177&hsusb {
178 dr_mode = "otg";
179 status = "okay";
180};
181
89d6adc6
FC
182&i2c4 {
183 clock-frequency = <400000>;
184 status = "okay";
185
cd3e43be
BD
186 gpio_expander: gpio@20 {
187 compatible = "onnn,pca9654";
188 reg = <0x20>;
189 gpio-controller;
190 #gpio-cells = <2>;
191 };
192
89d6adc6
FC
193 versaclock5: clock-generator@6a {
194 compatible = "idt,5p49v5923";
195 reg = <0x6a>;
196 #clock-cells = <1>;
197 clocks = <&x304_clk>;
198 clock-names = "xin";
199 };
200};
201
734d277f
FC
202&ohci0 {
203 status = "okay";
204};
205
206&ohci1 {
207 status = "okay";
208};
209
61e0505b
BD
210&pcie_bus_clk {
211 clock-frequency = <100000000>;
212};
213
871c13a4
BD
214&pfc {
215 pinctrl-0 = <&scif_clk_pins>;
216 pinctrl-names = "default";
217
d112c209
BD
218 hscif0_pins: hscif0 {
219 groups = "hscif0_data", "hscif0_ctrl";
220 function = "hscif0";
221 };
222
871c13a4
BD
223 scif2_pins: scif2 {
224 groups = "scif2_data_a";
225 function = "scif2";
226 };
227
228 scif_clk_pins: scif_clk {
229 groups = "scif_clk_a";
230 function = "scif_clk";
231 };
015a7507
FC
232
233 sdhi0_pins: sd0 {
234 groups = "sdhi0_data4", "sdhi0_ctrl";
235 function = "sdhi0";
236 power-source = <3300>;
237 };
238
239 sdhi0_pins_uhs: sd0_uhs {
240 groups = "sdhi0_data4", "sdhi0_ctrl";
241 function = "sdhi0";
242 power-source = <1800>;
243 };
244
245 sdhi3_pins: sd3 {
246 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
247 function = "sdhi3";
248 power-source = <1800>;
249 };
734d277f
FC
250
251 usb0_pins: usb0 {
252 groups = "usb0";
253 function = "usb0";
254 };
255
256 usb1_pins: usb1 {
257 mux {
258 groups = "usb1";
259 function = "usb1";
260 };
261
262 ovc {
263 pins = "GP_6_27";
264 bias-pull-up;
265 };
266 };
3ba27637
BD
267
268 usb30_pins: usb30 {
269 groups = "usb30";
270 function = "usb30";
271 };
871c13a4
BD
272};
273
736a291d
BD
274&rwdt {
275 timeout-sec = <60>;
276 status = "okay";
277};
278
438419eb 279&scif2 {
871c13a4
BD
280 pinctrl-0 = <&scif2_pins>;
281 pinctrl-names = "default";
282
438419eb
BD
283 status = "okay";
284};
285
286&scif_clk {
287 clock-frequency = <14745600>;
288};
015a7507
FC
289
290&sdhi0 {
291 pinctrl-0 = <&sdhi0_pins>;
292 pinctrl-1 = <&sdhi0_pins_uhs>;
293 pinctrl-names = "default", "state_uhs";
294
295 vmmc-supply = <&reg_3p3v>;
296 vqmmc-supply = <&vccq_sdhi0>;
297 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
298 bus-width = <4>;
299 sd-uhs-sdr50;
300 sd-uhs-sdr104;
301 status = "okay";
302};
303
304&sdhi3 {
305 pinctrl-0 = <&sdhi3_pins>;
306 pinctrl-1 = <&sdhi3_pins>;
307 pinctrl-names = "default", "state_uhs";
308
309 vmmc-supply = <&reg_3p3v>;
310 vqmmc-supply = <&reg_1p8v>;
311 bus-width = <8>;
312 mmc-hs200-1_8v;
313 non-removable;
314 fixed-emmc-driver-type = <1>;
734d277f
FC
315};
316
317&usb_extal_clk {
318 clock-frequency = <50000000>;
319};
320
321&usb2_phy0 {
322 pinctrl-0 = <&usb0_pins>;
323 pinctrl-names = "default";
324
325 vbus-supply = <&vbus0_usb2>;
326 status = "okay";
327};
328
329&usb2_phy1 {
330 pinctrl-0 = <&usb1_pins>;
331 pinctrl-names = "default";
332
015a7507
FC
333 status = "okay";
334};
3ba27637
BD
335
336&usb3_peri0 {
337 phys = <&usb3_phy0>;
338 phy-names = "usb";
339
340 companion = <&xhci0>;
341
342 status = "okay";
343};
344
345&usb3_phy0 {
346 status = "okay";
347};
348
349&usb3s0_clk {
350 clock-frequency = <100000000>;
351};
352
353&xhci0 {
354 pinctrl-0 = <&usb30_pins>;
355 pinctrl-names = "default";
356
357 status = "okay";
358};