xref: /linux/arch/arm64/boot/dts/renesas/r8a77960-salvator-xs.dts (revision 83772e1b44231e2965d9375515e664fc3bc1247c)
1*83772e1bSGeert Uytterhoeven// SPDX-License-Identifier: GPL-2.0
2*83772e1bSGeert Uytterhoeven/*
3*83772e1bSGeert Uytterhoeven * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-W
4*83772e1bSGeert Uytterhoeven *
5*83772e1bSGeert Uytterhoeven * Copyright (C) 2015-2017 Renesas Electronics Corp.
6*83772e1bSGeert Uytterhoeven */
7*83772e1bSGeert Uytterhoeven
8*83772e1bSGeert Uytterhoeven/dts-v1/;
9*83772e1bSGeert Uytterhoeven#include "r8a77960.dtsi"
10*83772e1bSGeert Uytterhoeven#include "salvator-xs.dtsi"
11*83772e1bSGeert Uytterhoeven
12*83772e1bSGeert Uytterhoeven/ {
13*83772e1bSGeert Uytterhoeven	model = "Renesas Salvator-X 2nd version board based on r8a77960";
14*83772e1bSGeert Uytterhoeven	compatible = "renesas,salvator-xs", "renesas,r8a7796";
15*83772e1bSGeert Uytterhoeven
16*83772e1bSGeert Uytterhoeven	memory@48000000 {
17*83772e1bSGeert Uytterhoeven		device_type = "memory";
18*83772e1bSGeert Uytterhoeven		/* first 128MB is reserved for secure area. */
19*83772e1bSGeert Uytterhoeven		reg = <0x0 0x48000000 0x0 0x78000000>;
20*83772e1bSGeert Uytterhoeven	};
21*83772e1bSGeert Uytterhoeven
22*83772e1bSGeert Uytterhoeven	memory@600000000 {
23*83772e1bSGeert Uytterhoeven		device_type = "memory";
24*83772e1bSGeert Uytterhoeven		reg = <0x6 0x00000000 0x0 0x80000000>;
25*83772e1bSGeert Uytterhoeven	};
26*83772e1bSGeert Uytterhoeven};
27*83772e1bSGeert Uytterhoeven
28*83772e1bSGeert Uytterhoeven&du {
29*83772e1bSGeert Uytterhoeven	clocks = <&cpg CPG_MOD 724>,
30*83772e1bSGeert Uytterhoeven		 <&cpg CPG_MOD 723>,
31*83772e1bSGeert Uytterhoeven		 <&cpg CPG_MOD 722>,
32*83772e1bSGeert Uytterhoeven		 <&versaclock6 1>,
33*83772e1bSGeert Uytterhoeven		 <&x21_clk>,
34*83772e1bSGeert Uytterhoeven		 <&versaclock6 2>;
35*83772e1bSGeert Uytterhoeven	clock-names = "du.0", "du.1", "du.2",
36*83772e1bSGeert Uytterhoeven		      "dclkin.0", "dclkin.1", "dclkin.2";
37*83772e1bSGeert Uytterhoeven};
38*83772e1bSGeert Uytterhoeven
39*83772e1bSGeert Uytterhoeven&hdmi0 {
40*83772e1bSGeert Uytterhoeven	status = "okay";
41*83772e1bSGeert Uytterhoeven
42*83772e1bSGeert Uytterhoeven	ports {
43*83772e1bSGeert Uytterhoeven		port@1 {
44*83772e1bSGeert Uytterhoeven			reg = <1>;
45*83772e1bSGeert Uytterhoeven			rcar_dw_hdmi0_out: endpoint {
46*83772e1bSGeert Uytterhoeven				remote-endpoint = <&hdmi0_con>;
47*83772e1bSGeert Uytterhoeven			};
48*83772e1bSGeert Uytterhoeven		};
49*83772e1bSGeert Uytterhoeven		port@2 {
50*83772e1bSGeert Uytterhoeven			reg = <2>;
51*83772e1bSGeert Uytterhoeven			dw_hdmi0_snd_in: endpoint {
52*83772e1bSGeert Uytterhoeven				remote-endpoint = <&rsnd_endpoint1>;
53*83772e1bSGeert Uytterhoeven			};
54*83772e1bSGeert Uytterhoeven		};
55*83772e1bSGeert Uytterhoeven	};
56*83772e1bSGeert Uytterhoeven};
57*83772e1bSGeert Uytterhoeven
58*83772e1bSGeert Uytterhoeven&hdmi0_con {
59*83772e1bSGeert Uytterhoeven	remote-endpoint = <&rcar_dw_hdmi0_out>;
60*83772e1bSGeert Uytterhoeven};
61*83772e1bSGeert Uytterhoeven
62*83772e1bSGeert Uytterhoeven&rcar_sound {
63*83772e1bSGeert Uytterhoeven	ports {
64*83772e1bSGeert Uytterhoeven		/* rsnd_port0 is on salvator-common */
65*83772e1bSGeert Uytterhoeven		rsnd_port1: port@1 {
66*83772e1bSGeert Uytterhoeven			reg = <1>;
67*83772e1bSGeert Uytterhoeven			rsnd_endpoint1: endpoint {
68*83772e1bSGeert Uytterhoeven				remote-endpoint = <&dw_hdmi0_snd_in>;
69*83772e1bSGeert Uytterhoeven
70*83772e1bSGeert Uytterhoeven				dai-format = "i2s";
71*83772e1bSGeert Uytterhoeven				bitclock-master = <&rsnd_endpoint1>;
72*83772e1bSGeert Uytterhoeven				frame-master = <&rsnd_endpoint1>;
73*83772e1bSGeert Uytterhoeven
74*83772e1bSGeert Uytterhoeven				playback = <&ssi2>;
75*83772e1bSGeert Uytterhoeven			};
76*83772e1bSGeert Uytterhoeven		};
77*83772e1bSGeert Uytterhoeven	};
78*83772e1bSGeert Uytterhoeven};
79*83772e1bSGeert Uytterhoeven
80*83772e1bSGeert Uytterhoeven&sound_card {
81*83772e1bSGeert Uytterhoeven	dais = <&rsnd_port0	/* ak4613 */
82*83772e1bSGeert Uytterhoeven		&rsnd_port1>;	/* HDMI0  */
83*83772e1bSGeert Uytterhoeven};
84