]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm64/renesas/r8a7796-salvator-xs.dts
Import latest DTS files from Linux 4.18
[FreeBSD/FreeBSD.git] / src / arm64 / renesas / r8a7796-salvator-xs.dts
1 /*
2  * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-W
3  *
4  * Copyright (C) 2015-2017 Renesas Electronics Corp.
5  *
6  * This file is licensed under the terms of the GNU General Public License
7  * version 2.  This program is licensed "as is" without any warranty of any
8  * kind, whether express or implied.
9  */
10
11 /dts-v1/;
12 #include "r8a7796.dtsi"
13 #include "salvator-xs.dtsi"
14
15 / {
16         model = "Renesas Salvator-X 2nd version board based on r8a7796";
17         compatible = "renesas,salvator-xs", "renesas,r8a7796";
18
19         memory@48000000 {
20                 device_type = "memory";
21                 /* first 128MB is reserved for secure area. */
22                 reg = <0x0 0x48000000 0x0 0x78000000>;
23         };
24
25         memory@600000000 {
26                 device_type = "memory";
27                 reg = <0x6 0x00000000 0x0 0x80000000>;
28         };
29 };
30
31 &du {
32         clocks = <&cpg CPG_MOD 724>,
33                  <&cpg CPG_MOD 723>,
34                  <&cpg CPG_MOD 722>,
35                  <&cpg CPG_MOD 727>,
36                  <&versaclock6 1>,
37                  <&x21_clk>,
38                  <&versaclock6 2>;
39         clock-names = "du.0", "du.1", "du.2", "lvds.0",
40                       "dclkin.0", "dclkin.1", "dclkin.2";
41 };
42
43 &sound_card {
44         dais = <&rsnd_port0     /* ak4613 */
45                 &rsnd_port1>;   /* HDMI0  */
46 };
47
48 &hdmi0 {
49         status = "okay";
50
51         ports {
52                 port@1 {
53                         reg = <1>;
54                         rcar_dw_hdmi0_out: endpoint {
55                                 remote-endpoint = <&hdmi0_con>;
56                         };
57                 };
58                 port@2 {
59                         reg = <2>;
60                         dw_hdmi0_snd_in: endpoint {
61                                 remote-endpoint = <&rsnd_endpoint1>;
62                         };
63                 };
64         };
65 };
66
67 &hdmi0_con {
68         remote-endpoint = <&rcar_dw_hdmi0_out>;
69 };
70
71 &rcar_sound {
72         ports {
73                 /* rsnd_port0 is on salvator-common */
74                 rsnd_port1: port@1 {
75                         rsnd_endpoint1: endpoint {
76                                 remote-endpoint = <&dw_hdmi0_snd_in>;
77
78                                 dai-format = "i2s";
79                                 bitclock-master = <&rsnd_endpoint1>;
80                                 frame-master = <&rsnd_endpoint1>;
81
82                                 playback = <&ssi2>;
83                         };
84                 };
85         };
86 };