1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the R-Car Gen3 ULCB board
5 * Copyright (C) 2016 Renesas Electronics Corp.
6 * Copyright (C) 2016 Cogent Embedded, Inc.
11 * aplay -D plughw:0,0 xxx.wav
12 * arecord -D plughw:0,0 xxx.wav
14 * aplay -D plughw:0,1 xxx.wav
17 #include <dt-bindings/gpio/gpio.h>
18 #include <dt-bindings/input/input.h>
21 model = "Renesas R-Car Gen3 ULCB board";
31 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
32 stdout-path = "serial0:115200n8";
35 audio_clkout: audio-clkout {
37 * This is same as <&rcar_sound 0>
38 * but needed to avoid cs2000/rcar_sound probe dead-lock
40 compatible = "fixed-clock";
42 clock-frequency = <12288000>;
46 compatible = "hdmi-connector";
56 compatible = "gpio-keys";
62 debounce-interval = <20>;
63 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-leds";
71 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
74 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
78 reg_1p8v: regulator0 {
79 compatible = "regulator-fixed";
80 regulator-name = "fixed-1.8V";
81 regulator-min-microvolt = <1800000>;
82 regulator-max-microvolt = <1800000>;
87 reg_3p3v: regulator1 {
88 compatible = "regulator-fixed";
89 regulator-name = "fixed-3.3V";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
97 compatible = "audio-graph-card";
100 dais = <&rsnd_port0 /* ak4613 */
101 &rsnd_port1 /* HDMI0 */
105 vcc_sdhi0: regulator-vcc-sdhi0 {
106 compatible = "regulator-fixed";
108 regulator-name = "SDHI0 Vcc";
109 regulator-min-microvolt = <3300000>;
110 regulator-max-microvolt = <3300000>;
112 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
116 vccq_sdhi0: regulator-vccq-sdhi0 {
117 compatible = "regulator-gpio";
119 regulator-name = "SDHI0 VccQ";
120 regulator-min-microvolt = <1800000>;
121 regulator-max-microvolt = <3300000>;
123 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
125 states = <3300000 1>, <1800000 0>;
129 compatible = "fixed-clock";
131 clock-frequency = <24576000>;
135 compatible = "fixed-clock";
137 clock-frequency = <25000000>;
142 cpu-supply = <&dvfs>;
146 clock-frequency = <22579200>;
150 pinctrl-0 = <&avb_pins>;
151 pinctrl-names = "default";
152 phy-handle = <&phy0>;
153 tx-internal-delay-ps = <2000>;
156 phy0: ethernet-phy@0 {
157 rxc-skew-ps = <1500>;
159 interrupt-parent = <&gpio2>;
160 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
161 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
174 clock-frequency = <16666666>;
178 clock-frequency = <32768>;
187 rcar_dw_hdmi0_out: endpoint {
188 remote-endpoint = <&hdmi0_con>;
193 dw_hdmi0_snd_in: endpoint {
194 remote-endpoint = <&rsnd_for_hdmi>;
201 remote-endpoint = <&rcar_dw_hdmi0_out>;
205 pinctrl-0 = <&i2c2_pins>;
206 pinctrl-names = "default";
210 clock-frequency = <100000>;
213 compatible = "asahi-kasei,ak4613";
214 #sound-dai-cells = <0>;
216 clocks = <&rcar_sound 3>;
218 asahi-kasei,in1-single-end;
219 asahi-kasei,in2-single-end;
220 asahi-kasei,out1-single-end;
221 asahi-kasei,out2-single-end;
222 asahi-kasei,out3-single-end;
223 asahi-kasei,out4-single-end;
224 asahi-kasei,out5-single-end;
225 asahi-kasei,out6-single-end;
228 ak4613_endpoint: endpoint {
229 remote-endpoint = <&rsnd_for_ak4613>;
234 cs2000: clk-multiplier@4f {
236 compatible = "cirrus,cs2000-cp";
238 clocks = <&audio_clkout>, <&x12_clk>;
239 clock-names = "clk_in", "ref_clk";
241 assigned-clocks = <&cs2000>;
242 assigned-clock-rates = <24576000>; /* 1/1 divide */
249 clock-frequency = <400000>;
251 versaclock5: clock-generator@6a {
252 compatible = "idt,5p49v5925";
263 clock-frequency = <400000>;
266 pinctrl-0 = <&irq0_pins>;
267 pinctrl-names = "default";
269 compatible = "rohm,bd9571mwv";
271 interrupt-parent = <&intc_ex>;
272 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
273 interrupt-controller;
274 #interrupt-cells = <2>;
277 rohm,ddr-backup-power = <0xf>;
282 regulator-name = "dvfs";
283 regulator-min-microvolt = <750000>;
284 regulator-max-microvolt = <1030000>;
297 pinctrl-0 = <&scif_clk_pins>;
298 pinctrl-names = "default";
302 groups = "avb_link", "avb_mdio", "avb_mii";
308 drive-strength = <24>;
312 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
313 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
314 drive-strength = <12>;
324 groups = "intc_ex_irq0";
325 function = "intc_ex";
329 groups = "scif2_data_a";
333 scif_clk_pins: scif_clk {
334 groups = "scif_clk_a";
335 function = "scif_clk";
339 groups = "sdhi0_data4", "sdhi0_ctrl";
341 power-source = <3300>;
344 sdhi0_pins_uhs: sd0_uhs {
345 groups = "sdhi0_data4", "sdhi0_ctrl";
347 power-source = <1800>;
351 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
353 power-source = <1800>;
357 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
361 sound_clk_pins: sound-clk {
362 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
363 "audio_clkout_a", "audio_clkout3_a";
364 function = "audio_clk";
374 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
375 pinctrl-names = "default";
378 #sound-dai-cells = <0>;
380 /* audio_clkout0/1/2/3 */
382 clock-frequency = <12288000 11289600>;
386 /* update <audio_clk_b> to <cs2000> */
387 clocks = <&cpg CPG_MOD 1005>,
388 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
389 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
390 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
391 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
392 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
393 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
394 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
395 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
396 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
397 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
398 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
399 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
400 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
401 <&audio_clk_a>, <&cs2000>,
403 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
406 #address-cells = <1>;
410 rsnd_for_ak4613: endpoint {
411 remote-endpoint = <&ak4613_endpoint>;
413 dai-format = "left_j";
414 bitclock-master = <&rsnd_for_ak4613>;
415 frame-master = <&rsnd_for_ak4613>;
417 playback = <&ssi0>, <&src0>, <&dvc0>;
418 capture = <&ssi1>, <&src1>, <&dvc1>;
423 rsnd_for_hdmi: endpoint {
424 remote-endpoint = <&dw_hdmi0_snd_in>;
427 bitclock-master = <&rsnd_for_hdmi>;
428 frame-master = <&rsnd_for_hdmi>;
442 pinctrl-0 = <&scif2_pins>;
443 pinctrl-names = "default";
449 clock-frequency = <14745600>;
453 pinctrl-0 = <&sdhi0_pins>;
454 pinctrl-1 = <&sdhi0_pins_uhs>;
455 pinctrl-names = "default", "state_uhs";
457 vmmc-supply = <&vcc_sdhi0>;
458 vqmmc-supply = <&vccq_sdhi0>;
459 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
467 /* used for on-board 8bit eMMC */
468 pinctrl-0 = <&sdhi2_pins>;
469 pinctrl-1 = <&sdhi2_pins>;
470 pinctrl-names = "default", "state_uhs";
472 vmmc-supply = <®_3p3v>;
473 vqmmc-supply = <®_1p8v>;
480 full-pwr-cycle-in-suspend;
489 pinctrl-0 = <&usb1_pins>;
490 pinctrl-names = "default";