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 "r8a7795.dtsi"
10 #include "salvator-xs.dtsi"
13 model = "Renesas Salvator-X 2nd version board based on r8a7795 ES2.0+";
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 dais = <&rsnd_port0 /* ak4613 */
67 &rsnd_port1 /* HDMI0 */
68 &rsnd_port2>; /* HDMI1 */
77 rcar_dw_hdmi0_out: endpoint {
78 remote-endpoint = <&hdmi0_con>;
83 dw_hdmi0_snd_in: endpoint {
84 remote-endpoint = <&rsnd_endpoint1>;
91 remote-endpoint = <&rcar_dw_hdmi0_out>;
100 rcar_dw_hdmi1_out: endpoint {
101 remote-endpoint = <&hdmi1_con>;
106 dw_hdmi1_snd_in: endpoint {
107 remote-endpoint = <&rsnd_endpoint2>;
114 remote-endpoint = <&rcar_dw_hdmi1_out>;
128 /* rsnd_port0 is on salvator-common */
131 rsnd_endpoint1: endpoint {
132 remote-endpoint = <&dw_hdmi0_snd_in>;
135 bitclock-master = <&rsnd_endpoint1>;
136 frame-master = <&rsnd_endpoint1>;
143 rsnd_endpoint2: endpoint {
144 remote-endpoint = <&dw_hdmi1_snd_in>;
147 bitclock-master = <&rsnd_endpoint2>;
148 frame-master = <&rsnd_endpoint2>;
159 gpios = <7 GPIO_ACTIVE_HIGH>;
160 output-low; /* enable SATA by default */
161 line-name = "PCIE/SATA switch";
172 * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins
173 * (when SW31 is the default setting on Salvator-XS).
174 * - If SW31 is the default setting, you cannot use USB2.0 ch3 on
175 * r8a7795 with Salvator-XS.
176 * Hence the SW31 setting must be changed like 2) below.
177 * 1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF:
178 * - Connect GP6_3[01] to ADV7842.
179 * 2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON:
180 * - Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power).
181 * - Connect GP6_{04,21} to ADV7842.
183 usb2_ch3_pins: usb2_ch3 {
185 function = "usb2_ch3";
189 /* SW12-7 must be set 'Off' (MD12 set to 1) which is not the default! */
195 pinctrl-0 = <&usb2_pins>;
196 pinctrl-names = "default";
202 pinctrl-0 = <&usb2_ch3_pins>;
203 pinctrl-names = "default";