xref: /linux/arch/arm64/boot/dts/renesas/r8a77951-salvator-xs.dts (revision 90a4ee4ba5cf5aae491bae4ad6fe75e05d28cc22)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Salvator-X 2nd version board with R-Car H3 ES2.0+
4 *
5 * Copyright (C) 2015-2017 Renesas Electronics Corp.
6 */
7
8/dts-v1/;
9#include "r8a77951.dtsi"
10#include "salvator-xs.dtsi"
11
12/ {
13	model = "Renesas Salvator-X 2nd version board based on r8a77951";
14	compatible = "renesas,salvator-xs", "renesas,r8a7795";
15
16	memory@48000000 {
17		device_type = "memory";
18		/* first 128MB is reserved for secure area. */
19		reg = <0x0 0x48000000 0x0 0x38000000>;
20	};
21
22	memory@500000000 {
23		device_type = "memory";
24		reg = <0x5 0x00000000 0x0 0x40000000>;
25	};
26
27	memory@600000000 {
28		device_type = "memory";
29		reg = <0x6 0x00000000 0x0 0x40000000>;
30	};
31
32	memory@700000000 {
33		device_type = "memory";
34		reg = <0x7 0x00000000 0x0 0x40000000>;
35	};
36};
37
38&du {
39	clocks = <&cpg CPG_MOD 724>,
40		 <&cpg CPG_MOD 723>,
41		 <&cpg CPG_MOD 722>,
42		 <&cpg CPG_MOD 721>,
43		 <&versaclock6 1>,
44		 <&x21_clk>,
45		 <&x22_clk>,
46		 <&versaclock6 2>;
47	clock-names = "du.0", "du.1", "du.2", "du.3",
48		      "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
49};
50
51&ehci2 {
52	status = "okay";
53};
54
55&ehci3 {
56	dr_mode = "otg";
57	status = "okay";
58};
59
60&hsusb3 {
61	dr_mode = "otg";
62	status = "okay";
63};
64
65&ohci2 {
66	status = "okay";
67};
68
69&ohci3 {
70	dr_mode = "otg";
71	status = "okay";
72};
73
74&pfc {
75	usb2_pins: usb2 {
76		groups = "usb2";
77		function = "usb2";
78	};
79
80	/*
81	 * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins
82	 *   (when SW31 is the default setting on Salvator-XS).
83	 * - If SW31 is the default setting, you cannot use USB2.0 ch3 on
84	 *   r8a77951 with Salvator-XS.
85	 *   Hence the SW31 setting must be changed like 2) below.
86	 *   1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF:
87	 *	- Connect GP6_3[01] to ADV7842.
88	 *   2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON:
89	 *	- Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power).
90	 *	- Connect GP6_{04,21} to ADV7842.
91	 */
92	usb2_ch3_pins: usb2_ch3 {
93		groups = "usb2_ch3";
94		function = "usb2_ch3";
95	};
96};
97
98&usb2_phy2 {
99	pinctrl-0 = <&usb2_pins>;
100	pinctrl-names = "default";
101
102	status = "okay";
103};
104
105&usb2_phy3 {
106	pinctrl-0 = <&usb2_ch3_pins>;
107	pinctrl-names = "default";
108
109	status = "okay";
110};
111