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";
51 remote-endpoint = <&rcar_dw_hdmi0_out>;
57 compatible = "gpio-keys";
63 debounce-interval = <20>;
64 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-leds";
72 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
75 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
79 reg_1p8v: regulator0 {
80 compatible = "regulator-fixed";
81 regulator-name = "fixed-1.8V";
82 regulator-min-microvolt = <1800000>;
83 regulator-max-microvolt = <1800000>;
88 reg_3p3v: regulator1 {
89 compatible = "regulator-fixed";
90 regulator-name = "fixed-3.3V";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
98 compatible = "audio-graph-card2";
101 links = <&rsnd_port0 /* ak4613 */
102 &rsnd_port1 /* HDMI0 */
106 vcc_sdhi0: regulator-vcc-sdhi0 {
107 compatible = "regulator-fixed";
109 regulator-name = "SDHI0 Vcc";
110 regulator-min-microvolt = <3300000>;
111 regulator-max-microvolt = <3300000>;
113 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
117 vccq_sdhi0: regulator-vccq-sdhi0 {
118 compatible = "regulator-gpio";
120 regulator-name = "SDHI0 VccQ";
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <3300000>;
124 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
126 states = <3300000 1>, <1800000 0>;
130 compatible = "fixed-clock";
132 clock-frequency = <24576000>;
136 compatible = "fixed-clock";
138 clock-frequency = <25000000>;
143 cpu-supply = <&dvfs>;
147 clock-frequency = <22579200>;
151 pinctrl-0 = <&avb_pins>;
152 pinctrl-names = "default";
153 phy-handle = <&phy0>;
154 tx-internal-delay-ps = <2000>;
157 phy0: ethernet-phy@0 {
158 compatible = "ethernet-phy-id0022.1622",
159 "ethernet-phy-ieee802.3-c22";
160 rxc-skew-ps = <1500>;
162 interrupt-parent = <&gpio2>;
163 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
164 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
177 clock-frequency = <16666666>;
181 clock-frequency = <32768>;
190 rcar_dw_hdmi0_out: endpoint {
191 remote-endpoint = <&hdmi0_con>;
196 dw_hdmi0_snd_in: endpoint {
197 remote-endpoint = <&rsnd_for_hdmi>;
204 pinctrl-0 = <&i2c2_pins>;
205 pinctrl-names = "default";
209 clock-frequency = <100000>;
212 compatible = "asahi-kasei,ak4613";
213 #sound-dai-cells = <0>;
215 clocks = <&rcar_sound 3>;
217 asahi-kasei,in1-single-end;
218 asahi-kasei,in2-single-end;
219 asahi-kasei,out1-single-end;
220 asahi-kasei,out2-single-end;
221 asahi-kasei,out3-single-end;
222 asahi-kasei,out4-single-end;
223 asahi-kasei,out5-single-end;
224 asahi-kasei,out6-single-end;
227 ak4613_endpoint: endpoint {
228 remote-endpoint = <&rsnd_for_ak4613>;
233 cs2000: clk-multiplier@4f {
235 compatible = "cirrus,cs2000-cp";
237 clocks = <&audio_clkout>, <&x12_clk>;
238 clock-names = "clk_in", "ref_clk";
240 assigned-clocks = <&cs2000>;
241 assigned-clock-rates = <24576000>; /* 1/1 divide */
248 clock-frequency = <400000>;
250 versaclock5: clock-generator@6a {
251 compatible = "idt,5p49v5925";
262 clock-frequency = <400000>;
265 pinctrl-0 = <&irq0_pins>;
266 pinctrl-names = "default";
268 compatible = "rohm,bd9571mwv";
270 interrupt-parent = <&intc_ex>;
271 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
272 interrupt-controller;
273 #interrupt-cells = <2>;
276 rohm,ddr-backup-power = <0xf>;
281 regulator-name = "dvfs";
282 regulator-min-microvolt = <750000>;
283 regulator-max-microvolt = <1030000>;
296 pinctrl-0 = <&scif_clk_pins>;
297 pinctrl-names = "default";
301 groups = "avb_link", "avb_mdio", "avb_mii";
307 drive-strength = <24>;
311 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
312 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
313 drive-strength = <12>;
323 groups = "intc_ex_irq0";
324 function = "intc_ex";
328 groups = "scif2_data_a";
332 scif_clk_pins: scif_clk {
333 groups = "scif_clk_a";
334 function = "scif_clk";
338 groups = "sdhi0_data4", "sdhi0_ctrl";
340 power-source = <3300>;
343 sdhi0_pins_uhs: sd0_uhs {
344 groups = "sdhi0_data4", "sdhi0_ctrl";
346 power-source = <1800>;
350 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
352 power-source = <1800>;
356 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
360 sound_clk_pins: sound-clk {
361 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
362 "audio_clkout_a", "audio_clkout3_a";
363 function = "audio_clk";
373 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
374 pinctrl-names = "default";
377 #sound-dai-cells = <0>;
379 /* audio_clkout0/1/2/3 */
381 clock-frequency = <12288000 11289600>;
385 /* update <audio_clk_b> to <cs2000> */
386 clocks = <&cpg CPG_MOD 1005>,
387 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
388 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
389 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
390 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
391 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
392 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
393 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
394 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
395 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
396 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
397 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
398 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
399 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
400 <&audio_clk_a>, <&cs2000>,
402 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
405 #address-cells = <1>;
409 rsnd_for_ak4613: endpoint {
410 remote-endpoint = <&ak4613_endpoint>;
413 playback = <&ssi0>, <&src0>, <&dvc0>;
414 capture = <&ssi1>, <&src1>, <&dvc1>;
419 rsnd_for_hdmi: endpoint {
420 remote-endpoint = <&dw_hdmi0_snd_in>;
430 /* Left disabled. To be enabled by firmware when unlocked. */
433 compatible = "cypress,hyperflash", "cfi-flash";
437 compatible = "fixed-partitions";
438 #address-cells = <1>;
442 reg = <0x00000000 0x040000>;
446 reg = <0x00040000 0x140000>;
449 cert_header_sa6@180000 {
450 reg = <0x00180000 0x040000>;
454 reg = <0x001c0000 0x040000>;
458 reg = <0x00200000 0x440000>;
462 reg = <0x00640000 0x100000>;
466 reg = <0x00740000 0x080000>;
469 reg = <0x007c0000 0x1400000>;
472 reg = <0x01bc0000 0x2440000>;
484 pinctrl-0 = <&scif2_pins>;
485 pinctrl-names = "default";
491 clock-frequency = <14745600>;
495 pinctrl-0 = <&sdhi0_pins>;
496 pinctrl-1 = <&sdhi0_pins_uhs>;
497 pinctrl-names = "default", "state_uhs";
499 vmmc-supply = <&vcc_sdhi0>;
500 vqmmc-supply = <&vccq_sdhi0>;
501 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
509 /* used for on-board 8bit eMMC */
510 pinctrl-0 = <&sdhi2_pins>;
511 pinctrl-1 = <&sdhi2_pins>;
512 pinctrl-names = "default", "state_uhs";
514 vmmc-supply = <®_3p3v>;
515 vqmmc-supply = <®_1p8v>;
522 full-pwr-cycle-in-suspend;
531 pinctrl-0 = <&usb1_pins>;
532 pinctrl-names = "default";