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";
340 #address-cells = <1>;
345 adv7180_in: endpoint {
346 remote-endpoint = <&composite_con_in>;
352 adv7180_out: endpoint {
354 remote-endpoint = <&vin1ep>;
361 compatible = "adi,adv7511w";
363 interrupt-parent = <&gpio3>;
364 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
366 adi,input-depth = <8>;
367 adi,input-colorspace = "rgb";
368 adi,input-clock = "1x";
371 #address-cells = <1>;
376 adv7511_in: endpoint {
377 remote-endpoint = <&du_out_rgb>;
383 adv7511_out: endpoint {
384 remote-endpoint = <&hdmi_con_out>;
391 compatible = "adi,adv7612";
393 interrupt-parent = <&gpio4>;
394 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
398 #address-cells = <1>;
403 adv7612_in: endpoint {
404 remote-endpoint = <&hdmi_con_in>;
410 adv7612_out: endpoint {
411 remote-endpoint = <&vin0ep2>;
418 compatible = "renesas,r1ex24002", "atmel,24c02";
425 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
426 * A fallback to GPIO is provided.
429 compatible = "i2c-demux-pinctrl";
430 i2c-parent = <&i2c4>, <&gpioi2c4>;
431 i2c-bus-name = "i2c-exio4";
432 #address-cells = <1>;
438 pinctrl-0 = <&du_pins>;
439 pinctrl-names = "default";
442 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
443 <&x13_clk>, <&x2_clk>;
444 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
449 remote-endpoint = <&adv7511_in>;
458 lvds_connector: endpoint {
465 clock-frequency = <20000000>;
469 pinctrl-0 = <&scif_clk_pins>;
470 pinctrl-names = "default";
483 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
488 groups = "scif0_data_d";
493 groups = "scif1_data_d";
497 scif_clk_pins: scif_clk {
499 function = "scif_clk";
503 groups = "eth_link", "eth_mdio", "eth_rmii";
508 groups = "intc_irq0";
512 pmic_irq_pins: pmicirq {
513 groups = "intc_irq2";
518 groups = "sdhi0_data4", "sdhi0_ctrl";
520 power-source = <3300>;
523 sdhi0_pins_uhs: sd0_uhs {
524 groups = "sdhi0_data4", "sdhi0_ctrl";
526 power-source = <1800>;
530 groups = "sdhi1_data4", "sdhi1_ctrl";
532 power-source = <3300>;
535 sdhi1_pins_uhs: sd1_uhs {
536 groups = "sdhi1_data4", "sdhi1_ctrl";
538 power-source = <1800>;
542 groups = "sdhi2_data4", "sdhi2_ctrl";
544 power-source = <3300>;
547 sdhi2_pins_uhs: sd2_uhs {
548 groups = "sdhi2_data4", "sdhi2_ctrl";
550 power-source = <1800>;
554 groups = "qspi_ctrl", "qspi_data4";
559 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
563 sound_clk_pins: sound_clk {
564 groups = "audio_clk_a";
565 function = "audio_clk";
569 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
574 groups = "vin1_data8", "vin1_clk";
580 pinctrl-0 = <ðer_pins &phy1_pins>;
581 pinctrl-names = "default";
583 phy-handle = <&phy1>;
584 renesas,ether-link-active-low;
587 phy1: ethernet-phy@1 {
589 interrupt-parent = <&irqc0>;
590 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
591 micrel,led-mode = <1>;
592 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
601 cpu0-supply = <&vdd_dvfs>;
610 pinctrl-0 = <&scif0_pins>;
611 pinctrl-names = "default";
617 pinctrl-0 = <&scif1_pins>;
618 pinctrl-names = "default";
624 clock-frequency = <14745600>;
628 pinctrl-0 = <&sdhi0_pins>;
629 pinctrl-1 = <&sdhi0_pins_uhs>;
630 pinctrl-names = "default", "state_uhs";
632 vmmc-supply = <&vcc_sdhi0>;
633 vqmmc-supply = <&vccq_sdhi0>;
634 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
635 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
642 pinctrl-0 = <&sdhi1_pins>;
643 pinctrl-1 = <&sdhi1_pins_uhs>;
644 pinctrl-names = "default", "state_uhs";
646 vmmc-supply = <&vcc_sdhi1>;
647 vqmmc-supply = <&vccq_sdhi1>;
648 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
649 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
655 pinctrl-0 = <&sdhi2_pins>;
656 pinctrl-1 = <&sdhi2_pins_uhs>;
657 pinctrl-names = "default", "state_uhs";
659 vmmc-supply = <&vcc_sdhi2>;
660 vqmmc-supply = <&vccq_sdhi2>;
661 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
667 pinctrl-0 = <&qspi_pins>;
668 pinctrl-names = "default";
673 compatible = "spansion,s25fl512s", "jedec,spi-nor";
675 spi-max-frequency = <30000000>;
676 spi-tx-bus-width = <4>;
677 spi-rx-bus-width = <4>;
683 compatible = "fixed-partitions";
684 #address-cells = <1>;
689 reg = <0x00000000 0x00040000>;
694 reg = <0x00040000 0x00400000>;
699 reg = <0x00440000 0x03bc0000>;
706 pinctrl-0 = <&i2c2_pins>;
707 pinctrl-names = "i2c-hdmi";
710 clock-frequency = <100000>;
715 pinctrl-names = "default";
716 pinctrl-0 = <&pmic_irq_pins>;
718 clock-frequency = <100000>;
721 compatible = "dlg,da9063";
723 interrupt-parent = <&irqc0>;
724 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
725 interrupt-controller;
728 compatible = "dlg,da9063-rtc";
732 compatible = "dlg,da9063-watchdog";
736 vdd_dvfs: regulator@68 {
737 compatible = "dlg,da9210";
739 interrupt-parent = <&irqc0>;
740 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
742 regulator-min-microvolt = <1000000>;
743 regulator-max-microvolt = <1000000>;
750 pinctrl-0 = <&i2c4_pins>;
751 pinctrl-names = "i2c-exio4";
755 pinctrl-0 = <&sound_pins &sound_clk_pins>;
756 pinctrl-names = "default";
759 #sound-dai-cells = <0>;
765 playback = <&ssi0 &src2 &dvc0>;
766 capture = <&ssi1 &src3 &dvc1>;
775 /* HDMI video input */
778 pinctrl-0 = <&vin0_pins>;
779 pinctrl-names = "default";
783 remote-endpoint = <&adv7612_out>;
793 /* composite video input */
795 pinctrl-0 = <&vin1_pins>;
796 pinctrl-names = "default";
802 remote-endpoint = <&adv7180_out>;