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";
62 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
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";
84 pinctrl-0 = <&keyboard_pins>;
85 pinctrl-names = "default";
91 debounce-interval = <20>;
92 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
98 debounce-interval = <20>;
99 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_3>;
105 debounce-interval = <20>;
106 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_4>;
112 debounce-interval = <20>;
113 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
118 compatible = "gpio-leds";
120 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
123 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
126 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
130 fixedregulator3v3: regulator-3v3 {
131 compatible = "regulator-fixed";
132 regulator-name = "fixed-3.3V";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
139 vcc_sdhi0: regulator-vcc-sdhi0 {
140 compatible = "regulator-fixed";
142 regulator-name = "SDHI0 Vcc";
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
146 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
150 vccq_sdhi0: regulator-vccq-sdhi0 {
151 compatible = "regulator-gpio";
153 regulator-name = "SDHI0 VccQ";
154 regulator-min-microvolt = <1800000>;
155 regulator-max-microvolt = <3300000>;
157 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
159 states = <3300000 1>, <1800000 0>;
162 vcc_sdhi2: regulator-vcc-sdhi2 {
163 compatible = "regulator-fixed";
165 regulator-name = "SDHI2 Vcc";
166 regulator-min-microvolt = <3300000>;
167 regulator-max-microvolt = <3300000>;
169 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
173 vccq_sdhi2: regulator-vccq-sdhi2 {
174 compatible = "regulator-gpio";
176 regulator-name = "SDHI2 VccQ";
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <3300000>;
180 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
182 states = <3300000 1>, <1800000 0>;
185 audio_clock: audio_clock {
186 compatible = "fixed-clock";
188 clock-frequency = <11289600>;
192 compatible = "simple-audio-card";
194 simple-audio-card,format = "left_j";
195 simple-audio-card,bitclock-master = <&sndcodec>;
196 simple-audio-card,frame-master = <&sndcodec>;
198 sndcpu: simple-audio-card,cpu {
199 sound-dai = <&rcar_sound>;
202 sndcodec: simple-audio-card,codec {
203 sound-dai = <&ak4643>;
204 clocks = <&audio_clock>;
209 compatible = "adi,adv7123";
212 #address-cells = <1>;
217 adv7123_in: endpoint {
218 remote-endpoint = <&du_out_rgb>;
223 adv7123_out: endpoint {
224 remote-endpoint = <&vga_in>;
231 compatible = "vga-connector";
235 remote-endpoint = <&adv7123_out>;
241 compatible = "hdmi-connector";
245 hdmi_con_in: endpoint {
246 remote-endpoint = <&adv7612_in>;
251 cec_clock: cec-clock {
252 compatible = "fixed-clock";
254 clock-frequency = <12000000>;
258 compatible = "hdmi-connector";
262 hdmi_con_out: endpoint {
263 remote-endpoint = <&adv7511_out>;
269 compatible = "fixed-clock";
271 clock-frequency = <148500000>;
275 compatible = "fixed-clock";
277 clock-frequency = <148500000>;
281 #address-cells = <1>;
283 compatible = "i2c-gpio";
285 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
286 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
287 i2c-gpio,delay-us = <5>;
291 #address-cells = <1>;
293 compatible = "i2c-gpio";
295 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
296 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
297 i2c-gpio,delay-us = <5>;
301 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
302 * We use the I2C demuxer, so the desired IP core can be selected at runtime
303 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
304 * Note: For testing the I2C slave feature, it is convenient to connect this
305 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
306 * instantiate the slave device at runtime according to the documentation.
307 * You can then communicate with the slave via IIC3.
309 * IIC0/I2C0 does not appear to support fallback to GPIO.
312 compatible = "i2c-demux-pinctrl";
313 i2c-parent = <&iic0>, <&i2c0>;
314 i2c-bus-name = "i2c-exio0";
315 #address-cells = <1>;
320 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
321 * This is similar to the arangement described for i2cexio0 (above)
322 * with a fallback to GPIO also provided.
325 compatible = "i2c-demux-pinctrl";
326 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
327 i2c-bus-name = "i2c-exio1";
328 #address-cells = <1>;
333 * IIC2 and I2C2 may be switched using pinmux.
334 * A fallback to GPIO is also provided.
337 compatible = "i2c-demux-pinctrl";
338 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
339 i2c-bus-name = "i2c-hdmi";
340 #address-cells = <1>;
344 compatible = "asahi-kasei,ak4643";
345 #sound-dai-cells = <0>;
350 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";
374 #address-cells = <1>;
379 adv7511_in: endpoint {
380 remote-endpoint = <&lvds0_out>;
386 adv7511_out: endpoint {
387 remote-endpoint = <&hdmi_con_out>;
394 compatible = "adi,adv7612";
396 interrupt-parent = <&gpio1>;
397 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
401 #address-cells = <1>;
406 adv7612_in: endpoint {
407 remote-endpoint = <&hdmi_con_in>;
413 adv7612_out: endpoint {
414 remote-endpoint = <&vin0ep2>;
422 * IIC3 and I2C3 may be switched using pinmux.
423 * IIC3/I2C3 does not appear to support fallback to GPIO.
426 compatible = "i2c-demux-pinctrl";
427 pinctrl-names = "default";
428 pinctrl-0 = <&pmic_irq_pins>;
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>;
497 lvds_connector: endpoint {
504 clock-frequency = <20000000>;
508 pinctrl-0 = <&scif_clk_pins>;
509 pinctrl-names = "default";
512 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
517 groups = "scif0_data";
521 scif_clk_pins: scif_clk {
523 function = "scif_clk";
527 groups = "eth_link", "eth_mdio", "eth_rmii";
532 groups = "intc_irq0";
536 scifa1_pins: scifa1 {
537 groups = "scifa1_data";
542 groups = "sdhi0_data4", "sdhi0_ctrl";
544 power-source = <3300>;
547 sdhi0_pins_uhs: sd0_uhs {
548 groups = "sdhi0_data4", "sdhi0_ctrl";
550 power-source = <1800>;
554 groups = "sdhi2_data4", "sdhi2_ctrl";
556 power-source = <3300>;
559 sdhi2_pins_uhs: sd2_uhs {
560 groups = "sdhi2_data4", "sdhi2_ctrl";
562 power-source = <1800>;
566 groups = "mmc1_data8", "mmc1_ctrl";
571 groups = "qspi_ctrl", "qspi_data4";
575 msiof1_pins: msiof1 {
576 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
621 pmic_irq_pins: pmicirq {
622 groups = "intc_irq2";
627 groups = "usb0_ovc_vbus";
647 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
652 groups = "vin1_data8", "vin1_clk";
657 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
661 sound_clk_pins: sound_clk {
662 groups = "audio_clk_a";
663 function = "audio_clk";
666 keyboard_pins: keyboard {
667 pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28";
673 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
674 pinctrl-names = "default";
676 phy-handle = <&phy1>;
677 renesas,ether-link-active-low;
680 phy1: ethernet-phy@1 {
682 interrupt-parent = <&irqc0>;
683 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
684 micrel,led-mode = <1>;
685 reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
694 pinctrl-0 = <&mmc1_pins>;
695 pinctrl-names = "default";
697 vmmc-supply = <&fixedregulator3v3>;
708 pinctrl-0 = <&qspi_pins>;
709 pinctrl-names = "default";
714 compatible = "spansion,s25fl512s", "jedec,spi-nor";
716 spi-max-frequency = <30000000>;
717 spi-tx-bus-width = <4>;
718 spi-rx-bus-width = <4>;
724 compatible = "fixed-partitions";
725 #address-cells = <1>;
730 reg = <0x00000000 0x00040000>;
735 reg = <0x00040000 0x00400000>;
740 reg = <0x00440000 0x03bc0000>;
747 pinctrl-0 = <&scif0_pins>;
748 pinctrl-names = "default";
754 pinctrl-0 = <&scifa1_pins>;
755 pinctrl-names = "default";
761 clock-frequency = <14745600>;
765 pinctrl-0 = <&msiof1_pins>;
766 pinctrl-names = "default";
771 compatible = "renesas,r2a11302ft";
773 spi-max-frequency = <6000000>;
780 pinctrl-0 = <&sdhi0_pins>;
781 pinctrl-1 = <&sdhi0_pins_uhs>;
782 pinctrl-names = "default", "state_uhs";
784 vmmc-supply = <&vcc_sdhi0>;
785 vqmmc-supply = <&vccq_sdhi0>;
786 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
793 pinctrl-0 = <&sdhi2_pins>;
794 pinctrl-1 = <&sdhi2_pins_uhs>;
795 pinctrl-names = "default", "state_uhs";
797 vmmc-supply = <&vcc_sdhi2>;
798 vqmmc-supply = <&vccq_sdhi2>;
799 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
805 cpu0-supply = <&vdd_dvfs>;
809 pinctrl-0 = <&i2c0_pins>;
810 pinctrl-names = "i2c-exio0";
814 pinctrl-0 = <&iic0_pins>;
815 pinctrl-names = "i2c-exio0";
819 pinctrl-0 = <&i2c1_pins>;
820 pinctrl-names = "i2c-exio1";
824 pinctrl-0 = <&iic1_pins>;
825 pinctrl-names = "i2c-exio1";
829 pinctrl-0 = <&i2c2_pins>;
830 pinctrl-names = "i2c-hdmi";
832 clock-frequency = <100000>;
836 pinctrl-0 = <&iic2_pins>;
837 pinctrl-names = "i2c-hdmi";
839 clock-frequency = <100000>;
843 pinctrl-0 = <&i2c3_pins>;
844 pinctrl-names = "i2c-pwr";
848 pinctrl-0 = <&iic3_pins>;
849 pinctrl-names = "i2c-pwr";
854 pinctrl-0 = <&usb0_pins>;
855 pinctrl-names = "default";
860 pinctrl-0 = <&usb1_pins>;
861 pinctrl-names = "default";
866 pinctrl-0 = <&usb2_pins>;
867 pinctrl-names = "default";
872 pinctrl-0 = <&usb2_pins>;
873 pinctrl-names = "default";
878 pinctrl-0 = <&hsusb_pins>;
879 pinctrl-names = "default";
880 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
887 /* HDMI video input */
889 pinctrl-0 = <&vin0_pins>;
890 pinctrl-names = "default";
896 remote-endpoint = <&adv7612_out>;
906 /* composite video input */
908 pinctrl-0 = <&vin1_pins>;
909 pinctrl-names = "default";
915 remote-endpoint = <&adv7180>;
922 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
923 pinctrl-names = "default";
926 #sound-dai-cells = <0>;
932 playback = <&ssi0>, <&src2>, <&dvc0>;
933 capture = <&ssi1>, <&src3>, <&dvc1>;