1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Salvator-X 2nd version board with R-Car H3 ES2.0+
5 * Copyright (C) 2015-2017 Renesas Electronics Corp.
9 #include "r8a77951.dtsi"
10 #include "salvator-xs.dtsi"
13 model = "Renesas Salvator-X 2nd version board based on r8a77951";
14 compatible = "renesas,salvator-xs", "renesas,r8a7795";
17 device_type = "memory";
18 /* first 128MB is reserved for secure area. */
19 reg = <0x0 0x48000000 0x0 0x38000000>;
23 device_type = "memory";
24 reg = <0x5 0x00000000 0x0 0x40000000>;
28 device_type = "memory";
29 reg = <0x6 0x00000000 0x0 0x40000000>;
33 device_type = "memory";
34 reg = <0x7 0x00000000 0x0 0x40000000>;
39 clocks = <&cpg CPG_MOD 724>,
47 clock-names = "du.0", "du.1", "du.2", "du.3",
48 "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
66 rcar_dw_hdmi0_out: endpoint {
67 remote-endpoint = <&hdmi0_con>;
72 dw_hdmi0_snd_in: endpoint {
73 remote-endpoint = <&rsnd_endpoint1>;
80 remote-endpoint = <&rcar_dw_hdmi0_out>;
89 rcar_dw_hdmi1_out: endpoint {
90 remote-endpoint = <&hdmi1_con>;
95 dw_hdmi1_snd_in: endpoint {
96 remote-endpoint = <&rsnd_endpoint2>;
103 remote-endpoint = <&rcar_dw_hdmi1_out>;
121 pcie-sata-switch-hog {
123 gpios = <7 GPIO_ACTIVE_HIGH>;
124 output-low; /* enable SATA by default */
125 line-name = "PCIE/SATA switch";
136 * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins
137 * (when SW31 is the default setting on Salvator-XS).
138 * - If SW31 is the default setting, you cannot use USB2.0 ch3 on
139 * r8a77951 with Salvator-XS.
140 * Hence the SW31 setting must be changed like 2) below.
141 * 1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF:
142 * - Connect GP6_3[01] to ADV7842.
143 * 2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON:
144 * - Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power).
145 * - Connect GP6_{04,21} to ADV7842.
147 usb2_ch3_pins: usb2_ch3 {
149 function = "usb2_ch3";
155 /* rsnd_port0 is on salvator-common */
158 rsnd_endpoint1: endpoint {
159 remote-endpoint = <&dw_hdmi0_snd_in>;
162 bitclock-master = <&rsnd_endpoint1>;
163 frame-master = <&rsnd_endpoint1>;
170 rsnd_endpoint2: endpoint {
171 remote-endpoint = <&dw_hdmi1_snd_in>;
174 bitclock-master = <&rsnd_endpoint2>;
175 frame-master = <&rsnd_endpoint2>;
183 /* SW12-7 must be set 'Off' (MD12 set to 1) which is not the default! */
189 dais = <&rsnd_port0 /* ak4613 */
190 &rsnd_port1 /* HDMI0 */
191 &rsnd_port2>; /* HDMI1 */
195 pinctrl-0 = <&usb2_pins>;
196 pinctrl-names = "default";
202 pinctrl-0 = <&usb2_ch3_pins>;
203 pinctrl-names = "default";