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>;
273 remote-endpoint = <&adv7482_txa>;
280 pinctrl-0 = <&du_pins>;
281 pinctrl-names = "default";
284 clocks = <&cpg CPG_MOD 724>,
287 clock-names = "du.0", "du.1", "dclkin.0";
292 remote-endpoint = <&adv7123_in>;
304 clock-frequency = <48000000>;
316 compatible = "adi,adv7511w";
318 interrupt-parent = <&gpio1>;
319 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
321 adi,input-depth = <8>;
322 adi,input-colorspace = "rgb";
323 adi,input-clock = "1x";
324 adi,input-style = <1>;
325 adi,input-justification = "evenly";
328 #address-cells = <1>;
333 adv7511_in: endpoint {
334 remote-endpoint = <&thc63lvd1024_out>;
340 adv7511_out: endpoint {
341 remote-endpoint = <&hdmi_con_out>;
348 compatible = "adi,adv7482";
351 #address-cells = <1>;
354 interrupt-parent = <&gpio0>;
355 interrupt-names = "intrq1", "intrq2";
356 interrupts = <7 IRQ_TYPE_LEVEL_LOW>,
357 <17 IRQ_TYPE_LEVEL_LOW>;
362 adv7482_ain7: endpoint {
363 remote-endpoint = <&cvbs_con>;
370 adv7482_hdmi: endpoint {
371 remote-endpoint = <&hdmi_in_con>;
378 adv7482_txa: endpoint {
381 remote-endpoint = <&csi40_in>;
391 compatible = "asahi-kasei,ak4613";
392 #sound-dai-cells = <0>;
394 clocks = <&rcar_sound 3>;
396 asahi-kasei,in1-single-end;
397 asahi-kasei,in2-single-end;
398 asahi-kasei,out1-single-end;
399 asahi-kasei,out2-single-end;
400 asahi-kasei,out3-single-end;
401 asahi-kasei,out4-single-end;
402 asahi-kasei,out5-single-end;
403 asahi-kasei,out6-single-end;
406 cs2000: clk-multiplier@4f {
408 compatible = "cirrus,cs2000-cp";
410 clocks = <&audio_clkout>, <&x12_clk>;
411 clock-names = "clk_in", "ref_clk";
413 assigned-clocks = <&cs2000>;
414 assigned-clock-rates = <24576000>; /* 1/1 divide */
421 clocks = <&cpg CPG_MOD 727>,
424 clock-names = "fck", "dclkin.0", "extal";
428 lvds0_out: endpoint {
429 remote-endpoint = <&thc63lvd1024_in>;
436 clocks = <&cpg CPG_MOD 727>,
439 clock-names = "fck", "dclkin.0", "extal";
448 clock-frequency = <100000000>;
458 groups = "avb_link", "avb_mii";
464 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
479 groups = "sdhi0_data4", "sdhi0_ctrl";
481 power-source = <3300>;
484 sdhi0_pins_uhs: sd0_uhs {
485 groups = "sdhi0_data4", "sdhi0_ctrl";
487 power-source = <1800>;
491 groups = "sdhi1_data4", "sdhi1_ctrl";
493 power-source = <3300>;
496 sdhi1_pins_uhs: sd1_uhs {
497 groups = "sdhi1_data4", "sdhi1_ctrl";
499 power-source = <1800>;
503 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
505 power-source = <1800>;
509 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data";
513 sound_clk_pins: sound_clk {
514 groups = "audio_clk_a", "audio_clk_b_a", "audio_clk_c_a",
515 "audio_clkout_a", "audio_clkout1_a";
516 function = "audio_clk";
520 groups = "scif2_data_a";
525 groups = "usb0_b", "usb0_id";
536 pinctrl-0 = <&pwm3_pins>;
537 pinctrl-names = "default";
543 pinctrl-0 = <&pwm5_pins>;
544 pinctrl-names = "default";
550 pinctrl-0 = <&sound_pins &sound_clk_pins>;
551 pinctrl-names = "default";
554 #sound-dai-cells = <0>;
556 /* audio_clkout0/1/2/3 */
558 clock-frequency = <12288000 11289600>;
559 clkout-lr-synchronous;
563 /* update <audio_clk_b> to <cs2000> */
564 clocks = <&cpg CPG_MOD 1005>,
565 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
566 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
567 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
568 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
569 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
570 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
571 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
572 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
573 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
574 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
575 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
576 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
577 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
578 <&audio_clk_a>, <&cs2000>, <&audio_clk_c>,
579 <&cpg CPG_CORE R8A77990_CLK_ZA2>;
583 playback = <&ssi0 &src0 &dvc0>;
584 capture = <&ssi1 &src1 &dvc1>;
596 pinctrl-0 = <&scif2_pins>;
597 pinctrl-names = "default";
607 pinctrl-0 = <&usb0_pins>;
608 pinctrl-names = "default";
610 vbus-supply = <&vbus0_usb2>;
615 companion = <&xhci0>;
624 pinctrl-0 = <&usb30_pins>;
625 pinctrl-names = "default";
631 pinctrl-0 = <&sdhi0_pins>;
632 pinctrl-1 = <&sdhi0_pins_uhs>;
633 pinctrl-names = "default", "state_uhs";
635 vmmc-supply = <&vcc_sdhi0>;
636 vqmmc-supply = <&vccq_sdhi0>;
637 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
638 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
646 pinctrl-0 = <&sdhi1_pins>;
647 pinctrl-1 = <&sdhi1_pins_uhs>;
648 pinctrl-names = "default", "state_uhs";
650 vmmc-supply = <&vcc_sdhi1>;
651 vqmmc-supply = <&vccq_sdhi1>;
652 cd-gpios = <&gpio3 14 GPIO_ACTIVE_LOW>;
660 /* used for on-board 8bit eMMC */
661 pinctrl-0 = <&sdhi3_pins>;
662 pinctrl-1 = <&sdhi3_pins>;
663 pinctrl-names = "default", "state_uhs";
665 vmmc-supply = <®_3p3v>;
666 vqmmc-supply = <®_1p8v>;