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";
262 remote-endpoint = <&adv7511_out>;
268 compatible = "fixed-clock";
270 clock-frequency = <74250000>;
274 compatible = "fixed-clock";
276 clock-frequency = <148500000>;
281 pinctrl-0 = <&du_pins>;
282 pinctrl-names = "default";
285 clocks = <&mstp7_clks R8A7793_CLK_DU0>,
286 <&mstp7_clks R8A7793_CLK_DU1>,
287 <&mstp7_clks R8A7793_CLK_LVDS0>,
288 <&x13_clk>, <&x2_clk>;
289 clock-names = "du.0", "du.1", "lvds.0",
290 "dclkin.0", "dclkin.1";
295 remote-endpoint = <&adv7511_in>;
299 lvds_connector: endpoint {
306 clock-frequency = <20000000>;
310 pinctrl-0 = <&scif_clk_pins>;
311 pinctrl-names = "default";
319 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
324 groups = "scif0_data_d";
329 groups = "scif1_data_d";
333 scif_clk_pins: scif_clk {
335 function = "scif_clk";
339 groups = "eth_link", "eth_mdio", "eth_rmii";
344 groups = "intc_irq0";
349 groups = "sdhi0_data4", "sdhi0_ctrl";
354 groups = "sdhi1_data4", "sdhi1_ctrl";
359 groups = "sdhi2_data4", "sdhi2_ctrl";
364 groups = "qspi_ctrl", "qspi_data4";
369 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
373 sound_clk_pins: sound_clk {
374 groups = "audio_clk_a";
375 function = "audio_clk";
380 pinctrl-0 = <ðer_pins &phy1_pins>;
381 pinctrl-names = "default";
383 phy-handle = <&phy1>;
384 renesas,ether-link-active-low;
387 phy1: ethernet-phy@1 {
389 interrupt-parent = <&irqc0>;
390 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
391 micrel,led-mode = <1>;
400 pinctrl-0 = <&scif0_pins>;
401 pinctrl-names = "default";
407 pinctrl-0 = <&scif1_pins>;
408 pinctrl-names = "default";
414 clock-frequency = <14745600>;
419 pinctrl-0 = <&sdhi0_pins>;
420 pinctrl-names = "default";
422 vmmc-supply = <&vcc_sdhi0>;
423 vqmmc-supply = <&vccq_sdhi0>;
424 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
425 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
430 pinctrl-0 = <&sdhi1_pins>;
431 pinctrl-names = "default";
433 vmmc-supply = <&vcc_sdhi1>;
434 vqmmc-supply = <&vccq_sdhi1>;
435 cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
436 wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
441 pinctrl-0 = <&sdhi2_pins>;
442 pinctrl-names = "default";
444 vmmc-supply = <&vcc_sdhi2>;
445 vqmmc-supply = <&vccq_sdhi2>;
446 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
451 pinctrl-0 = <&qspi_pins>;
452 pinctrl-names = "default";
457 compatible = "spansion,s25fl512s", "jedec,spi-nor";
459 spi-max-frequency = <30000000>;
460 spi-tx-bus-width = <4>;
461 spi-rx-bus-width = <4>;
467 compatible = "fixed-partitions";
468 #address-cells = <1>;
473 reg = <0x00000000 0x00040000>;
478 reg = <0x00040000 0x00400000>;
483 reg = <0x00440000 0x03bc0000>;
490 pinctrl-0 = <&i2c2_pins>;
491 pinctrl-names = "default";
494 clock-frequency = <100000>;
497 compatible = "asahi-kasei,ak4643";
498 #sound-dai-cells = <0>;
503 compatible = "adi,adv7511w";
505 interrupt-parent = <&gpio3>;
506 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
508 adi,input-depth = <8>;
509 adi,input-colorspace = "rgb";
510 adi,input-clock = "1x";
511 adi,input-style = <1>;
512 adi,input-justification = "evenly";
515 #address-cells = <1>;
520 adv7511_in: endpoint {
521 remote-endpoint = <&du_out_rgb>;
527 adv7511_out: endpoint {
528 remote-endpoint = <&hdmi_con>;
535 compatible = "renesas,r1ex24002", "atmel,24c02";
543 clock-frequency = <100000>;
546 compatible = "dlg,da9063";
548 interrupt-parent = <&irqc0>;
549 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
550 interrupt-controller;
553 compatible = "dlg,da9063-rtc";
557 compatible = "dlg,da9063-watchdog";
563 pinctrl-0 = <&sound_pins &sound_clk_pins>;
564 pinctrl-names = "default";
567 #sound-dai-cells = <0>;
573 playback = <&ssi0 &src2 &dvc0>;
574 capture = <&ssi1 &src3 &dvc1>;