Merge tag 'for-4.18-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / renesas / r8a7795-es1-salvator-x.dts
1 /*
2  * Device Tree Source for the Salvator-X board with R-Car H3 ES1.x
3  *
4  * Copyright (C) 2015 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 "r8a7795-es1.dtsi"
13 #include "salvator-x.dtsi"
14
15 / {
16         model = "Renesas Salvator-X board based on r8a7795 ES1.x";
17         compatible = "renesas,salvator-x", "renesas,r8a7795";
18
19         memory@48000000 {
20                 device_type = "memory";
21                 /* first 128MB is reserved for secure area. */
22                 reg = <0x0 0x48000000 0x0 0x38000000>;
23         };
24
25         memory@500000000 {
26                 device_type = "memory";
27                 reg = <0x5 0x00000000 0x0 0x40000000>;
28         };
29
30         memory@600000000 {
31                 device_type = "memory";
32                 reg = <0x6 0x00000000 0x0 0x40000000>;
33         };
34
35         memory@700000000 {
36                 device_type = "memory";
37                 reg = <0x7 0x00000000 0x0 0x40000000>;
38         };
39 };
40
41 &du {
42         clocks = <&cpg CPG_MOD 724>,
43                  <&cpg CPG_MOD 723>,
44                  <&cpg CPG_MOD 722>,
45                  <&cpg CPG_MOD 721>,
46                  <&cpg CPG_MOD 727>,
47                  <&versaclock5 1>,
48                  <&x21_clk>,
49                  <&x22_clk>,
50                  <&versaclock5 2>;
51         clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0",
52                       "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
53 };
54
55 &ehci2 {
56         status = "okay";
57 };
58
59 &sound_card {
60         dais = <&rsnd_port0     /* ak4613 */
61                 &rsnd_port1     /* HDMI0  */
62                 &rsnd_port2>;   /* HDMI1  */
63 };
64
65 &hdmi0 {
66         status = "okay";
67
68         ports {
69                 port@1 {
70                         reg = <1>;
71                         rcar_dw_hdmi0_out: endpoint {
72                                 remote-endpoint = <&hdmi0_con>;
73                         };
74                 };
75                 port@2 {
76                         reg = <2>;
77                         dw_hdmi0_snd_in: endpoint {
78                                 remote-endpoint = <&rsnd_endpoint1>;
79                         };
80                 };
81         };
82 };
83
84 &hdmi0_con {
85         remote-endpoint = <&rcar_dw_hdmi0_out>;
86 };
87
88 &hdmi1 {
89         status = "okay";
90
91         ports {
92                 port@1 {
93                         reg = <1>;
94                         rcar_dw_hdmi1_out: endpoint {
95                                 remote-endpoint = <&hdmi1_con>;
96                         };
97                 };
98                 port@2 {
99                         reg = <2>;
100                         dw_hdmi1_snd_in: endpoint {
101                                 remote-endpoint = <&rsnd_endpoint2>;
102                         };
103                 };
104         };
105 };
106
107 &hdmi1_con {
108         remote-endpoint = <&rcar_dw_hdmi1_out>;
109 };
110
111 &ohci2 {
112         status = "okay";
113 };
114
115 &rcar_sound {
116         ports {
117                 /* rsnd_port0 is on salvator-common */
118                 rsnd_port1: port@1 {
119                         rsnd_endpoint1: endpoint {
120                                 remote-endpoint = <&dw_hdmi0_snd_in>;
121
122                                 dai-format = "i2s";
123                                 bitclock-master = <&rsnd_endpoint1>;
124                                 frame-master = <&rsnd_endpoint1>;
125
126                                 playback = <&ssi2>;
127                         };
128                 };
129                 rsnd_port2: port@2 {
130                         rsnd_endpoint2: endpoint {
131                                 remote-endpoint = <&dw_hdmi1_snd_in>;
132
133                                 dai-format = "i2s";
134                                 bitclock-master = <&rsnd_endpoint2>;
135                                 frame-master = <&rsnd_endpoint2>;
136
137                                 playback = <&ssi3>;
138                         };
139                 };
140         };
141 };
142
143 &pfc {
144         usb2_pins: usb2 {
145                 groups = "usb2";
146                 function = "usb2";
147         };
148 };
149
150 &sata {
151         status = "okay";
152 };
153
154 &usb2_phy2 {
155         pinctrl-0 = <&usb2_pins>;
156         pinctrl-names = "default";
157
158         status = "okay";
159 };