blob: 052d72acc862b83c659f0056deeb9fe720d875a6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasutb938f382017-07-21 23:16:59 +02002/*
Marek Vasutab9fbe92018-12-03 21:43:05 +01003 * Device Tree Source for the Salvator-X board with R-Car M3-W
Marek Vasutb938f382017-07-21 23:16:59 +02004 *
5 * Copyright (C) 2016 Renesas Electronics Corp.
Marek Vasutb938f382017-07-21 23:16:59 +02006 */
7
8/dts-v1/;
9#include "r8a7796.dtsi"
Marek Vasut36f83d92017-09-12 23:01:51 +020010#include "salvator-x.dtsi"
Marek Vasutb938f382017-07-21 23:16:59 +020011
12/ {
13 model = "Renesas Salvator-X board based on r8a7796";
14 compatible = "renesas,salvator-x", "renesas,r8a7796";
15
Marek Vasutb938f382017-07-21 23:16:59 +020016 memory@48000000 {
17 device_type = "memory";
18 /* first 128MB is reserved for secure area. */
19 reg = <0x0 0x48000000 0x0 0x78000000>;
20 };
21
22 memory@600000000 {
23 device_type = "memory";
24 reg = <0x6 0x00000000 0x0 0x80000000>;
25 };
Marek Vasutb938f382017-07-21 23:16:59 +020026};
Marek Vasut07efb452017-11-29 04:27:36 +010027
28&du {
29 clocks = <&cpg CPG_MOD 724>,
30 <&cpg CPG_MOD 723>,
31 <&cpg CPG_MOD 722>,
32 <&cpg CPG_MOD 727>,
33 <&versaclock5 1>,
34 <&x21_clk>,
35 <&versaclock5 2>;
36 clock-names = "du.0", "du.1", "du.2", "lvds.0",
37 "dclkin.0", "dclkin.1", "dclkin.2";
38};
39
Marek Vasutab9fbe92018-12-03 21:43:05 +010040&sound_card {
41 dais = <&rsnd_port0 /* ak4613 */
42 &rsnd_port1>; /* HDMI0 */
43};
44
Marek Vasut07efb452017-11-29 04:27:36 +010045&hdmi0 {
46 status = "okay";
47
48 ports {
49 port@1 {
50 reg = <1>;
51 rcar_dw_hdmi0_out: endpoint {
52 remote-endpoint = <&hdmi0_con>;
53 };
54 };
Marek Vasutab9fbe92018-12-03 21:43:05 +010055 port@2 {
56 reg = <2>;
57 dw_hdmi0_snd_in: endpoint {
58 remote-endpoint = <&rsnd_endpoint1>;
59 };
60 };
Marek Vasut07efb452017-11-29 04:27:36 +010061 };
62};
63
64&hdmi0_con {
65 remote-endpoint = <&rcar_dw_hdmi0_out>;
66};
Marek Vasutab9fbe92018-12-03 21:43:05 +010067
68&rcar_sound {
69 ports {
70 /* rsnd_port0 is on salvator-common */
71 rsnd_port1: port@1 {
72 rsnd_endpoint1: endpoint {
73 remote-endpoint = <&dw_hdmi0_snd_in>;
74
75 dai-format = "i2s";
76 bitclock-master = <&rsnd_endpoint1>;
77 frame-master = <&rsnd_endpoint1>;
78
79 playback = <&ssi2>;
80 };
81 };
82 };
83};