xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a77951-salvator-xs.dts (revision 8fbb8c334ff13a6afd88c73e85684bc7b82bd775)
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&pca9654 {
75	pcie-sata-switch-hog {
76		gpio-hog;
77		gpios = <7 GPIO_ACTIVE_HIGH>;
78		output-low; /* enable SATA by default */
79		line-name = "PCIE/SATA switch";
80	};
81};
82
83&pfc {
84	usb2_pins: usb2 {
85		groups = "usb2";
86		function = "usb2";
87	};
88
89	/*
90	 * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins
91	 *   (when SW31 is the default setting on Salvator-XS).
92	 * - If SW31 is the default setting, you cannot use USB2.0 ch3 on
93	 *   r8a77951 with Salvator-XS.
94	 *   Hence the SW31 setting must be changed like 2) below.
95	 *   1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF:
96	 *	- Connect GP6_3[01] to ADV7842.
97	 *   2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON:
98	 *	- Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power).
99	 *	- Connect GP6_{04,21} to ADV7842.
100	 */
101	usb2_ch3_pins: usb2_ch3 {
102		groups = "usb2_ch3";
103		function = "usb2_ch3";
104	};
105};
106
107/* SW12-7 must be set 'Off' (MD12 set to 1) which is not the default! */
108&sata {
109	status = "okay";
110};
111
112&usb2_phy2 {
113	pinctrl-0 = <&usb2_pins>;
114	pinctrl-names = "default";
115
116	status = "okay";
117};
118
119&usb2_phy3 {
120	pinctrl-0 = <&usb2_ch3_pins>;
121	pinctrl-names = "default";
122
123	status = "okay";
124};
125