2 * Device Tree Source for the Gose board
4 * Copyright (C) 2014-2015 Renesas Electronics Corporation
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
18 * This command is required when Playback/Capture
20 * amixer set "LINEOUT Mixer DACL" on
21 * amixer set "DVC Out" 100%
22 * amixer set "DVC In" 100%
26 * amixer set "DVC Out Mute" on
27 * amixer set "DVC In Mute" on
29 * You can use Volume Ramp
31 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
32 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
33 * amixer set "DVC Out Ramp" on
35 * amixer set "DVC Out" 80% // Volume Down
36 * amixer set "DVC Out" 100% // Volume Up
40 #include "r8a7793.dtsi"
41 #include <dt-bindings/gpio/gpio.h>
42 #include <dt-bindings/input/input.h>
46 compatible = "renesas,gose", "renesas,r8a7793";
54 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
55 stdout-path = "serial0:115200n8";
59 device_type = "memory";
60 reg = <0 0x40000000 0 0x40000000>;
64 compatible = "gpio-keys";
67 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
71 debounce-interval = <20>;
74 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
78 debounce-interval = <20>;
81 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
85 debounce-interval = <20>;
88 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
92 debounce-interval = <20>;
95 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
99 debounce-interval = <20>;
102 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_B>;
106 debounce-interval = <20>;
109 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_C>;
113 debounce-interval = <20>;
116 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_D>;
120 debounce-interval = <20>;
123 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_E>;
127 debounce-interval = <20>;
130 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_F>;
134 debounce-interval = <20>;
137 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
138 linux,code = <KEY_G>;
141 debounce-interval = <20>;
146 compatible = "gpio-leds";
148 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
152 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
156 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
161 vcc_sdhi0: regulator-vcc-sdhi0 {
162 compatible = "regulator-fixed";
164 regulator-name = "SDHI0 Vcc";
165 regulator-min-microvolt = <3300000>;
166 regulator-max-microvolt = <3300000>;
168 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
172 vccq_sdhi0: regulator-vccq-sdhi0 {
173 compatible = "regulator-gpio";
175 regulator-name = "SDHI0 VccQ";
176 regulator-min-microvolt = <1800000>;
177 regulator-max-microvolt = <3300000>;
179 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
185 vcc_sdhi1: regulator-vcc-sdhi1 {
186 compatible = "regulator-fixed";
188 regulator-name = "SDHI1 Vcc";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
192 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
196 vccq_sdhi1: regulator-vccq-sdhi1 {
197 compatible = "regulator-gpio";
199 regulator-name = "SDHI1 VccQ";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <3300000>;
203 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
209 vcc_sdhi2: regulator-vcc-sdhi2 {
210 compatible = "regulator-fixed";
212 regulator-name = "SDHI2 Vcc";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
216 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
220 vccq_sdhi2: regulator-vccq-sdhi2 {
221 compatible = "regulator-gpio";
223 regulator-name = "SDHI2 VccQ";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <3300000>;
227 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
233 audio_clock: audio_clock {
234 compatible = "fixed-clock";
236 clock-frequency = <11289600>;
240 compatible = "simple-audio-card";
242 simple-audio-card,format = "left_j";
243 simple-audio-card,bitclock-master = <&sndcodec>;
244 simple-audio-card,frame-master = <&sndcodec>;
246 sndcpu: simple-audio-card,cpu {
247 sound-dai = <&rcar_sound>;
250 sndcodec: simple-audio-card,codec {
251 sound-dai = <&ak4643>;
252 clocks = <&audio_clock>;
257 compatible = "hdmi-connector";
261 hdmi_con_in: endpoint {
262 remote-endpoint = <&adv7612_in>;
268 compatible = "hdmi-connector";
272 hdmi_con_out: endpoint {
273 remote-endpoint = <&adv7511_out>;
279 compatible = "composite-video-connector";
282 composite_con_in: endpoint {
283 remote-endpoint = <&adv7180_in>;
289 compatible = "fixed-clock";
291 clock-frequency = <74250000>;
295 compatible = "fixed-clock";
297 clock-frequency = <148500000>;
302 pinctrl-0 = <&du_pins>;
303 pinctrl-names = "default";
306 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 726>,
307 <&x13_clk>, <&x2_clk>;
308 clock-names = "du.0", "du.1", "lvds.0",
309 "dclkin.0", "dclkin.1";
314 remote-endpoint = <&adv7511_in>;
318 lvds_connector: endpoint {
325 clock-frequency = <20000000>;
329 pinctrl-0 = <&scif_clk_pins>;
330 pinctrl-names = "default";
338 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
343 groups = "scif0_data_d";
348 groups = "scif1_data_d";
352 scif_clk_pins: scif_clk {
354 function = "scif_clk";
358 groups = "eth_link", "eth_mdio", "eth_rmii";
363 groups = "intc_irq0";
368 groups = "sdhi0_data4", "sdhi0_ctrl";
370 power-source = <3300>;
373 sdhi0_pins_uhs: sd0_uhs {
374 groups = "sdhi0_data4", "sdhi0_ctrl";
376 power-source = <1800>;
380 groups = "sdhi1_data4", "sdhi1_ctrl";
382 power-source = <3300>;
385 sdhi1_pins_uhs: sd1_uhs {
386 groups = "sdhi1_data4", "sdhi1_ctrl";
388 power-source = <1800>;
392 groups = "sdhi2_data4", "sdhi2_ctrl";
394 power-source = <3300>;
397 sdhi2_pins_uhs: sd2_uhs {
398 groups = "sdhi2_data4", "sdhi2_ctrl";
400 power-source = <1800>;
404 groups = "qspi_ctrl", "qspi_data4";
409 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
413 sound_clk_pins: sound_clk {
414 groups = "audio_clk_a";
415 function = "audio_clk";
419 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
424 groups = "vin1_data8", "vin1_clk";
430 pinctrl-0 = <ðer_pins &phy1_pins>;
431 pinctrl-names = "default";
433 phy-handle = <&phy1>;
434 renesas,ether-link-active-low;
437 phy1: ethernet-phy@1 {
439 interrupt-parent = <&irqc0>;
440 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
441 micrel,led-mode = <1>;
450 pinctrl-0 = <&scif0_pins>;
451 pinctrl-names = "default";
457 pinctrl-0 = <&scif1_pins>;
458 pinctrl-names = "default";
464 clock-frequency = <14745600>;
468 pinctrl-0 = <&sdhi0_pins>;
469 pinctrl-1 = <&sdhi0_pins_uhs>;
470 pinctrl-names = "default", "state_uhs";
472 vmmc-supply = <&vcc_sdhi0>;
473 vqmmc-supply = <&vccq_sdhi0>;
474 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
475 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
482 pinctrl-0 = <&sdhi1_pins>;
483 pinctrl-1 = <&sdhi1_pins_uhs>;
484 pinctrl-names = "default", "state_uhs";
486 vmmc-supply = <&vcc_sdhi1>;
487 vqmmc-supply = <&vccq_sdhi1>;
488 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
489 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
495 pinctrl-0 = <&sdhi2_pins>;
496 pinctrl-1 = <&sdhi2_pins_uhs>;
497 pinctrl-names = "default", "state_uhs";
499 vmmc-supply = <&vcc_sdhi2>;
500 vqmmc-supply = <&vccq_sdhi2>;
501 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
507 pinctrl-0 = <&qspi_pins>;
508 pinctrl-names = "default";
513 compatible = "spansion,s25fl512s", "jedec,spi-nor";
515 spi-max-frequency = <30000000>;
516 spi-tx-bus-width = <4>;
517 spi-rx-bus-width = <4>;
523 compatible = "fixed-partitions";
524 #address-cells = <1>;
529 reg = <0x00000000 0x00040000>;
534 reg = <0x00040000 0x00400000>;
539 reg = <0x00440000 0x03bc0000>;
546 pinctrl-0 = <&i2c2_pins>;
547 pinctrl-names = "default";
550 clock-frequency = <100000>;
553 compatible = "asahi-kasei,ak4643";
554 #sound-dai-cells = <0>;
559 compatible = "adi,adv7180cp";
564 #address-cells = <1>;
569 adv7180_in: endpoint {
570 remote-endpoint = <&composite_con_in>;
576 adv7180_out: endpoint {
578 remote-endpoint = <&vin1ep>;
585 compatible = "adi,adv7511w";
587 interrupt-parent = <&gpio3>;
588 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
590 adi,input-depth = <8>;
591 adi,input-colorspace = "rgb";
592 adi,input-clock = "1x";
593 adi,input-style = <1>;
594 adi,input-justification = "evenly";
597 #address-cells = <1>;
602 adv7511_in: endpoint {
603 remote-endpoint = <&du_out_rgb>;
609 adv7511_out: endpoint {
610 remote-endpoint = <&hdmi_con_out>;
617 compatible = "adi,adv7612";
619 interrupt-parent = <&gpio4>;
620 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
624 #address-cells = <1>;
629 adv7612_in: endpoint {
630 remote-endpoint = <&hdmi_con_in>;
636 adv7612_out: endpoint {
637 remote-endpoint = <&vin0ep2>;
644 compatible = "renesas,r1ex24002", "atmel,24c02";
652 clock-frequency = <100000>;
655 compatible = "dlg,da9063";
657 interrupt-parent = <&irqc0>;
658 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
659 interrupt-controller;
662 compatible = "dlg,da9063-rtc";
666 compatible = "dlg,da9063-watchdog";
672 pinctrl-0 = <&sound_pins &sound_clk_pins>;
673 pinctrl-names = "default";
676 #sound-dai-cells = <0>;
682 playback = <&ssi0 &src2 &dvc0>;
683 capture = <&ssi1 &src3 &dvc1>;
692 /* HDMI video input */
695 pinctrl-0 = <&vin0_pins>;
696 pinctrl-names = "default";
699 #address-cells = <1>;
703 remote-endpoint = <&adv7612_out>;
713 /* composite video input */
715 pinctrl-0 = <&vin1_pins>;
716 pinctrl-names = "default";
721 #address-cells = <1>;
725 remote-endpoint = <&adv7180_out>;