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";
59 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
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>;
153 states = <3300000 1>, <1800000 0>;
156 vcc_sdhi2: regulator-vcc-sdhi2 {
157 compatible = "regulator-fixed";
159 regulator-name = "SDHI2 Vcc";
160 regulator-min-microvolt = <3300000>;
161 regulator-max-microvolt = <3300000>;
163 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
167 vccq_sdhi2: regulator-vccq-sdhi2 {
168 compatible = "regulator-gpio";
170 regulator-name = "SDHI2 VccQ";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <3300000>;
174 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
176 states = <3300000 1>, <1800000 0>;
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";
239 hdmi_con_in: endpoint {
240 remote-endpoint = <&adv7612_in>;
245 cec_clock: cec-clock {
246 compatible = "fixed-clock";
248 clock-frequency = <12000000>;
252 compatible = "hdmi-connector";
256 hdmi_con_out: endpoint {
257 remote-endpoint = <&adv7511_out>;
263 compatible = "fixed-clock";
265 clock-frequency = <148500000>;
269 compatible = "fixed-clock";
271 clock-frequency = <148500000>;
275 #address-cells = <1>;
277 compatible = "i2c-gpio";
279 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
280 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
281 i2c-gpio,delay-us = <5>;
285 #address-cells = <1>;
287 compatible = "i2c-gpio";
289 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
290 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
291 i2c-gpio,delay-us = <5>;
295 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
296 * We use the I2C demuxer, so the desired IP core can be selected at runtime
297 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
298 * Note: For testing the I2C slave feature, it is convenient to connect this
299 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
300 * instantiate the slave device at runtime according to the documentation.
301 * You can then communicate with the slave via IIC3.
303 * IIC0/I2C0 does not appear to support fallback to GPIO.
306 compatible = "i2c-demux-pinctrl";
307 i2c-parent = <&iic0>, <&i2c0>;
308 i2c-bus-name = "i2c-exio0";
309 #address-cells = <1>;
314 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
315 * This is similar to the arangement described for i2cexio0 (above)
316 * with a fallback to GPIO also provided.
319 compatible = "i2c-demux-pinctrl";
320 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
321 i2c-bus-name = "i2c-exio1";
322 #address-cells = <1>;
327 * IIC2 and I2C2 may be switched using pinmux.
328 * A fallback to GPIO is also provided.
331 compatible = "i2c-demux-pinctrl";
332 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
333 i2c-bus-name = "i2c-hdmi";
334 #address-cells = <1>;
338 compatible = "asahi-kasei,ak4643";
339 #sound-dai-cells = <0>;
344 compatible = "adi,adv7180";
351 remote-endpoint = <&vin1ep0>;
357 compatible = "adi,adv7511w";
359 interrupt-parent = <&gpio1>;
360 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
361 clocks = <&cec_clock>;
364 adi,input-depth = <8>;
365 adi,input-colorspace = "rgb";
366 adi,input-clock = "1x";
369 #address-cells = <1>;
374 adv7511_in: endpoint {
375 remote-endpoint = <&lvds0_out>;
381 adv7511_out: endpoint {
382 remote-endpoint = <&hdmi_con_out>;
389 compatible = "adi,adv7612";
391 interrupt-parent = <&gpio1>;
392 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
396 #address-cells = <1>;
401 adv7612_in: endpoint {
402 remote-endpoint = <&hdmi_con_in>;
408 adv7612_out: endpoint {
409 remote-endpoint = <&vin0ep2>;
417 * IIC3 and I2C3 may be switched using pinmux.
418 * IIC3/I2C3 does not appear to support fallback to GPIO.
421 compatible = "i2c-demux-pinctrl";
422 pinctrl-names = "default";
423 pinctrl-0 = <&pmic_irq_pins>;
424 i2c-parent = <&iic3>, <&i2c3>;
425 i2c-bus-name = "i2c-pwr";
426 #address-cells = <1>;
430 compatible = "dlg,da9063";
432 interrupt-parent = <&irqc0>;
433 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
434 interrupt-controller;
437 compatible = "dlg,da9063-rtc";
441 compatible = "dlg,da9063-watchdog";
445 vdd_dvfs: regulator@68 {
446 compatible = "dlg,da9210";
448 interrupt-parent = <&irqc0>;
449 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
451 regulator-min-microvolt = <1000000>;
452 regulator-max-microvolt = <1000000>;
460 pinctrl-0 = <&du_pins>;
461 pinctrl-names = "default";
464 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
465 <&x13_clk>, <&x2_clk>;
466 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
471 remote-endpoint = <&adv7123_in>;
483 remote-endpoint = <&adv7511_in>;
492 lvds_connector: endpoint {
499 clock-frequency = <20000000>;
503 pinctrl-0 = <&scif_clk_pins>;
504 pinctrl-names = "default";
507 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
512 groups = "scif0_data";
516 scif_clk_pins: scif_clk {
518 function = "scif_clk";
522 groups = "eth_link", "eth_mdio", "eth_rmii";
527 groups = "intc_irq0";
531 scifa1_pins: scifa1 {
532 groups = "scifa1_data";
537 groups = "sdhi0_data4", "sdhi0_ctrl";
539 power-source = <3300>;
542 sdhi0_pins_uhs: sd0_uhs {
543 groups = "sdhi0_data4", "sdhi0_ctrl";
545 power-source = <1800>;
549 groups = "sdhi2_data4", "sdhi2_ctrl";
551 power-source = <3300>;
554 sdhi2_pins_uhs: sd2_uhs {
555 groups = "sdhi2_data4", "sdhi2_ctrl";
557 power-source = <1800>;
561 groups = "mmc1_data8", "mmc1_ctrl";
566 groups = "qspi_ctrl", "qspi_data4";
570 msiof1_pins: msiof1 {
571 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
616 pmic_irq_pins: pmicirq {
617 groups = "intc_irq2";
622 groups = "usb0_ovc_vbus";
642 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
647 groups = "vin1_data8", "vin1_clk";
652 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
656 sound_clk_pins: sound_clk {
657 groups = "audio_clk_a";
658 function = "audio_clk";
663 pinctrl-0 = <ðer_pins &phy1_pins>;
664 pinctrl-names = "default";
666 phy-handle = <&phy1>;
667 renesas,ether-link-active-low;
670 phy1: ethernet-phy@1 {
672 interrupt-parent = <&irqc0>;
673 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
674 micrel,led-mode = <1>;
675 reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
684 pinctrl-0 = <&mmc1_pins>;
685 pinctrl-names = "default";
687 vmmc-supply = <&fixedregulator3v3>;
698 pinctrl-0 = <&qspi_pins>;
699 pinctrl-names = "default";
704 compatible = "spansion,s25fl512s", "jedec,spi-nor";
706 spi-max-frequency = <30000000>;
707 spi-tx-bus-width = <4>;
708 spi-rx-bus-width = <4>;
714 compatible = "fixed-partitions";
715 #address-cells = <1>;
720 reg = <0x00000000 0x00040000>;
725 reg = <0x00040000 0x00400000>;
730 reg = <0x00440000 0x03bc0000>;
737 pinctrl-0 = <&scif0_pins>;
738 pinctrl-names = "default";
744 pinctrl-0 = <&scifa1_pins>;
745 pinctrl-names = "default";
751 clock-frequency = <14745600>;
755 pinctrl-0 = <&msiof1_pins>;
756 pinctrl-names = "default";
761 compatible = "renesas,r2a11302ft";
763 spi-max-frequency = <6000000>;
770 pinctrl-0 = <&sdhi0_pins>;
771 pinctrl-1 = <&sdhi0_pins_uhs>;
772 pinctrl-names = "default", "state_uhs";
774 vmmc-supply = <&vcc_sdhi0>;
775 vqmmc-supply = <&vccq_sdhi0>;
776 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
783 pinctrl-0 = <&sdhi2_pins>;
784 pinctrl-1 = <&sdhi2_pins_uhs>;
785 pinctrl-names = "default", "state_uhs";
787 vmmc-supply = <&vcc_sdhi2>;
788 vqmmc-supply = <&vccq_sdhi2>;
789 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
795 cpu0-supply = <&vdd_dvfs>;
799 pinctrl-0 = <&i2c0_pins>;
800 pinctrl-names = "i2c-exio0";
804 pinctrl-0 = <&iic0_pins>;
805 pinctrl-names = "i2c-exio0";
809 pinctrl-0 = <&i2c1_pins>;
810 pinctrl-names = "i2c-exio1";
814 pinctrl-0 = <&iic1_pins>;
815 pinctrl-names = "i2c-exio1";
819 pinctrl-0 = <&i2c2_pins>;
820 pinctrl-names = "i2c-hdmi";
822 clock-frequency = <100000>;
826 pinctrl-0 = <&iic2_pins>;
827 pinctrl-names = "i2c-hdmi";
829 clock-frequency = <100000>;
833 pinctrl-0 = <&i2c3_pins>;
834 pinctrl-names = "i2c-pwr";
838 pinctrl-0 = <&iic3_pins>;
839 pinctrl-names = "i2c-pwr";
844 pinctrl-0 = <&usb0_pins>;
845 pinctrl-names = "default";
850 pinctrl-0 = <&usb1_pins>;
851 pinctrl-names = "default";
856 pinctrl-0 = <&usb2_pins>;
857 pinctrl-names = "default";
862 pinctrl-0 = <&usb2_pins>;
863 pinctrl-names = "default";
868 pinctrl-0 = <&hsusb_pins>;
869 pinctrl-names = "default";
870 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
877 /* HDMI video input */
879 pinctrl-0 = <&vin0_pins>;
880 pinctrl-names = "default";
886 remote-endpoint = <&adv7612_out>;
896 /* composite video input */
898 pinctrl-0 = <&vin1_pins>;
899 pinctrl-names = "default";
905 remote-endpoint = <&adv7180>;
912 pinctrl-0 = <&sound_pins &sound_clk_pins>;
913 pinctrl-names = "default";
916 #sound-dai-cells = <0>;
922 playback = <&ssi0 &src2 &dvc0>;
923 capture = <&ssi1 &src3 &dvc1>;