1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Salvator-X board with R-Car H3 ES2.0
4 *
5 * Copyright (C) 2015 Renesas Electronics Corp.
6 */
7
8/dts-v1/;
9#include "r8a77951.dtsi"
10#include "salvator-x.dtsi"
11
12/ {
13	model = "Renesas Salvator-X board based on r8a77951";
14	compatible = "renesas,salvator-x", "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		 <&versaclock5 1>,
44		 <&x21_clk>,
45		 <&x22_clk>,
46		 <&versaclock5 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&hdmi1 {
56	status = "okay";
57
58	ports {
59		port@1 {
60			reg = <1>;
61			rcar_dw_hdmi1_out: endpoint {
62				remote-endpoint = <&hdmi1_con>;
63			};
64		};
65		port@2 {
66			reg = <2>;
67			dw_hdmi1_snd_in: endpoint {
68				remote-endpoint = <&rsnd_endpoint2>;
69			};
70		};
71	};
72};
73
74&hdmi1_con {
75	remote-endpoint = <&rcar_dw_hdmi1_out>;
76};
77
78&ohci2 {
79	status = "okay";
80};
81
82&pfc {
83	usb2_pins: usb2 {
84		groups = "usb2";
85		function = "usb2";
86	};
87};
88
89&rcar_sound {
90	ports {
91		/* rsnd_port0/1 are described in salvator-common.dtsi */
92		rsnd_port2: port@2 {
93			reg = <2>;
94			rsnd_endpoint2: endpoint {
95				remote-endpoint = <&dw_hdmi1_snd_in>;
96
97				dai-format = "i2s";
98				bitclock-master = <&rsnd_endpoint2>;
99				frame-master = <&rsnd_endpoint2>;
100
101				playback = <&ssi3>;
102			};
103		};
104	};
105};
106
107&sata {
108	status = "okay";
109};
110
111&sound_card {
112	dais = <&rsnd_port0	/* ak4613 */
113		&rsnd_port1	/* HDMI0  */
114		&rsnd_port2>;	/* HDMI1  */
115};
116
117&usb2_phy2 {
118	pinctrl-0 = <&usb2_pins>;
119	pinctrl-names = "default";
120
121	status = "okay";
122};
123