1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Device Tree Source for the ebisu board
5 * Copyright (C) 2018 Renesas Electronics Corp.
9 #include "r8a77990.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
13 model = "Renesas Ebisu board based on r8a77990";
14 compatible = "renesas,ebisu", "renesas,r8a77990";
22 bootargs = "ignore_loglevel";
23 stdout-path = "serial0:115200n8";
27 device_type = "memory";
28 /* first 128MB is reserved for secure area. */
29 reg = <0x0 0x48000000 0x0 0x38000000>;
32 audio_clkout: audio-clkout {
34 * This is same as <&rcar_sound 0>
35 * but needed to avoid cs2000/rcar_sound probe dead-lock
37 compatible = "fixed-clock";
39 clock-frequency = <11289600>;
43 compatible = "composite-video-connector";
48 remote-endpoint = <&adv7482_ain7>;
54 compatible = "hdmi-connector";
59 hdmi_in_con: endpoint {
60 remote-endpoint = <&adv7482_hdmi>;
66 compatible = "hdmi-connector";
70 hdmi_con_out: endpoint {
71 remote-endpoint = <&adv7511_out>;
77 compatible = "thine,thc63lvd1024";
78 vcc-supply = <®_3p3v>;
86 thc63lvd1024_in: endpoint {
87 remote-endpoint = <&lvds0_out>;
93 thc63lvd1024_out: endpoint {
94 remote-endpoint = <&adv7511_in>;
101 compatible = "vga-connector";
105 remote-endpoint = <&adv7123_out>;
111 compatible = "adi,adv7123";
114 #address-cells = <1>;
119 adv7123_in: endpoint {
120 remote-endpoint = <&du_out_rgb>;
125 adv7123_out: endpoint {
126 remote-endpoint = <&vga_in>;
132 reg_1p8v: regulator0 {
133 compatible = "regulator-fixed";
134 regulator-name = "fixed-1.8V";
135 regulator-min-microvolt = <1800000>;
136 regulator-max-microvolt = <1800000>;
141 reg_3p3v: regulator1 {
142 compatible = "regulator-fixed";
143 regulator-name = "fixed-3.3V";
144 regulator-min-microvolt = <3300000>;
145 regulator-max-microvolt = <3300000>;
150 vbus0_usb2: regulator-vbus0-usb2 {
151 compatible = "regulator-fixed";
153 regulator-name = "USB20_VBUS_CN";
154 regulator-min-microvolt = <5000000>;
155 regulator-max-microvolt = <5000000>;
157 gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>;
162 compatible = "simple-scu-audio-card";
164 simple-audio-card,name = "rsnd-ak4613";
165 simple-audio-card,format = "left_j";
166 simple-audio-card,bitclock-master = <&sndcpu>;
167 simple-audio-card,frame-master = <&sndcpu>;
169 simple-audio-card,prefix = "ak4613";
170 simple-audio-card,routing = "ak4613 Playback", "DAI0 Playback",
171 "DAI0 Capture", "ak4613 Capture";
172 sndcpu: simple-audio-card,cpu {
173 sound-dai = <&rcar_sound>;
176 sndcodec: simple-audio-card,codec {
177 sound-dai = <&ak4613>;
182 compatible = "fixed-clock";
184 clock-frequency = <24576000>;
188 compatible = "fixed-clock";
190 clock-frequency = <74250000>;
193 vcc_sdhi0: regulator-vcc-sdhi0 {
194 compatible = "regulator-fixed";
196 regulator-name = "SDHI0 Vcc";
197 regulator-min-microvolt = <3300000>;
198 regulator-max-microvolt = <3300000>;
200 gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
204 vccq_sdhi0: regulator-vccq-sdhi0 {
205 compatible = "regulator-gpio";
207 regulator-name = "SDHI0 VccQ";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <3300000>;
211 gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
217 vcc_sdhi1: regulator-vcc-sdhi1 {
218 compatible = "regulator-fixed";
220 regulator-name = "SDHI1 Vcc";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
224 gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
228 vccq_sdhi1: regulator-vccq-sdhi1 {
229 compatible = "regulator-gpio";
231 regulator-name = "SDHI1 VccQ";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <3300000>;
235 gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
243 clock-frequency = <22579200>;
247 pinctrl-0 = <&avb_pins>;
248 pinctrl-names = "default";
249 renesas,no-ether-link;
250 phy-handle = <&phy0>;
251 phy-mode = "rgmii-txid";
254 phy0: ethernet-phy@0 {
255 rxc-skew-ps = <1500>;
257 interrupt-parent = <&gpio2>;
258 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
259 reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
264 pinctrl-0 = <&canfd0_pins>;
265 pinctrl-names = "default";
283 remote-endpoint = <&adv7482_txa>;
290 pinctrl-0 = <&du_pins>;
291 pinctrl-names = "default";
294 clocks = <&cpg CPG_MOD 724>,
297 clock-names = "du.0", "du.1", "dclkin.0";
302 remote-endpoint = <&adv7123_in>;
314 clock-frequency = <48000000>;
326 compatible = "adi,adv7511w";
328 interrupt-parent = <&gpio1>;
329 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
331 adi,input-depth = <8>;
332 adi,input-colorspace = "rgb";
333 adi,input-clock = "1x";
334 adi,input-style = <1>;
335 adi,input-justification = "evenly";
338 #address-cells = <1>;
343 adv7511_in: endpoint {
344 remote-endpoint = <&thc63lvd1024_out>;
350 adv7511_out: endpoint {
351 remote-endpoint = <&hdmi_con_out>;
358 compatible = "adi,adv7482";
361 #address-cells = <1>;
364 interrupt-parent = <&gpio0>;
365 interrupt-names = "intrq1", "intrq2";
366 interrupts = <7 IRQ_TYPE_LEVEL_LOW>,
367 <17 IRQ_TYPE_LEVEL_LOW>;
372 adv7482_ain7: endpoint {
373 remote-endpoint = <&cvbs_con>;
380 adv7482_hdmi: endpoint {
381 remote-endpoint = <&hdmi_in_con>;
388 adv7482_txa: endpoint {
391 remote-endpoint = <&csi40_in>;
401 compatible = "asahi-kasei,ak4613";
402 #sound-dai-cells = <0>;
404 clocks = <&rcar_sound 3>;
406 asahi-kasei,in1-single-end;
407 asahi-kasei,in2-single-end;
408 asahi-kasei,out1-single-end;
409 asahi-kasei,out2-single-end;
410 asahi-kasei,out3-single-end;
411 asahi-kasei,out4-single-end;
412 asahi-kasei,out5-single-end;
413 asahi-kasei,out6-single-end;
416 cs2000: clk-multiplier@4f {
418 compatible = "cirrus,cs2000-cp";
420 clocks = <&audio_clkout>, <&x12_clk>;
421 clock-names = "clk_in", "ref_clk";
423 assigned-clocks = <&cs2000>;
424 assigned-clock-rates = <24576000>; /* 1/1 divide */
431 clocks = <&cpg CPG_MOD 727>,
434 clock-names = "fck", "dclkin.0", "extal";
438 lvds0_out: endpoint {
439 remote-endpoint = <&thc63lvd1024_in>;
446 clocks = <&cpg CPG_MOD 727>,
449 clock-names = "fck", "dclkin.0", "extal";
458 clock-frequency = <100000000>;
468 groups = "avb_link", "avb_mii";
473 canfd0_pins: canfd0 {
474 groups = "canfd0_data";
479 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
494 groups = "sdhi0_data4", "sdhi0_ctrl";
496 power-source = <3300>;
499 sdhi0_pins_uhs: sd0_uhs {
500 groups = "sdhi0_data4", "sdhi0_ctrl";
502 power-source = <1800>;
506 groups = "sdhi1_data4", "sdhi1_ctrl";
508 power-source = <3300>;
511 sdhi1_pins_uhs: sd1_uhs {
512 groups = "sdhi1_data4", "sdhi1_ctrl";
514 power-source = <1800>;
518 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
520 power-source = <1800>;
524 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data";
528 sound_clk_pins: sound_clk {
529 groups = "audio_clk_a", "audio_clk_b_a", "audio_clk_c_a",
530 "audio_clkout_a", "audio_clkout1_a";
531 function = "audio_clk";
535 groups = "scif2_data_a";
540 groups = "usb0_b", "usb0_id";
551 pinctrl-0 = <&pwm3_pins>;
552 pinctrl-names = "default";
558 pinctrl-0 = <&pwm5_pins>;
559 pinctrl-names = "default";
565 pinctrl-0 = <&sound_pins &sound_clk_pins>;
566 pinctrl-names = "default";
569 #sound-dai-cells = <0>;
571 /* audio_clkout0/1/2/3 */
573 clock-frequency = <12288000 11289600>;
574 clkout-lr-synchronous;
578 /* update <audio_clk_b> to <cs2000> */
579 clocks = <&cpg CPG_MOD 1005>,
580 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
581 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
582 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
583 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
584 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
585 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
586 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
587 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
588 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
589 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
590 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
591 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
592 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
593 <&audio_clk_a>, <&cs2000>, <&audio_clk_c>,
594 <&cpg CPG_CORE R8A77990_CLK_ZA2>;
598 playback = <&ssi0 &src0 &dvc0>;
599 capture = <&ssi1 &src1 &dvc1>;
611 pinctrl-0 = <&scif2_pins>;
612 pinctrl-names = "default";
622 pinctrl-0 = <&usb0_pins>;
623 pinctrl-names = "default";
625 vbus-supply = <&vbus0_usb2>;
630 companion = <&xhci0>;
639 pinctrl-0 = <&usb30_pins>;
640 pinctrl-names = "default";
646 pinctrl-0 = <&sdhi0_pins>;
647 pinctrl-1 = <&sdhi0_pins_uhs>;
648 pinctrl-names = "default", "state_uhs";
650 vmmc-supply = <&vcc_sdhi0>;
651 vqmmc-supply = <&vccq_sdhi0>;
652 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
653 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
661 pinctrl-0 = <&sdhi1_pins>;
662 pinctrl-1 = <&sdhi1_pins_uhs>;
663 pinctrl-names = "default", "state_uhs";
665 vmmc-supply = <&vcc_sdhi1>;
666 vqmmc-supply = <&vccq_sdhi1>;
667 cd-gpios = <&gpio3 14 GPIO_ACTIVE_LOW>;
675 /* used for on-board 8bit eMMC */
676 pinctrl-0 = <&sdhi3_pins>;
677 pinctrl-1 = <&sdhi3_pins>;
678 pinctrl-names = "default", "state_uhs";
680 vmmc-supply = <®_3p3v>;
681 vqmmc-supply = <®_1p8v>;