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";
51 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
52 stdout-path = "serial0:115200n8";
56 device_type = "memory";
57 reg = <0 0x40000000 0 0x40000000>;
61 compatible = "gpio-keys";
64 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
68 debounce-interval = <20>;
71 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
75 debounce-interval = <20>;
78 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
82 debounce-interval = <20>;
85 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
89 debounce-interval = <20>;
92 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
96 debounce-interval = <20>;
99 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_B>;
103 debounce-interval = <20>;
106 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_C>;
110 debounce-interval = <20>;
113 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_D>;
117 debounce-interval = <20>;
120 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_E>;
124 debounce-interval = <20>;
127 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_F>;
131 debounce-interval = <20>;
134 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_G>;
138 debounce-interval = <20>;
143 compatible = "gpio-leds";
145 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
149 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
153 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
158 vcc_sdhi0: regulator-vcc-sdhi0 {
159 compatible = "regulator-fixed";
161 regulator-name = "SDHI0 Vcc";
162 regulator-min-microvolt = <3300000>;
163 regulator-max-microvolt = <3300000>;
165 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
169 vccq_sdhi0: regulator-vccq-sdhi0 {
170 compatible = "regulator-gpio";
172 regulator-name = "SDHI0 VccQ";
173 regulator-min-microvolt = <1800000>;
174 regulator-max-microvolt = <3300000>;
176 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
182 vcc_sdhi1: regulator-vcc-sdhi1 {
183 compatible = "regulator-fixed";
185 regulator-name = "SDHI1 Vcc";
186 regulator-min-microvolt = <3300000>;
187 regulator-max-microvolt = <3300000>;
189 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
193 vccq_sdhi1: regulator-vccq-sdhi1 {
194 compatible = "regulator-gpio";
196 regulator-name = "SDHI1 VccQ";
197 regulator-min-microvolt = <1800000>;
198 regulator-max-microvolt = <3300000>;
200 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
206 vcc_sdhi2: regulator-vcc-sdhi2 {
207 compatible = "regulator-fixed";
209 regulator-name = "SDHI2 Vcc";
210 regulator-min-microvolt = <3300000>;
211 regulator-max-microvolt = <3300000>;
213 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
217 vccq_sdhi2: regulator-vccq-sdhi2 {
218 compatible = "regulator-gpio";
220 regulator-name = "SDHI2 VccQ";
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <3300000>;
224 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
230 audio_clock: audio_clock {
231 compatible = "fixed-clock";
233 clock-frequency = <11289600>;
237 compatible = "simple-audio-card";
239 simple-audio-card,format = "left_j";
240 simple-audio-card,bitclock-master = <&sndcodec>;
241 simple-audio-card,frame-master = <&sndcodec>;
243 sndcpu: simple-audio-card,cpu {
244 sound-dai = <&rcar_sound>;
247 sndcodec: simple-audio-card,codec {
248 sound-dai = <&ak4643>;
249 clocks = <&audio_clock>;
254 compatible = "hdmi-connector";
258 hdmi_con_in: endpoint {
259 remote-endpoint = <&adv7612_in>;
265 compatible = "hdmi-connector";
269 hdmi_con_out: endpoint {
270 remote-endpoint = <&adv7511_out>;
276 compatible = "composite-video-connector";
279 composite_con_in: endpoint {
280 remote-endpoint = <&adv7180_in>;
286 compatible = "fixed-clock";
288 clock-frequency = <74250000>;
292 compatible = "fixed-clock";
294 clock-frequency = <148500000>;
299 pinctrl-0 = <&du_pins>;
300 pinctrl-names = "default";
303 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 726>,
304 <&x13_clk>, <&x2_clk>;
305 clock-names = "du.0", "du.1", "lvds.0",
306 "dclkin.0", "dclkin.1";
311 remote-endpoint = <&adv7511_in>;
315 lvds_connector: endpoint {
322 clock-frequency = <20000000>;
326 pinctrl-0 = <&scif_clk_pins>;
327 pinctrl-names = "default";
335 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
340 groups = "scif0_data_d";
345 groups = "scif1_data_d";
349 scif_clk_pins: scif_clk {
351 function = "scif_clk";
355 groups = "eth_link", "eth_mdio", "eth_rmii";
360 groups = "intc_irq0";
365 groups = "sdhi0_data4", "sdhi0_ctrl";
367 power-source = <3300>;
370 sdhi0_pins_uhs: sd0_uhs {
371 groups = "sdhi0_data4", "sdhi0_ctrl";
373 power-source = <1800>;
377 groups = "sdhi1_data4", "sdhi1_ctrl";
379 power-source = <3300>;
382 sdhi1_pins_uhs: sd1_uhs {
383 groups = "sdhi1_data4", "sdhi1_ctrl";
385 power-source = <1800>;
389 groups = "sdhi2_data4", "sdhi2_ctrl";
391 power-source = <3300>;
394 sdhi2_pins_uhs: sd2_uhs {
395 groups = "sdhi2_data4", "sdhi2_ctrl";
397 power-source = <1800>;
401 groups = "qspi_ctrl", "qspi_data4";
406 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
410 sound_clk_pins: sound_clk {
411 groups = "audio_clk_a";
412 function = "audio_clk";
416 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
421 groups = "vin1_data8", "vin1_clk";
427 pinctrl-0 = <ðer_pins &phy1_pins>;
428 pinctrl-names = "default";
430 phy-handle = <&phy1>;
431 renesas,ether-link-active-low;
434 phy1: ethernet-phy@1 {
436 interrupt-parent = <&irqc0>;
437 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
438 micrel,led-mode = <1>;
447 pinctrl-0 = <&scif0_pins>;
448 pinctrl-names = "default";
454 pinctrl-0 = <&scif1_pins>;
455 pinctrl-names = "default";
461 clock-frequency = <14745600>;
465 pinctrl-0 = <&sdhi0_pins>;
466 pinctrl-1 = <&sdhi0_pins_uhs>;
467 pinctrl-names = "default", "state_uhs";
469 vmmc-supply = <&vcc_sdhi0>;
470 vqmmc-supply = <&vccq_sdhi0>;
471 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
472 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
479 pinctrl-0 = <&sdhi1_pins>;
480 pinctrl-1 = <&sdhi1_pins_uhs>;
481 pinctrl-names = "default", "state_uhs";
483 vmmc-supply = <&vcc_sdhi1>;
484 vqmmc-supply = <&vccq_sdhi1>;
485 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
486 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
492 pinctrl-0 = <&sdhi2_pins>;
493 pinctrl-1 = <&sdhi2_pins_uhs>;
494 pinctrl-names = "default", "state_uhs";
496 vmmc-supply = <&vcc_sdhi2>;
497 vqmmc-supply = <&vccq_sdhi2>;
498 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
504 pinctrl-0 = <&qspi_pins>;
505 pinctrl-names = "default";
510 compatible = "spansion,s25fl512s", "jedec,spi-nor";
512 spi-max-frequency = <30000000>;
513 spi-tx-bus-width = <4>;
514 spi-rx-bus-width = <4>;
520 compatible = "fixed-partitions";
521 #address-cells = <1>;
526 reg = <0x00000000 0x00040000>;
531 reg = <0x00040000 0x00400000>;
536 reg = <0x00440000 0x03bc0000>;
543 pinctrl-0 = <&i2c2_pins>;
544 pinctrl-names = "default";
547 clock-frequency = <100000>;
550 compatible = "asahi-kasei,ak4643";
551 #sound-dai-cells = <0>;
556 compatible = "adi,adv7180cp";
561 #address-cells = <1>;
566 adv7180_in: endpoint {
567 remote-endpoint = <&composite_con_in>;
573 adv7180_out: endpoint {
575 remote-endpoint = <&vin1ep>;
582 compatible = "adi,adv7511w";
584 interrupt-parent = <&gpio3>;
585 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
587 adi,input-depth = <8>;
588 adi,input-colorspace = "rgb";
589 adi,input-clock = "1x";
590 adi,input-style = <1>;
591 adi,input-justification = "evenly";
594 #address-cells = <1>;
599 adv7511_in: endpoint {
600 remote-endpoint = <&du_out_rgb>;
606 adv7511_out: endpoint {
607 remote-endpoint = <&hdmi_con_out>;
614 compatible = "adi,adv7612";
616 interrupt-parent = <&gpio4>;
617 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
621 #address-cells = <1>;
626 adv7612_in: endpoint {
627 remote-endpoint = <&hdmi_con_in>;
633 adv7612_out: endpoint {
634 remote-endpoint = <&vin0ep2>;
641 compatible = "renesas,r1ex24002", "atmel,24c02";
649 clock-frequency = <100000>;
652 compatible = "dlg,da9063";
654 interrupt-parent = <&irqc0>;
655 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
656 interrupt-controller;
659 compatible = "dlg,da9063-rtc";
663 compatible = "dlg,da9063-watchdog";
669 pinctrl-0 = <&sound_pins &sound_clk_pins>;
670 pinctrl-names = "default";
673 #sound-dai-cells = <0>;
679 playback = <&ssi0 &src2 &dvc0>;
680 capture = <&ssi1 &src3 &dvc1>;
689 /* HDMI video input */
692 pinctrl-0 = <&vin0_pins>;
693 pinctrl-names = "default";
696 #address-cells = <1>;
700 remote-endpoint = <&adv7612_out>;
710 /* composite video input */
712 pinctrl-0 = <&vin1_pins>;
713 pinctrl-names = "default";
718 #address-cells = <1>;
722 remote-endpoint = <&adv7180_out>;