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";
62 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
63 stdout-path = "serial0:115200n8";
67 device_type = "memory";
68 reg = <0 0x40000000 0 0x40000000>;
72 device_type = "memory";
73 reg = <1 0x40000000 0 0xc0000000>;
82 compatible = "gpio-keys";
88 debounce-interval = <20>;
89 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
95 debounce-interval = <20>;
96 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
102 debounce-interval = <20>;
103 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_4>;
109 debounce-interval = <20>;
110 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
115 compatible = "gpio-leds";
117 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
120 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
123 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
127 fixedregulator3v3: regulator-3v3 {
128 compatible = "regulator-fixed";
129 regulator-name = "fixed-3.3V";
130 regulator-min-microvolt = <3300000>;
131 regulator-max-microvolt = <3300000>;
136 vcc_sdhi0: regulator-vcc-sdhi0 {
137 compatible = "regulator-fixed";
139 regulator-name = "SDHI0 Vcc";
140 regulator-min-microvolt = <3300000>;
141 regulator-max-microvolt = <3300000>;
143 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
147 vccq_sdhi0: regulator-vccq-sdhi0 {
148 compatible = "regulator-gpio";
150 regulator-name = "SDHI0 VccQ";
151 regulator-min-microvolt = <1800000>;
152 regulator-max-microvolt = <3300000>;
154 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
160 vcc_sdhi2: regulator-vcc-sdhi2 {
161 compatible = "regulator-fixed";
163 regulator-name = "SDHI2 Vcc";
164 regulator-min-microvolt = <3300000>;
165 regulator-max-microvolt = <3300000>;
167 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
171 vccq_sdhi2: regulator-vccq-sdhi2 {
172 compatible = "regulator-gpio";
174 regulator-name = "SDHI2 VccQ";
175 regulator-min-microvolt = <1800000>;
176 regulator-max-microvolt = <3300000>;
178 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
184 audio_clock: audio_clock {
185 compatible = "fixed-clock";
187 clock-frequency = <11289600>;
191 compatible = "simple-audio-card";
193 simple-audio-card,format = "left_j";
194 simple-audio-card,bitclock-master = <&sndcodec>;
195 simple-audio-card,frame-master = <&sndcodec>;
197 sndcpu: simple-audio-card,cpu {
198 sound-dai = <&rcar_sound>;
201 sndcodec: simple-audio-card,codec {
202 sound-dai = <&ak4643>;
203 clocks = <&audio_clock>;
208 compatible = "adi,adv7123";
211 #address-cells = <1>;
216 adv7123_in: endpoint {
217 remote-endpoint = <&du_out_rgb>;
222 adv7123_out: endpoint {
223 remote-endpoint = <&vga_in>;
230 compatible = "vga-connector";
234 remote-endpoint = <&adv7123_out>;
240 compatible = "hdmi-connector";
244 hdmi_con_in: endpoint {
245 remote-endpoint = <&adv7612_in>;
250 cec_clock: cec-clock {
251 compatible = "fixed-clock";
253 clock-frequency = <12000000>;
257 compatible = "hdmi-connector";
261 hdmi_con_out: endpoint {
262 remote-endpoint = <&adv7511_out>;
268 compatible = "fixed-clock";
270 clock-frequency = <148500000>;
274 compatible = "fixed-clock";
276 clock-frequency = <148500000>;
280 #address-cells = <1>;
282 compatible = "i2c-gpio";
284 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
285 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
286 i2c-gpio,delay-us = <5>;
290 #address-cells = <1>;
292 compatible = "i2c-gpio";
294 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
295 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
296 i2c-gpio,delay-us = <5>;
300 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
301 * We use the I2C demuxer, so the desired IP core can be selected at runtime
302 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
303 * Note: For testing the I2C slave feature, it is convenient to connect this
304 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
305 * instantiate the slave device at runtime according to the documentation.
306 * You can then communicate with the slave via IIC3.
308 * IIC0/I2C0 does not appear to support fallback to GPIO.
311 compatible = "i2c-demux-pinctrl";
312 i2c-parent = <&iic0>, <&i2c0>;
313 i2c-bus-name = "i2c-exio0";
314 #address-cells = <1>;
319 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
320 * This is similar to the arangement described for i2cexio0 (above)
321 * with a fallback to GPIO also provided.
324 compatible = "i2c-demux-pinctrl";
325 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
326 i2c-bus-name = "i2c-exio1";
327 #address-cells = <1>;
332 * IIC2 and I2C2 may be switched using pinmux.
333 * A fallback to GPIO is also provided.
336 compatible = "i2c-demux-pinctrl";
337 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
338 i2c-bus-name = "i2c-hdmi";
339 #address-cells = <1>;
343 compatible = "asahi-kasei,ak4643";
344 #sound-dai-cells = <0>;
349 compatible = "adi,adv7180";
356 remote-endpoint = <&vin1ep0>;
362 compatible = "adi,adv7511w";
364 interrupt-parent = <&gpio1>;
365 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
366 clocks = <&cec_clock>;
369 adi,input-depth = <8>;
370 adi,input-colorspace = "rgb";
371 adi,input-clock = "1x";
372 adi,input-style = <1>;
373 adi,input-justification = "evenly";
376 #address-cells = <1>;
381 adv7511_in: endpoint {
382 remote-endpoint = <&lvds0_out>;
388 adv7511_out: endpoint {
389 remote-endpoint = <&hdmi_con_out>;
396 compatible = "adi,adv7612";
398 interrupt-parent = <&gpio1>;
399 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
403 #address-cells = <1>;
408 adv7612_in: endpoint {
409 remote-endpoint = <&hdmi_con_in>;
415 adv7612_out: endpoint {
416 remote-endpoint = <&vin0ep2>;
424 * IIC3 and I2C3 may be switched using pinmux.
425 * IIC3/I2C3 does not appear to support fallback to GPIO.
428 compatible = "i2c-demux-pinctrl";
429 i2c-parent = <&iic3>, <&i2c3>;
430 i2c-bus-name = "i2c-pwr";
431 #address-cells = <1>;
435 compatible = "dlg,da9063";
437 interrupt-parent = <&irqc0>;
438 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
439 interrupt-controller;
442 compatible = "dlg,da9063-rtc";
446 compatible = "dlg,da9063-watchdog";
450 vdd_dvfs: regulator@68 {
451 compatible = "dlg,da9210";
453 interrupt-parent = <&irqc0>;
454 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
456 regulator-min-microvolt = <1000000>;
457 regulator-max-microvolt = <1000000>;
465 pinctrl-0 = <&du_pins>;
466 pinctrl-names = "default";
469 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
470 <&x13_clk>, <&x2_clk>;
471 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
476 remote-endpoint = <&adv7123_in>;
488 remote-endpoint = <&adv7511_in>;
499 lvds_connector: endpoint {
506 clock-frequency = <20000000>;
510 pinctrl-0 = <&scif_clk_pins>;
511 pinctrl-names = "default";
514 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
519 groups = "scif0_data";
523 scif_clk_pins: scif_clk {
525 function = "scif_clk";
529 groups = "eth_link", "eth_mdio", "eth_rmii";
534 groups = "intc_irq0";
538 scifa1_pins: scifa1 {
539 groups = "scifa1_data";
544 groups = "sdhi0_data4", "sdhi0_ctrl";
546 power-source = <3300>;
549 sdhi0_pins_uhs: sd0_uhs {
550 groups = "sdhi0_data4", "sdhi0_ctrl";
552 power-source = <1800>;
556 groups = "sdhi2_data4", "sdhi2_ctrl";
558 power-source = <3300>;
561 sdhi2_pins_uhs: sd2_uhs {
562 groups = "sdhi2_data4", "sdhi2_ctrl";
564 power-source = <1800>;
568 groups = "mmc1_data8", "mmc1_ctrl";
573 groups = "qspi_ctrl", "qspi_data4";
577 msiof1_pins: msiof1 {
578 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
624 groups = "usb0_ovc_vbus";
644 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
649 groups = "vin1_data8", "vin1_clk";
654 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
658 sound_clk_pins: sound_clk {
659 groups = "audio_clk_a";
660 function = "audio_clk";
665 pinctrl-0 = <ðer_pins &phy1_pins>;
666 pinctrl-names = "default";
668 phy-handle = <&phy1>;
669 renesas,ether-link-active-low;
672 phy1: ethernet-phy@1 {
674 interrupt-parent = <&irqc0>;
675 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
676 micrel,led-mode = <1>;
685 pinctrl-0 = <&mmc1_pins>;
686 pinctrl-names = "default";
688 vmmc-supply = <&fixedregulator3v3>;
699 pinctrl-0 = <&qspi_pins>;
700 pinctrl-names = "default";
705 compatible = "spansion,s25fl512s", "jedec,spi-nor";
707 spi-max-frequency = <30000000>;
708 spi-tx-bus-width = <4>;
709 spi-rx-bus-width = <4>;
715 compatible = "fixed-partitions";
716 #address-cells = <1>;
721 reg = <0x00000000 0x00040000>;
726 reg = <0x00040000 0x00400000>;
731 reg = <0x00440000 0x03bc0000>;
738 pinctrl-0 = <&scif0_pins>;
739 pinctrl-names = "default";
745 pinctrl-0 = <&scifa1_pins>;
746 pinctrl-names = "default";
752 clock-frequency = <14745600>;
756 pinctrl-0 = <&msiof1_pins>;
757 pinctrl-names = "default";
762 compatible = "renesas,r2a11302ft";
764 spi-max-frequency = <6000000>;
771 pinctrl-0 = <&sdhi0_pins>;
772 pinctrl-1 = <&sdhi0_pins_uhs>;
773 pinctrl-names = "default", "state_uhs";
775 vmmc-supply = <&vcc_sdhi0>;
776 vqmmc-supply = <&vccq_sdhi0>;
777 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
784 pinctrl-0 = <&sdhi2_pins>;
785 pinctrl-1 = <&sdhi2_pins_uhs>;
786 pinctrl-names = "default", "state_uhs";
788 vmmc-supply = <&vcc_sdhi2>;
789 vqmmc-supply = <&vccq_sdhi2>;
790 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
796 cpu0-supply = <&vdd_dvfs>;
800 pinctrl-0 = <&i2c0_pins>;
801 pinctrl-names = "i2c-exio0";
805 pinctrl-0 = <&iic0_pins>;
806 pinctrl-names = "i2c-exio0";
810 pinctrl-0 = <&i2c1_pins>;
811 pinctrl-names = "i2c-exio1";
815 pinctrl-0 = <&iic1_pins>;
816 pinctrl-names = "i2c-exio1";
820 pinctrl-0 = <&i2c2_pins>;
821 pinctrl-names = "i2c-hdmi";
823 clock-frequency = <100000>;
827 pinctrl-0 = <&iic2_pins>;
828 pinctrl-names = "i2c-hdmi";
830 clock-frequency = <100000>;
834 pinctrl-0 = <&i2c3_pins>;
835 pinctrl-names = "i2c-pwr";
839 pinctrl-0 = <&iic3_pins>;
840 pinctrl-names = "i2c-pwr";
845 pinctrl-0 = <&usb0_pins>;
846 pinctrl-names = "default";
851 pinctrl-0 = <&usb1_pins>;
852 pinctrl-names = "default";
857 pinctrl-0 = <&usb2_pins>;
858 pinctrl-names = "default";
863 pinctrl-0 = <&usb2_pins>;
864 pinctrl-names = "default";
869 pinctrl-0 = <&hsusb_pins>;
870 pinctrl-names = "default";
871 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
878 /* HDMI video input */
880 pinctrl-0 = <&vin0_pins>;
881 pinctrl-names = "default";
887 remote-endpoint = <&adv7612_out>;
897 /* composite video input */
899 pinctrl-0 = <&vin1_pins>;
900 pinctrl-names = "default";
905 #address-cells = <1>;
909 remote-endpoint = <&adv7180>;
916 pinctrl-0 = <&sound_pins &sound_clk_pins>;
917 pinctrl-names = "default";
920 #sound-dai-cells = <0>;
926 playback = <&ssi0 &src2 &dvc0>;
927 capture = <&ssi1 &src3 &dvc1>;