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";
58 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
59 stdout-path = "serial0:115200n8";
63 device_type = "memory";
64 reg = <0 0x40000000 0 0x40000000>;
68 compatible = "gpio-keys";
71 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
75 debounce-interval = <20>;
78 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
82 debounce-interval = <20>;
85 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
89 debounce-interval = <20>;
92 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
96 debounce-interval = <20>;
99 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_A>;
103 debounce-interval = <20>;
106 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_B>;
110 debounce-interval = <20>;
113 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_C>;
117 debounce-interval = <20>;
120 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_D>;
124 debounce-interval = <20>;
127 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_E>;
131 debounce-interval = <20>;
134 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_F>;
138 debounce-interval = <20>;
141 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
142 linux,code = <KEY_G>;
145 debounce-interval = <20>;
150 compatible = "gpio-leds";
152 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
156 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
160 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
165 vcc_sdhi0: regulator-vcc-sdhi0 {
166 compatible = "regulator-fixed";
168 regulator-name = "SDHI0 Vcc";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
172 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
176 vccq_sdhi0: regulator-vccq-sdhi0 {
177 compatible = "regulator-gpio";
179 regulator-name = "SDHI0 VccQ";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <3300000>;
183 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
185 states = <3300000 1>, <1800000 0>;
188 vcc_sdhi1: regulator-vcc-sdhi1 {
189 compatible = "regulator-fixed";
191 regulator-name = "SDHI1 Vcc";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
195 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
199 vccq_sdhi1: regulator-vccq-sdhi1 {
200 compatible = "regulator-gpio";
202 regulator-name = "SDHI1 VccQ";
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <3300000>;
206 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
208 states = <3300000 1>, <1800000 0>;
211 vcc_sdhi2: regulator-vcc-sdhi2 {
212 compatible = "regulator-fixed";
214 regulator-name = "SDHI2 Vcc";
215 regulator-min-microvolt = <3300000>;
216 regulator-max-microvolt = <3300000>;
218 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
222 vccq_sdhi2: regulator-vccq-sdhi2 {
223 compatible = "regulator-gpio";
225 regulator-name = "SDHI2 VccQ";
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <3300000>;
229 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
231 states = <3300000 1>, <1800000 0>;
234 audio_clock: audio_clock {
235 compatible = "fixed-clock";
237 clock-frequency = <11289600>;
241 compatible = "simple-audio-card";
243 simple-audio-card,format = "left_j";
244 simple-audio-card,bitclock-master = <&sndcodec>;
245 simple-audio-card,frame-master = <&sndcodec>;
247 sndcpu: simple-audio-card,cpu {
248 sound-dai = <&rcar_sound>;
251 sndcodec: simple-audio-card,codec {
252 sound-dai = <&ak4643>;
253 clocks = <&audio_clock>;
258 compatible = "hdmi-connector";
262 hdmi_con_in: endpoint {
263 remote-endpoint = <&adv7612_in>;
269 compatible = "hdmi-connector";
273 hdmi_con_out: endpoint {
274 remote-endpoint = <&adv7511_out>;
280 compatible = "composite-video-connector";
283 composite_con_in: endpoint {
284 remote-endpoint = <&adv7180_in>;
290 compatible = "fixed-clock";
292 clock-frequency = <74250000>;
296 compatible = "fixed-clock";
298 clock-frequency = <148500000>;
302 #address-cells = <1>;
304 compatible = "i2c-gpio";
306 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
307 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
308 i2c-gpio,delay-us = <5>;
312 #address-cells = <1>;
314 compatible = "i2c-gpio";
316 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
317 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
318 i2c-gpio,delay-us = <5>;
322 * A fallback to GPIO is provided for I2C2.
325 compatible = "i2c-demux-pinctrl";
326 i2c-parent = <&i2c2>, <&gpioi2c2>;
327 i2c-bus-name = "i2c-hdmi";
328 #address-cells = <1>;
332 compatible = "asahi-kasei,ak4643";
333 #sound-dai-cells = <0>;
338 compatible = "adi,adv7180cp";
342 #address-cells = <1>;
347 adv7180_in: endpoint {
348 remote-endpoint = <&composite_con_in>;
354 adv7180_out: endpoint {
356 remote-endpoint = <&vin1ep>;
363 compatible = "adi,adv7511w";
365 interrupt-parent = <&gpio3>;
366 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
368 adi,input-depth = <8>;
369 adi,input-colorspace = "rgb";
370 adi,input-clock = "1x";
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>;
594 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
603 cpu0-supply = <&vdd_dvfs>;
612 pinctrl-0 = <&scif0_pins>;
613 pinctrl-names = "default";
619 pinctrl-0 = <&scif1_pins>;
620 pinctrl-names = "default";
626 clock-frequency = <14745600>;
630 pinctrl-0 = <&sdhi0_pins>;
631 pinctrl-1 = <&sdhi0_pins_uhs>;
632 pinctrl-names = "default", "state_uhs";
634 vmmc-supply = <&vcc_sdhi0>;
635 vqmmc-supply = <&vccq_sdhi0>;
636 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
637 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
644 pinctrl-0 = <&sdhi1_pins>;
645 pinctrl-1 = <&sdhi1_pins_uhs>;
646 pinctrl-names = "default", "state_uhs";
648 vmmc-supply = <&vcc_sdhi1>;
649 vqmmc-supply = <&vccq_sdhi1>;
650 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
651 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
657 pinctrl-0 = <&sdhi2_pins>;
658 pinctrl-1 = <&sdhi2_pins_uhs>;
659 pinctrl-names = "default", "state_uhs";
661 vmmc-supply = <&vcc_sdhi2>;
662 vqmmc-supply = <&vccq_sdhi2>;
663 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
669 pinctrl-0 = <&qspi_pins>;
670 pinctrl-names = "default";
675 compatible = "spansion,s25fl512s", "jedec,spi-nor";
677 spi-max-frequency = <30000000>;
678 spi-tx-bus-width = <4>;
679 spi-rx-bus-width = <4>;
685 compatible = "fixed-partitions";
686 #address-cells = <1>;
691 reg = <0x00000000 0x00040000>;
696 reg = <0x00040000 0x00400000>;
701 reg = <0x00440000 0x03bc0000>;
708 pinctrl-0 = <&i2c2_pins>;
709 pinctrl-names = "i2c-hdmi";
712 clock-frequency = <100000>;
717 pinctrl-names = "default";
718 pinctrl-0 = <&pmic_irq_pins>;
720 clock-frequency = <100000>;
723 compatible = "dlg,da9063";
725 interrupt-parent = <&irqc0>;
726 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
727 interrupt-controller;
730 compatible = "dlg,da9063-rtc";
734 compatible = "dlg,da9063-watchdog";
738 vdd_dvfs: regulator@68 {
739 compatible = "dlg,da9210";
741 interrupt-parent = <&irqc0>;
742 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
744 regulator-min-microvolt = <1000000>;
745 regulator-max-microvolt = <1000000>;
752 pinctrl-0 = <&i2c4_pins>;
753 pinctrl-names = "i2c-exio4";
757 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
758 pinctrl-names = "default";
761 #sound-dai-cells = <0>;
767 playback = <&ssi0>, <&src2>, <&dvc0>;
768 capture = <&ssi1>, <&src3>, <&dvc1>;
777 /* HDMI video input */
780 pinctrl-0 = <&vin0_pins>;
781 pinctrl-names = "default";
785 remote-endpoint = <&adv7612_out>;
795 /* composite video input */
797 pinctrl-0 = <&vin1_pins>;
798 pinctrl-names = "default";
804 remote-endpoint = <&adv7180_out>;