arm64: dts: salvator-x: populate EXTALR
[deliverable/linux.git] / arch / arm64 / boot / dts / renesas / r8a7795-salvator-x.dts
CommitLineData
1950fab0
KM
1/*
2 * Device Tree Source for the Salvator-X board
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
672b7931
KM
11/*
12 * SSI-AK4613
13 *
14 * This command is required when Playback/Capture
15 *
16 * amixer set "DVC Out" 100%
17 * amixer set "DVC In" 100%
18 *
19 * You can use Mute
20 *
21 * amixer set "DVC Out Mute" on
22 * amixer set "DVC In Mute" on
23 *
24 * You can use Volume Ramp
25 *
26 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
27 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
28 * amixer set "DVC Out Ramp" on
29 * aplay xxx.wav &
30 * amixer set "DVC Out" 80% // Volume Down
31 * amixer set "DVC Out" 100% // Volume Up
32 */
33
1950fab0
KM
34/dts-v1/;
35#include "r8a7795.dtsi"
1c0e7b9a 36#include <dt-bindings/gpio/gpio.h>
1950fab0
KM
37
38/ {
39 model = "Renesas Salvator-X board based on r8a7795";
40 compatible = "renesas,salvator-x", "renesas,r8a7795";
41
42 aliases {
43 serial0 = &scif2;
44 serial1 = &scif1;
10ca6db7 45 ethernet0 = &avb;
1950fab0
KM
46 };
47
48 chosen {
b2407c56 49 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
1950fab0
KM
50 stdout-path = "serial0:115200n8";
51 };
52
53 memory@48000000 {
54 device_type = "memory";
55 /* first 128MB is reserved for secure area. */
56 reg = <0x0 0x48000000 0x0 0x38000000>;
57 };
994aadf0
KM
58
59 x12_clk: x12_clk {
60 compatible = "fixed-clock";
61 #clock-cells = <0>;
62 clock-frequency = <24576000>;
63 };
64
1c0e7b9a
AK
65 vcc_sdhi0: regulator@1 {
66 compatible = "regulator-fixed";
67
68 regulator-name = "SDHI0 Vcc";
69 regulator-min-microvolt = <3300000>;
70 regulator-max-microvolt = <3300000>;
71
72 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
73 enable-active-high;
74 };
75
76 vccq_sdhi0: regulator@2 {
77 compatible = "regulator-gpio";
78
79 regulator-name = "SDHI0 VccQ";
80 regulator-min-microvolt = <1800000>;
81 regulator-max-microvolt = <3300000>;
82
83 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
84 gpios-states = <1>;
85 states = <3300000 1
86 1800000 0>;
87 };
88
89 vcc_sdhi3: regulator@3 {
90 compatible = "regulator-fixed";
91
92 regulator-name = "SDHI3 Vcc";
93 regulator-min-microvolt = <3300000>;
94 regulator-max-microvolt = <3300000>;
95
96 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
97 enable-active-high;
98 };
99
100 vccq_sdhi3: regulator@4 {
101 compatible = "regulator-gpio";
102
103 regulator-name = "SDHI3 VccQ";
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <3300000>;
106
107 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
108 gpios-states = <1>;
109 states = <3300000 1
110 1800000 0>;
111 };
112
8a8f181d
KM
113 audio_clkout: audio_clkout {
114 /*
115 * This is same as <&rcar_sound 0>
116 * but needed to avoid cs2000/rcar_sound probe dead-lock
117 */
118 compatible = "fixed-clock";
119 #clock-cells = <0>;
120 clock-frequency = <11289600>;
121 };
122
994aadf0
KM
123 rsnd_ak4613: sound {
124 compatible = "simple-audio-card";
125
126 simple-audio-card,format = "left_j";
127 simple-audio-card,bitclock-master = <&sndcpu>;
128 simple-audio-card,frame-master = <&sndcpu>;
129
130 sndcpu: simple-audio-card,cpu {
131 sound-dai = <&rcar_sound>;
132 };
133
134 sndcodec: simple-audio-card,codec {
135 sound-dai = <&ak4613>;
136 };
137 };
1950fab0
KM
138};
139
140&extal_clk {
141 clock-frequency = <16666666>;
142};
143
de5a79f1
WS
144&extalr_clk {
145 clock-frequency = <32768>;
146};
147
1950fab0 148&pfc {
a3fc85e2
GU
149 pinctrl-0 = <&scif_clk_pins>;
150 pinctrl-names = "default";
151
1950fab0
KM
152 scif1_pins: scif1 {
153 renesas,groups = "scif1_data_a", "scif1_ctrl";
154 renesas,function = "scif1";
155 };
156 scif2_pins: scif2 {
157 renesas,groups = "scif2_data_a";
158 renesas,function = "scif2";
159 };
a3fc85e2
GU
160 scif_clk_pins: scif_clk {
161 renesas,groups = "scif_clk_a";
162 renesas,function = "scif_clk";
163 };
6fa501c5 164
637d801e
KM
165 i2c2_pins: i2c2 {
166 renesas,groups = "i2c2_a";
167 renesas,function = "i2c2";
168 };
169
6fa501c5
KM
170 avb_pins: avb {
171 renesas,groups = "avb_mdc";
172 renesas,function = "avb";
173 };
994aadf0 174
1c0e7b9a
AK
175 sdhi0_pins: sd0 {
176 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
177 renesas,function = "sdhi0";
178 };
179
180 sdhi3_pins: sd3 {
181 renesas,groups = "sdhi3_data4", "sdhi3_ctrl";
182 renesas,function = "sdhi3";
183 };
184
994aadf0
KM
185 sound_pins: sound {
186 renesas,groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
187 renesas,function = "ssi";
188 };
189
190 sound_clk_pins: sound_clk {
191 renesas,groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
192 "audio_clkout_a", "audio_clkout3_a";
193 renesas,function = "audio_clk";
194 };
e24250c0
YS
195
196 usb1_pins: usb1 {
197 renesas,groups = "usb1";
198 renesas,function = "usb1";
199 };
200
201 usb2_pins: usb2 {
202 renesas,groups = "usb2";
203 renesas,function = "usb2";
204 };
1950fab0
KM
205};
206
207&scif1 {
208 pinctrl-0 = <&scif1_pins>;
209 pinctrl-names = "default";
210
211 status = "okay";
212};
213
214&scif2 {
215 pinctrl-0 = <&scif2_pins>;
216 pinctrl-names = "default";
217
218 status = "okay";
219};
6fa501c5 220
a3fc85e2
GU
221&scif_clk {
222 clock-frequency = <14745600>;
223 status = "okay";
224};
225
637d801e
KM
226&i2c2 {
227 pinctrl-0 = <&i2c2_pins>;
228 pinctrl-names = "default";
229
230 status = "okay";
994aadf0
KM
231
232 clock-frequency = <100000>;
233
234 ak4613: codec@10 {
235 compatible = "asahi-kasei,ak4613";
236 #sound-dai-cells = <0>;
237 reg = <0x10>;
238 clocks = <&rcar_sound 3>;
40fbe14b
KM
239
240 asahi-kasei,in1-single-end;
241 asahi-kasei,in2-single-end;
242 asahi-kasei,out1-single-end;
243 asahi-kasei,out2-single-end;
244 asahi-kasei,out3-single-end;
245 asahi-kasei,out4-single-end;
246 asahi-kasei,out5-single-end;
247 asahi-kasei,out6-single-end;
994aadf0 248 };
8a8f181d
KM
249
250 cs2000: clk_multiplier@4f {
251 #clock-cells = <0>;
252 compatible = "cirrus,cs2000-cp";
253 reg = <0x4f>;
254 clocks = <&audio_clkout>, <&x12_clk>;
255 clock-names = "clk_in", "ref_clk";
256
257 assigned-clocks = <&cs2000>;
258 assigned-clock-rates = <24576000>; /* 1/1 divide */
259 };
994aadf0
KM
260};
261
262&rcar_sound {
263 pinctrl-0 = <&sound_pins &sound_clk_pins>;
264 pinctrl-names = "default";
265
266 /* Single DAI */
267 #sound-dai-cells = <0>;
268
269 /* audio_clkout0/1/2/3 */
270 #clock-cells = <1>;
271 clock-frequency = <11289600>;
272
273 status = "okay";
274
8a8f181d
KM
275 /* update <audio_clk_b> to <cs2000> */
276 clocks = <&cpg CPG_MOD 1005>,
277 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
278 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
279 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
280 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
281 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
282 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
283 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
284 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
285 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
286 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
287 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
288 <&audio_clk_a>, <&cs2000>,
289 <&audio_clk_c>,
290 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
291
994aadf0
KM
292 rcar_sound,dai {
293 dai0 {
672b7931
KM
294 playback = <&ssi0 &src0 &dvc0>;
295 capture = <&ssi1 &src1 &dvc1>;
994aadf0
KM
296 };
297 };
298};
299
52ee9fb3
KA
300&sata {
301 status = "okay";
302};
303
1c0e7b9a
AK
304&sdhi0 {
305 pinctrl-0 = <&sdhi0_pins>;
306 pinctrl-names = "default";
307
308 vmmc-supply = <&vcc_sdhi0>;
309 vqmmc-supply = <&vccq_sdhi0>;
310 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
311 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
312 bus-width = <4>;
313 status = "okay";
314};
315
316&sdhi3 {
317 pinctrl-0 = <&sdhi3_pins>;
318 pinctrl-names = "default";
319
320 vmmc-supply = <&vcc_sdhi3>;
321 vqmmc-supply = <&vccq_sdhi3>;
322 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
323 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
324 bus-width = <4>;
325 status = "okay";
326};
327
994aadf0 328&ssi1 {
994aadf0
KM
329 shared-pin;
330};
331
332&audio_clk_a {
333 clock-frequency = <22579200>;
637d801e
KM
334};
335
6fa501c5
KM
336&avb {
337 pinctrl-0 = <&avb_pins>;
338 pinctrl-names = "default";
339 renesas,no-ether-link;
340 phy-handle = <&phy0>;
341 status = "okay";
342
343 phy0: ethernet-phy@0 {
344 rxc-skew-ps = <900>;
345 rxdv-skew-ps = <0>;
346 rxd0-skew-ps = <0>;
347 rxd1-skew-ps = <0>;
348 rxd2-skew-ps = <0>;
349 rxd3-skew-ps = <0>;
350 txc-skew-ps = <900>;
351 txen-skew-ps = <0>;
352 txd0-skew-ps = <0>;
353 txd1-skew-ps = <0>;
354 txd2-skew-ps = <0>;
355 txd3-skew-ps = <0>;
356 reg = <0>;
357 interrupt-parent = <&gpio2>;
358 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
359 };
360};
856ea9ed
YS
361
362&xhci0 {
363 status = "okay";
364};
e24250c0
YS
365
366&usb2_phy1 {
367 pinctrl-0 = <&usb1_pins>;
368 pinctrl-names = "default";
369
370 status = "okay";
371};
372
373&usb2_phy2 {
374 pinctrl-0 = <&usb2_pins>;
375 pinctrl-names = "default";
376
377 status = "okay";
378};
474efcae
YS
379
380&ehci1 {
381 status = "okay";
382};
383
384&ehci2 {
385 status = "okay";
386};
387
388&ohci1 {
389 status = "okay";
390};
391
392&ohci2 {
393 status = "okay";
394};
bbd27304
PE
395
396&pcie_bus_clk {
397 status = "okay";
398};
399
400&pciec0 {
401 status = "okay";
402};
403
404&pciec1 {
405 status = "okay";
406};
This page took 0.06879 seconds and 5 git commands to generate.