2 * Device Tree Source for the Lager board
4 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
6 * Copyright (C) 2015-2016 Renesas Electronics Corporation
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
20 * This command is required when Playback/Capture
22 * amixer set "LINEOUT Mixer DACL" on
23 * amixer set "DVC Out" 100%
24 * amixer set "DVC In" 100%
28 * amixer set "DVC Out Mute" on
29 * amixer set "DVC In Mute" on
31 * You can use Volume Ramp
33 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
34 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
35 * amixer set "DVC Out Ramp" on
37 * amixer set "DVC Out" 80% // Volume Down
38 * amixer set "DVC Out" 100% // Volume Up
42 #include "r8a7790.dtsi"
43 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/input/input.h>
48 compatible = "renesas,lager", "renesas,r8a7790";
59 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
60 stdout-path = "serial0:115200n8";
64 device_type = "memory";
65 reg = <0 0x40000000 0 0x40000000>;
69 device_type = "memory";
70 reg = <1 0x40000000 0 0xc0000000>;
79 compatible = "gpio-keys";
85 debounce-interval = <20>;
86 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
92 debounce-interval = <20>;
93 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
99 debounce-interval = <20>;
100 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_4>;
106 debounce-interval = <20>;
107 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
112 compatible = "gpio-leds";
114 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
117 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
120 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
124 fixedregulator3v3: regulator-3v3 {
125 compatible = "regulator-fixed";
126 regulator-name = "fixed-3.3V";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
133 vcc_sdhi0: regulator-vcc-sdhi0 {
134 compatible = "regulator-fixed";
136 regulator-name = "SDHI0 Vcc";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
140 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
144 vccq_sdhi0: regulator-vccq-sdhi0 {
145 compatible = "regulator-gpio";
147 regulator-name = "SDHI0 VccQ";
148 regulator-min-microvolt = <1800000>;
149 regulator-max-microvolt = <3300000>;
151 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
157 vcc_sdhi2: regulator-vcc-sdhi2 {
158 compatible = "regulator-fixed";
160 regulator-name = "SDHI2 Vcc";
161 regulator-min-microvolt = <3300000>;
162 regulator-max-microvolt = <3300000>;
164 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
168 vccq_sdhi2: regulator-vccq-sdhi2 {
169 compatible = "regulator-gpio";
171 regulator-name = "SDHI2 VccQ";
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <3300000>;
175 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
181 audio_clock: audio_clock {
182 compatible = "fixed-clock";
184 clock-frequency = <11289600>;
188 compatible = "simple-audio-card";
190 simple-audio-card,format = "left_j";
191 simple-audio-card,bitclock-master = <&sndcodec>;
192 simple-audio-card,frame-master = <&sndcodec>;
194 sndcpu: simple-audio-card,cpu {
195 sound-dai = <&rcar_sound>;
198 sndcodec: simple-audio-card,codec {
199 sound-dai = <&ak4643>;
200 clocks = <&audio_clock>;
205 compatible = "adi,adv7123";
208 #address-cells = <1>;
213 adv7123_in: endpoint {
214 remote-endpoint = <&du_out_rgb>;
219 adv7123_out: endpoint {
220 remote-endpoint = <&vga_in>;
227 compatible = "vga-connector";
231 remote-endpoint = <&adv7123_out>;
237 compatible = "hdmi-connector";
241 hdmi_con_in: endpoint {
242 remote-endpoint = <&adv7612_in>;
248 compatible = "hdmi-connector";
252 hdmi_con_out: endpoint {
253 remote-endpoint = <&adv7511_out>;
259 compatible = "fixed-clock";
261 clock-frequency = <148500000>;
265 compatible = "fixed-clock";
267 clock-frequency = <148500000>;
271 #address-cells = <1>;
273 compatible = "i2c-gpio";
275 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH /* sda */
276 &gpio1 16 GPIO_ACTIVE_HIGH /* scl */
278 i2c-gpio,delay-us = <5>;
282 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
283 * We use the I2C demuxer, so the desired IP core can be selected at runtime
284 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
285 * Note: For testing the I2C slave feature, it is convenient to connect this
286 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
287 * instantiate the slave device at runtime according to the documentation.
288 * You can then communicate with the slave via IIC3.
290 * IIC0/I2C0 does not appear to support fallback to GPIO.
293 compatible = "i2c-demux-pinctrl";
294 i2c-parent = <&iic0>, <&i2c0>;
295 i2c-bus-name = "i2c-exio0";
296 #address-cells = <1>;
301 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
302 * This is similar to the arangement described for i2cexio0 (above)
303 * with a fallback to GPIO also provided.
306 compatible = "i2c-demux-pinctrl";
307 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
308 i2c-bus-name = "i2c-exio1";
309 #address-cells = <1>;
315 pinctrl-0 = <&du_pins>;
316 pinctrl-names = "default";
319 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
320 <&mstp7_clks R8A7790_CLK_DU1>,
321 <&mstp7_clks R8A7790_CLK_DU2>,
322 <&mstp7_clks R8A7790_CLK_LVDS0>,
323 <&mstp7_clks R8A7790_CLK_LVDS1>,
324 <&x13_clk>, <&x2_clk>;
325 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1",
326 "dclkin.0", "dclkin.1";
331 remote-endpoint = <&adv7123_in>;
336 remote-endpoint = <&adv7511_in>;
340 lvds_connector: endpoint {
347 clock-frequency = <20000000>;
351 pinctrl-0 = <&scif_clk_pins>;
352 pinctrl-names = "default";
355 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
360 groups = "scif0_data";
364 scif_clk_pins: scif_clk {
366 function = "scif_clk";
370 groups = "eth_link", "eth_mdio", "eth_rmii";
375 groups = "intc_irq0";
379 scifa1_pins: scifa1 {
380 groups = "scifa1_data";
385 groups = "sdhi0_data4", "sdhi0_ctrl";
387 power-source = <3300>;
390 sdhi0_pins_uhs: sd0_uhs {
391 groups = "sdhi0_data4", "sdhi0_ctrl";
393 power-source = <1800>;
397 groups = "sdhi2_data4", "sdhi2_ctrl";
399 power-source = <3300>;
402 sdhi2_pins_uhs: sd2_uhs {
403 groups = "sdhi2_data4", "sdhi2_ctrl";
405 power-source = <1800>;
409 groups = "mmc1_data8", "mmc1_ctrl";
414 groups = "qspi_ctrl", "qspi_data4";
418 msiof1_pins: msiof1 {
419 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
455 groups = "usb0_ovc_vbus";
475 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
480 groups = "vin1_data8", "vin1_clk";
485 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
489 sound_clk_pins: sound_clk {
490 groups = "audio_clk_a";
491 function = "audio_clk";
496 pinctrl-0 = <ðer_pins &phy1_pins>;
497 pinctrl-names = "default";
499 phy-handle = <&phy1>;
500 renesas,ether-link-active-low;
503 phy1: ethernet-phy@1 {
505 interrupt-parent = <&irqc0>;
506 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
507 micrel,led-mode = <1>;
516 pinctrl-0 = <&mmc1_pins>;
517 pinctrl-names = "default";
519 vmmc-supply = <&fixedregulator3v3>;
530 pinctrl-0 = <&qspi_pins>;
531 pinctrl-names = "default";
536 compatible = "spansion,s25fl512s", "jedec,spi-nor";
538 spi-max-frequency = <30000000>;
539 spi-tx-bus-width = <4>;
540 spi-rx-bus-width = <4>;
546 compatible = "fixed-partitions";
547 #address-cells = <1>;
552 reg = <0x00000000 0x00040000>;
557 reg = <0x00040000 0x00400000>;
562 reg = <0x00440000 0x03bc0000>;
569 pinctrl-0 = <&scif0_pins>;
570 pinctrl-names = "default";
576 pinctrl-0 = <&scifa1_pins>;
577 pinctrl-names = "default";
583 clock-frequency = <14745600>;
588 pinctrl-0 = <&msiof1_pins>;
589 pinctrl-names = "default";
594 compatible = "renesas,r2a11302ft";
596 spi-max-frequency = <6000000>;
603 pinctrl-0 = <&sdhi0_pins>;
604 pinctrl-1 = <&sdhi0_pins_uhs>;
605 pinctrl-names = "default", "state_uhs";
607 vmmc-supply = <&vcc_sdhi0>;
608 vqmmc-supply = <&vccq_sdhi0>;
609 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
616 pinctrl-0 = <&sdhi2_pins>;
617 pinctrl-1 = <&sdhi2_pins_uhs>;
618 pinctrl-names = "default", "state_uhs";
620 vmmc-supply = <&vcc_sdhi2>;
621 vqmmc-supply = <&vccq_sdhi2>;
622 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
628 cpu0-supply = <&vdd_dvfs>;
632 pinctrl-0 = <&i2c0_pins>;
633 pinctrl-names = "i2c-exio0";
637 pinctrl-0 = <&iic0_pins>;
638 pinctrl-names = "i2c-exio0";
642 pinctrl-0 = <&i2c1_pins>;
643 pinctrl-names = "i2c-exio1";
647 pinctrl-0 = <&iic1_pins>;
648 pinctrl-names = "i2c-exio1";
653 pinctrl-0 = <&iic2_pins>;
654 pinctrl-names = "default";
656 clock-frequency = <100000>;
659 compatible = "asahi-kasei,ak4643";
660 #sound-dai-cells = <0>;
665 compatible = "adi,adv7180";
672 remote-endpoint = <&vin1ep0>;
678 compatible = "adi,adv7511w";
680 interrupt-parent = <&gpio1>;
681 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
683 adi,input-depth = <8>;
684 adi,input-colorspace = "rgb";
685 adi,input-clock = "1x";
686 adi,input-style = <1>;
687 adi,input-justification = "evenly";
690 #address-cells = <1>;
695 adv7511_in: endpoint {
696 remote-endpoint = <&du_out_lvds0>;
702 adv7511_out: endpoint {
703 remote-endpoint = <&hdmi_con_out>;
710 compatible = "adi,adv7612";
712 interrupt-parent = <&gpio1>;
713 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
717 #address-cells = <1>;
722 adv7612_in: endpoint {
723 remote-endpoint = <&hdmi_con_in>;
729 adv7612_out: endpoint {
730 remote-endpoint = <&vin0ep2>;
738 pinctrl-names = "default";
739 pinctrl-0 = <&iic3_pins>;
743 compatible = "dlg,da9063";
745 interrupt-parent = <&irqc0>;
746 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
747 interrupt-controller;
750 compatible = "dlg,da9063-rtc";
754 compatible = "dlg,da9063-watchdog";
758 vdd_dvfs: regulator@68 {
759 compatible = "dlg,da9210";
761 interrupt-parent = <&irqc0>;
762 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
764 regulator-min-microvolt = <1000000>;
765 regulator-max-microvolt = <1000000>;
773 pinctrl-0 = <&usb0_pins>;
774 pinctrl-names = "default";
779 pinctrl-0 = <&usb1_pins>;
780 pinctrl-names = "default";
785 pinctrl-0 = <&usb2_pins>;
786 pinctrl-names = "default";
791 pinctrl-0 = <&usb2_pins>;
792 pinctrl-names = "default";
797 pinctrl-0 = <&hsusb_pins>;
798 pinctrl-names = "default";
799 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
806 /* HDMI video input */
808 pinctrl-0 = <&vin0_pins>;
809 pinctrl-names = "default";
815 remote-endpoint = <&adv7612_out>;
825 /* composite video input */
827 pinctrl-0 = <&vin1_pins>;
828 pinctrl-names = "default";
833 #address-cells = <1>;
837 remote-endpoint = <&adv7180>;
844 pinctrl-0 = <&sound_pins &sound_clk_pins>;
845 pinctrl-names = "default";
848 #sound-dai-cells = <0>;
854 playback = <&ssi0 &src2 &dvc0>;
855 capture = <&ssi1 &src3 &dvc1>;