blob: ecfbeafeaf367f15ef9c9d0f8d7c582e6a358da5 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasut4157c472017-07-21 23:16:59 +02002/*
Marek Vasutcbff9f82018-12-03 21:43:05 +01003 * Device Tree Source for the Salvator-X board with R-Car M3-W
Marek Vasut4157c472017-07-21 23:16:59 +02004 *
5 * Copyright (C) 2016 Renesas Electronics Corp.
Marek Vasut4157c472017-07-21 23:16:59 +02006 */
7
8/dts-v1/;
Marek Vasutc7d68122020-04-04 16:12:48 +02009#include "r8a77960.dtsi"
Marek Vasut37a79082017-09-12 23:01:51 +020010#include "salvator-x.dtsi"
Marek Vasut4157c472017-07-21 23:16:59 +020011
12/ {
Marek Vasutc7d68122020-04-04 16:12:48 +020013 model = "Renesas Salvator-X board based on r8a77960";
Marek Vasut4157c472017-07-21 23:16:59 +020014 compatible = "renesas,salvator-x", "renesas,r8a7796";
15
Marek Vasut4157c472017-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 Vasut4157c472017-07-21 23:16:59 +020026};
Marek Vasut62b2bb52017-11-29 04:27:36 +010027
28&du {
29 clocks = <&cpg CPG_MOD 724>,
30 <&cpg CPG_MOD 723>,
31 <&cpg CPG_MOD 722>,
Marek Vasut62b2bb52017-11-29 04:27:36 +010032 <&versaclock5 1>,
33 <&x21_clk>,
34 <&versaclock5 2>;
Marek Vasut317d13a2019-03-04 22:53:28 +010035 clock-names = "du.0", "du.1", "du.2",
Marek Vasut62b2bb52017-11-29 04:27:36 +010036 "dclkin.0", "dclkin.1", "dclkin.2";
37};
38
39&hdmi0 {
40 status = "okay";
41
42 ports {
43 port@1 {
44 reg = <1>;
45 rcar_dw_hdmi0_out: endpoint {
46 remote-endpoint = <&hdmi0_con>;
47 };
48 };
Marek Vasutcbff9f82018-12-03 21:43:05 +010049 port@2 {
50 reg = <2>;
51 dw_hdmi0_snd_in: endpoint {
52 remote-endpoint = <&rsnd_endpoint1>;
53 };
54 };
Marek Vasut62b2bb52017-11-29 04:27:36 +010055 };
56};
57
58&hdmi0_con {
59 remote-endpoint = <&rcar_dw_hdmi0_out>;
60};
Marek Vasutcbff9f82018-12-03 21:43:05 +010061
62&rcar_sound {
63 ports {
64 /* rsnd_port0 is on salvator-common */
65 rsnd_port1: port@1 {
Eugeniu Rosca89c00f02019-07-09 18:27:13 +020066 reg = <1>;
Marek Vasutcbff9f82018-12-03 21:43:05 +010067 rsnd_endpoint1: endpoint {
68 remote-endpoint = <&dw_hdmi0_snd_in>;
69
70 dai-format = "i2s";
71 bitclock-master = <&rsnd_endpoint1>;
72 frame-master = <&rsnd_endpoint1>;
73
74 playback = <&ssi2>;
75 };
76 };
77 };
78};
Marek Vasutc7d68122020-04-04 16:12:48 +020079
80&sound_card {
81 dais = <&rsnd_port0 /* ak4613 */
82 &rsnd_port1>; /* HDMI0 */
83};