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";
28 compatible = "renesas,ulcb-cpld";
30 gpio-sck = <&gpio6 8 0>;
31 gpio-mosi = <&gpio6 7 0>;
32 gpio-miso = <&gpio6 10 0>;
33 gpio-sstbz = <&gpio2 3 0>;
36 audio_clkout: audio-clkout {
38 * This is same as <&rcar_sound 0>
39 * but needed to avoid cs2000/rcar_sound probe dead-lock
41 compatible = "fixed-clock";
43 clock-frequency = <11289600>;
47 compatible = "hdmi-connector";
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 = "simple-audio-card";
100 simple-audio-card,format = "left_j";
101 simple-audio-card,bitclock-master = <&sndcpu>;
102 simple-audio-card,frame-master = <&sndcpu>;
104 sndcpu: simple-audio-card,cpu {
105 sound-dai = <&rcar_sound>;
108 sndcodec: simple-audio-card,codec {
109 sound-dai = <&ak4613>;
113 vcc_sdhi0: regulator-vcc-sdhi0 {
114 compatible = "regulator-fixed";
116 regulator-name = "SDHI0 Vcc";
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
120 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
124 vccq_sdhi0: regulator-vccq-sdhi0 {
125 compatible = "regulator-gpio";
127 regulator-name = "SDHI0 VccQ";
128 regulator-min-microvolt = <1800000>;
129 regulator-max-microvolt = <3300000>;
131 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
138 compatible = "fixed-clock";
140 clock-frequency = <24576000>;
144 compatible = "fixed-clock";
146 clock-frequency = <25000000>;
151 clock-frequency = <22579200>;
155 pinctrl-0 = <&avb_pins>;
156 pinctrl-names = "default";
157 renesas,no-ether-link;
158 phy-handle = <&phy0>;
159 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
162 phy0: ethernet-phy@0 {
163 rxc-skew-ps = <1500>;
165 interrupt-parent = <&gpio2>;
166 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
175 clock-frequency = <16666666>;
179 clock-frequency = <32768>;
188 rcar_dw_hdmi0_out: endpoint {
189 remote-endpoint = <&hdmi0_con>;
196 remote-endpoint = <&rcar_dw_hdmi0_out>;
200 pinctrl-0 = <&i2c2_pins>;
201 pinctrl-names = "default";
205 clock-frequency = <100000>;
208 compatible = "asahi-kasei,ak4613";
209 #sound-dai-cells = <0>;
211 clocks = <&rcar_sound 3>;
213 asahi-kasei,in1-single-end;
214 asahi-kasei,in2-single-end;
215 asahi-kasei,out1-single-end;
216 asahi-kasei,out2-single-end;
217 asahi-kasei,out3-single-end;
218 asahi-kasei,out4-single-end;
219 asahi-kasei,out5-single-end;
220 asahi-kasei,out6-single-end;
223 cs2000: clk-multiplier@4f {
225 compatible = "cirrus,cs2000-cp";
227 clocks = <&audio_clkout>, <&x12_clk>;
228 clock-names = "clk_in", "ref_clk";
230 assigned-clocks = <&cs2000>;
231 assigned-clock-rates = <24576000>; /* 1/1 divide */
238 clock-frequency = <400000>;
240 versaclock5: clock-generator@6a {
241 compatible = "idt,5p49v5925";
258 pinctrl-0 = <&scif_clk_pins>;
259 pinctrl-names = "default";
263 groups = "avb_link", "avb_phy_int", "avb_mdc",
270 drive-strength = <24>;
274 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
275 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
276 drive-strength = <12>;
286 groups = "scif2_data_a";
290 scif_clk_pins: scif_clk {
291 groups = "scif_clk_a";
292 function = "scif_clk";
296 groups = "sdhi0_data4", "sdhi0_ctrl";
298 power-source = <3300>;
301 sdhi0_pins_uhs: sd0_uhs {
302 groups = "sdhi0_data4", "sdhi0_ctrl";
304 power-source = <1800>;
308 groups = "sdhi2_data8", "sdhi2_ctrl";
310 power-source = <1800>;
313 sdhi2_pins_uhs: sd2_uhs {
314 groups = "sdhi2_data8", "sdhi2_ctrl";
316 power-source = <1800>;
320 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
324 sound_clk_pins: sound-clk {
325 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
326 "audio_clkout_a", "audio_clkout3_a";
327 function = "audio_clk";
337 pinctrl-0 = <&sound_pins &sound_clk_pins>;
338 pinctrl-names = "default";
341 #sound-dai-cells = <0>;
343 /* audio_clkout0/1/2/3 */
345 clock-frequency = <12288000 11289600>;
349 /* update <audio_clk_b> to <cs2000> */
350 clocks = <&cpg CPG_MOD 1005>,
351 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
352 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
353 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
354 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
355 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
356 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
357 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
358 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
359 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
360 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
361 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
362 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
363 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
364 <&audio_clk_a>, <&cs2000>,
366 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
370 playback = <&ssi0 &src0 &dvc0>;
371 capture = <&ssi1 &src1 &dvc1>;
377 pinctrl-0 = <&scif2_pins>;
378 pinctrl-names = "default";
384 clock-frequency = <14745600>;
388 pinctrl-0 = <&sdhi0_pins>;
389 pinctrl-1 = <&sdhi0_pins_uhs>;
390 pinctrl-names = "default", "state_uhs";
392 vmmc-supply = <&vcc_sdhi0>;
393 vqmmc-supply = <&vccq_sdhi0>;
394 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
401 /* used for on-board 8bit eMMC */
402 pinctrl-0 = <&sdhi2_pins>;
403 pinctrl-1 = <&sdhi2_pins_uhs>;
404 pinctrl-names = "default", "state_uhs";
406 vmmc-supply = <®_3p3v>;
407 vqmmc-supply = <®_1p8v>;
419 pinctrl-0 = <&usb1_pins>;
420 pinctrl-names = "default";