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.
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
13 model = "Renesas R-Car Gen3 ULCB board";
21 stdout-path = "serial0:115200n8";
24 audio_clkout: audio-clkout {
26 * This is same as <&rcar_sound 0>
27 * but needed to avoid cs2000/rcar_sound probe dead-lock
29 compatible = "fixed-clock";
31 clock-frequency = <12288000>;
35 compatible = "hdmi-connector";
45 compatible = "gpio-keys";
51 debounce-interval = <20>;
52 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-leds";
60 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
63 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
67 reg_1p8v: regulator0 {
68 compatible = "regulator-fixed";
69 regulator-name = "fixed-1.8V";
70 regulator-min-microvolt = <1800000>;
71 regulator-max-microvolt = <1800000>;
76 reg_3p3v: regulator1 {
77 compatible = "regulator-fixed";
78 regulator-name = "fixed-3.3V";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
86 compatible = "simple-audio-card";
88 simple-audio-card,format = "left_j";
89 simple-audio-card,bitclock-master = <&sndcpu>;
90 simple-audio-card,frame-master = <&sndcpu>;
92 sndcpu: simple-audio-card,cpu {
93 sound-dai = <&rcar_sound>;
96 sndcodec: simple-audio-card,codec {
97 sound-dai = <&ak4613>;
101 vcc_sdhi0: regulator-vcc-sdhi0 {
102 compatible = "regulator-fixed";
104 regulator-name = "SDHI0 Vcc";
105 regulator-min-microvolt = <3300000>;
106 regulator-max-microvolt = <3300000>;
108 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
112 vccq_sdhi0: regulator-vccq-sdhi0 {
113 compatible = "regulator-gpio";
115 regulator-name = "SDHI0 VccQ";
116 regulator-min-microvolt = <1800000>;
117 regulator-max-microvolt = <3300000>;
119 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
126 compatible = "fixed-clock";
128 clock-frequency = <24576000>;
132 compatible = "fixed-clock";
134 clock-frequency = <25000000>;
139 clock-frequency = <22579200>;
143 pinctrl-0 = <&avb_pins>;
144 pinctrl-names = "default";
145 phy-handle = <&phy0>;
146 phy-mode = "rgmii-txid";
149 phy0: ethernet-phy@0 {
150 rxc-skew-ps = <1500>;
152 interrupt-parent = <&gpio2>;
153 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
154 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
167 clock-frequency = <16666666>;
171 clock-frequency = <32768>;
180 rcar_dw_hdmi0_out: endpoint {
181 remote-endpoint = <&hdmi0_con>;
188 remote-endpoint = <&rcar_dw_hdmi0_out>;
192 pinctrl-0 = <&i2c2_pins>;
193 pinctrl-names = "default";
197 clock-frequency = <100000>;
200 compatible = "asahi-kasei,ak4613";
201 #sound-dai-cells = <0>;
203 clocks = <&rcar_sound 3>;
205 asahi-kasei,in1-single-end;
206 asahi-kasei,in2-single-end;
207 asahi-kasei,out1-single-end;
208 asahi-kasei,out2-single-end;
209 asahi-kasei,out3-single-end;
210 asahi-kasei,out4-single-end;
211 asahi-kasei,out5-single-end;
212 asahi-kasei,out6-single-end;
215 cs2000: clk-multiplier@4f {
217 compatible = "cirrus,cs2000-cp";
219 clocks = <&audio_clkout>, <&x12_clk>;
220 clock-names = "clk_in", "ref_clk";
222 assigned-clocks = <&cs2000>;
223 assigned-clock-rates = <24576000>; /* 1/1 divide */
230 clock-frequency = <400000>;
232 versaclock5: clock-generator@6a {
233 compatible = "idt,5p49v5925";
245 pinctrl-0 = <&irq0_pins>;
246 pinctrl-names = "default";
248 compatible = "rohm,bd9571mwv";
250 interrupt-parent = <&intc_ex>;
251 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
252 interrupt-controller;
253 #interrupt-cells = <2>;
256 rohm,ddr-backup-power = <0xf>;
261 regulator-name = "dvfs";
262 regulator-min-microvolt = <750000>;
263 regulator-max-microvolt = <1030000>;
276 pinctrl-0 = <&scif_clk_pins>;
277 pinctrl-names = "default";
281 groups = "avb_link", "avb_mdio", "avb_mii";
287 drive-strength = <24>;
291 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
292 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
293 drive-strength = <12>;
303 groups = "intc_ex_irq0";
304 function = "intc_ex";
308 groups = "scif2_data_a";
312 scif_clk_pins: scif_clk {
313 groups = "scif_clk_a";
314 function = "scif_clk";
318 groups = "sdhi0_data4", "sdhi0_ctrl";
320 power-source = <3300>;
323 sdhi0_pins_uhs: sd0_uhs {
324 groups = "sdhi0_data4", "sdhi0_ctrl";
326 power-source = <1800>;
330 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
332 power-source = <3300>;
335 sdhi2_pins_uhs: sd2_uhs {
336 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
338 power-source = <1800>;
342 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
346 sound_clk_pins: sound-clk {
347 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
348 "audio_clkout_a", "audio_clkout3_a";
349 function = "audio_clk";
359 pinctrl-0 = <&sound_pins &sound_clk_pins>;
360 pinctrl-names = "default";
363 #sound-dai-cells = <0>;
365 /* audio_clkout0/1/2/3 */
367 clock-frequency = <12288000 11289600>;
371 /* update <audio_clk_b> to <cs2000> */
372 clocks = <&cpg CPG_MOD 1005>,
373 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
374 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
375 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
376 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
377 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
378 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
379 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
380 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
381 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
382 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
383 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
384 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
385 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
386 <&audio_clk_a>, <&cs2000>,
388 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
392 playback = <&ssi0 &src0 &dvc0>;
393 capture = <&ssi1 &src1 &dvc1>;
399 pinctrl-0 = <&scif2_pins>;
400 pinctrl-names = "default";
406 clock-frequency = <14745600>;
410 pinctrl-0 = <&sdhi0_pins>;
411 pinctrl-1 = <&sdhi0_pins_uhs>;
412 pinctrl-names = "default", "state_uhs";
414 vmmc-supply = <&vcc_sdhi0>;
415 vqmmc-supply = <&vccq_sdhi0>;
416 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
423 /* used for on-board 8bit eMMC */
424 pinctrl-0 = <&sdhi2_pins>;
425 pinctrl-1 = <&sdhi2_pins_uhs>;
426 pinctrl-names = "default", "state_uhs";
428 vmmc-supply = <®_3p3v>;
429 vqmmc-supply = <®_1p8v>;
441 pinctrl-0 = <&usb1_pins>;
442 pinctrl-names = "default";