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>;
162 compatible = "fixed-clock";
164 clock-frequency = <11289600>;
165 clock-output-names = "audio_clock";
169 compatible = "simple-audio-card";
171 simple-audio-card,format = "left_j";
172 simple-audio-card,bitclock-master = <&sndcodec>;
173 simple-audio-card,frame-master = <&sndcodec>;
175 sndcpu: simple-audio-card,cpu {
176 sound-dai = <&rcar_sound>;
179 sndcodec: simple-audio-card,codec {
180 sound-dai = <&ak4643>;
181 clocks = <&audio_clock>;
186 compatible = "hdmi-connector";
191 remote-endpoint = <&adv7511_out>;
197 compatible = "fixed-clock";
199 clock-frequency = <74250000>;
203 compatible = "fixed-clock";
205 clock-frequency = <148500000>;
210 pinctrl-0 = <&du_pins>;
211 pinctrl-names = "default";
214 clocks = <&mstp7_clks R8A7793_CLK_DU0>,
215 <&mstp7_clks R8A7793_CLK_DU1>,
216 <&mstp7_clks R8A7793_CLK_LVDS0>,
217 <&x13_clk>, <&x2_clk>;
218 clock-names = "du.0", "du.1", "lvds.0",
219 "dclkin.0", "dclkin.1";
224 remote-endpoint = <&adv7511_in>;
228 lvds_connector: endpoint {
235 clock-frequency = <20000000>;
239 pinctrl-0 = <&scif_clk_pins>;
240 pinctrl-names = "default";
243 renesas,groups = "i2c2";
244 renesas,function = "i2c2";
248 renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
249 renesas,function = "du";
252 scif0_pins: serial0 {
253 renesas,groups = "scif0_data_d";
254 renesas,function = "scif0";
257 scif1_pins: serial1 {
258 renesas,groups = "scif1_data_d";
259 renesas,function = "scif1";
262 scif_clk_pins: scif_clk {
263 renesas,groups = "scif_clk";
264 renesas,function = "scif_clk";
268 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
269 renesas,function = "eth";
273 renesas,groups = "intc_irq0";
274 renesas,function = "intc";
278 renesas,groups = "qspi_ctrl", "qspi_data4";
279 renesas,function = "qspi";
283 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
284 renesas,function = "ssi";
287 sound_clk_pins: sound_clk {
288 renesas,groups = "audio_clk_a";
289 renesas,function = "audio_clk";
294 pinctrl-0 = <ðer_pins &phy1_pins>;
295 pinctrl-names = "default";
297 phy-handle = <&phy1>;
298 renesas,ether-link-active-low;
301 phy1: ethernet-phy@1 {
303 interrupt-parent = <&irqc0>;
304 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
305 micrel,led-mode = <1>;
314 pinctrl-0 = <&scif0_pins>;
315 pinctrl-names = "default";
321 pinctrl-0 = <&scif1_pins>;
322 pinctrl-names = "default";
328 clock-frequency = <14745600>;
333 pinctrl-0 = <&qspi_pins>;
334 pinctrl-names = "default";
339 compatible = "spansion,s25fl512s", "jedec,spi-nor";
341 spi-max-frequency = <30000000>;
342 spi-tx-bus-width = <4>;
343 spi-rx-bus-width = <4>;
349 compatible = "fixed-partitions";
350 #address-cells = <1>;
355 reg = <0x00000000 0x00040000>;
360 reg = <0x00040000 0x00400000>;
365 reg = <0x00440000 0x03bc0000>;
372 pinctrl-0 = <&i2c2_pins>;
373 pinctrl-names = "default";
376 clock-frequency = <100000>;
379 compatible = "asahi-kasei,ak4643";
380 #sound-dai-cells = <0>;
385 compatible = "adi,adv7511w";
387 interrupt-parent = <&gpio3>;
388 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
390 adi,input-depth = <8>;
391 adi,input-colorspace = "rgb";
392 adi,input-clock = "1x";
393 adi,input-style = <1>;
394 adi,input-justification = "evenly";
397 #address-cells = <1>;
402 adv7511_in: endpoint {
403 remote-endpoint = <&du_out_rgb>;
409 adv7511_out: endpoint {
410 remote-endpoint = <&hdmi_con>;
417 compatible = "renesas,r1ex24002", "atmel,24c02";
424 pinctrl-0 = <&sound_pins &sound_clk_pins>;
425 pinctrl-names = "default";
428 #sound-dai-cells = <0>;
434 playback = <&ssi0 &src2 &dvc0>;
435 capture = <&ssi1 &src3 &dvc1>;