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 = <&mstp7_clks R8A7793_CLK_DU0>,
307 <&mstp7_clks R8A7793_CLK_DU1>,
308 <&mstp7_clks R8A7793_CLK_LVDS0>,
309 <&x13_clk>, <&x2_clk>;
310 clock-names = "du.0", "du.1", "lvds.0",
311 "dclkin.0", "dclkin.1";
316 remote-endpoint = <&adv7511_in>;
320 lvds_connector: endpoint {
327 clock-frequency = <20000000>;
331 pinctrl-0 = <&scif_clk_pins>;
332 pinctrl-names = "default";
340 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
345 groups = "scif0_data_d";
350 groups = "scif1_data_d";
354 scif_clk_pins: scif_clk {
356 function = "scif_clk";
360 groups = "eth_link", "eth_mdio", "eth_rmii";
365 groups = "intc_irq0";
370 groups = "sdhi0_data4", "sdhi0_ctrl";
372 power-source = <3300>;
375 sdhi0_pins_uhs: sd0_uhs {
376 groups = "sdhi0_data4", "sdhi0_ctrl";
378 power-source = <1800>;
382 groups = "sdhi1_data4", "sdhi1_ctrl";
384 power-source = <3300>;
387 sdhi1_pins_uhs: sd1_uhs {
388 groups = "sdhi1_data4", "sdhi1_ctrl";
390 power-source = <1800>;
394 groups = "sdhi2_data4", "sdhi2_ctrl";
396 power-source = <3300>;
399 sdhi2_pins_uhs: sd2_uhs {
400 groups = "sdhi2_data4", "sdhi2_ctrl";
402 power-source = <1800>;
406 groups = "qspi_ctrl", "qspi_data4";
411 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
415 sound_clk_pins: sound_clk {
416 groups = "audio_clk_a";
417 function = "audio_clk";
421 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
426 groups = "vin1_data8", "vin1_clk";
432 pinctrl-0 = <ðer_pins &phy1_pins>;
433 pinctrl-names = "default";
435 phy-handle = <&phy1>;
436 renesas,ether-link-active-low;
439 phy1: ethernet-phy@1 {
441 interrupt-parent = <&irqc0>;
442 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
443 micrel,led-mode = <1>;
452 pinctrl-0 = <&scif0_pins>;
453 pinctrl-names = "default";
459 pinctrl-0 = <&scif1_pins>;
460 pinctrl-names = "default";
466 clock-frequency = <14745600>;
470 pinctrl-0 = <&sdhi0_pins>;
471 pinctrl-1 = <&sdhi0_pins_uhs>;
472 pinctrl-names = "default", "state_uhs";
474 vmmc-supply = <&vcc_sdhi0>;
475 vqmmc-supply = <&vccq_sdhi0>;
476 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
477 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
484 pinctrl-0 = <&sdhi1_pins>;
485 pinctrl-1 = <&sdhi1_pins_uhs>;
486 pinctrl-names = "default", "state_uhs";
488 vmmc-supply = <&vcc_sdhi1>;
489 vqmmc-supply = <&vccq_sdhi1>;
490 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
491 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
497 pinctrl-0 = <&sdhi2_pins>;
498 pinctrl-1 = <&sdhi2_pins_uhs>;
499 pinctrl-names = "default", "state_uhs";
501 vmmc-supply = <&vcc_sdhi2>;
502 vqmmc-supply = <&vccq_sdhi2>;
503 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
509 pinctrl-0 = <&qspi_pins>;
510 pinctrl-names = "default";
515 compatible = "spansion,s25fl512s", "jedec,spi-nor";
517 spi-max-frequency = <30000000>;
518 spi-tx-bus-width = <4>;
519 spi-rx-bus-width = <4>;
525 compatible = "fixed-partitions";
526 #address-cells = <1>;
531 reg = <0x00000000 0x00040000>;
536 reg = <0x00040000 0x00400000>;
541 reg = <0x00440000 0x03bc0000>;
548 pinctrl-0 = <&i2c2_pins>;
549 pinctrl-names = "default";
552 clock-frequency = <100000>;
555 compatible = "asahi-kasei,ak4643";
556 #sound-dai-cells = <0>;
561 compatible = "adi,adv7180cp";
566 #address-cells = <1>;
571 adv7180_in: endpoint {
572 remote-endpoint = <&composite_con_in>;
578 adv7180_out: endpoint {
580 remote-endpoint = <&vin1ep>;
587 compatible = "adi,adv7511w";
589 interrupt-parent = <&gpio3>;
590 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
592 adi,input-depth = <8>;
593 adi,input-colorspace = "rgb";
594 adi,input-clock = "1x";
595 adi,input-style = <1>;
596 adi,input-justification = "evenly";
599 #address-cells = <1>;
604 adv7511_in: endpoint {
605 remote-endpoint = <&du_out_rgb>;
611 adv7511_out: endpoint {
612 remote-endpoint = <&hdmi_con_out>;
619 compatible = "adi,adv7612";
621 interrupt-parent = <&gpio4>;
622 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
626 #address-cells = <1>;
631 adv7612_in: endpoint {
632 remote-endpoint = <&hdmi_con_in>;
638 adv7612_out: endpoint {
639 remote-endpoint = <&vin0ep2>;
646 compatible = "renesas,r1ex24002", "atmel,24c02";
654 clock-frequency = <100000>;
657 compatible = "dlg,da9063";
659 interrupt-parent = <&irqc0>;
660 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
661 interrupt-controller;
664 compatible = "dlg,da9063-rtc";
668 compatible = "dlg,da9063-watchdog";
674 pinctrl-0 = <&sound_pins &sound_clk_pins>;
675 pinctrl-names = "default";
678 #sound-dai-cells = <0>;
684 playback = <&ssi0 &src2 &dvc0>;
685 capture = <&ssi1 &src3 &dvc1>;
694 /* HDMI video input */
697 pinctrl-0 = <&vin0_pins>;
698 pinctrl-names = "default";
701 #address-cells = <1>;
705 remote-endpoint = <&adv7612_out>;
715 /* composite video input */
717 pinctrl-0 = <&vin1_pins>;
718 pinctrl-names = "default";
723 #address-cells = <1>;
727 remote-endpoint = <&adv7180_out>;