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>;
77 compatible = "gpio-keys";
79 pinctrl-0 = <&keyboard_pins>;
80 pinctrl-names = "default";
86 debounce-interval = <20>;
87 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
93 debounce-interval = <20>;
94 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
100 debounce-interval = <20>;
101 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_4>;
107 debounce-interval = <20>;
108 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
113 compatible = "gpio-leds";
115 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
118 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
121 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
125 fixedregulator1v8: regulator-1v8 {
126 compatible = "regulator-fixed";
127 regulator-name = "fixed-1.8V";
128 regulator-min-microvolt = <1800000>;
129 regulator-max-microvolt = <1800000>;
134 fixedregulator3v3: regulator-3v3 {
135 compatible = "regulator-fixed";
136 regulator-name = "fixed-3.3V";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
143 vcc_sdhi0: regulator-vcc-sdhi0 {
144 compatible = "regulator-fixed";
146 regulator-name = "SDHI0 Vcc";
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
150 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
154 vccq_sdhi0: regulator-vccq-sdhi0 {
155 compatible = "regulator-gpio";
157 regulator-name = "SDHI0 VccQ";
158 regulator-min-microvolt = <1800000>;
159 regulator-max-microvolt = <3300000>;
161 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
163 states = <3300000 1>, <1800000 0>;
166 vcc_sdhi2: regulator-vcc-sdhi2 {
167 compatible = "regulator-fixed";
169 regulator-name = "SDHI2 Vcc";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
173 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
177 vccq_sdhi2: regulator-vccq-sdhi2 {
178 compatible = "regulator-gpio";
180 regulator-name = "SDHI2 VccQ";
181 regulator-min-microvolt = <1800000>;
182 regulator-max-microvolt = <3300000>;
184 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
186 states = <3300000 1>, <1800000 0>;
189 audio_clock: audio_clock {
190 compatible = "fixed-clock";
192 clock-frequency = <11289600>;
196 compatible = "simple-audio-card";
198 simple-audio-card,format = "left_j";
199 simple-audio-card,bitclock-master = <&sndcodec>;
200 simple-audio-card,frame-master = <&sndcodec>;
202 sndcpu: simple-audio-card,cpu {
203 sound-dai = <&rcar_sound>;
206 sndcodec: simple-audio-card,codec {
207 sound-dai = <&ak4643>;
208 clocks = <&audio_clock>;
213 compatible = "adi,adv7123";
216 #address-cells = <1>;
221 adv7123_in: endpoint {
222 remote-endpoint = <&du_out_rgb>;
227 adv7123_out: endpoint {
228 remote-endpoint = <&vga_in>;
235 compatible = "vga-connector";
239 remote-endpoint = <&adv7123_out>;
245 compatible = "hdmi-connector";
249 hdmi_con_in: endpoint {
250 remote-endpoint = <&adv7612_in>;
255 cec_clock: cec-clock {
256 compatible = "fixed-clock";
258 clock-frequency = <12000000>;
262 compatible = "hdmi-connector";
266 hdmi_con_out: endpoint {
267 remote-endpoint = <&adv7511_out>;
273 compatible = "fixed-clock";
275 clock-frequency = <148500000>;
279 compatible = "fixed-clock";
281 clock-frequency = <148500000>;
285 #address-cells = <1>;
287 compatible = "i2c-gpio";
289 scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
290 sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
291 i2c-gpio,delay-us = <5>;
295 #address-cells = <1>;
297 compatible = "i2c-gpio";
299 scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
300 sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
301 i2c-gpio,delay-us = <5>;
305 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
306 * We use the I2C demuxer, so the desired IP core can be selected at runtime
307 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
308 * Note: For testing the I2C slave feature, it is convenient to connect this
309 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
310 * instantiate the slave device at runtime according to the documentation.
311 * You can then communicate with the slave via IIC3.
313 * IIC0/I2C0 does not appear to support fallback to GPIO.
316 compatible = "i2c-demux-pinctrl";
317 i2c-parent = <&iic0>, <&i2c0>;
318 i2c-bus-name = "i2c-exio0";
319 #address-cells = <1>;
324 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
325 * This is similar to the arangement described for i2cexio0 (above)
326 * with a fallback to GPIO also provided.
329 compatible = "i2c-demux-pinctrl";
330 i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
331 i2c-bus-name = "i2c-exio1";
332 #address-cells = <1>;
337 * IIC2 and I2C2 may be switched using pinmux.
338 * A fallback to GPIO is also provided.
341 compatible = "i2c-demux-pinctrl";
342 i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
343 i2c-bus-name = "i2c-hdmi";
344 #address-cells = <1>;
348 compatible = "asahi-kasei,ak4643";
349 #sound-dai-cells = <0>;
354 compatible = "adi,adv7180";
360 remote-endpoint = <&vin1ep0>;
366 compatible = "adi,adv7511w";
368 interrupt-parent = <&gpio1>;
369 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
370 clocks = <&cec_clock>;
373 avdd-supply = <&fixedregulator1v8>;
374 dvdd-supply = <&fixedregulator1v8>;
375 pvdd-supply = <&fixedregulator1v8>;
376 dvdd-3v-supply = <&fixedregulator3v3>;
377 bgvdd-supply = <&fixedregulator1v8>;
379 adi,input-depth = <8>;
380 adi,input-colorspace = "rgb";
381 adi,input-clock = "1x";
384 #address-cells = <1>;
389 adv7511_in: endpoint {
390 remote-endpoint = <&lvds0_out>;
396 adv7511_out: endpoint {
397 remote-endpoint = <&hdmi_con_out>;
404 compatible = "adi,adv7612";
406 interrupt-parent = <&gpio1>;
407 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
411 #address-cells = <1>;
416 adv7612_in: endpoint {
417 remote-endpoint = <&hdmi_con_in>;
423 adv7612_out: endpoint {
424 remote-endpoint = <&vin0ep2>;
432 * IIC3 and I2C3 may be switched using pinmux.
433 * IIC3/I2C3 does not appear to support fallback to GPIO.
436 compatible = "i2c-demux-pinctrl";
437 pinctrl-names = "default";
438 pinctrl-0 = <&pmic_irq_pins>;
439 i2c-parent = <&iic3>, <&i2c3>;
440 i2c-bus-name = "i2c-pwr";
441 #address-cells = <1>;
445 compatible = "dlg,da9063";
447 interrupt-parent = <&irqc0>;
448 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
449 interrupt-controller;
452 compatible = "dlg,da9063-rtc";
456 compatible = "dlg,da9063-watchdog";
460 vdd_dvfs: regulator@68 {
461 compatible = "dlg,da9210";
463 interrupt-parent = <&irqc0>;
464 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
466 regulator-min-microvolt = <1000000>;
467 regulator-max-microvolt = <1000000>;
475 pinctrl-0 = <&du_pins>;
476 pinctrl-names = "default";
479 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
480 <&x13_clk>, <&x2_clk>;
481 clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
486 remote-endpoint = <&adv7123_in>;
498 remote-endpoint = <&adv7511_in>;
507 lvds_connector: endpoint {
514 clock-frequency = <20000000>;
518 pinctrl-0 = <&scif_clk_pins>;
519 pinctrl-names = "default";
522 groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
527 groups = "scif0_data";
531 scif_clk_pins: scif_clk {
533 function = "scif_clk";
537 groups = "eth_link", "eth_mdio", "eth_rmii";
542 groups = "intc_irq0";
546 scifa1_pins: scifa1 {
547 groups = "scifa1_data";
552 groups = "sdhi0_data4", "sdhi0_ctrl";
554 power-source = <3300>;
557 sdhi0_pins_uhs: sd0_uhs {
558 groups = "sdhi0_data4", "sdhi0_ctrl";
560 power-source = <1800>;
564 groups = "sdhi2_data4", "sdhi2_ctrl";
566 power-source = <3300>;
569 sdhi2_pins_uhs: sd2_uhs {
570 groups = "sdhi2_data4", "sdhi2_ctrl";
572 power-source = <1800>;
576 groups = "mmc1_data8", "mmc1_ctrl";
581 groups = "qspi_ctrl", "qspi_data4";
585 msiof1_pins: msiof1 {
586 groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
631 pmic_irq_pins: pmicirq {
632 groups = "intc_irq2";
637 groups = "usb0_ovc_vbus";
657 groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
662 groups = "vin1_data8", "vin1_clk";
667 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
671 sound_clk_pins: sound_clk {
672 groups = "audio_clk_a";
673 function = "audio_clk";
676 keyboard_pins: keyboard {
677 pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28";
683 pinctrl-0 = <ðer_pins>, <&phy1_pins>;
684 pinctrl-names = "default";
686 phy-handle = <&phy1>;
687 renesas,ether-link-active-low;
690 phy1: ethernet-phy@1 {
691 compatible = "ethernet-phy-id0022.1537",
692 "ethernet-phy-ieee802.3-c22";
694 interrupt-parent = <&irqc0>;
695 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
696 micrel,led-mode = <1>;
697 reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
706 pinctrl-0 = <&mmc1_pins>;
707 pinctrl-names = "default";
709 vmmc-supply = <&fixedregulator3v3>;
720 pinctrl-0 = <&qspi_pins>;
721 pinctrl-names = "default";
726 compatible = "spansion,s25fl512s", "jedec,spi-nor";
728 spi-max-frequency = <30000000>;
729 spi-tx-bus-width = <4>;
730 spi-rx-bus-width = <4>;
736 compatible = "fixed-partitions";
737 #address-cells = <1>;
742 reg = <0x00000000 0x00040000>;
747 reg = <0x00040000 0x00400000>;
752 reg = <0x00440000 0x03bc0000>;
759 pinctrl-0 = <&scif0_pins>;
760 pinctrl-names = "default";
766 pinctrl-0 = <&scifa1_pins>;
767 pinctrl-names = "default";
773 clock-frequency = <14745600>;
777 pinctrl-0 = <&msiof1_pins>;
778 pinctrl-names = "default";
783 compatible = "renesas,r2a11302ft";
785 spi-max-frequency = <6000000>;
792 pinctrl-0 = <&sdhi0_pins>;
793 pinctrl-1 = <&sdhi0_pins_uhs>;
794 pinctrl-names = "default", "state_uhs";
796 vmmc-supply = <&vcc_sdhi0>;
797 vqmmc-supply = <&vccq_sdhi0>;
798 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
805 pinctrl-0 = <&sdhi2_pins>;
806 pinctrl-1 = <&sdhi2_pins_uhs>;
807 pinctrl-names = "default", "state_uhs";
809 vmmc-supply = <&vcc_sdhi2>;
810 vqmmc-supply = <&vccq_sdhi2>;
811 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
817 cpu0-supply = <&vdd_dvfs>;
821 pinctrl-0 = <&i2c0_pins>;
822 pinctrl-names = "i2c-exio0";
826 pinctrl-0 = <&iic0_pins>;
827 pinctrl-names = "i2c-exio0";
831 pinctrl-0 = <&i2c1_pins>;
832 pinctrl-names = "i2c-exio1";
836 pinctrl-0 = <&iic1_pins>;
837 pinctrl-names = "i2c-exio1";
841 pinctrl-0 = <&i2c2_pins>;
842 pinctrl-names = "i2c-hdmi";
844 clock-frequency = <100000>;
848 pinctrl-0 = <&iic2_pins>;
849 pinctrl-names = "i2c-hdmi";
851 clock-frequency = <100000>;
855 pinctrl-0 = <&i2c3_pins>;
856 pinctrl-names = "i2c-pwr";
860 pinctrl-0 = <&iic3_pins>;
861 pinctrl-names = "i2c-pwr";
866 pinctrl-0 = <&usb0_pins>;
867 pinctrl-names = "default";
872 pinctrl-0 = <&usb1_pins>;
873 pinctrl-names = "default";
878 pinctrl-0 = <&usb2_pins>;
879 pinctrl-names = "default";
884 pinctrl-0 = <&usb2_pins>;
885 pinctrl-names = "default";
890 pinctrl-0 = <&hsusb_pins>;
891 pinctrl-names = "default";
892 renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
899 /* HDMI video input */
901 pinctrl-0 = <&vin0_pins>;
902 pinctrl-names = "default";
908 remote-endpoint = <&adv7612_out>;
918 /* composite video input */
920 pinctrl-0 = <&vin1_pins>;
921 pinctrl-names = "default";
927 remote-endpoint = <&adv7180>;
934 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
935 pinctrl-names = "default";
938 #sound-dai-cells = <0>;
944 playback = <&ssi0>, <&src2>, <&dvc0>;
945 capture = <&ssi1>, <&src3>, <&dvc1>;