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 compatible = "ethernet-phy-id0022.1622",
158 "ethernet-phy-ieee802.3-c22";
159 rxc-skew-ps = <1500>;
161 interrupt-parent = <&gpio2>;
162 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
163 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
176 clock-frequency = <16666666>;
180 clock-frequency = <32768>;
189 rcar_dw_hdmi0_out: endpoint {
190 remote-endpoint = <&hdmi0_con>;
195 dw_hdmi0_snd_in: endpoint {
196 remote-endpoint = <&rsnd_for_hdmi>;
203 remote-endpoint = <&rcar_dw_hdmi0_out>;
207 pinctrl-0 = <&i2c2_pins>;
208 pinctrl-names = "default";
212 clock-frequency = <100000>;
215 compatible = "asahi-kasei,ak4613";
216 #sound-dai-cells = <0>;
218 clocks = <&rcar_sound 3>;
220 asahi-kasei,in1-single-end;
221 asahi-kasei,in2-single-end;
222 asahi-kasei,out1-single-end;
223 asahi-kasei,out2-single-end;
224 asahi-kasei,out3-single-end;
225 asahi-kasei,out4-single-end;
226 asahi-kasei,out5-single-end;
227 asahi-kasei,out6-single-end;
230 ak4613_endpoint: endpoint {
231 remote-endpoint = <&rsnd_for_ak4613>;
236 cs2000: clk-multiplier@4f {
238 compatible = "cirrus,cs2000-cp";
240 clocks = <&audio_clkout>, <&x12_clk>;
241 clock-names = "clk_in", "ref_clk";
243 assigned-clocks = <&cs2000>;
244 assigned-clock-rates = <24576000>; /* 1/1 divide */
251 clock-frequency = <400000>;
253 versaclock5: clock-generator@6a {
254 compatible = "idt,5p49v5925";
265 clock-frequency = <400000>;
268 pinctrl-0 = <&irq0_pins>;
269 pinctrl-names = "default";
271 compatible = "rohm,bd9571mwv";
273 interrupt-parent = <&intc_ex>;
274 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
275 interrupt-controller;
276 #interrupt-cells = <2>;
279 rohm,ddr-backup-power = <0xf>;
284 regulator-name = "dvfs";
285 regulator-min-microvolt = <750000>;
286 regulator-max-microvolt = <1030000>;
299 pinctrl-0 = <&scif_clk_pins>;
300 pinctrl-names = "default";
304 groups = "avb_link", "avb_mdio", "avb_mii";
310 drive-strength = <24>;
314 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
315 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
316 drive-strength = <12>;
326 groups = "intc_ex_irq0";
327 function = "intc_ex";
331 groups = "scif2_data_a";
335 scif_clk_pins: scif_clk {
336 groups = "scif_clk_a";
337 function = "scif_clk";
341 groups = "sdhi0_data4", "sdhi0_ctrl";
343 power-source = <3300>;
346 sdhi0_pins_uhs: sd0_uhs {
347 groups = "sdhi0_data4", "sdhi0_ctrl";
349 power-source = <1800>;
353 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
355 power-source = <1800>;
359 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
363 sound_clk_pins: sound-clk {
364 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
365 "audio_clkout_a", "audio_clkout3_a";
366 function = "audio_clk";
376 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
377 pinctrl-names = "default";
380 #sound-dai-cells = <0>;
382 /* audio_clkout0/1/2/3 */
384 clock-frequency = <12288000 11289600>;
388 /* update <audio_clk_b> to <cs2000> */
389 clocks = <&cpg CPG_MOD 1005>,
390 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
391 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
392 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
393 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
394 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
395 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
396 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
397 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
398 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
399 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
400 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
401 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
402 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
403 <&audio_clk_a>, <&cs2000>,
405 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
408 #address-cells = <1>;
412 rsnd_for_ak4613: endpoint {
413 remote-endpoint = <&ak4613_endpoint>;
415 dai-format = "left_j";
416 bitclock-master = <&rsnd_for_ak4613>;
417 frame-master = <&rsnd_for_ak4613>;
419 playback = <&ssi0>, <&src0>, <&dvc0>;
420 capture = <&ssi1>, <&src1>, <&dvc1>;
425 rsnd_for_hdmi: endpoint {
426 remote-endpoint = <&dw_hdmi0_snd_in>;
429 bitclock-master = <&rsnd_for_hdmi>;
430 frame-master = <&rsnd_for_hdmi>;
444 pinctrl-0 = <&scif2_pins>;
445 pinctrl-names = "default";
451 clock-frequency = <14745600>;
455 pinctrl-0 = <&sdhi0_pins>;
456 pinctrl-1 = <&sdhi0_pins_uhs>;
457 pinctrl-names = "default", "state_uhs";
459 vmmc-supply = <&vcc_sdhi0>;
460 vqmmc-supply = <&vccq_sdhi0>;
461 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
469 /* used for on-board 8bit eMMC */
470 pinctrl-0 = <&sdhi2_pins>;
471 pinctrl-1 = <&sdhi2_pins>;
472 pinctrl-names = "default", "state_uhs";
474 vmmc-supply = <®_3p3v>;
475 vqmmc-supply = <®_1p8v>;
482 full-pwr-cycle-in-suspend;
491 pinctrl-0 = <&usb1_pins>;
492 pinctrl-names = "default";