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>;
42 backlight: backlight {
43 compatible = "pwm-backlight";
44 pwms = <&pwm3 0 50000>;
46 brightness-levels = <512 511 505 494 473 440 392 327 241 133 0>;
47 default-brightness-level = <10>;
49 power-supply = <®_12p0v>;
53 compatible = "composite-video-connector";
58 remote-endpoint = <&adv7482_ain7>;
64 compatible = "hdmi-connector";
69 hdmi_in_con: endpoint {
70 remote-endpoint = <&adv7482_hdmi>;
76 compatible = "hdmi-connector";
80 hdmi_con_out: endpoint {
81 remote-endpoint = <&adv7511_out>;
87 compatible = "thine,thc63lvd1024";
88 vcc-supply = <®_3p3v>;
96 thc63lvd1024_in: endpoint {
97 remote-endpoint = <&lvds0_out>;
103 thc63lvd1024_out: endpoint {
104 remote-endpoint = <&adv7511_in>;
111 compatible = "vga-connector";
115 remote-endpoint = <&adv7123_out>;
121 compatible = "adi,adv7123";
124 #address-cells = <1>;
129 adv7123_in: endpoint {
130 remote-endpoint = <&du_out_rgb>;
135 adv7123_out: endpoint {
136 remote-endpoint = <&vga_in>;
142 reg_1p8v: regulator0 {
143 compatible = "regulator-fixed";
144 regulator-name = "fixed-1.8V";
145 regulator-min-microvolt = <1800000>;
146 regulator-max-microvolt = <1800000>;
151 reg_3p3v: regulator1 {
152 compatible = "regulator-fixed";
153 regulator-name = "fixed-3.3V";
154 regulator-min-microvolt = <3300000>;
155 regulator-max-microvolt = <3300000>;
160 vbus0_usb2: regulator-vbus0-usb2 {
161 compatible = "regulator-fixed";
163 regulator-name = "USB20_VBUS_CN";
164 regulator-min-microvolt = <5000000>;
165 regulator-max-microvolt = <5000000>;
167 gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>;
172 compatible = "simple-audio-card";
174 simple-audio-card,name = "rsnd-ak4613";
175 simple-audio-card,format = "left_j";
176 simple-audio-card,bitclock-master = <&sndcpu>;
177 simple-audio-card,frame-master = <&sndcpu>;
179 sndcpu: simple-audio-card,cpu {
180 sound-dai = <&rcar_sound>;
183 sndcodec: simple-audio-card,codec {
184 sound-dai = <&ak4613>;
189 compatible = "fixed-clock";
191 clock-frequency = <24576000>;
194 reg_12p0v: regulator2 {
195 compatible = "regulator-fixed";
196 regulator-name = "D12.0V";
197 regulator-min-microvolt = <12000000>;
198 regulator-max-microvolt = <12000000>;
204 compatible = "fixed-clock";
206 clock-frequency = <74250000>;
209 vcc_sdhi0: regulator-vcc-sdhi0 {
210 compatible = "regulator-fixed";
212 regulator-name = "SDHI0 Vcc";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
216 gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
220 vccq_sdhi0: regulator-vccq-sdhi0 {
221 compatible = "regulator-gpio";
223 regulator-name = "SDHI0 VccQ";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <3300000>;
227 gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
233 vcc_sdhi1: regulator-vcc-sdhi1 {
234 compatible = "regulator-fixed";
236 regulator-name = "SDHI1 Vcc";
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
240 gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
244 vccq_sdhi1: regulator-vccq-sdhi1 {
245 compatible = "regulator-gpio";
247 regulator-name = "SDHI1 VccQ";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <3300000>;
251 gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
259 clock-frequency = <22579200>;
263 pinctrl-0 = <&avb_pins>;
264 pinctrl-names = "default";
265 renesas,no-ether-link;
266 phy-handle = <&phy0>;
269 phy0: ethernet-phy@0 {
270 rxc-skew-ps = <1500>;
272 interrupt-parent = <&gpio2>;
273 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
274 reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
279 pinctrl-0 = <&canfd0_pins>;
280 pinctrl-names = "default";
298 remote-endpoint = <&adv7482_txa>;
305 pinctrl-0 = <&du_pins>;
306 pinctrl-names = "default";
309 clocks = <&cpg CPG_MOD 724>,
312 clock-names = "du.0", "du.1", "dclkin.0";
317 remote-endpoint = <&adv7123_in>;
329 clock-frequency = <48000000>;
341 compatible = "adi,adv7511w";
343 interrupt-parent = <&gpio1>;
344 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
346 adi,input-depth = <8>;
347 adi,input-colorspace = "rgb";
348 adi,input-clock = "1x";
349 adi,input-style = <1>;
350 adi,input-justification = "evenly";
353 #address-cells = <1>;
358 adv7511_in: endpoint {
359 remote-endpoint = <&thc63lvd1024_out>;
365 adv7511_out: endpoint {
366 remote-endpoint = <&hdmi_con_out>;
373 compatible = "adi,adv7482";
376 #address-cells = <1>;
379 interrupt-parent = <&gpio0>;
380 interrupt-names = "intrq1", "intrq2";
381 interrupts = <7 IRQ_TYPE_LEVEL_LOW>,
382 <17 IRQ_TYPE_LEVEL_LOW>;
387 adv7482_ain7: endpoint {
388 remote-endpoint = <&cvbs_con>;
395 adv7482_hdmi: endpoint {
396 remote-endpoint = <&hdmi_in_con>;
403 adv7482_txa: endpoint {
406 remote-endpoint = <&csi40_in>;
416 compatible = "asahi-kasei,ak4613";
417 #sound-dai-cells = <0>;
419 clocks = <&rcar_sound 3>;
421 asahi-kasei,in1-single-end;
422 asahi-kasei,in2-single-end;
423 asahi-kasei,out1-single-end;
424 asahi-kasei,out2-single-end;
425 asahi-kasei,out3-single-end;
426 asahi-kasei,out4-single-end;
427 asahi-kasei,out5-single-end;
428 asahi-kasei,out6-single-end;
431 cs2000: clk-multiplier@4f {
433 compatible = "cirrus,cs2000-cp";
435 clocks = <&audio_clkout>, <&x12_clk>;
436 clock-names = "clk_in", "ref_clk";
438 assigned-clocks = <&cs2000>;
439 assigned-clock-rates = <24576000>; /* 1/1 divide */
446 clocks = <&cpg CPG_MOD 727>,
449 clock-names = "fck", "dclkin.0", "extal";
453 lvds0_out: endpoint {
454 remote-endpoint = <&thc63lvd1024_in>;
461 clocks = <&cpg CPG_MOD 727>,
464 clock-names = "fck", "dclkin.0", "extal";
473 clock-frequency = <100000000>;
483 groups = "avb_link", "avb_mii";
488 canfd0_pins: canfd0 {
489 groups = "canfd0_data";
494 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
509 groups = "sdhi0_data4", "sdhi0_ctrl";
511 power-source = <3300>;
514 sdhi0_pins_uhs: sd0_uhs {
515 groups = "sdhi0_data4", "sdhi0_ctrl";
517 power-source = <1800>;
521 groups = "sdhi1_data4", "sdhi1_ctrl";
523 power-source = <3300>;
526 sdhi1_pins_uhs: sd1_uhs {
527 groups = "sdhi1_data4", "sdhi1_ctrl";
529 power-source = <1800>;
533 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
535 power-source = <1800>;
539 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data";
543 sound_clk_pins: sound_clk {
544 groups = "audio_clk_a", "audio_clk_b_a", "audio_clk_c_a",
545 "audio_clkout_a", "audio_clkout1_a";
546 function = "audio_clk";
550 groups = "scif2_data_a";
555 groups = "usb0_b", "usb0_id";
566 pinctrl-0 = <&pwm3_pins>;
567 pinctrl-names = "default";
573 pinctrl-0 = <&pwm5_pins>;
574 pinctrl-names = "default";
580 pinctrl-0 = <&sound_pins &sound_clk_pins>;
581 pinctrl-names = "default";
584 #sound-dai-cells = <0>;
586 /* audio_clkout0/1/2/3 */
588 clock-frequency = <12288000 11289600>;
589 clkout-lr-synchronous;
593 /* update <audio_clk_b> to <cs2000> */
594 clocks = <&cpg CPG_MOD 1005>,
595 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
596 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
597 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
598 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
599 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
600 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
601 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
602 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
603 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
604 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
605 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
606 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
607 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
608 <&audio_clk_a>, <&cs2000>, <&audio_clk_c>,
609 <&cpg CPG_CORE R8A77990_CLK_ZA2>;
613 playback = <&ssi0 &src0 &dvc0>;
614 capture = <&ssi1 &src1 &dvc1>;
626 pinctrl-0 = <&scif2_pins>;
627 pinctrl-names = "default";
637 pinctrl-0 = <&usb0_pins>;
638 pinctrl-names = "default";
640 vbus-supply = <&vbus0_usb2>;
645 companion = <&xhci0>;
654 pinctrl-0 = <&usb30_pins>;
655 pinctrl-names = "default";
661 pinctrl-0 = <&sdhi0_pins>;
662 pinctrl-1 = <&sdhi0_pins_uhs>;
663 pinctrl-names = "default", "state_uhs";
665 vmmc-supply = <&vcc_sdhi0>;
666 vqmmc-supply = <&vccq_sdhi0>;
667 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
668 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
676 pinctrl-0 = <&sdhi1_pins>;
677 pinctrl-1 = <&sdhi1_pins_uhs>;
678 pinctrl-names = "default", "state_uhs";
680 vmmc-supply = <&vcc_sdhi1>;
681 vqmmc-supply = <&vccq_sdhi1>;
682 cd-gpios = <&gpio3 14 GPIO_ACTIVE_LOW>;
690 /* used for on-board 8bit eMMC */
691 pinctrl-0 = <&sdhi3_pins>;
692 pinctrl-1 = <&sdhi3_pins>;
693 pinctrl-names = "default", "state_uhs";
695 vmmc-supply = <®_3p3v>;
696 vqmmc-supply = <®_1p8v>;