1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Gose board
5 * Copyright (C) 2014-2015 Renesas Electronics Corporation
15 * This command is required when Playback/Capture
17 * amixer set "LINEOUT Mixer DACL" on
18 * amixer set "DVC Out" 100%
19 * amixer set "DVC In" 100%
23 * amixer set "DVC Out Mute" on
24 * amixer set "DVC In Mute" on
26 * You can use Volume Ramp
28 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
29 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
30 * amixer set "DVC Out Ramp" on
32 * amixer set "DVC Out" 80% // Volume Down
33 * amixer set "DVC Out" 100% // Volume Up
37 #include "r8a7793.dtsi"
38 #include <dt-bindings/gpio/gpio.h>
39 #include <dt-bindings/input/input.h>
43 compatible = "renesas,gose", "renesas,r8a7793";
55 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
56 stdout-path = "serial0:115200n8";
60 device_type = "memory";
61 reg = <0 0x40000000 0 0x40000000>;
65 compatible = "gpio-keys";
68 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
72 debounce-interval = <20>;
75 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
79 debounce-interval = <20>;
82 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
86 debounce-interval = <20>;
89 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
93 debounce-interval = <20>;
96 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
100 debounce-interval = <20>;
103 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_B>;
107 debounce-interval = <20>;
110 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
111 linux,code = <KEY_C>;
114 debounce-interval = <20>;
117 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_D>;
121 debounce-interval = <20>;
124 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_E>;
128 debounce-interval = <20>;
131 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
132 linux,code = <KEY_F>;
135 debounce-interval = <20>;
138 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
139 linux,code = <KEY_G>;
142 debounce-interval = <20>;
147 compatible = "gpio-leds";
149 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
153 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
157 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
162 vcc_sdhi0: regulator-vcc-sdhi0 {
163 compatible = "regulator-fixed";
165 regulator-name = "SDHI0 Vcc";
166 regulator-min-microvolt = <3300000>;
167 regulator-max-microvolt = <3300000>;
169 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
173 vccq_sdhi0: regulator-vccq-sdhi0 {
174 compatible = "regulator-gpio";
176 regulator-name = "SDHI0 VccQ";
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <3300000>;
180 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
182 states = <3300000 1>, <1800000 0>;
185 vcc_sdhi1: regulator-vcc-sdhi1 {
186 compatible = "regulator-fixed";
188 regulator-name = "SDHI1 Vcc";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
192 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
196 vccq_sdhi1: regulator-vccq-sdhi1 {
197 compatible = "regulator-gpio";
199 regulator-name = "SDHI1 VccQ";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <3300000>;
203 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
205 states = <3300000 1>, <1800000 0>;
208 vcc_sdhi2: regulator-vcc-sdhi2 {
209 compatible = "regulator-fixed";
211 regulator-name = "SDHI2 Vcc";
212 regulator-min-microvolt = <3300000>;
213 regulator-max-microvolt = <3300000>;
215 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
219 vccq_sdhi2: regulator-vccq-sdhi2 {
220 compatible = "regulator-gpio";
222 regulator-name = "SDHI2 VccQ";
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <3300000>;
226 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
228 states = <3300000 1>, <1800000 0>;
231 audio_clock: audio_clock {
232 compatible = "fixed-clock";
234 clock-frequency = <11289600>;
238 compatible = "simple-audio-card";
240 simple-audio-card,format = "left_j";
241 simple-audio-card,bitclock-master = <&sndcodec>;
242 simple-audio-card,frame-master = <&sndcodec>;
244 sndcpu: simple-audio-card,cpu {
245 sound-dai = <&rcar_sound>;
248 sndcodec: simple-audio-card,codec {
249 sound-dai = <&ak4643>;
250 clocks = <&audio_clock>;
255 compatible = "hdmi-connector";
259 hdmi_con_in: endpoint {
260 remote-endpoint = <&adv7612_in>;
266 compatible = "hdmi-connector";
270 hdmi_con_out: endpoint {
271 remote-endpoint = <&adv7511_out>;
277 compatible = "composite-video-connector";
280 composite_con_in: endpoint {
281 remote-endpoint = <&adv7180_in>;
287 compatible = "fixed-clock";
289 clock-frequency = <74250000>;
293 compatible = "fixed-clock";
295 clock-frequency = <148500000>;
299 #address-cells = <1>;
301 compatible = "i2c-gpio";
303 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
304 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
305 i2c-gpio,delay-us = <5>;
309 #address-cells = <1>;
311 compatible = "i2c-gpio";
313 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
314 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
315 i2c-gpio,delay-us = <5>;
319 * A fallback to GPIO is provided for I2C2.
322 compatible = "i2c-demux-pinctrl";
323 i2c-parent = <&i2c2>, <&gpioi2c2>;
324 i2c-bus-name = "i2c-hdmi";
325 #address-cells = <1>;
329 compatible = "asahi-kasei,ak4643";
330 #sound-dai-cells = <0>;
335 compatible = "adi,adv7180cp";
339 #address-cells = <1>;
344 adv7180_in: endpoint {
345 remote-endpoint = <&composite_con_in>;
351 adv7180_out: endpoint {
353 remote-endpoint = <&vin1ep>;
360 compatible = "adi,adv7511w";
362 interrupt-parent = <&gpio3>;
363 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
365 adi,input-depth = <8>;
366 adi,input-colorspace = "rgb";
367 adi,input-clock = "1x";
370 #address-cells = <1>;
375 adv7511_in: endpoint {
376 remote-endpoint = <&du_out_rgb>;
382 adv7511_out: endpoint {
383 remote-endpoint = <&hdmi_con_out>;
390 compatible = "adi,adv7612";
392 interrupt-parent = <&gpio4>;
393 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
397 #address-cells = <1>;
402 adv7612_in: endpoint {
403 remote-endpoint = <&hdmi_con_in>;
409 adv7612_out: endpoint {
410 remote-endpoint = <&vin0ep2>;
417 compatible = "renesas,r1ex24002", "atmel,24c02";
424 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
425 * A fallback to GPIO is provided.
428 compatible = "i2c-demux-pinctrl";
429 i2c-parent = <&i2c4>, <&gpioi2c4>;
430 i2c-bus-name = "i2c-exio4";
431 #address-cells = <1>;
437 pinctrl-0 = <&du_pins>;
438 pinctrl-names = "default";
441 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
442 <&x13_clk>, <&x2_clk>;
443 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
448 remote-endpoint = <&adv7511_in>;
457 lvds_connector: endpoint {
464 clock-frequency = <20000000>;
468 pinctrl-0 = <&scif_clk_pins>;
469 pinctrl-names = "default";
482 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
487 groups = "scif0_data_d";
492 groups = "scif1_data_d";
496 scif_clk_pins: scif_clk {
498 function = "scif_clk";
502 groups = "eth_link", "eth_mdio", "eth_rmii";
507 groups = "intc_irq0";
511 pmic_irq_pins: pmicirq {
512 groups = "intc_irq2";
517 groups = "sdhi0_data4", "sdhi0_ctrl";
519 power-source = <3300>;
522 sdhi0_pins_uhs: sd0_uhs {
523 groups = "sdhi0_data4", "sdhi0_ctrl";
525 power-source = <1800>;
529 groups = "sdhi1_data4", "sdhi1_ctrl";
531 power-source = <3300>;
534 sdhi1_pins_uhs: sd1_uhs {
535 groups = "sdhi1_data4", "sdhi1_ctrl";
537 power-source = <1800>;
541 groups = "sdhi2_data4", "sdhi2_ctrl";
543 power-source = <3300>;
546 sdhi2_pins_uhs: sd2_uhs {
547 groups = "sdhi2_data4", "sdhi2_ctrl";
549 power-source = <1800>;
553 groups = "qspi_ctrl", "qspi_data4";
558 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
562 sound_clk_pins: sound_clk {
563 groups = "audio_clk_a";
564 function = "audio_clk";
568 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
573 groups = "vin1_data8", "vin1_clk";
579 pinctrl-0 = <ðer_pins &phy1_pins>;
580 pinctrl-names = "default";
582 phy-handle = <&phy1>;
583 renesas,ether-link-active-low;
586 phy1: ethernet-phy@1 {
588 interrupt-parent = <&irqc0>;
589 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
590 micrel,led-mode = <1>;
591 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
600 cpu0-supply = <&vdd_dvfs>;
609 pinctrl-0 = <&scif0_pins>;
610 pinctrl-names = "default";
616 pinctrl-0 = <&scif1_pins>;
617 pinctrl-names = "default";
623 clock-frequency = <14745600>;
627 pinctrl-0 = <&sdhi0_pins>;
628 pinctrl-1 = <&sdhi0_pins_uhs>;
629 pinctrl-names = "default", "state_uhs";
631 vmmc-supply = <&vcc_sdhi0>;
632 vqmmc-supply = <&vccq_sdhi0>;
633 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
634 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
641 pinctrl-0 = <&sdhi1_pins>;
642 pinctrl-1 = <&sdhi1_pins_uhs>;
643 pinctrl-names = "default", "state_uhs";
645 vmmc-supply = <&vcc_sdhi1>;
646 vqmmc-supply = <&vccq_sdhi1>;
647 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
648 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
654 pinctrl-0 = <&sdhi2_pins>;
655 pinctrl-1 = <&sdhi2_pins_uhs>;
656 pinctrl-names = "default", "state_uhs";
658 vmmc-supply = <&vcc_sdhi2>;
659 vqmmc-supply = <&vccq_sdhi2>;
660 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
666 pinctrl-0 = <&qspi_pins>;
667 pinctrl-names = "default";
672 compatible = "spansion,s25fl512s", "jedec,spi-nor";
674 spi-max-frequency = <30000000>;
675 spi-tx-bus-width = <4>;
676 spi-rx-bus-width = <4>;
682 compatible = "fixed-partitions";
683 #address-cells = <1>;
688 reg = <0x00000000 0x00040000>;
693 reg = <0x00040000 0x00400000>;
698 reg = <0x00440000 0x03bc0000>;
705 pinctrl-0 = <&i2c2_pins>;
706 pinctrl-names = "i2c-hdmi";
709 clock-frequency = <100000>;
714 pinctrl-names = "default";
715 pinctrl-0 = <&pmic_irq_pins>;
717 clock-frequency = <100000>;
720 compatible = "dlg,da9063";
722 interrupt-parent = <&irqc0>;
723 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
724 interrupt-controller;
727 compatible = "dlg,da9063-rtc";
731 compatible = "dlg,da9063-watchdog";
735 vdd_dvfs: regulator@68 {
736 compatible = "dlg,da9210";
738 interrupt-parent = <&irqc0>;
739 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
741 regulator-min-microvolt = <1000000>;
742 regulator-max-microvolt = <1000000>;
749 pinctrl-0 = <&i2c4_pins>;
750 pinctrl-names = "i2c-exio4";
754 pinctrl-0 = <&sound_pins &sound_clk_pins>;
755 pinctrl-names = "default";
758 #sound-dai-cells = <0>;
764 playback = <&ssi0 &src2 &dvc0>;
765 capture = <&ssi1 &src3 &dvc1>;
774 /* HDMI video input */
777 pinctrl-0 = <&vin0_pins>;
778 pinctrl-names = "default";
782 remote-endpoint = <&adv7612_out>;
792 /* composite video input */
794 pinctrl-0 = <&vin1_pins>;
795 pinctrl-names = "default";
801 remote-endpoint = <&adv7180_out>;