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 reg_1p8v: regulator-1v8 {
169 compatible = "regulator-fixed";
170 regulator-name = "fixed-1.8V";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <1800000>;
177 reg_3p3v: regulator-3v3 {
178 compatible = "regulator-fixed";
179 regulator-name = "fixed-3.3V";
180 regulator-min-microvolt = <3300000>;
181 regulator-max-microvolt = <3300000>;
186 vcc_sdhi0: regulator-vcc-sdhi0 {
187 compatible = "regulator-fixed";
189 regulator-name = "SDHI0 Vcc";
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
193 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
197 vccq_sdhi0: regulator-vccq-sdhi0 {
198 compatible = "regulator-gpio";
200 regulator-name = "SDHI0 VccQ";
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <3300000>;
204 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
206 states = <3300000 1>, <1800000 0>;
209 vcc_sdhi1: regulator-vcc-sdhi1 {
210 compatible = "regulator-fixed";
212 regulator-name = "SDHI1 Vcc";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
216 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
220 vccq_sdhi1: regulator-vccq-sdhi1 {
221 compatible = "regulator-gpio";
223 regulator-name = "SDHI1 VccQ";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <3300000>;
227 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
229 states = <3300000 1>, <1800000 0>;
232 vcc_sdhi2: regulator-vcc-sdhi2 {
233 compatible = "regulator-fixed";
235 regulator-name = "SDHI2 Vcc";
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
239 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
243 vccq_sdhi2: regulator-vccq-sdhi2 {
244 compatible = "regulator-gpio";
246 regulator-name = "SDHI2 VccQ";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <3300000>;
250 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
252 states = <3300000 1>, <1800000 0>;
255 audio_clock: audio_clock {
256 compatible = "fixed-clock";
258 clock-frequency = <11289600>;
262 compatible = "simple-audio-card";
264 simple-audio-card,format = "left_j";
265 simple-audio-card,bitclock-master = <&sndcodec>;
266 simple-audio-card,frame-master = <&sndcodec>;
268 sndcpu: simple-audio-card,cpu {
269 sound-dai = <&rcar_sound>;
272 sndcodec: simple-audio-card,codec {
273 sound-dai = <&ak4643>;
274 clocks = <&audio_clock>;
279 compatible = "hdmi-connector";
283 hdmi_con_in: endpoint {
284 remote-endpoint = <&adv7612_in>;
290 compatible = "hdmi-connector";
294 hdmi_con_out: endpoint {
295 remote-endpoint = <&adv7511_out>;
301 compatible = "composite-video-connector";
304 composite_con_in: endpoint {
305 remote-endpoint = <&adv7180_in>;
311 compatible = "fixed-clock";
313 clock-frequency = <74250000>;
317 compatible = "fixed-clock";
319 clock-frequency = <148500000>;
323 #address-cells = <1>;
325 compatible = "i2c-gpio";
327 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
328 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
329 i2c-gpio,delay-us = <5>;
333 #address-cells = <1>;
335 compatible = "i2c-gpio";
337 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
338 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
339 i2c-gpio,delay-us = <5>;
343 * A fallback to GPIO is provided for I2C2.
346 compatible = "i2c-demux-pinctrl";
347 i2c-parent = <&i2c2>, <&gpioi2c2>;
348 i2c-bus-name = "i2c-hdmi";
349 #address-cells = <1>;
353 compatible = "asahi-kasei,ak4643";
354 #sound-dai-cells = <0>;
359 compatible = "adi,adv7180cp";
363 #address-cells = <1>;
368 adv7180_in: endpoint {
369 remote-endpoint = <&composite_con_in>;
375 adv7180_out: endpoint {
377 remote-endpoint = <&vin1ep>;
384 compatible = "adi,adv7511w";
386 interrupt-parent = <&gpio3>;
387 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
389 avdd-supply = <®_1p8v>;
390 dvdd-supply = <®_1p8v>;
391 pvdd-supply = <®_1p8v>;
392 dvdd-3v-supply = <®_3p3v>;
393 bgvdd-supply = <®_1p8v>;
395 adi,input-depth = <8>;
396 adi,input-colorspace = "rgb";
397 adi,input-clock = "1x";
400 #address-cells = <1>;
405 adv7511_in: endpoint {
406 remote-endpoint = <&du_out_rgb>;
412 adv7511_out: endpoint {
413 remote-endpoint = <&hdmi_con_out>;
420 compatible = "adi,adv7612";
422 interrupt-parent = <&gpio4>;
423 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
427 #address-cells = <1>;
432 adv7612_in: endpoint {
433 remote-endpoint = <&hdmi_con_in>;
439 adv7612_out: endpoint {
440 remote-endpoint = <&vin0ep2>;
447 compatible = "renesas,r1ex24002", "atmel,24c02";
454 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
455 * A fallback to GPIO is provided.
458 compatible = "i2c-demux-pinctrl";
459 i2c-parent = <&i2c4>, <&gpioi2c4>;
460 i2c-bus-name = "i2c-exio4";
461 #address-cells = <1>;
467 pinctrl-0 = <&du_pins>;
468 pinctrl-names = "default";
471 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
472 <&x13_clk>, <&x2_clk>;
473 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
478 remote-endpoint = <&adv7511_in>;
487 lvds_connector: endpoint {
494 clock-frequency = <20000000>;
498 pinctrl-0 = <&scif_clk_pins>;
499 pinctrl-names = "default";
512 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
517 groups = "scif0_data_d";
522 groups = "scif1_data_d";
526 scif_clk_pins: scif_clk {
528 function = "scif_clk";
532 groups = "eth_link", "eth_mdio", "eth_rmii";
537 groups = "intc_irq0";
541 pmic_irq_pins: pmicirq {
542 groups = "intc_irq2";
547 groups = "sdhi0_data4", "sdhi0_ctrl";
549 power-source = <3300>;
552 sdhi0_pins_uhs: sd0_uhs {
553 groups = "sdhi0_data4", "sdhi0_ctrl";
555 power-source = <1800>;
559 groups = "sdhi1_data4", "sdhi1_ctrl";
561 power-source = <3300>;
564 sdhi1_pins_uhs: sd1_uhs {
565 groups = "sdhi1_data4", "sdhi1_ctrl";
567 power-source = <1800>;
571 groups = "sdhi2_data4", "sdhi2_ctrl";
573 power-source = <3300>;
576 sdhi2_pins_uhs: sd2_uhs {
577 groups = "sdhi2_data4", "sdhi2_ctrl";
579 power-source = <1800>;
583 groups = "qspi_ctrl", "qspi_data4";
588 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
592 sound_clk_pins: sound_clk {
593 groups = "audio_clk_a";
594 function = "audio_clk";
597 keyboard_pins: keyboard {
598 pins = "GP_5_0", "GP_5_1", "GP_5_2", "GP_5_3";
603 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
608 groups = "vin1_data8", "vin1_clk";
614 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
615 pinctrl-names = "default";
617 phy-handle = <&phy1>;
618 renesas,ether-link-active-low;
621 phy1: ethernet-phy@1 {
622 compatible = "ethernet-phy-id0022.1537",
623 "ethernet-phy-ieee802.3-c22";
625 interrupt-parent = <&irqc0>;
626 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
627 micrel,led-mode = <1>;
628 reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
637 cpu0-supply = <&vdd_dvfs>;
646 pinctrl-0 = <&scif0_pins>;
647 pinctrl-names = "default";
653 pinctrl-0 = <&scif1_pins>;
654 pinctrl-names = "default";
660 clock-frequency = <14745600>;
664 pinctrl-0 = <&sdhi0_pins>;
665 pinctrl-1 = <&sdhi0_pins_uhs>;
666 pinctrl-names = "default", "state_uhs";
668 vmmc-supply = <&vcc_sdhi0>;
669 vqmmc-supply = <&vccq_sdhi0>;
670 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
671 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
678 pinctrl-0 = <&sdhi1_pins>;
679 pinctrl-1 = <&sdhi1_pins_uhs>;
680 pinctrl-names = "default", "state_uhs";
682 vmmc-supply = <&vcc_sdhi1>;
683 vqmmc-supply = <&vccq_sdhi1>;
684 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
685 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
691 pinctrl-0 = <&sdhi2_pins>;
692 pinctrl-1 = <&sdhi2_pins_uhs>;
693 pinctrl-names = "default", "state_uhs";
695 vmmc-supply = <&vcc_sdhi2>;
696 vqmmc-supply = <&vccq_sdhi2>;
697 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
703 pinctrl-0 = <&qspi_pins>;
704 pinctrl-names = "default";
709 compatible = "spansion,s25fl512s", "jedec,spi-nor";
711 spi-max-frequency = <30000000>;
712 spi-tx-bus-width = <4>;
713 spi-rx-bus-width = <4>;
719 compatible = "fixed-partitions";
720 #address-cells = <1>;
725 reg = <0x00000000 0x00040000>;
730 reg = <0x00040000 0x00400000>;
735 reg = <0x00440000 0x03bc0000>;
742 pinctrl-0 = <&i2c2_pins>;
743 pinctrl-names = "i2c-hdmi";
746 clock-frequency = <100000>;
751 pinctrl-names = "default";
752 pinctrl-0 = <&pmic_irq_pins>;
754 clock-frequency = <100000>;
757 compatible = "dlg,da9063";
759 interrupt-parent = <&irqc0>;
760 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
761 interrupt-controller;
762 #interrupt-cells = <2>;
765 compatible = "dlg,da9063-rtc";
769 compatible = "dlg,da9063-watchdog";
773 vdd_dvfs: regulator@68 {
774 compatible = "dlg,da9210";
776 interrupt-parent = <&irqc0>;
777 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
779 regulator-min-microvolt = <1000000>;
780 regulator-max-microvolt = <1000000>;
787 pinctrl-0 = <&i2c4_pins>;
788 pinctrl-names = "i2c-exio4";
792 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
793 pinctrl-names = "default";
796 #sound-dai-cells = <0>;
802 playback = <&ssi0>, <&src2>, <&dvc0>;
803 capture = <&ssi1>, <&src3>, <&dvc1>;
812 /* HDMI video input */
815 pinctrl-0 = <&vin0_pins>;
816 pinctrl-names = "default";
820 remote-endpoint = <&adv7612_out>;
830 /* composite video input */
832 pinctrl-0 = <&vin1_pins>;
833 pinctrl-names = "default";
839 remote-endpoint = <&adv7180_out>;