1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Lager board
5 * Copyright (C) 2013-2014 Renesas Solutions Corp.
6 * Copyright (C) 2014 Cogent Embedded, Inc.
7 * Copyright (C) 2015-2016 Renesas Electronics Corporation
17 * This command is required when Playback/Capture
19 * amixer set "LINEOUT Mixer DACL" on
20 * amixer set "DVC Out" 100%
21 * amixer set "DVC In" 100%
25 * amixer set "DVC Out Mute" on
26 * amixer set "DVC In Mute" on
28 * You can use Volume Ramp
30 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
31 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
32 * amixer set "DVC Out Ramp" on
34 * amixer set "DVC Out" 80% // Volume Down
35 * amixer set "DVC Out" 100% // Volume Up
39 #include "r8a7790.dtsi"
40 #include <dt-bindings/gpio/gpio.h>
41 #include <dt-bindings/input/input.h>
45 compatible = "renesas,lager", "renesas,r8a7790";
56 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
57 stdout-path = "serial0:115200n8";
61 device_type = "memory";
62 reg = <0 0x40000000 0 0x40000000>;
66 device_type = "memory";
67 reg = <1 0x40000000 0 0xc0000000>;
76 compatible = "gpio-keys";
82 debounce-interval = <20>;
83 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
89 debounce-interval = <20>;
90 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
96 debounce-interval = <20>;
97 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_4>;
103 debounce-interval = <20>;
104 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
109 compatible = "gpio-leds";
111 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
114 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
117 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
121 fixedregulator3v3: regulator-3v3 {
122 compatible = "regulator-fixed";
123 regulator-name = "fixed-3.3V";
124 regulator-min-microvolt = <3300000>;
125 regulator-max-microvolt = <3300000>;
130 vcc_sdhi0: regulator-vcc-sdhi0 {
131 compatible = "regulator-fixed";
133 regulator-name = "SDHI0 Vcc";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
137 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
141 vccq_sdhi0: regulator-vccq-sdhi0 {
142 compatible = "regulator-gpio";
144 regulator-name = "SDHI0 VccQ";
145 regulator-min-microvolt = <1800000>;
146 regulator-max-microvolt = <3300000>;
148 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
154 vcc_sdhi2: regulator-vcc-sdhi2 {
155 compatible = "regulator-fixed";
157 regulator-name = "SDHI2 Vcc";
158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
161 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
165 vccq_sdhi2: regulator-vccq-sdhi2 {
166 compatible = "regulator-gpio";
168 regulator-name = "SDHI2 VccQ";
169 regulator-min-microvolt = <1800000>;
170 regulator-max-microvolt = <3300000>;
172 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
178 audio_clock: audio_clock {
179 compatible = "fixed-clock";
181 clock-frequency = <11289600>;
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";
238 hdmi_con_in: endpoint {
239 remote-endpoint = <&adv7612_in>;
245 compatible = "hdmi-connector";
249 hdmi_con_out: endpoint {
250 remote-endpoint = <&adv7511_out>;
256 compatible = "fixed-clock";
258 clock-frequency = <148500000>;
262 compatible = "fixed-clock";
264 clock-frequency = <148500000>;
268 #address-cells = <1>;
270 compatible = "i2c-gpio";
272 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH /* sda */
273 &gpio1 16 GPIO_ACTIVE_HIGH /* scl */
275 i2c-gpio,delay-us = <5>;
279 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
280 * We use the I2C demuxer, so the desired IP core can be selected at runtime
281 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
282 * Note: For testing the I2C slave feature, it is convenient to connect this
283 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
284 * instantiate the slave device at runtime according to the documentation.
285 * You can then communicate with the slave via IIC3.
287 * IIC0/I2C0 does not appear to support fallback to GPIO.
290 compatible = "i2c-demux-pinctrl";
291 i2c-parent = <&iic0>, <&i2c0>;
292 i2c-bus-name = "i2c-exio0";
293 #address-cells = <1>;
298 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
299 * This is similar to the arangement described for i2cexio0 (above)
300 * with a fallback to GPIO also provided.
303 compatible = "i2c-demux-pinctrl";
304 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
305 i2c-bus-name = "i2c-exio1";
306 #address-cells = <1>;
312 pinctrl-0 = <&du_pins>;
313 pinctrl-names = "default";
316 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
317 <&cpg CPG_MOD 726>, <&cpg CPG_MOD 725>,
318 <&x13_clk>, <&x2_clk>;
319 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1",
320 "dclkin.0", "dclkin.1";
325 remote-endpoint = <&adv7123_in>;
330 remote-endpoint = <&adv7511_in>;
334 lvds_connector: endpoint {
341 clock-frequency = <20000000>;
345 pinctrl-0 = <&scif_clk_pins>;
346 pinctrl-names = "default";
349 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
354 groups = "scif0_data";
358 scif_clk_pins: scif_clk {
360 function = "scif_clk";
364 groups = "eth_link", "eth_mdio", "eth_rmii";
369 groups = "intc_irq0";
373 scifa1_pins: scifa1 {
374 groups = "scifa1_data";
379 groups = "sdhi0_data4", "sdhi0_ctrl";
381 power-source = <3300>;
384 sdhi0_pins_uhs: sd0_uhs {
385 groups = "sdhi0_data4", "sdhi0_ctrl";
387 power-source = <1800>;
391 groups = "sdhi2_data4", "sdhi2_ctrl";
393 power-source = <3300>;
396 sdhi2_pins_uhs: sd2_uhs {
397 groups = "sdhi2_data4", "sdhi2_ctrl";
399 power-source = <1800>;
403 groups = "mmc1_data8", "mmc1_ctrl";
408 groups = "qspi_ctrl", "qspi_data4";
412 msiof1_pins: msiof1 {
413 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
449 groups = "usb0_ovc_vbus";
469 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
474 groups = "vin1_data8", "vin1_clk";
479 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
483 sound_clk_pins: sound_clk {
484 groups = "audio_clk_a";
485 function = "audio_clk";
490 pinctrl-0 = <ðer_pins &phy1_pins>;
491 pinctrl-names = "default";
493 phy-handle = <&phy1>;
494 renesas,ether-link-active-low;
497 phy1: ethernet-phy@1 {
499 interrupt-parent = <&irqc0>;
500 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
501 micrel,led-mode = <1>;
510 pinctrl-0 = <&mmc1_pins>;
511 pinctrl-names = "default";
513 vmmc-supply = <&fixedregulator3v3>;
524 pinctrl-0 = <&qspi_pins>;
525 pinctrl-names = "default";
530 compatible = "spansion,s25fl512s", "jedec,spi-nor";
532 spi-max-frequency = <30000000>;
533 spi-tx-bus-width = <4>;
534 spi-rx-bus-width = <4>;
540 compatible = "fixed-partitions";
541 #address-cells = <1>;
546 reg = <0x00000000 0x00040000>;
551 reg = <0x00040000 0x00400000>;
556 reg = <0x00440000 0x03bc0000>;
563 pinctrl-0 = <&scif0_pins>;
564 pinctrl-names = "default";
570 pinctrl-0 = <&scifa1_pins>;
571 pinctrl-names = "default";
577 clock-frequency = <14745600>;
581 pinctrl-0 = <&msiof1_pins>;
582 pinctrl-names = "default";
587 compatible = "renesas,r2a11302ft";
589 spi-max-frequency = <6000000>;
596 pinctrl-0 = <&sdhi0_pins>;
597 pinctrl-1 = <&sdhi0_pins_uhs>;
598 pinctrl-names = "default", "state_uhs";
600 vmmc-supply = <&vcc_sdhi0>;
601 vqmmc-supply = <&vccq_sdhi0>;
602 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
609 pinctrl-0 = <&sdhi2_pins>;
610 pinctrl-1 = <&sdhi2_pins_uhs>;
611 pinctrl-names = "default", "state_uhs";
613 vmmc-supply = <&vcc_sdhi2>;
614 vqmmc-supply = <&vccq_sdhi2>;
615 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
621 cpu0-supply = <&vdd_dvfs>;
625 pinctrl-0 = <&i2c0_pins>;
626 pinctrl-names = "i2c-exio0";
630 pinctrl-0 = <&iic0_pins>;
631 pinctrl-names = "i2c-exio0";
635 pinctrl-0 = <&i2c1_pins>;
636 pinctrl-names = "i2c-exio1";
640 pinctrl-0 = <&iic1_pins>;
641 pinctrl-names = "i2c-exio1";
646 pinctrl-0 = <&iic2_pins>;
647 pinctrl-names = "default";
649 clock-frequency = <100000>;
652 compatible = "asahi-kasei,ak4643";
653 #sound-dai-cells = <0>;
658 compatible = "adi,adv7180";
665 remote-endpoint = <&vin1ep0>;
671 compatible = "adi,adv7511w";
673 interrupt-parent = <&gpio1>;
674 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
676 adi,input-depth = <8>;
677 adi,input-colorspace = "rgb";
678 adi,input-clock = "1x";
679 adi,input-style = <1>;
680 adi,input-justification = "evenly";
683 #address-cells = <1>;
688 adv7511_in: endpoint {
689 remote-endpoint = <&du_out_lvds0>;
695 adv7511_out: endpoint {
696 remote-endpoint = <&hdmi_con_out>;
703 compatible = "adi,adv7612";
705 interrupt-parent = <&gpio1>;
706 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
710 #address-cells = <1>;
715 adv7612_in: endpoint {
716 remote-endpoint = <&hdmi_con_in>;
722 adv7612_out: endpoint {
723 remote-endpoint = <&vin0ep2>;
731 pinctrl-names = "default";
732 pinctrl-0 = <&iic3_pins>;
736 compatible = "dlg,da9063";
738 interrupt-parent = <&irqc0>;
739 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
740 interrupt-controller;
743 compatible = "dlg,da9063-rtc";
747 compatible = "dlg,da9063-watchdog";
751 vdd_dvfs: regulator@68 {
752 compatible = "dlg,da9210";
754 interrupt-parent = <&irqc0>;
755 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
757 regulator-min-microvolt = <1000000>;
758 regulator-max-microvolt = <1000000>;
766 pinctrl-0 = <&usb0_pins>;
767 pinctrl-names = "default";
772 pinctrl-0 = <&usb1_pins>;
773 pinctrl-names = "default";
778 pinctrl-0 = <&usb2_pins>;
779 pinctrl-names = "default";
784 pinctrl-0 = <&usb2_pins>;
785 pinctrl-names = "default";
790 pinctrl-0 = <&hsusb_pins>;
791 pinctrl-names = "default";
792 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
799 /* HDMI video input */
801 pinctrl-0 = <&vin0_pins>;
802 pinctrl-names = "default";
808 remote-endpoint = <&adv7612_out>;
818 /* composite video input */
820 pinctrl-0 = <&vin1_pins>;
821 pinctrl-names = "default";
826 #address-cells = <1>;
830 remote-endpoint = <&adv7180>;
837 pinctrl-0 = <&sound_pins &sound_clk_pins>;
838 pinctrl-names = "default";
841 #sound-dai-cells = <0>;
847 playback = <&ssi0 &src2 &dvc0>;
848 capture = <&ssi1 &src3 &dvc1>;