xref: /openbmc/u-boot/arch/arm/dts/r8a7795-salvator-x.dts (revision 2e2a2a5d4f0c2e2642326d9000ce1f1553632e6a)
183d290c5STom Rini// SPDX-License-Identifier: GPL-2.0
24157c472SMarek Vasut/*
3*cbff9f80SMarek Vasut * Device Tree Source for the Salvator-X board with R-Car H3 ES2.0
44157c472SMarek Vasut *
54157c472SMarek Vasut * Copyright (C) 2015 Renesas Electronics Corp.
64157c472SMarek Vasut */
74157c472SMarek Vasut
84157c472SMarek Vasut/dts-v1/;
94157c472SMarek Vasut#include "r8a7795.dtsi"
1037a79081SMarek Vasut#include "salvator-x.dtsi"
114157c472SMarek Vasut
124157c472SMarek Vasut/ {
1337a79081SMarek Vasut	model = "Renesas Salvator-X board based on r8a7795 ES2.0+";
144157c472SMarek Vasut	compatible = "renesas,salvator-x", "renesas,r8a7795";
154157c472SMarek Vasut
164157c472SMarek Vasut	memory@48000000 {
174157c472SMarek Vasut		device_type = "memory";
184157c472SMarek Vasut		/* first 128MB is reserved for secure area. */
194157c472SMarek Vasut		reg = <0x0 0x48000000 0x0 0x38000000>;
204157c472SMarek Vasut	};
214157c472SMarek Vasut
2237a79081SMarek Vasut	memory@500000000 {
2337a79081SMarek Vasut		device_type = "memory";
2437a79081SMarek Vasut		reg = <0x5 0x00000000 0x0 0x40000000>;
254157c472SMarek Vasut	};
264157c472SMarek Vasut
2737a79081SMarek Vasut	memory@600000000 {
2837a79081SMarek Vasut		device_type = "memory";
2937a79081SMarek Vasut		reg = <0x6 0x00000000 0x0 0x40000000>;
304157c472SMarek Vasut	};
314157c472SMarek Vasut
3237a79081SMarek Vasut	memory@700000000 {
3337a79081SMarek Vasut		device_type = "memory";
3437a79081SMarek Vasut		reg = <0x7 0x00000000 0x0 0x40000000>;
354157c472SMarek Vasut	};
364157c472SMarek Vasut};
374157c472SMarek Vasut
384157c472SMarek Vasut&du {
3937a79081SMarek Vasut	clocks = <&cpg CPG_MOD 724>,
4037a79081SMarek Vasut		 <&cpg CPG_MOD 723>,
4137a79081SMarek Vasut		 <&cpg CPG_MOD 722>,
4237a79081SMarek Vasut		 <&cpg CPG_MOD 721>,
4337a79081SMarek Vasut		 <&cpg CPG_MOD 727>,
4437a79081SMarek Vasut		 <&versaclock5 1>,
4537a79081SMarek Vasut		 <&x21_clk>,
4637a79081SMarek Vasut		 <&x22_clk>,
4737a79081SMarek Vasut		 <&versaclock5 2>;
4837a79081SMarek Vasut	clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0",
4937a79081SMarek Vasut		      "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
5037a79081SMarek Vasut};
5137a79081SMarek Vasut
5237a79081SMarek Vasut&ehci2 {
5337a79081SMarek Vasut	status = "okay";
5437a79081SMarek Vasut};
5537a79081SMarek Vasut
56*cbff9f80SMarek Vasut&sound_card {
57*cbff9f80SMarek Vasut	dais = <&rsnd_port0	/* ak4613 */
58*cbff9f80SMarek Vasut		&rsnd_port1	/* HDMI0  */
59*cbff9f80SMarek Vasut		&rsnd_port2>;	/* HDMI1  */
60*cbff9f80SMarek Vasut};
61*cbff9f80SMarek Vasut
6237a79081SMarek Vasut&hdmi0 {
634157c472SMarek Vasut	status = "okay";
644157c472SMarek Vasut
654157c472SMarek Vasut	ports {
6637a79081SMarek Vasut		port@1 {
6737a79081SMarek Vasut			reg = <1>;
6837a79081SMarek Vasut			rcar_dw_hdmi0_out: endpoint {
6937a79081SMarek Vasut				remote-endpoint = <&hdmi0_con>;
704157c472SMarek Vasut			};
714157c472SMarek Vasut		};
72*cbff9f80SMarek Vasut		port@2 {
73*cbff9f80SMarek Vasut			reg = <2>;
74*cbff9f80SMarek Vasut			dw_hdmi0_snd_in: endpoint {
75*cbff9f80SMarek Vasut				remote-endpoint = <&rsnd_endpoint1>;
76*cbff9f80SMarek Vasut			};
77*cbff9f80SMarek Vasut		};
784157c472SMarek Vasut	};
794157c472SMarek Vasut};
804157c472SMarek Vasut
8137a79081SMarek Vasut&hdmi0_con {
8237a79081SMarek Vasut	remote-endpoint = <&rcar_dw_hdmi0_out>;
834157c472SMarek Vasut};
844157c472SMarek Vasut
8537a79081SMarek Vasut&hdmi1 {
8637a79081SMarek Vasut	status = "okay";
8737a79081SMarek Vasut
8837a79081SMarek Vasut	ports {
8937a79081SMarek Vasut		port@1 {
9037a79081SMarek Vasut			reg = <1>;
9137a79081SMarek Vasut			rcar_dw_hdmi1_out: endpoint {
9237a79081SMarek Vasut				remote-endpoint = <&hdmi1_con>;
9337a79081SMarek Vasut			};
9437a79081SMarek Vasut		};
95*cbff9f80SMarek Vasut		port@2 {
96*cbff9f80SMarek Vasut			reg = <2>;
97*cbff9f80SMarek Vasut			dw_hdmi1_snd_in: endpoint {
98*cbff9f80SMarek Vasut				remote-endpoint = <&rsnd_endpoint2>;
99*cbff9f80SMarek Vasut			};
100*cbff9f80SMarek Vasut		};
10137a79081SMarek Vasut	};
10237a79081SMarek Vasut};
10337a79081SMarek Vasut
10437a79081SMarek Vasut&hdmi1_con {
10537a79081SMarek Vasut	remote-endpoint = <&rcar_dw_hdmi1_out>;
10637a79081SMarek Vasut};
10737a79081SMarek Vasut
10837a79081SMarek Vasut&ohci2 {
10937a79081SMarek Vasut	status = "okay";
1104157c472SMarek Vasut};
1114157c472SMarek Vasut
112*cbff9f80SMarek Vasut&rcar_sound {
113*cbff9f80SMarek Vasut	ports {
114*cbff9f80SMarek Vasut		/* rsnd_port0 is on salvator-common */
115*cbff9f80SMarek Vasut		rsnd_port1: port@1 {
116*cbff9f80SMarek Vasut			rsnd_endpoint1: endpoint {
117*cbff9f80SMarek Vasut				remote-endpoint = <&dw_hdmi0_snd_in>;
118*cbff9f80SMarek Vasut
119*cbff9f80SMarek Vasut				dai-format = "i2s";
120*cbff9f80SMarek Vasut				bitclock-master = <&rsnd_endpoint1>;
121*cbff9f80SMarek Vasut				frame-master = <&rsnd_endpoint1>;
122*cbff9f80SMarek Vasut
123*cbff9f80SMarek Vasut				playback = <&ssi2>;
124*cbff9f80SMarek Vasut			};
125*cbff9f80SMarek Vasut		};
126*cbff9f80SMarek Vasut		rsnd_port2: port@2 {
127*cbff9f80SMarek Vasut			rsnd_endpoint2: endpoint {
128*cbff9f80SMarek Vasut				remote-endpoint = <&dw_hdmi1_snd_in>;
129*cbff9f80SMarek Vasut
130*cbff9f80SMarek Vasut				dai-format = "i2s";
131*cbff9f80SMarek Vasut				bitclock-master = <&rsnd_endpoint2>;
132*cbff9f80SMarek Vasut				frame-master = <&rsnd_endpoint2>;
133*cbff9f80SMarek Vasut
134*cbff9f80SMarek Vasut				playback = <&ssi3>;
135*cbff9f80SMarek Vasut			};
136*cbff9f80SMarek Vasut		};
137*cbff9f80SMarek Vasut	};
138*cbff9f80SMarek Vasut};
139*cbff9f80SMarek Vasut
1404157c472SMarek Vasut&pfc {
1414157c472SMarek Vasut	usb2_pins: usb2 {
1424157c472SMarek Vasut		groups = "usb2";
1434157c472SMarek Vasut		function = "usb2";
1444157c472SMarek Vasut	};
1454157c472SMarek Vasut};
1464157c472SMarek Vasut
1474157c472SMarek Vasut&sata {
1484157c472SMarek Vasut	status = "okay";
1494157c472SMarek Vasut};
1504157c472SMarek Vasut
1514157c472SMarek Vasut&usb2_phy2 {
1524157c472SMarek Vasut	pinctrl-0 = <&usb2_pins>;
1534157c472SMarek Vasut	pinctrl-names = "default";
1544157c472SMarek Vasut
1554157c472SMarek Vasut	status = "okay";
1564157c472SMarek Vasut};
157