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";
57 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
58 stdout-path = "serial0:115200n8";
62 device_type = "memory";
63 reg = <0 0x40000000 0 0x40000000>;
67 device_type = "memory";
68 reg = <1 0x40000000 0 0xc0000000>;
77 compatible = "gpio-keys";
83 debounce-interval = <20>;
84 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
90 debounce-interval = <20>;
91 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
97 debounce-interval = <20>;
98 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_4>;
104 debounce-interval = <20>;
105 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
110 compatible = "gpio-leds";
112 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
115 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
118 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
122 fixedregulator3v3: fixedregulator@0 {
123 compatible = "regulator-fixed";
124 regulator-name = "fixed-3.3V";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
131 vcc_sdhi0: regulator@1 {
132 compatible = "regulator-fixed";
134 regulator-name = "SDHI0 Vcc";
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
138 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
142 vccq_sdhi0: regulator@2 {
143 compatible = "regulator-gpio";
145 regulator-name = "SDHI0 VccQ";
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <3300000>;
149 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
155 vcc_sdhi2: regulator@3 {
156 compatible = "regulator-fixed";
158 regulator-name = "SDHI2 Vcc";
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
162 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
166 vccq_sdhi2: regulator@4 {
167 compatible = "regulator-gpio";
169 regulator-name = "SDHI2 VccQ";
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <3300000>;
173 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
179 audio_clock: audio_clock {
180 compatible = "fixed-clock";
182 clock-frequency = <11289600>;
186 compatible = "simple-audio-card";
188 simple-audio-card,format = "left_j";
189 simple-audio-card,bitclock-master = <&sndcodec>;
190 simple-audio-card,frame-master = <&sndcodec>;
192 sndcpu: simple-audio-card,cpu {
193 sound-dai = <&rcar_sound>;
196 sndcodec: simple-audio-card,codec {
197 sound-dai = <&ak4643>;
198 clocks = <&audio_clock>;
203 compatible = "adi,adv7123";
206 #address-cells = <1>;
211 adv7123_in: endpoint {
212 remote-endpoint = <&du_out_rgb>;
217 adv7123_out: endpoint {
218 remote-endpoint = <&vga_in>;
225 compatible = "vga-connector";
229 remote-endpoint = <&adv7123_out>;
235 compatible = "hdmi-connector";
240 remote-endpoint = <&adv7511_out>;
246 compatible = "fixed-clock";
248 clock-frequency = <148500000>;
252 compatible = "fixed-clock";
254 clock-frequency = <148500000>;
258 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
259 * We use the I2C demuxer, so the desired IP core can be selected at runtime
260 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
261 * Note: For testing the I2C slave feature, it is convenient to connect this
262 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
263 * instantiate the slave device at runtime according to the documentation.
264 * You can then communicate with the slave via IIC3.
267 compatible = "i2c-demux-pinctrl";
268 i2c-parent = <&iic0>, <&i2c0>;
269 i2c-bus-name = "i2c-exio";
270 #address-cells = <1>;
276 pinctrl-0 = <&du_pins>;
277 pinctrl-names = "default";
280 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
281 <&mstp7_clks R8A7790_CLK_DU1>,
282 <&mstp7_clks R8A7790_CLK_DU2>,
283 <&mstp7_clks R8A7790_CLK_LVDS0>,
284 <&mstp7_clks R8A7790_CLK_LVDS1>,
285 <&x13_clk>, <&x2_clk>;
286 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1",
287 "dclkin.0", "dclkin.1";
292 remote-endpoint = <&adv7123_in>;
297 remote-endpoint = <&adv7511_in>;
301 lvds_connector: endpoint {
308 clock-frequency = <20000000>;
312 pinctrl-0 = <&scif_clk_pins>;
313 pinctrl-names = "default";
316 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
320 scif0_pins: serial0 {
321 groups = "scif0_data";
325 scif_clk_pins: scif_clk {
327 function = "scif_clk";
331 groups = "eth_link", "eth_mdio", "eth_rmii";
336 groups = "intc_irq0";
340 scifa1_pins: serial1 {
341 groups = "scifa1_data";
346 groups = "sdhi0_data4", "sdhi0_ctrl";
348 power-source = <3300>;
351 sdhi0_pins_uhs: sd0_uhs {
352 groups = "sdhi0_data4", "sdhi0_ctrl";
354 power-source = <1800>;
358 groups = "sdhi2_data4", "sdhi2_ctrl";
360 power-source = <3300>;
363 sdhi2_pins_uhs: sd2_uhs {
364 groups = "sdhi2_data4", "sdhi2_ctrl";
366 power-source = <1800>;
370 groups = "mmc1_data8", "mmc1_ctrl";
375 groups = "qspi_ctrl", "qspi_data4";
380 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
411 groups = "usb0_ovc_vbus";
431 groups = "vin1_data8", "vin1_clk";
436 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
440 sound_clk_pins: sound_clk {
441 groups = "audio_clk_a";
442 function = "audio_clk";
447 pinctrl-0 = <ðer_pins &phy1_pins>;
448 pinctrl-names = "default";
450 phy-handle = <&phy1>;
451 renesas,ether-link-active-low;
454 phy1: ethernet-phy@1 {
456 interrupt-parent = <&irqc0>;
457 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
458 micrel,led-mode = <1>;
467 pinctrl-0 = <&mmc1_pins>;
468 pinctrl-names = "default";
470 vmmc-supply = <&fixedregulator3v3>;
481 pinctrl-0 = <&qspi_pins>;
482 pinctrl-names = "default";
487 compatible = "spansion,s25fl512s", "jedec,spi-nor";
489 spi-max-frequency = <30000000>;
490 spi-tx-bus-width = <4>;
491 spi-rx-bus-width = <4>;
497 compatible = "fixed-partitions";
498 #address-cells = <1>;
503 reg = <0x00000000 0x00040000>;
508 reg = <0x00040000 0x00400000>;
513 reg = <0x00440000 0x03bc0000>;
520 pinctrl-0 = <&scif0_pins>;
521 pinctrl-names = "default";
527 pinctrl-0 = <&scifa1_pins>;
528 pinctrl-names = "default";
534 clock-frequency = <14745600>;
539 pinctrl-0 = <&msiof1_pins>;
540 pinctrl-names = "default";
545 compatible = "renesas,r2a11302ft";
547 spi-max-frequency = <6000000>;
554 pinctrl-0 = <&sdhi0_pins>;
555 pinctrl-1 = <&sdhi0_pins_uhs>;
556 pinctrl-names = "default", "state_uhs";
558 vmmc-supply = <&vcc_sdhi0>;
559 vqmmc-supply = <&vccq_sdhi0>;
560 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
566 pinctrl-0 = <&sdhi2_pins>;
567 pinctrl-1 = <&sdhi2_pins_uhs>;
568 pinctrl-names = "default", "state_uhs";
570 vmmc-supply = <&vcc_sdhi2>;
571 vqmmc-supply = <&vccq_sdhi2>;
572 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
578 cpu0-supply = <&vdd_dvfs>;
582 pinctrl-0 = <&i2c0_pins>;
583 pinctrl-names = "i2c-exio";
587 pinctrl-0 = <&iic0_pins>;
588 pinctrl-names = "i2c-exio";
593 pinctrl-0 = <&iic1_pins>;
594 pinctrl-names = "default";
599 pinctrl-0 = <&iic2_pins>;
600 pinctrl-names = "default";
602 clock-frequency = <100000>;
605 compatible = "asahi-kasei,ak4643";
606 #sound-dai-cells = <0>;
611 compatible = "adi,adv7180";
618 remote-endpoint = <&vin1ep0>;
624 compatible = "adi,adv7511w";
626 interrupt-parent = <&gpio1>;
627 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
629 adi,input-depth = <8>;
630 adi,input-colorspace = "rgb";
631 adi,input-clock = "1x";
632 adi,input-style = <1>;
633 adi,input-justification = "evenly";
636 #address-cells = <1>;
641 adv7511_in: endpoint {
642 remote-endpoint = <&du_out_lvds0>;
648 adv7511_out: endpoint {
649 remote-endpoint = <&hdmi_con>;
657 pinctrl-names = "default";
658 pinctrl-0 = <&iic3_pins>;
662 compatible = "dlg,da9063";
664 interrupt-parent = <&irqc0>;
665 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
666 interrupt-controller;
669 compatible = "dlg,da9063-rtc";
673 compatible = "dlg,da9063-watchdog";
677 vdd_dvfs: regulator@68 {
678 compatible = "dlg,da9210";
680 interrupt-parent = <&irqc0>;
681 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
683 regulator-min-microvolt = <1000000>;
684 regulator-max-microvolt = <1000000>;
692 pinctrl-0 = <&usb0_pins>;
693 pinctrl-names = "default";
698 pinctrl-0 = <&usb1_pins>;
699 pinctrl-names = "default";
704 pinctrl-0 = <&usb2_pins>;
705 pinctrl-names = "default";
710 pinctrl-0 = <&usb2_pins>;
711 pinctrl-names = "default";
716 pinctrl-0 = <&hsusb_pins>;
717 pinctrl-names = "default";
718 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
725 /* composite video input */
727 pinctrl-0 = <&vin1_pins>;
728 pinctrl-names = "default";
733 #address-cells = <1>;
737 remote-endpoint = <&adv7180>;
744 pinctrl-0 = <&sound_pins &sound_clk_pins>;
745 pinctrl-names = "default";
748 #sound-dai-cells = <0>;
754 playback = <&ssi0 &src2 &dvc0>;
755 capture = <&ssi1 &src3 &dvc1>;