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 = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
56 stdout-path = "serial0:115200n8";
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 = "fixed-clock";
180 clock-frequency = <11289600>;
181 clock-output-names = "audio_clock";
185 compatible = "simple-audio-card";
187 simple-audio-card,format = "left_j";
188 simple-audio-card,bitclock-master = <&sndcodec>;
189 simple-audio-card,frame-master = <&sndcodec>;
191 sndcpu: simple-audio-card,cpu {
192 sound-dai = <&rcar_sound>;
195 sndcodec: simple-audio-card,codec {
196 sound-dai = <&ak4643>;
197 clocks = <&audio_clock>;
202 compatible = "adi,adv7123";
205 #address-cells = <1>;
210 adv7123_in: endpoint {
211 remote-endpoint = <&du_out_rgb>;
216 adv7123_out: endpoint {
217 remote-endpoint = <&vga_in>;
224 compatible = "vga-connector";
228 remote-endpoint = <&adv7123_out>;
234 compatible = "hdmi-connector";
239 remote-endpoint = <&adv7511_out>;
245 compatible = "fixed-clock";
247 clock-frequency = <148500000>;
251 compatible = "fixed-clock";
253 clock-frequency = <148500000>;
258 pinctrl-0 = <&du_pins>;
259 pinctrl-names = "default";
262 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
263 <&mstp7_clks R8A7790_CLK_DU1>,
264 <&mstp7_clks R8A7790_CLK_DU2>,
265 <&mstp7_clks R8A7790_CLK_LVDS0>,
266 <&mstp7_clks R8A7790_CLK_LVDS1>,
267 <&x13_clk>, <&x2_clk>;
268 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1",
269 "dclkin.0", "dclkin.1";
274 remote-endpoint = <&adv7123_in>;
279 remote-endpoint = <&adv7511_in>;
283 lvds_connector: endpoint {
290 clock-frequency = <20000000>;
294 pinctrl-0 = <&scif_clk_pins>;
295 pinctrl-names = "default";
298 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
299 renesas,function = "du";
302 scif0_pins: serial0 {
303 renesas,groups = "scif0_data";
304 renesas,function = "scif0";
307 scif_clk_pins: scif_clk {
308 renesas,groups = "scif_clk";
309 renesas,function = "scif_clk";
313 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
314 renesas,function = "eth";
318 renesas,groups = "intc_irq0";
319 renesas,function = "intc";
322 scifa1_pins: serial1 {
323 renesas,groups = "scifa1_data";
324 renesas,function = "scifa1";
328 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
329 renesas,function = "sdhi0";
333 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
334 renesas,function = "sdhi2";
338 renesas,groups = "mmc1_data8", "mmc1_ctrl";
339 renesas,function = "mmc1";
343 renesas,groups = "qspi_ctrl", "qspi_data4";
344 renesas,function = "qspi";
348 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
350 renesas,function = "msiof1";
354 renesas,groups = "iic0";
355 renesas,function = "iic0";
359 renesas,groups = "iic1";
360 renesas,function = "iic1";
364 renesas,groups = "iic2";
365 renesas,function = "iic2";
369 renesas,groups = "iic3";
370 renesas,function = "iic3";
374 renesas,groups = "usb0_ovc_vbus";
375 renesas,function = "usb0";
379 renesas,groups = "usb0";
380 renesas,function = "usb0";
384 renesas,groups = "usb1";
385 renesas,function = "usb1";
389 renesas,groups = "usb2";
390 renesas,function = "usb2";
394 renesas,groups = "vin1_data8", "vin1_clk";
395 renesas,function = "vin1";
399 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
400 renesas,function = "ssi";
403 sound_clk_pins: sound_clk {
404 renesas,groups = "audio_clk_a";
405 renesas,function = "audio_clk";
410 pinctrl-0 = <ðer_pins &phy1_pins>;
411 pinctrl-names = "default";
413 phy-handle = <&phy1>;
414 renesas,ether-link-active-low;
417 phy1: ethernet-phy@1 {
419 interrupt-parent = <&irqc0>;
420 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
421 micrel,led-mode = <1>;
430 pinctrl-0 = <&mmc1_pins>;
431 pinctrl-names = "default";
433 vmmc-supply = <&fixedregulator3v3>;
444 pinctrl-0 = <&qspi_pins>;
445 pinctrl-names = "default";
450 compatible = "spansion,s25fl512s", "jedec,spi-nor";
452 spi-max-frequency = <30000000>;
453 spi-tx-bus-width = <4>;
454 spi-rx-bus-width = <4>;
460 compatible = "fixed-partitions";
461 #address-cells = <1>;
466 reg = <0x00000000 0x00040000>;
471 reg = <0x00040000 0x00400000>;
476 reg = <0x00440000 0x03bc0000>;
483 pinctrl-0 = <&scif0_pins>;
484 pinctrl-names = "default";
490 pinctrl-0 = <&scifa1_pins>;
491 pinctrl-names = "default";
497 clock-frequency = <14745600>;
502 pinctrl-0 = <&msiof1_pins>;
503 pinctrl-names = "default";
508 compatible = "renesas,r2a11302ft";
510 spi-max-frequency = <6000000>;
517 pinctrl-0 = <&sdhi0_pins>;
518 pinctrl-names = "default";
520 vmmc-supply = <&vcc_sdhi0>;
521 vqmmc-supply = <&vccq_sdhi0>;
522 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
527 pinctrl-0 = <&sdhi2_pins>;
528 pinctrl-names = "default";
530 vmmc-supply = <&vcc_sdhi2>;
531 vqmmc-supply = <&vccq_sdhi2>;
532 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
537 cpu0-supply = <&vdd_dvfs>;
542 pinctrl-0 = <&iic0_pins>;
543 pinctrl-names = "default";
548 pinctrl-0 = <&iic1_pins>;
549 pinctrl-names = "default";
554 pinctrl-0 = <&iic2_pins>;
555 pinctrl-names = "default";
557 clock-frequency = <100000>;
560 compatible = "asahi-kasei,ak4643";
561 #sound-dai-cells = <0>;
566 compatible = "adi,adv7180";
573 remote-endpoint = <&vin1ep0>;
579 compatible = "adi,adv7511w";
581 interrupt-parent = <&gpio1>;
582 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
584 adi,input-depth = <8>;
585 adi,input-colorspace = "rgb";
586 adi,input-clock = "1x";
587 adi,input-style = <1>;
588 adi,input-justification = "evenly";
591 #address-cells = <1>;
596 adv7511_in: endpoint {
597 remote-endpoint = <&du_out_lvds0>;
603 adv7511_out: endpoint {
604 remote-endpoint = <&hdmi_con>;
612 pinctrl-names = "default";
613 pinctrl-0 = <&iic3_pins>;
617 compatible = "dlg,da9063";
619 interrupt-parent = <&irqc0>;
620 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
621 interrupt-controller;
624 compatible = "dlg,da9063-rtc";
628 compatible = "dlg,da9063-watchdog";
632 vdd_dvfs: regulator@68 {
633 compatible = "dlg,da9210";
635 interrupt-parent = <&irqc0>;
636 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
638 regulator-min-microvolt = <1000000>;
639 regulator-max-microvolt = <1000000>;
647 pinctrl-0 = <&usb0_pins>;
648 pinctrl-names = "default";
653 pinctrl-0 = <&usb1_pins>;
654 pinctrl-names = "default";
659 pinctrl-0 = <&usb2_pins>;
660 pinctrl-names = "default";
665 pinctrl-0 = <&usb2_pins>;
666 pinctrl-names = "default";
671 pinctrl-0 = <&hsusb_pins>;
672 pinctrl-names = "default";
673 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
680 /* composite video input */
682 pinctrl-0 = <&vin1_pins>;
683 pinctrl-names = "default";
688 #address-cells = <1>;
692 remote-endpoint = <&adv7180>;
699 pinctrl-0 = <&sound_pins &sound_clk_pins>;
700 pinctrl-names = "default";
703 #sound-dai-cells = <0>;
709 playback = <&ssi0 &src2 &dvc0>;
710 capture = <&ssi1 &src3 &dvc1>;