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";
369 adi,input-style = <1>;
370 adi,input-justification = "evenly";
373 #address-cells = <1>;
378 adv7511_in: endpoint {
379 remote-endpoint = <&du_out_rgb>;
385 adv7511_out: endpoint {
386 remote-endpoint = <&hdmi_con_out>;
393 compatible = "adi,adv7612";
395 interrupt-parent = <&gpio4>;
396 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
400 #address-cells = <1>;
405 adv7612_in: endpoint {
406 remote-endpoint = <&hdmi_con_in>;
412 adv7612_out: endpoint {
413 remote-endpoint = <&vin0ep2>;
420 compatible = "renesas,r1ex24002", "atmel,24c02";
427 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
428 * A fallback to GPIO is provided.
431 compatible = "i2c-demux-pinctrl";
432 i2c-parent = <&i2c4>, <&gpioi2c4>;
433 i2c-bus-name = "i2c-exio4";
434 #address-cells = <1>;
440 pinctrl-0 = <&du_pins>;
441 pinctrl-names = "default";
444 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
445 <&x13_clk>, <&x2_clk>;
446 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
451 remote-endpoint = <&adv7511_in>;
460 lvds_connector: endpoint {
467 clock-frequency = <20000000>;
471 pinctrl-0 = <&scif_clk_pins>;
472 pinctrl-names = "default";
485 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
490 groups = "scif0_data_d";
495 groups = "scif1_data_d";
499 scif_clk_pins: scif_clk {
501 function = "scif_clk";
505 groups = "eth_link", "eth_mdio", "eth_rmii";
510 groups = "intc_irq0";
514 pmic_irq_pins: pmicirq {
515 groups = "intc_irq2";
520 groups = "sdhi0_data4", "sdhi0_ctrl";
522 power-source = <3300>;
525 sdhi0_pins_uhs: sd0_uhs {
526 groups = "sdhi0_data4", "sdhi0_ctrl";
528 power-source = <1800>;
532 groups = "sdhi1_data4", "sdhi1_ctrl";
534 power-source = <3300>;
537 sdhi1_pins_uhs: sd1_uhs {
538 groups = "sdhi1_data4", "sdhi1_ctrl";
540 power-source = <1800>;
544 groups = "sdhi2_data4", "sdhi2_ctrl";
546 power-source = <3300>;
549 sdhi2_pins_uhs: sd2_uhs {
550 groups = "sdhi2_data4", "sdhi2_ctrl";
552 power-source = <1800>;
556 groups = "qspi_ctrl", "qspi_data4";
561 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
565 sound_clk_pins: sound_clk {
566 groups = "audio_clk_a";
567 function = "audio_clk";
571 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
576 groups = "vin1_data8", "vin1_clk";
582 pinctrl-0 = <ðer_pins &phy1_pins>;
583 pinctrl-names = "default";
585 phy-handle = <&phy1>;
586 renesas,ether-link-active-low;
589 phy1: ethernet-phy@1 {
591 interrupt-parent = <&irqc0>;
592 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
593 micrel,led-mode = <1>;
602 cpu0-supply = <&vdd_dvfs>;
611 pinctrl-0 = <&scif0_pins>;
612 pinctrl-names = "default";
618 pinctrl-0 = <&scif1_pins>;
619 pinctrl-names = "default";
625 clock-frequency = <14745600>;
629 pinctrl-0 = <&sdhi0_pins>;
630 pinctrl-1 = <&sdhi0_pins_uhs>;
631 pinctrl-names = "default", "state_uhs";
633 vmmc-supply = <&vcc_sdhi0>;
634 vqmmc-supply = <&vccq_sdhi0>;
635 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
636 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
643 pinctrl-0 = <&sdhi1_pins>;
644 pinctrl-1 = <&sdhi1_pins_uhs>;
645 pinctrl-names = "default", "state_uhs";
647 vmmc-supply = <&vcc_sdhi1>;
648 vqmmc-supply = <&vccq_sdhi1>;
649 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
650 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
656 pinctrl-0 = <&sdhi2_pins>;
657 pinctrl-1 = <&sdhi2_pins_uhs>;
658 pinctrl-names = "default", "state_uhs";
660 vmmc-supply = <&vcc_sdhi2>;
661 vqmmc-supply = <&vccq_sdhi2>;
662 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
668 pinctrl-0 = <&qspi_pins>;
669 pinctrl-names = "default";
674 compatible = "spansion,s25fl512s", "jedec,spi-nor";
676 spi-max-frequency = <30000000>;
677 spi-tx-bus-width = <4>;
678 spi-rx-bus-width = <4>;
684 compatible = "fixed-partitions";
685 #address-cells = <1>;
690 reg = <0x00000000 0x00040000>;
695 reg = <0x00040000 0x00400000>;
700 reg = <0x00440000 0x03bc0000>;
707 pinctrl-0 = <&i2c2_pins>;
708 pinctrl-names = "i2c-hdmi";
711 clock-frequency = <100000>;
716 pinctrl-names = "default";
717 pinctrl-0 = <&pmic_irq_pins>;
719 clock-frequency = <100000>;
722 compatible = "dlg,da9063";
724 interrupt-parent = <&irqc0>;
725 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
726 interrupt-controller;
729 compatible = "dlg,da9063-rtc";
733 compatible = "dlg,da9063-watchdog";
737 vdd_dvfs: regulator@68 {
738 compatible = "dlg,da9210";
740 interrupt-parent = <&irqc0>;
741 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
743 regulator-min-microvolt = <1000000>;
744 regulator-max-microvolt = <1000000>;
751 pinctrl-0 = <&i2c4_pins>;
752 pinctrl-names = "i2c-exio4";
756 pinctrl-0 = <&sound_pins &sound_clk_pins>;
757 pinctrl-names = "default";
760 #sound-dai-cells = <0>;
766 playback = <&ssi0 &src2 &dvc0>;
767 capture = <&ssi1 &src3 &dvc1>;
776 /* HDMI video input */
779 pinctrl-0 = <&vin0_pins>;
780 pinctrl-names = "default";
784 remote-endpoint = <&adv7612_out>;
794 /* composite video input */
796 pinctrl-0 = <&vin1_pins>;
797 pinctrl-names = "default";
803 remote-endpoint = <&adv7180_out>;