2 * Device Tree Source for the R-Car Gen3 ULCB board
4 * Copyright (C) 2016 Renesas Electronics Corp.
5 * Copyright (C) 2016 Cogent Embedded, Inc.
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
16 model = "Renesas R-Car Gen3 ULCB board";
24 stdout-path = "serial0:115200n8";
27 audio_clkout: audio-clkout {
29 * This is same as <&rcar_sound 0>
30 * but needed to avoid cs2000/rcar_sound probe dead-lock
32 compatible = "fixed-clock";
34 clock-frequency = <11289600>;
38 compatible = "hdmi-connector";
48 compatible = "gpio-keys";
54 debounce-interval = <20>;
55 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
60 compatible = "gpio-leds";
63 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
66 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
70 reg_1p8v: regulator0 {
71 compatible = "regulator-fixed";
72 regulator-name = "fixed-1.8V";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
79 reg_3p3v: regulator1 {
80 compatible = "regulator-fixed";
81 regulator-name = "fixed-3.3V";
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
89 compatible = "simple-audio-card";
91 simple-audio-card,format = "left_j";
92 simple-audio-card,bitclock-master = <&sndcpu>;
93 simple-audio-card,frame-master = <&sndcpu>;
95 sndcpu: simple-audio-card,cpu {
96 sound-dai = <&rcar_sound>;
99 sndcodec: simple-audio-card,codec {
100 sound-dai = <&ak4613>;
104 vcc_sdhi0: regulator-vcc-sdhi0 {
105 compatible = "regulator-fixed";
107 regulator-name = "SDHI0 Vcc";
108 regulator-min-microvolt = <3300000>;
109 regulator-max-microvolt = <3300000>;
111 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
115 vccq_sdhi0: regulator-vccq-sdhi0 {
116 compatible = "regulator-gpio";
118 regulator-name = "SDHI0 VccQ";
119 regulator-min-microvolt = <1800000>;
120 regulator-max-microvolt = <3300000>;
122 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
129 compatible = "fixed-clock";
131 clock-frequency = <24576000>;
135 compatible = "fixed-clock";
137 clock-frequency = <25000000>;
142 clock-frequency = <22579200>;
146 pinctrl-0 = <&avb_pins>;
147 pinctrl-names = "default";
148 phy-handle = <&phy0>;
151 phy0: ethernet-phy@0 {
152 rxc-skew-ps = <1500>;
154 interrupt-parent = <&gpio2>;
155 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
164 clock-frequency = <16666666>;
168 clock-frequency = <32768>;
177 rcar_dw_hdmi0_out: endpoint {
178 remote-endpoint = <&hdmi0_con>;
185 remote-endpoint = <&rcar_dw_hdmi0_out>;
189 pinctrl-0 = <&i2c2_pins>;
190 pinctrl-names = "default";
194 clock-frequency = <100000>;
197 compatible = "asahi-kasei,ak4613";
198 #sound-dai-cells = <0>;
200 clocks = <&rcar_sound 3>;
202 asahi-kasei,in1-single-end;
203 asahi-kasei,in2-single-end;
204 asahi-kasei,out1-single-end;
205 asahi-kasei,out2-single-end;
206 asahi-kasei,out3-single-end;
207 asahi-kasei,out4-single-end;
208 asahi-kasei,out5-single-end;
209 asahi-kasei,out6-single-end;
212 cs2000: clk-multiplier@4f {
214 compatible = "cirrus,cs2000-cp";
216 clocks = <&audio_clkout>, <&x12_clk>;
217 clock-names = "clk_in", "ref_clk";
219 assigned-clocks = <&cs2000>;
220 assigned-clock-rates = <24576000>; /* 1/1 divide */
227 clock-frequency = <400000>;
229 versaclock5: clock-generator@6a {
230 compatible = "idt,5p49v5925";
247 pinctrl-0 = <&scif_clk_pins>;
248 pinctrl-names = "default";
252 groups = "avb_link", "avb_phy_int", "avb_mdc",
259 drive-strength = <24>;
263 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
264 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
265 drive-strength = <12>;
275 groups = "scif2_data_a";
279 scif_clk_pins: scif_clk {
280 groups = "scif_clk_a";
281 function = "scif_clk";
285 groups = "sdhi0_data4", "sdhi0_ctrl";
287 power-source = <3300>;
290 sdhi0_pins_uhs: sd0_uhs {
291 groups = "sdhi0_data4", "sdhi0_ctrl";
293 power-source = <1800>;
297 groups = "sdhi2_data8", "sdhi2_ctrl";
299 power-source = <3300>;
302 sdhi2_pins_uhs: sd2_uhs {
303 groups = "sdhi2_data8", "sdhi2_ctrl";
305 power-source = <1800>;
309 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
313 sound_clk_pins: sound-clk {
314 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
315 "audio_clkout_a", "audio_clkout3_a";
316 function = "audio_clk";
326 pinctrl-0 = <&sound_pins &sound_clk_pins>;
327 pinctrl-names = "default";
330 #sound-dai-cells = <0>;
332 /* audio_clkout0/1/2/3 */
334 clock-frequency = <12288000 11289600>;
338 /* update <audio_clk_b> to <cs2000> */
339 clocks = <&cpg CPG_MOD 1005>,
340 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
341 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
342 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
343 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
344 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
345 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
346 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
347 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
348 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
349 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
350 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
351 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
352 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
353 <&audio_clk_a>, <&cs2000>,
355 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
359 playback = <&ssi0 &src0 &dvc0>;
360 capture = <&ssi1 &src1 &dvc1>;
366 pinctrl-0 = <&scif2_pins>;
367 pinctrl-names = "default";
373 clock-frequency = <14745600>;
377 pinctrl-0 = <&sdhi0_pins>;
378 pinctrl-1 = <&sdhi0_pins_uhs>;
379 pinctrl-names = "default", "state_uhs";
381 vmmc-supply = <&vcc_sdhi0>;
382 vqmmc-supply = <&vccq_sdhi0>;
383 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
390 /* used for on-board 8bit eMMC */
391 pinctrl-0 = <&sdhi2_pins>;
392 pinctrl-1 = <&sdhi2_pins_uhs>;
393 pinctrl-names = "default", "state_uhs";
395 vmmc-supply = <®_3p3v>;
396 vqmmc-supply = <®_1p8v>;
400 full-pwr-cycle-in-suspend;
409 pinctrl-0 = <&usb1_pins>;
410 pinctrl-names = "default";