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";
70 pinctrl-0 = <&keyboard_pins>;
71 pinctrl-names = "default";
74 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
78 debounce-interval = <20>;
81 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
85 debounce-interval = <20>;
88 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
92 debounce-interval = <20>;
95 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
99 debounce-interval = <20>;
102 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_A>;
106 debounce-interval = <20>;
109 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_B>;
113 debounce-interval = <20>;
116 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_C>;
120 debounce-interval = <20>;
123 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_D>;
127 debounce-interval = <20>;
130 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_E>;
134 debounce-interval = <20>;
137 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_F>;
141 debounce-interval = <20>;
144 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
145 linux,code = <KEY_G>;
148 debounce-interval = <20>;
153 compatible = "gpio-leds";
155 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
159 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
163 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
168 vcc_sdhi0: regulator-vcc-sdhi0 {
169 compatible = "regulator-fixed";
171 regulator-name = "SDHI0 Vcc";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
175 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
179 vccq_sdhi0: regulator-vccq-sdhi0 {
180 compatible = "regulator-gpio";
182 regulator-name = "SDHI0 VccQ";
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <3300000>;
186 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
188 states = <3300000 1>, <1800000 0>;
191 vcc_sdhi1: regulator-vcc-sdhi1 {
192 compatible = "regulator-fixed";
194 regulator-name = "SDHI1 Vcc";
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
198 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
202 vccq_sdhi1: regulator-vccq-sdhi1 {
203 compatible = "regulator-gpio";
205 regulator-name = "SDHI1 VccQ";
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <3300000>;
209 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
211 states = <3300000 1>, <1800000 0>;
214 vcc_sdhi2: regulator-vcc-sdhi2 {
215 compatible = "regulator-fixed";
217 regulator-name = "SDHI2 Vcc";
218 regulator-min-microvolt = <3300000>;
219 regulator-max-microvolt = <3300000>;
221 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
225 vccq_sdhi2: regulator-vccq-sdhi2 {
226 compatible = "regulator-gpio";
228 regulator-name = "SDHI2 VccQ";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <3300000>;
232 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
234 states = <3300000 1>, <1800000 0>;
237 audio_clock: audio_clock {
238 compatible = "fixed-clock";
240 clock-frequency = <11289600>;
244 compatible = "simple-audio-card";
246 simple-audio-card,format = "left_j";
247 simple-audio-card,bitclock-master = <&sndcodec>;
248 simple-audio-card,frame-master = <&sndcodec>;
250 sndcpu: simple-audio-card,cpu {
251 sound-dai = <&rcar_sound>;
254 sndcodec: simple-audio-card,codec {
255 sound-dai = <&ak4643>;
256 clocks = <&audio_clock>;
261 compatible = "hdmi-connector";
265 hdmi_con_in: endpoint {
266 remote-endpoint = <&adv7612_in>;
272 compatible = "hdmi-connector";
276 hdmi_con_out: endpoint {
277 remote-endpoint = <&adv7511_out>;
283 compatible = "composite-video-connector";
286 composite_con_in: endpoint {
287 remote-endpoint = <&adv7180_in>;
293 compatible = "fixed-clock";
295 clock-frequency = <74250000>;
299 compatible = "fixed-clock";
301 clock-frequency = <148500000>;
305 #address-cells = <1>;
307 compatible = "i2c-gpio";
309 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
310 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
311 i2c-gpio,delay-us = <5>;
315 #address-cells = <1>;
317 compatible = "i2c-gpio";
319 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
320 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
321 i2c-gpio,delay-us = <5>;
325 * A fallback to GPIO is provided for I2C2.
328 compatible = "i2c-demux-pinctrl";
329 i2c-parent = <&i2c2>, <&gpioi2c2>;
330 i2c-bus-name = "i2c-hdmi";
331 #address-cells = <1>;
335 compatible = "asahi-kasei,ak4643";
336 #sound-dai-cells = <0>;
341 compatible = "adi,adv7180cp";
345 #address-cells = <1>;
350 adv7180_in: endpoint {
351 remote-endpoint = <&composite_con_in>;
357 adv7180_out: endpoint {
359 remote-endpoint = <&vin1ep>;
366 compatible = "adi,adv7511w";
368 interrupt-parent = <&gpio3>;
369 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
371 adi,input-depth = <8>;
372 adi,input-colorspace = "rgb";
373 adi,input-clock = "1x";
376 #address-cells = <1>;
381 adv7511_in: endpoint {
382 remote-endpoint = <&du_out_rgb>;
388 adv7511_out: endpoint {
389 remote-endpoint = <&hdmi_con_out>;
396 compatible = "adi,adv7612";
398 interrupt-parent = <&gpio4>;
399 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
403 #address-cells = <1>;
408 adv7612_in: endpoint {
409 remote-endpoint = <&hdmi_con_in>;
415 adv7612_out: endpoint {
416 remote-endpoint = <&vin0ep2>;
423 compatible = "renesas,r1ex24002", "atmel,24c02";
430 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
431 * A fallback to GPIO is provided.
434 compatible = "i2c-demux-pinctrl";
435 i2c-parent = <&i2c4>, <&gpioi2c4>;
436 i2c-bus-name = "i2c-exio4";
437 #address-cells = <1>;
443 pinctrl-0 = <&du_pins>;
444 pinctrl-names = "default";
447 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
448 <&x13_clk>, <&x2_clk>;
449 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
454 remote-endpoint = <&adv7511_in>;
463 lvds_connector: endpoint {
470 clock-frequency = <20000000>;
474 pinctrl-0 = <&scif_clk_pins>;
475 pinctrl-names = "default";
488 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
493 groups = "scif0_data_d";
498 groups = "scif1_data_d";
502 scif_clk_pins: scif_clk {
504 function = "scif_clk";
508 groups = "eth_link", "eth_mdio", "eth_rmii";
513 groups = "intc_irq0";
517 pmic_irq_pins: pmicirq {
518 groups = "intc_irq2";
523 groups = "sdhi0_data4", "sdhi0_ctrl";
525 power-source = <3300>;
528 sdhi0_pins_uhs: sd0_uhs {
529 groups = "sdhi0_data4", "sdhi0_ctrl";
531 power-source = <1800>;
535 groups = "sdhi1_data4", "sdhi1_ctrl";
537 power-source = <3300>;
540 sdhi1_pins_uhs: sd1_uhs {
541 groups = "sdhi1_data4", "sdhi1_ctrl";
543 power-source = <1800>;
547 groups = "sdhi2_data4", "sdhi2_ctrl";
549 power-source = <3300>;
552 sdhi2_pins_uhs: sd2_uhs {
553 groups = "sdhi2_data4", "sdhi2_ctrl";
555 power-source = <1800>;
559 groups = "qspi_ctrl", "qspi_data4";
564 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
568 sound_clk_pins: sound_clk {
569 groups = "audio_clk_a";
570 function = "audio_clk";
573 keyboard_pins: keyboard {
574 pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3";
579 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
584 groups = "vin1_data8", "vin1_clk";
590 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
591 pinctrl-names = "default";
593 phy-handle = <&phy1>;
594 renesas,ether-link-active-low;
597 phy1: ethernet-phy@1 {
599 interrupt-parent = <&irqc0>;
600 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
601 micrel,led-mode = <1>;
602 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
611 cpu0-supply = <&vdd_dvfs>;
620 pinctrl-0 = <&scif0_pins>;
621 pinctrl-names = "default";
627 pinctrl-0 = <&scif1_pins>;
628 pinctrl-names = "default";
634 clock-frequency = <14745600>;
638 pinctrl-0 = <&sdhi0_pins>;
639 pinctrl-1 = <&sdhi0_pins_uhs>;
640 pinctrl-names = "default", "state_uhs";
642 vmmc-supply = <&vcc_sdhi0>;
643 vqmmc-supply = <&vccq_sdhi0>;
644 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
645 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
652 pinctrl-0 = <&sdhi1_pins>;
653 pinctrl-1 = <&sdhi1_pins_uhs>;
654 pinctrl-names = "default", "state_uhs";
656 vmmc-supply = <&vcc_sdhi1>;
657 vqmmc-supply = <&vccq_sdhi1>;
658 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
659 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
665 pinctrl-0 = <&sdhi2_pins>;
666 pinctrl-1 = <&sdhi2_pins_uhs>;
667 pinctrl-names = "default", "state_uhs";
669 vmmc-supply = <&vcc_sdhi2>;
670 vqmmc-supply = <&vccq_sdhi2>;
671 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
677 pinctrl-0 = <&qspi_pins>;
678 pinctrl-names = "default";
683 compatible = "spansion,s25fl512s", "jedec,spi-nor";
685 spi-max-frequency = <30000000>;
686 spi-tx-bus-width = <4>;
687 spi-rx-bus-width = <4>;
693 compatible = "fixed-partitions";
694 #address-cells = <1>;
699 reg = <0x00000000 0x00040000>;
704 reg = <0x00040000 0x00400000>;
709 reg = <0x00440000 0x03bc0000>;
716 pinctrl-0 = <&i2c2_pins>;
717 pinctrl-names = "i2c-hdmi";
720 clock-frequency = <100000>;
725 pinctrl-names = "default";
726 pinctrl-0 = <&pmic_irq_pins>;
728 clock-frequency = <100000>;
731 compatible = "dlg,da9063";
733 interrupt-parent = <&irqc0>;
734 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
735 interrupt-controller;
738 compatible = "dlg,da9063-rtc";
742 compatible = "dlg,da9063-watchdog";
746 vdd_dvfs: regulator@68 {
747 compatible = "dlg,da9210";
749 interrupt-parent = <&irqc0>;
750 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
752 regulator-min-microvolt = <1000000>;
753 regulator-max-microvolt = <1000000>;
760 pinctrl-0 = <&i2c4_pins>;
761 pinctrl-names = "i2c-exio4";
765 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
766 pinctrl-names = "default";
769 #sound-dai-cells = <0>;
775 playback = <&ssi0>, <&src2>, <&dvc0>;
776 capture = <&ssi1>, <&src3>, <&dvc1>;
785 /* HDMI video input */
788 pinctrl-0 = <&vin0_pins>;
789 pinctrl-names = "default";
793 remote-endpoint = <&adv7612_out>;
803 /* composite video input */
805 pinctrl-0 = <&vin1_pins>;
806 pinctrl-names = "default";
812 remote-endpoint = <&adv7180_out>;