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 audio_clock: audio_clock {
162 compatible = "fixed-clock";
164 clock-frequency = <11289600>;
168 compatible = "simple-audio-card";
170 simple-audio-card,format = "left_j";
171 simple-audio-card,bitclock-master = <&sndcodec>;
172 simple-audio-card,frame-master = <&sndcodec>;
174 sndcpu: simple-audio-card,cpu {
175 sound-dai = <&rcar_sound>;
178 sndcodec: simple-audio-card,codec {
179 sound-dai = <&ak4643>;
180 clocks = <&audio_clock>;
185 compatible = "hdmi-connector";
190 remote-endpoint = <&adv7511_out>;
196 compatible = "fixed-clock";
198 clock-frequency = <74250000>;
202 compatible = "fixed-clock";
204 clock-frequency = <148500000>;
209 pinctrl-0 = <&du_pins>;
210 pinctrl-names = "default";
213 clocks = <&mstp7_clks R8A7793_CLK_DU0>,
214 <&mstp7_clks R8A7793_CLK_DU1>,
215 <&mstp7_clks R8A7793_CLK_LVDS0>,
216 <&x13_clk>, <&x2_clk>;
217 clock-names = "du.0", "du.1", "lvds.0",
218 "dclkin.0", "dclkin.1";
223 remote-endpoint = <&adv7511_in>;
227 lvds_connector: endpoint {
234 clock-frequency = <20000000>;
238 pinctrl-0 = <&scif_clk_pins>;
239 pinctrl-names = "default";
247 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
251 scif0_pins: serial0 {
252 groups = "scif0_data_d";
256 scif1_pins: serial1 {
257 groups = "scif1_data_d";
261 scif_clk_pins: scif_clk {
263 function = "scif_clk";
267 groups = "eth_link", "eth_mdio", "eth_rmii";
272 groups = "intc_irq0";
277 groups = "qspi_ctrl", "qspi_data4";
282 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
286 sound_clk_pins: sound_clk {
287 groups = "audio_clk_a";
288 function = "audio_clk";
293 pinctrl-0 = <ðer_pins &phy1_pins>;
294 pinctrl-names = "default";
296 phy-handle = <&phy1>;
297 renesas,ether-link-active-low;
300 phy1: ethernet-phy@1 {
302 interrupt-parent = <&irqc0>;
303 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
304 micrel,led-mode = <1>;
313 pinctrl-0 = <&scif0_pins>;
314 pinctrl-names = "default";
320 pinctrl-0 = <&scif1_pins>;
321 pinctrl-names = "default";
327 clock-frequency = <14745600>;
332 pinctrl-0 = <&qspi_pins>;
333 pinctrl-names = "default";
338 compatible = "spansion,s25fl512s", "jedec,spi-nor";
340 spi-max-frequency = <30000000>;
341 spi-tx-bus-width = <4>;
342 spi-rx-bus-width = <4>;
348 compatible = "fixed-partitions";
349 #address-cells = <1>;
354 reg = <0x00000000 0x00040000>;
359 reg = <0x00040000 0x00400000>;
364 reg = <0x00440000 0x03bc0000>;
371 pinctrl-0 = <&i2c2_pins>;
372 pinctrl-names = "default";
375 clock-frequency = <100000>;
378 compatible = "asahi-kasei,ak4643";
379 #sound-dai-cells = <0>;
384 compatible = "adi,adv7511w";
386 interrupt-parent = <&gpio3>;
387 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
389 adi,input-depth = <8>;
390 adi,input-colorspace = "rgb";
391 adi,input-clock = "1x";
392 adi,input-style = <1>;
393 adi,input-justification = "evenly";
396 #address-cells = <1>;
401 adv7511_in: endpoint {
402 remote-endpoint = <&du_out_rgb>;
408 adv7511_out: endpoint {
409 remote-endpoint = <&hdmi_con>;
416 compatible = "renesas,r1ex24002", "atmel,24c02";
423 pinctrl-0 = <&sound_pins &sound_clk_pins>;
424 pinctrl-names = "default";
427 #sound-dai-cells = <0>;
433 playback = <&ssi0 &src2 &dvc0>;
434 capture = <&ssi1 &src3 &dvc1>;