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";
39 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
40 stdout-path = "serial0:115200n8";
43 audio_clkout: audio-clkout {
45 * This is same as <&rcar_sound 0>
46 * but needed to avoid cs2000/rcar_sound probe dead-lock
48 compatible = "fixed-clock";
50 clock-frequency = <12288000>;
54 compatible = "hdmi-connector";
59 remote-endpoint = <&rcar_dw_hdmi0_out>;
65 compatible = "gpio-keys";
71 debounce-interval = <20>;
72 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
77 compatible = "gpio-leds";
80 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
83 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
87 reg_1p8v: regulator-1p8v {
88 compatible = "regulator-fixed";
89 regulator-name = "fixed-1.8V";
90 regulator-min-microvolt = <1800000>;
91 regulator-max-microvolt = <1800000>;
96 reg_3p3v: regulator-3p3v {
97 compatible = "regulator-fixed";
98 regulator-name = "fixed-3.3V";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
106 compatible = "audio-graph-card2";
107 label = "rcar-sound";
109 links = <&rsnd_port0 /* ak4613 */
110 &rsnd_port1 /* HDMI0 */
114 vcc_sdhi0: regulator-vcc-sdhi0 {
115 compatible = "regulator-fixed";
117 regulator-name = "SDHI0 Vcc";
118 regulator-min-microvolt = <3300000>;
119 regulator-max-microvolt = <3300000>;
121 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
125 vccq_sdhi0: regulator-vccq-sdhi0 {
126 compatible = "regulator-gpio";
128 regulator-name = "SDHI0 VccQ";
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <3300000>;
132 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
134 states = <3300000 1>, <1800000 0>;
138 compatible = "fixed-clock";
140 clock-frequency = <24576000>;
144 compatible = "fixed-clock";
146 clock-frequency = <25000000>;
151 cpu-supply = <&dvfs>;
155 clock-frequency = <22579200>;
159 pinctrl-0 = <&avb_pins>;
160 pinctrl-names = "default";
161 phy-handle = <&phy0>;
162 tx-internal-delay-ps = <2000>;
165 phy0: ethernet-phy@0 {
166 compatible = "ethernet-phy-id0022.1622",
167 "ethernet-phy-ieee802.3-c22";
168 rxc-skew-ps = <1500>;
170 interrupt-parent = <&gpio2>;
171 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
172 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
185 clock-frequency = <16666666>;
189 clock-frequency = <32768>;
198 rcar_dw_hdmi0_out: endpoint {
199 remote-endpoint = <&hdmi0_con>;
204 dw_hdmi0_snd_in: endpoint {
205 remote-endpoint = <&rsnd_for_hdmi>;
212 pinctrl-0 = <&i2c2_pins>;
213 pinctrl-names = "default";
217 clock-frequency = <100000>;
220 compatible = "asahi-kasei,ak4613";
221 #sound-dai-cells = <0>;
223 clocks = <&rcar_sound 3>;
225 asahi-kasei,in1-single-end;
226 asahi-kasei,in2-single-end;
227 asahi-kasei,out1-single-end;
228 asahi-kasei,out2-single-end;
229 asahi-kasei,out3-single-end;
230 asahi-kasei,out4-single-end;
231 asahi-kasei,out5-single-end;
232 asahi-kasei,out6-single-end;
235 ak4613_endpoint: endpoint {
236 remote-endpoint = <&rsnd_for_ak4613>;
241 cs2000: clk-multiplier@4f {
243 compatible = "cirrus,cs2000-cp";
245 clocks = <&audio_clkout>, <&x12_clk>;
246 clock-names = "clk_in", "ref_clk";
248 assigned-clocks = <&cs2000>;
249 assigned-clock-rates = <24576000>; /* 1/1 divide */
256 clock-frequency = <400000>;
258 versaclock5: clock-generator@6a {
259 compatible = "idt,5p49v5925";
270 clock-frequency = <400000>;
273 pinctrl-0 = <&irq0_pins>;
274 pinctrl-names = "default";
276 compatible = "rohm,bd9571mwv";
278 interrupt-parent = <&intc_ex>;
279 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
280 interrupt-controller;
281 #interrupt-cells = <2>;
284 rohm,ddr-backup-power = <0xf>;
289 regulator-name = "dvfs";
290 regulator-min-microvolt = <750000>;
291 regulator-max-microvolt = <1030000>;
304 pinctrl-0 = <&scif_clk_pins>;
305 pinctrl-names = "default";
309 groups = "avb_link", "avb_mdio", "avb_mii";
315 drive-strength = <24>;
319 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
320 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
321 drive-strength = <12>;
331 groups = "intc_ex_irq0";
332 function = "intc_ex";
336 groups = "scif2_data_a";
340 scif_clk_pins: scif_clk {
341 groups = "scif_clk_a";
342 function = "scif_clk";
346 groups = "sdhi0_data4", "sdhi0_ctrl";
348 power-source = <3300>;
351 sdhi0_pins_uhs: sd0_uhs {
352 groups = "sdhi0_data4", "sdhi0_ctrl";
354 power-source = <1800>;
358 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
360 power-source = <1800>;
364 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
368 sound_clk_pins: sound-clk {
369 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
370 "audio_clkout_a", "audio_clkout3_a";
371 function = "audio_clk";
381 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
382 pinctrl-names = "default";
385 #sound-dai-cells = <0>;
387 /* audio_clkout0/1/2/3 */
389 clock-frequency = <12288000 11289600>;
393 /* update <audio_clk_b> to <cs2000> */
394 clocks = <&cpg CPG_MOD 1005>,
395 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
396 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
397 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
398 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
399 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
400 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
401 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
402 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
403 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
404 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
405 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
406 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
407 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
408 <&audio_clk_a>, <&cs2000>,
410 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
413 #address-cells = <1>;
417 rsnd_for_ak4613: endpoint {
418 remote-endpoint = <&ak4613_endpoint>;
421 playback = <&ssi0>, <&src0>, <&dvc0>;
422 capture = <&ssi1>, <&src1>, <&dvc1>;
427 rsnd_for_hdmi: endpoint {
428 remote-endpoint = <&dw_hdmi0_snd_in>;
438 /* Left disabled. To be enabled by firmware when unlocked. */
441 compatible = "cypress,hyperflash", "cfi-flash";
445 compatible = "fixed-partitions";
446 #address-cells = <1>;
450 reg = <0x00000000 0x040000>;
454 reg = <0x00040000 0x140000>;
457 cert_header_sa6@180000 {
458 reg = <0x00180000 0x040000>;
462 reg = <0x001c0000 0x040000>;
466 reg = <0x00200000 0x440000>;
470 reg = <0x00640000 0x100000>;
474 reg = <0x00740000 0x080000>;
477 reg = <0x007c0000 0x1400000>;
480 reg = <0x01bc0000 0x2440000>;
492 pinctrl-0 = <&scif2_pins>;
493 pinctrl-names = "default";
499 clock-frequency = <14745600>;
503 pinctrl-0 = <&sdhi0_pins>;
504 pinctrl-1 = <&sdhi0_pins_uhs>;
505 pinctrl-names = "default", "state_uhs";
507 vmmc-supply = <&vcc_sdhi0>;
508 vqmmc-supply = <&vccq_sdhi0>;
509 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
517 /* used for on-board 8bit eMMC */
518 pinctrl-0 = <&sdhi2_pins>;
519 pinctrl-1 = <&sdhi2_pins>;
520 pinctrl-names = "default", "state_uhs";
522 vmmc-supply = <®_3p3v>;
523 vqmmc-supply = <®_1p8v>;
530 full-pwr-cycle-in-suspend;
539 pinctrl-0 = <&usb1_pins>;
540 pinctrl-names = "default";