]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm64/renesas/r8a7795-salvator-xs.dts
Add compiler-rt's libFuzzer, not connected to buildworld yet.
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm64 / renesas / r8a7795-salvator-xs.dts
1 /*
2  * Device Tree Source for the Salvator-X 2nd version board with R-Car H3 ES2.0
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 "r8a7795.dtsi"
13 #include "salvator-xs.dtsi"
14
15 / {
16         model = "Renesas Salvator-X 2nd version board based on r8a7795 ES2.0+";
17         compatible = "renesas,salvator-xs", "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                  <&versaclock6 1>,
48                  <&x21_clk>,
49                  <&x22_clk>,
50                  <&versaclock6 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 &ehci3 {
60         dr_mode = "otg";
61         status = "okay";
62 };
63
64 &hsusb3 {
65         dr_mode = "otg";
66         status = "okay";
67 };
68
69 &sound_card {
70         dais = <&rsnd_port0     /* ak4613 */
71                 &rsnd_port1     /* HDMI0  */
72                 &rsnd_port2>;   /* HDMI1  */
73 };
74
75 &hdmi0 {
76         status = "okay";
77
78         ports {
79                 port@1 {
80                         reg = <1>;
81                         rcar_dw_hdmi0_out: endpoint {
82                                 remote-endpoint = <&hdmi0_con>;
83                         };
84                 };
85                 port@2 {
86                         reg = <2>;
87                         dw_hdmi0_snd_in: endpoint {
88                                 remote-endpoint = <&rsnd_endpoint1>;
89                         };
90                 };
91         };
92 };
93
94 &hdmi0_con {
95         remote-endpoint = <&rcar_dw_hdmi0_out>;
96 };
97
98 &hdmi1 {
99         status = "okay";
100
101         ports {
102                 port@1 {
103                         reg = <1>;
104                         rcar_dw_hdmi1_out: endpoint {
105                                 remote-endpoint = <&hdmi1_con>;
106                         };
107                 };
108                 port@2 {
109                         reg = <2>;
110                         dw_hdmi1_snd_in: endpoint {
111                                 remote-endpoint = <&rsnd_endpoint2>;
112                         };
113                 };
114         };
115 };
116
117 &hdmi1_con {
118         remote-endpoint = <&rcar_dw_hdmi1_out>;
119 };
120
121 &ohci2 {
122         status = "okay";
123 };
124
125 &ohci3 {
126         dr_mode = "otg";
127         status = "okay";
128 };
129
130 &rcar_sound {
131         ports {
132                 /* rsnd_port0 is on salvator-common */
133                 rsnd_port1: port@1 {
134                         rsnd_endpoint1: endpoint {
135                                 remote-endpoint = <&dw_hdmi0_snd_in>;
136
137                                 dai-format = "i2s";
138                                 bitclock-master = <&rsnd_endpoint1>;
139                                 frame-master = <&rsnd_endpoint1>;
140
141                                 playback = <&ssi2>;
142                         };
143                 };
144                 rsnd_port2: port@2 {
145                         rsnd_endpoint2: endpoint {
146                                 remote-endpoint = <&dw_hdmi1_snd_in>;
147
148                                 dai-format = "i2s";
149                                 bitclock-master = <&rsnd_endpoint2>;
150                                 frame-master = <&rsnd_endpoint2>;
151
152                                 playback = <&ssi3>;
153                         };
154                 };
155         };
156 };
157
158 &pfc {
159         usb2_pins: usb2 {
160                 groups = "usb2";
161                 function = "usb2";
162         };
163
164         /*
165          * - On Salvator-X[S], GP6_3[01] are connected to ADV7482 as irq pins
166          *   (when SW31 is the default setting on Salvator-XS).
167          * - If SW31 is the default setting, you cannot use USB2.0 ch3 on
168          *   r8a7795 with Salvator-XS.
169          *   Hence the SW31 setting must be changed like 2) below.
170          *   1) Default setting of SW31: ON-ON-OFF-OFF-OFF-OFF:
171          *      - Connect GP6_3[01] to ADV7842.
172          *   2) Changed setting of SW31: OFF-OFF-ON-ON-ON-ON:
173          *      - Connect GP6_3[01] to BD082065 (USB2.0 ch3's host power).
174          *      - Connect GP6_{04,21} to ADV7842.
175          */
176         usb2_ch3_pins: usb2_ch3 {
177                 groups = "usb2_ch3";
178                 function = "usb2_ch3";
179         };
180 };
181
182 &usb2_phy2 {
183         pinctrl-0 = <&usb2_pins>;
184         pinctrl-names = "default";
185
186         status = "okay";
187 };
188
189 &usb2_phy3 {
190         pinctrl-0 = <&usb2_ch3_pins>;
191         pinctrl-names = "default";
192
193         status = "okay";
194 };