Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / arm / dts / r8a77965-salvator-x.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the Salvator-X board with R-Car M3-N
4  *
5  * Copyright (C) 2018 Jacopo Mondi <jacopo+renesas@jmondi.org>
6  */
7
8 /dts-v1/;
9 #include "r8a77965.dtsi"
10 #include "salvator-x.dtsi"
11
12 / {
13         model = "Renesas Salvator-X board based on r8a77965";
14         compatible = "renesas,salvator-x", "renesas,r8a77965";
15
16         memory@48000000 {
17                 device_type = "memory";
18                 /* first 128MB is reserved for secure area. */
19                 reg = <0x0 0x48000000 0x0 0x78000000>;
20         };
21 };
22
23 &du {
24         clocks = <&cpg CPG_MOD 724>,
25                  <&cpg CPG_MOD 723>,
26                  <&cpg CPG_MOD 721>,
27                  <&versaclock5 1>,
28                  <&x21_clk>,
29                  <&versaclock5 2>;
30         clock-names = "du.0", "du.1", "du.3",
31                       "dclkin.0", "dclkin.1", "dclkin.3";
32 };
33
34 &hdmi0 {
35         status = "okay";
36
37         ports {
38                 port@1 {
39                         reg = <1>;
40                         rcar_dw_hdmi0_out: endpoint {
41                                 remote-endpoint = <&hdmi0_con>;
42                         };
43                 };
44                 port@2 {
45                         reg = <2>;
46                         dw_hdmi0_snd_in: endpoint {
47                                 remote-endpoint = <&rsnd_endpoint1>;
48                         };
49                 };
50         };
51 };
52
53 &hdmi0_con {
54         remote-endpoint = <&rcar_dw_hdmi0_out>;
55 };
56
57 &rcar_sound {
58         ports {
59                 rsnd_port1: port@1 {
60                         reg = <1>;
61                         rsnd_endpoint1: endpoint {
62                                 remote-endpoint = <&dw_hdmi0_snd_in>;
63
64                                 dai-format = "i2s";
65                                 bitclock-master = <&rsnd_endpoint1>;
66                                 frame-master = <&rsnd_endpoint1>;
67
68                                 playback = <&ssi2>;
69                         };
70                 };
71         };
72 };
73
74 &sound_card {
75         dais = <&rsnd_port0     /* ak4613 */
76                 &rsnd_port1>;   /* HDMI0  */
77 };