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=dhcp";
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>;
186 vcc_sdhi1: regulator-vcc-sdhi1 {
187 compatible = "regulator-fixed";
189 regulator-name = "SDHI1 Vcc";
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
193 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
197 vccq_sdhi1: regulator-vccq-sdhi1 {
198 compatible = "regulator-gpio";
200 regulator-name = "SDHI1 VccQ";
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <3300000>;
204 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
210 vcc_sdhi2: regulator-vcc-sdhi2 {
211 compatible = "regulator-fixed";
213 regulator-name = "SDHI2 Vcc";
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;
217 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
221 vccq_sdhi2: regulator-vccq-sdhi2 {
222 compatible = "regulator-gpio";
224 regulator-name = "SDHI2 VccQ";
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <3300000>;
228 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
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";
343 #address-cells = <1>;
348 adv7180_in: endpoint {
349 remote-endpoint = <&composite_con_in>;
355 adv7180_out: endpoint {
357 remote-endpoint = <&vin1ep>;
364 compatible = "adi,adv7511w";
366 interrupt-parent = <&gpio3>;
367 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
369 adi,input-depth = <8>;
370 adi,input-colorspace = "rgb";
371 adi,input-clock = "1x";
372 adi,input-style = <1>;
373 adi,input-justification = "evenly";
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";
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>;
605 pinctrl-0 = <&scif0_pins>;
606 pinctrl-names = "default";
612 pinctrl-0 = <&scif1_pins>;
613 pinctrl-names = "default";
619 clock-frequency = <14745600>;
623 pinctrl-0 = <&sdhi0_pins>;
624 pinctrl-1 = <&sdhi0_pins_uhs>;
625 pinctrl-names = "default", "state_uhs";
627 vmmc-supply = <&vcc_sdhi0>;
628 vqmmc-supply = <&vccq_sdhi0>;
629 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
630 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
637 pinctrl-0 = <&sdhi1_pins>;
638 pinctrl-1 = <&sdhi1_pins_uhs>;
639 pinctrl-names = "default", "state_uhs";
641 vmmc-supply = <&vcc_sdhi1>;
642 vqmmc-supply = <&vccq_sdhi1>;
643 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
644 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
650 pinctrl-0 = <&sdhi2_pins>;
651 pinctrl-1 = <&sdhi2_pins_uhs>;
652 pinctrl-names = "default", "state_uhs";
654 vmmc-supply = <&vcc_sdhi2>;
655 vqmmc-supply = <&vccq_sdhi2>;
656 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
662 pinctrl-0 = <&qspi_pins>;
663 pinctrl-names = "default";
668 compatible = "spansion,s25fl512s", "jedec,spi-nor";
670 spi-max-frequency = <30000000>;
671 spi-tx-bus-width = <4>;
672 spi-rx-bus-width = <4>;
678 compatible = "fixed-partitions";
679 #address-cells = <1>;
684 reg = <0x00000000 0x00040000>;
689 reg = <0x00040000 0x00400000>;
694 reg = <0x00440000 0x03bc0000>;
701 pinctrl-0 = <&i2c2_pins>;
702 pinctrl-names = "i2c-hdmi";
705 clock-frequency = <100000>;
711 clock-frequency = <100000>;
714 compatible = "dlg,da9063";
716 interrupt-parent = <&irqc0>;
717 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
718 interrupt-controller;
721 compatible = "dlg,da9063-rtc";
725 compatible = "dlg,da9063-watchdog";
731 pinctrl-0 = <&i2c4_pins>;
732 pinctrl-names = "i2c-exio4";
736 pinctrl-0 = <&sound_pins &sound_clk_pins>;
737 pinctrl-names = "default";
740 #sound-dai-cells = <0>;
746 playback = <&ssi0 &src2 &dvc0>;
747 capture = <&ssi1 &src3 &dvc1>;
756 /* HDMI video input */
759 pinctrl-0 = <&vin0_pins>;
760 pinctrl-names = "default";
764 remote-endpoint = <&adv7612_out>;
774 /* composite video input */
776 pinctrl-0 = <&vin1_pins>;
777 pinctrl-names = "default";
783 remote-endpoint = <&adv7180_out>;