2 * Device Tree Source for the Lager board
4 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
19 * This command is required when Playback/Capture
21 * amixer set "LINEOUT Mixer DACL" on
22 * amixer set "DVC Out" 100%
23 * amixer set "DVC In" 100%
27 * amixer set "DVC Out Mute" on
28 * amixer set "DVC In Mute" on
30 * You can use Volume Ramp
32 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
33 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
34 * amixer set "DVC Out Ramp" on
36 * amixer set "DVC Out" 80% // Volume Down
37 * amixer set "DVC Out" 100% // Volume Up
41 #include "r8a7790.dtsi"
42 #include <dt-bindings/gpio/gpio.h>
43 #include <dt-bindings/input/input.h>
47 compatible = "renesas,lager", "renesas,r8a7790";
55 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
56 stdout-path = &scifa0;
60 device_type = "memory";
61 reg = <0 0x40000000 0 0x40000000>;
65 device_type = "memory";
66 reg = <1 0x40000000 0 0xc0000000>;
75 compatible = "gpio-keys";
81 debounce-interval = <20>;
82 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
88 debounce-interval = <20>;
89 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
95 debounce-interval = <20>;
96 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
102 debounce-interval = <20>;
103 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
108 compatible = "gpio-leds";
110 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
113 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
116 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
120 fixedregulator3v3: fixedregulator@0 {
121 compatible = "regulator-fixed";
122 regulator-name = "fixed-3.3V";
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
129 vcc_sdhi0: regulator@1 {
130 compatible = "regulator-fixed";
132 regulator-name = "SDHI0 Vcc";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
136 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
140 vccq_sdhi0: regulator@2 {
141 compatible = "regulator-gpio";
143 regulator-name = "SDHI0 VccQ";
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <3300000>;
147 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
153 vcc_sdhi2: regulator@3 {
154 compatible = "regulator-fixed";
156 regulator-name = "SDHI2 Vcc";
157 regulator-min-microvolt = <3300000>;
158 regulator-max-microvolt = <3300000>;
160 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
164 vccq_sdhi2: regulator@4 {
165 compatible = "regulator-gpio";
167 regulator-name = "SDHI2 VccQ";
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <3300000>;
171 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
178 compatible = "simple-audio-card";
180 simple-audio-card,format = "left_j";
181 simple-audio-card,bitclock-master = <&sndcodec>;
182 simple-audio-card,frame-master = <&sndcodec>;
184 sndcpu: simple-audio-card,cpu {
185 sound-dai = <&rcar_sound>;
188 sndcodec: simple-audio-card,codec {
189 sound-dai = <&ak4643>;
190 system-clock-frequency = <11289600>;
195 compatible = "adi,adv7123";
198 #address-cells = <1>;
203 adv7123_in: endpoint {
204 remote-endpoint = <&du_out_rgb>;
209 adv7123_out: endpoint {
210 remote-endpoint = <&vga_in>;
217 compatible = "vga-connector";
221 remote-endpoint = <&adv7123_out>;
228 pinctrl-0 = <&du_pins>;
229 pinctrl-names = "default";
235 remote-endpoint = <&adv7123_in>;
239 lvds_connector: endpoint {
246 clock-frequency = <20000000>;
251 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
252 renesas,function = "du";
255 scifa0_pins: serial0 {
256 renesas,groups = "scifa0_data";
257 renesas,function = "scifa0";
261 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
262 renesas,function = "eth";
266 renesas,groups = "intc_irq0";
267 renesas,function = "intc";
270 scifa1_pins: serial1 {
271 renesas,groups = "scifa1_data";
272 renesas,function = "scifa1";
276 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
277 renesas,function = "sdhi0";
281 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
282 renesas,function = "sdhi2";
286 renesas,groups = "mmc1_data8", "mmc1_ctrl";
287 renesas,function = "mmc1";
291 renesas,groups = "qspi_ctrl", "qspi_data4";
292 renesas,function = "qspi";
296 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
298 renesas,function = "msiof1";
302 renesas,groups = "iic1";
303 renesas,function = "iic1";
307 renesas,groups = "iic2";
308 renesas,function = "iic2";
312 renesas,groups = "iic3";
313 renesas,function = "iic3";
317 renesas,groups = "usb0_ovc_vbus";
318 renesas,function = "usb0";
322 renesas,groups = "usb0";
323 renesas,function = "usb0";
327 renesas,groups = "usb1";
328 renesas,function = "usb1";
332 renesas,groups = "usb2";
333 renesas,function = "usb2";
337 renesas,groups = "vin1_data8", "vin1_clk";
338 renesas,function = "vin1";
342 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
343 renesas,function = "ssi";
346 sound_clk_pins: sound_clk {
347 renesas,groups = "audio_clk_a";
348 renesas,function = "audio_clk";
353 pinctrl-0 = <ðer_pins &phy1_pins>;
354 pinctrl-names = "default";
356 phy-handle = <&phy1>;
357 renesas,ether-link-active-low;
360 phy1: ethernet-phy@1 {
362 interrupt-parent = <&irqc0>;
363 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
364 micrel,led-mode = <1>;
373 pinctrl-0 = <&mmc1_pins>;
374 pinctrl-names = "default";
376 vmmc-supply = <&fixedregulator3v3>;
387 pinctrl-0 = <&qspi_pins>;
388 pinctrl-names = "default";
393 #address-cells = <1>;
395 compatible = "spansion,s25fl512s";
397 spi-max-frequency = <30000000>;
398 spi-tx-bus-width = <4>;
399 spi-rx-bus-width = <4>;
404 reg = <0x00000000 0x00040000>;
409 reg = <0x00040000 0x00400000>;
414 reg = <0x00440000 0x03bc0000>;
420 pinctrl-0 = <&scifa0_pins>;
421 pinctrl-names = "default";
427 pinctrl-0 = <&scifa1_pins>;
428 pinctrl-names = "default";
434 pinctrl-0 = <&msiof1_pins>;
435 pinctrl-names = "default";
440 compatible = "renesas,r2a11302ft";
442 spi-max-frequency = <6000000>;
449 pinctrl-0 = <&sdhi0_pins>;
450 pinctrl-names = "default";
452 vmmc-supply = <&vcc_sdhi0>;
453 vqmmc-supply = <&vccq_sdhi0>;
454 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
459 pinctrl-0 = <&sdhi2_pins>;
460 pinctrl-names = "default";
462 vmmc-supply = <&vcc_sdhi2>;
463 vqmmc-supply = <&vccq_sdhi2>;
464 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
469 cpu0-supply = <&vdd_dvfs>;
478 pinctrl-0 = <&iic1_pins>;
479 pinctrl-names = "default";
484 pinctrl-0 = <&iic2_pins>;
485 pinctrl-names = "default";
487 clock-frequency = <100000>;
489 ak4643: sound-codec@12 {
490 compatible = "asahi-kasei,ak4643";
491 #sound-dai-cells = <0>;
496 compatible = "adi,adv7180";
503 remote-endpoint = <&vin1ep0>;
510 pinctrl-names = "default";
511 pinctrl-0 = <&iic3_pins>;
514 vdd_dvfs: regulator@68 {
515 compatible = "dlg,da9210";
518 regulator-min-microvolt = <1000000>;
519 regulator-max-microvolt = <1000000>;
527 pinctrl-0 = <&usb0_pins>;
528 pinctrl-names = "default";
533 pinctrl-0 = <&usb1_pins>;
534 pinctrl-names = "default";
539 pinctrl-0 = <&usb2_pins>;
540 pinctrl-names = "default";
545 pinctrl-0 = <&usb2_pins>;
546 pinctrl-names = "default";
551 pinctrl-0 = <&hsusb_pins>;
552 pinctrl-names = "default";
553 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
560 /* composite video input */
562 pinctrl-0 = <&vin1_pins>;
563 pinctrl-names = "default";
568 #address-cells = <1>;
572 remote-endpoint = <&adv7180>;
579 pinctrl-0 = <&sound_pins &sound_clk_pins>;
580 pinctrl-names = "default";
582 #sound-dai-cells = <0>;
588 playback = <&ssi0 &src2 &dvc0>;
589 capture = <&ssi1 &src3 &dvc1>;