2 * Device Tree Source for the Gose board
4 * Copyright (C) 2014-2015 Renesas Electronics Corporation
6 * SPDX-License-Identifier: GPL-2.0
16 * This command is required when Playback/Capture
18 * amixer set "LINEOUT Mixer DACL" on
19 * amixer set "DVC Out" 100%
20 * amixer set "DVC In" 100%
24 * amixer set "DVC Out Mute" on
25 * amixer set "DVC In Mute" on
27 * You can use Volume Ramp
29 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
30 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
31 * amixer set "DVC Out Ramp" on
33 * amixer set "DVC Out" 80% // Volume Down
34 * amixer set "DVC Out" 100% // Volume Up
38 #include "r8a7793.dtsi"
39 #include <dt-bindings/gpio/gpio.h>
40 #include <dt-bindings/input/input.h>
44 compatible = "renesas,gose", "renesas,r8a7793";
52 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
53 stdout-path = "serial0:115200n8";
57 device_type = "memory";
58 reg = <0 0x40000000 0 0x40000000>;
62 compatible = "gpio-keys";
65 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
69 debounce-interval = <20>;
72 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
76 debounce-interval = <20>;
79 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
83 debounce-interval = <20>;
86 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
90 debounce-interval = <20>;
93 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
97 debounce-interval = <20>;
100 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_B>;
104 debounce-interval = <20>;
107 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_C>;
111 debounce-interval = <20>;
114 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_D>;
118 debounce-interval = <20>;
121 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_E>;
125 debounce-interval = <20>;
128 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_F>;
132 debounce-interval = <20>;
135 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_G>;
139 debounce-interval = <20>;
144 compatible = "gpio-leds";
146 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
150 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
154 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
159 vcc_sdhi0: regulator-vcc-sdhi0 {
160 compatible = "regulator-fixed";
162 regulator-name = "SDHI0 Vcc";
163 regulator-min-microvolt = <3300000>;
164 regulator-max-microvolt = <3300000>;
166 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
170 vccq_sdhi0: regulator-vccq-sdhi0 {
171 compatible = "regulator-gpio";
173 regulator-name = "SDHI0 VccQ";
174 regulator-min-microvolt = <1800000>;
175 regulator-max-microvolt = <3300000>;
177 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
183 vcc_sdhi1: regulator-vcc-sdhi1 {
184 compatible = "regulator-fixed";
186 regulator-name = "SDHI1 Vcc";
187 regulator-min-microvolt = <3300000>;
188 regulator-max-microvolt = <3300000>;
190 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
194 vccq_sdhi1: regulator-vccq-sdhi1 {
195 compatible = "regulator-gpio";
197 regulator-name = "SDHI1 VccQ";
198 regulator-min-microvolt = <1800000>;
199 regulator-max-microvolt = <3300000>;
201 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
207 vcc_sdhi2: regulator-vcc-sdhi2 {
208 compatible = "regulator-fixed";
210 regulator-name = "SDHI2 Vcc";
211 regulator-min-microvolt = <3300000>;
212 regulator-max-microvolt = <3300000>;
214 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
218 vccq_sdhi2: regulator-vccq-sdhi2 {
219 compatible = "regulator-gpio";
221 regulator-name = "SDHI2 VccQ";
222 regulator-min-microvolt = <1800000>;
223 regulator-max-microvolt = <3300000>;
225 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
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>;
300 pinctrl-0 = <&du_pins>;
301 pinctrl-names = "default";
304 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 726>,
305 <&x13_clk>, <&x2_clk>;
306 clock-names = "du.0", "du.1", "lvds.0",
307 "dclkin.0", "dclkin.1";
312 remote-endpoint = <&adv7511_in>;
316 lvds_connector: endpoint {
323 clock-frequency = <20000000>;
327 pinctrl-0 = <&scif_clk_pins>;
328 pinctrl-names = "default";
336 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
341 groups = "scif0_data_d";
346 groups = "scif1_data_d";
350 scif_clk_pins: scif_clk {
352 function = "scif_clk";
356 groups = "eth_link", "eth_mdio", "eth_rmii";
361 groups = "intc_irq0";
366 groups = "sdhi0_data4", "sdhi0_ctrl";
368 power-source = <3300>;
371 sdhi0_pins_uhs: sd0_uhs {
372 groups = "sdhi0_data4", "sdhi0_ctrl";
374 power-source = <1800>;
378 groups = "sdhi1_data4", "sdhi1_ctrl";
380 power-source = <3300>;
383 sdhi1_pins_uhs: sd1_uhs {
384 groups = "sdhi1_data4", "sdhi1_ctrl";
386 power-source = <1800>;
390 groups = "sdhi2_data4", "sdhi2_ctrl";
392 power-source = <3300>;
395 sdhi2_pins_uhs: sd2_uhs {
396 groups = "sdhi2_data4", "sdhi2_ctrl";
398 power-source = <1800>;
402 groups = "qspi_ctrl", "qspi_data4";
407 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
411 sound_clk_pins: sound_clk {
412 groups = "audio_clk_a";
413 function = "audio_clk";
417 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
422 groups = "vin1_data8", "vin1_clk";
428 pinctrl-0 = <ðer_pins &phy1_pins>;
429 pinctrl-names = "default";
431 phy-handle = <&phy1>;
432 renesas,ether-link-active-low;
435 phy1: ethernet-phy@1 {
437 interrupt-parent = <&irqc0>;
438 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
439 micrel,led-mode = <1>;
448 pinctrl-0 = <&scif0_pins>;
449 pinctrl-names = "default";
455 pinctrl-0 = <&scif1_pins>;
456 pinctrl-names = "default";
462 clock-frequency = <14745600>;
466 pinctrl-0 = <&sdhi0_pins>;
467 pinctrl-1 = <&sdhi0_pins_uhs>;
468 pinctrl-names = "default", "state_uhs";
470 vmmc-supply = <&vcc_sdhi0>;
471 vqmmc-supply = <&vccq_sdhi0>;
472 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
473 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
480 pinctrl-0 = <&sdhi1_pins>;
481 pinctrl-1 = <&sdhi1_pins_uhs>;
482 pinctrl-names = "default", "state_uhs";
484 vmmc-supply = <&vcc_sdhi1>;
485 vqmmc-supply = <&vccq_sdhi1>;
486 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
487 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
493 pinctrl-0 = <&sdhi2_pins>;
494 pinctrl-1 = <&sdhi2_pins_uhs>;
495 pinctrl-names = "default", "state_uhs";
497 vmmc-supply = <&vcc_sdhi2>;
498 vqmmc-supply = <&vccq_sdhi2>;
499 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
505 pinctrl-0 = <&qspi_pins>;
506 pinctrl-names = "default";
511 compatible = "spansion,s25fl512s", "jedec,spi-nor";
513 spi-max-frequency = <30000000>;
514 spi-tx-bus-width = <4>;
515 spi-rx-bus-width = <4>;
521 compatible = "fixed-partitions";
522 #address-cells = <1>;
527 reg = <0x00000000 0x00040000>;
532 reg = <0x00040000 0x00400000>;
537 reg = <0x00440000 0x03bc0000>;
544 pinctrl-0 = <&i2c2_pins>;
545 pinctrl-names = "default";
548 clock-frequency = <100000>;
551 compatible = "asahi-kasei,ak4643";
552 #sound-dai-cells = <0>;
557 compatible = "adi,adv7180cp";
562 #address-cells = <1>;
567 adv7180_in: endpoint {
568 remote-endpoint = <&composite_con_in>;
574 adv7180_out: endpoint {
576 remote-endpoint = <&vin1ep>;
583 compatible = "adi,adv7511w";
585 interrupt-parent = <&gpio3>;
586 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
588 adi,input-depth = <8>;
589 adi,input-colorspace = "rgb";
590 adi,input-clock = "1x";
591 adi,input-style = <1>;
592 adi,input-justification = "evenly";
595 #address-cells = <1>;
600 adv7511_in: endpoint {
601 remote-endpoint = <&du_out_rgb>;
607 adv7511_out: endpoint {
608 remote-endpoint = <&hdmi_con_out>;
615 compatible = "adi,adv7612";
617 interrupt-parent = <&gpio4>;
618 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
622 #address-cells = <1>;
627 adv7612_in: endpoint {
628 remote-endpoint = <&hdmi_con_in>;
634 adv7612_out: endpoint {
635 remote-endpoint = <&vin0ep2>;
642 compatible = "renesas,r1ex24002", "atmel,24c02";
650 clock-frequency = <100000>;
653 compatible = "dlg,da9063";
655 interrupt-parent = <&irqc0>;
656 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
657 interrupt-controller;
660 compatible = "dlg,da9063-rtc";
664 compatible = "dlg,da9063-watchdog";
670 pinctrl-0 = <&sound_pins &sound_clk_pins>;
671 pinctrl-names = "default";
674 #sound-dai-cells = <0>;
680 playback = <&ssi0 &src2 &dvc0>;
681 capture = <&ssi1 &src3 &dvc1>;
690 /* HDMI video input */
693 pinctrl-0 = <&vin0_pins>;
694 pinctrl-names = "default";
697 #address-cells = <1>;
701 remote-endpoint = <&adv7612_out>;
711 /* composite video input */
713 pinctrl-0 = <&vin1_pins>;
714 pinctrl-names = "default";
719 #address-cells = <1>;
723 remote-endpoint = <&adv7180_out>;