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";
58 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
59 stdout-path = "serial0:115200n8";
63 device_type = "memory";
64 reg = <0 0x40000000 0 0x40000000>;
68 compatible = "gpio-keys";
71 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
75 debounce-interval = <20>;
78 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
82 debounce-interval = <20>;
85 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
89 debounce-interval = <20>;
92 gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
96 debounce-interval = <20>;
99 gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_A>;
103 debounce-interval = <20>;
106 gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_B>;
110 debounce-interval = <20>;
113 gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_C>;
117 debounce-interval = <20>;
120 gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_D>;
124 debounce-interval = <20>;
127 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_E>;
131 debounce-interval = <20>;
134 gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_F>;
138 debounce-interval = <20>;
141 gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
142 linux,code = <KEY_G>;
145 debounce-interval = <20>;
150 compatible = "gpio-leds";
152 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
156 gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
160 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
165 vcc_sdhi0: regulator-vcc-sdhi0 {
166 compatible = "regulator-fixed";
168 regulator-name = "SDHI0 Vcc";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
172 gpio = <&gpio7 17 GPIO_ACTIVE_HIGH>;
176 vccq_sdhi0: regulator-vccq-sdhi0 {
177 compatible = "regulator-gpio";
179 regulator-name = "SDHI0 VccQ";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <3300000>;
183 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
189 vcc_sdhi1: regulator-vcc-sdhi1 {
190 compatible = "regulator-fixed";
192 regulator-name = "SDHI1 Vcc";
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
196 gpio = <&gpio7 18 GPIO_ACTIVE_HIGH>;
200 vccq_sdhi1: regulator-vccq-sdhi1 {
201 compatible = "regulator-gpio";
203 regulator-name = "SDHI1 VccQ";
204 regulator-min-microvolt = <1800000>;
205 regulator-max-microvolt = <3300000>;
207 gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
213 vcc_sdhi2: regulator-vcc-sdhi2 {
214 compatible = "regulator-fixed";
216 regulator-name = "SDHI2 Vcc";
217 regulator-min-microvolt = <3300000>;
218 regulator-max-microvolt = <3300000>;
220 gpio = <&gpio7 19 GPIO_ACTIVE_HIGH>;
224 vccq_sdhi2: regulator-vccq-sdhi2 {
225 compatible = "regulator-gpio";
227 regulator-name = "SDHI2 VccQ";
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <3300000>;
231 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
237 audio_clock: audio_clock {
238 compatible = "fixed-clock";
240 clock-frequency = <11289600>;
244 compatible = "simple-audio-card";
246 simple-audio-card,format = "left_j";
247 simple-audio-card,bitclock-master = <&sndcodec>;
248 simple-audio-card,frame-master = <&sndcodec>;
250 sndcpu: simple-audio-card,cpu {
251 sound-dai = <&rcar_sound>;
254 sndcodec: simple-audio-card,codec {
255 sound-dai = <&ak4643>;
256 clocks = <&audio_clock>;
261 compatible = "hdmi-connector";
265 hdmi_con_in: endpoint {
266 remote-endpoint = <&adv7612_in>;
272 compatible = "hdmi-connector";
276 hdmi_con_out: endpoint {
277 remote-endpoint = <&adv7511_out>;
283 compatible = "composite-video-connector";
286 composite_con_in: endpoint {
287 remote-endpoint = <&adv7180_in>;
293 compatible = "fixed-clock";
295 clock-frequency = <74250000>;
299 compatible = "fixed-clock";
301 clock-frequency = <148500000>;
305 #address-cells = <1>;
307 compatible = "i2c-gpio";
309 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
310 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
311 i2c-gpio,delay-us = <5>;
315 #address-cells = <1>;
317 compatible = "i2c-gpio";
319 scl-gpios = <&gpio7 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
320 sda-gpios = <&gpio7 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
321 i2c-gpio,delay-us = <5>;
325 * A fallback to GPIO is provided for I2C2.
328 compatible = "i2c-demux-pinctrl";
329 i2c-parent = <&i2c2>, <&gpioi2c2>;
330 i2c-bus-name = "i2c-hdmi";
331 #address-cells = <1>;
335 compatible = "asahi-kasei,ak4643";
336 #sound-dai-cells = <0>;
341 compatible = "adi,adv7180cp";
346 #address-cells = <1>;
351 adv7180_in: endpoint {
352 remote-endpoint = <&composite_con_in>;
358 adv7180_out: endpoint {
360 remote-endpoint = <&vin1ep>;
367 compatible = "adi,adv7511w";
369 interrupt-parent = <&gpio3>;
370 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
372 adi,input-depth = <8>;
373 adi,input-colorspace = "rgb";
374 adi,input-clock = "1x";
375 adi,input-style = <1>;
376 adi,input-justification = "evenly";
379 #address-cells = <1>;
384 adv7511_in: endpoint {
385 remote-endpoint = <&du_out_rgb>;
391 adv7511_out: endpoint {
392 remote-endpoint = <&hdmi_con_out>;
399 compatible = "adi,adv7612";
401 interrupt-parent = <&gpio4>;
402 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
406 #address-cells = <1>;
411 adv7612_in: endpoint {
412 remote-endpoint = <&hdmi_con_in>;
418 adv7612_out: endpoint {
419 remote-endpoint = <&vin0ep2>;
426 compatible = "renesas,r1ex24002", "atmel,24c02";
433 * I2C4 is routed to EXIO connector E, pins 37 (SCL) + 39 (SDA).
434 * A fallback to GPIO is provided.
437 compatible = "i2c-demux-pinctrl";
438 i2c-parent = <&i2c4>, <&gpioi2c4>;
439 i2c-bus-name = "i2c-exio4";
440 #address-cells = <1>;
446 pinctrl-0 = <&du_pins>;
447 pinctrl-names = "default";
450 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
451 <&x13_clk>, <&x2_clk>;
452 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
457 remote-endpoint = <&adv7511_in>;
466 lvds_connector: endpoint {
473 clock-frequency = <20000000>;
477 pinctrl-0 = <&scif_clk_pins>;
478 pinctrl-names = "default";
491 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
496 groups = "scif0_data_d";
501 groups = "scif1_data_d";
505 scif_clk_pins: scif_clk {
507 function = "scif_clk";
511 groups = "eth_link", "eth_mdio", "eth_rmii";
516 groups = "intc_irq0";
521 groups = "sdhi0_data4", "sdhi0_ctrl";
523 power-source = <3300>;
526 sdhi0_pins_uhs: sd0_uhs {
527 groups = "sdhi0_data4", "sdhi0_ctrl";
529 power-source = <1800>;
533 groups = "sdhi1_data4", "sdhi1_ctrl";
535 power-source = <3300>;
538 sdhi1_pins_uhs: sd1_uhs {
539 groups = "sdhi1_data4", "sdhi1_ctrl";
541 power-source = <1800>;
545 groups = "sdhi2_data4", "sdhi2_ctrl";
547 power-source = <3300>;
550 sdhi2_pins_uhs: sd2_uhs {
551 groups = "sdhi2_data4", "sdhi2_ctrl";
553 power-source = <1800>;
557 groups = "qspi_ctrl", "qspi_data4";
562 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
566 sound_clk_pins: sound_clk {
567 groups = "audio_clk_a";
568 function = "audio_clk";
572 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
577 groups = "vin1_data8", "vin1_clk";
583 pinctrl-0 = <ðer_pins &phy1_pins>;
584 pinctrl-names = "default";
586 phy-handle = <&phy1>;
587 renesas,ether-link-active-low;
590 phy1: ethernet-phy@1 {
592 interrupt-parent = <&irqc0>;
593 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
594 micrel,led-mode = <1>;
603 pinctrl-0 = <&scif0_pins>;
604 pinctrl-names = "default";
610 pinctrl-0 = <&scif1_pins>;
611 pinctrl-names = "default";
617 clock-frequency = <14745600>;
621 pinctrl-0 = <&sdhi0_pins>;
622 pinctrl-1 = <&sdhi0_pins_uhs>;
623 pinctrl-names = "default", "state_uhs";
625 vmmc-supply = <&vcc_sdhi0>;
626 vqmmc-supply = <&vccq_sdhi0>;
627 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
628 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
635 pinctrl-0 = <&sdhi1_pins>;
636 pinctrl-1 = <&sdhi1_pins_uhs>;
637 pinctrl-names = "default", "state_uhs";
639 vmmc-supply = <&vcc_sdhi1>;
640 vqmmc-supply = <&vccq_sdhi1>;
641 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
642 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
648 pinctrl-0 = <&sdhi2_pins>;
649 pinctrl-1 = <&sdhi2_pins_uhs>;
650 pinctrl-names = "default", "state_uhs";
652 vmmc-supply = <&vcc_sdhi2>;
653 vqmmc-supply = <&vccq_sdhi2>;
654 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
660 pinctrl-0 = <&qspi_pins>;
661 pinctrl-names = "default";
666 compatible = "spansion,s25fl512s", "jedec,spi-nor";
668 spi-max-frequency = <30000000>;
669 spi-tx-bus-width = <4>;
670 spi-rx-bus-width = <4>;
676 compatible = "fixed-partitions";
677 #address-cells = <1>;
682 reg = <0x00000000 0x00040000>;
687 reg = <0x00040000 0x00400000>;
692 reg = <0x00440000 0x03bc0000>;
699 pinctrl-0 = <&i2c2_pins>;
700 pinctrl-names = "i2c-hdmi";
703 clock-frequency = <100000>;
709 clock-frequency = <100000>;
712 compatible = "dlg,da9063";
714 interrupt-parent = <&irqc0>;
715 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
716 interrupt-controller;
719 compatible = "dlg,da9063-rtc";
723 compatible = "dlg,da9063-watchdog";
729 pinctrl-0 = <&i2c4_pins>;
730 pinctrl-names = "i2c-exio4";
734 pinctrl-0 = <&sound_pins &sound_clk_pins>;
735 pinctrl-names = "default";
738 #sound-dai-cells = <0>;
744 playback = <&ssi0 &src2 &dvc0>;
745 capture = <&ssi1 &src3 &dvc1>;
754 /* HDMI video input */
757 pinctrl-0 = <&vin0_pins>;
758 pinctrl-names = "default";
761 #address-cells = <1>;
765 remote-endpoint = <&adv7612_out>;
775 /* composite video input */
777 pinctrl-0 = <&vin1_pins>;
778 pinctrl-names = "default";
783 #address-cells = <1>;
787 remote-endpoint = <&adv7180_out>;