xref: /openbmc/u-boot/arch/arm/dts/r8a7790-lager.dts (revision 3b255531b60b05308971e4ec0b10fdc75cd3b1b4)
183d290c5STom Rini// SPDX-License-Identifier: GPL-2.0
216b6e4aaSMarek Vasut/*
316b6e4aaSMarek Vasut * Device Tree Source for the Lager board
416b6e4aaSMarek Vasut *
516b6e4aaSMarek Vasut * Copyright (C) 2013-2014 Renesas Solutions Corp.
616b6e4aaSMarek Vasut * Copyright (C) 2014 Cogent Embedded, Inc.
716b6e4aaSMarek Vasut * Copyright (C) 2015-2016 Renesas Electronics Corporation
816b6e4aaSMarek Vasut */
916b6e4aaSMarek Vasut
1016b6e4aaSMarek Vasut/*
1116b6e4aaSMarek Vasut * SSI-AK4643
1216b6e4aaSMarek Vasut *
1316b6e4aaSMarek Vasut * SW1: 1: AK4643
1416b6e4aaSMarek Vasut *      2: CN22
1516b6e4aaSMarek Vasut *      3: ADV7511
1616b6e4aaSMarek Vasut *
1716b6e4aaSMarek Vasut * This command is required when Playback/Capture
1816b6e4aaSMarek Vasut *
1916b6e4aaSMarek Vasut *	amixer set "LINEOUT Mixer DACL" on
2016b6e4aaSMarek Vasut *	amixer set "DVC Out" 100%
2116b6e4aaSMarek Vasut *	amixer set "DVC In" 100%
2216b6e4aaSMarek Vasut *
2316b6e4aaSMarek Vasut * You can use Mute
2416b6e4aaSMarek Vasut *
2516b6e4aaSMarek Vasut *	amixer set "DVC Out Mute" on
2616b6e4aaSMarek Vasut *	amixer set "DVC In Mute" on
2716b6e4aaSMarek Vasut *
2816b6e4aaSMarek Vasut * You can use Volume Ramp
2916b6e4aaSMarek Vasut *
3016b6e4aaSMarek Vasut *	amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
3116b6e4aaSMarek Vasut *	amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
3216b6e4aaSMarek Vasut *	amixer set "DVC Out Ramp" on
3316b6e4aaSMarek Vasut *	aplay xxx.wav &
3416b6e4aaSMarek Vasut *	amixer set "DVC Out"  80%  // Volume Down
3516b6e4aaSMarek Vasut *	amixer set "DVC Out" 100%  // Volume Up
3616b6e4aaSMarek Vasut */
3716b6e4aaSMarek Vasut
3816b6e4aaSMarek Vasut/dts-v1/;
3916b6e4aaSMarek Vasut#include "r8a7790.dtsi"
4016b6e4aaSMarek Vasut#include <dt-bindings/gpio/gpio.h>
4116b6e4aaSMarek Vasut#include <dt-bindings/input/input.h>
4216b6e4aaSMarek Vasut
4316b6e4aaSMarek Vasut/ {
4416b6e4aaSMarek Vasut	model = "Lager";
4516b6e4aaSMarek Vasut	compatible = "renesas,lager", "renesas,r8a7790";
4616b6e4aaSMarek Vasut
4716b6e4aaSMarek Vasut	aliases {
4816b6e4aaSMarek Vasut		serial0 = &scif0;
4916b6e4aaSMarek Vasut		serial1 = &scifa1;
5016b6e4aaSMarek Vasut		i2c8 = &gpioi2c1;
51252c8b45SMarek Vasut		i2c9 = &gpioi2c2;
5216b6e4aaSMarek Vasut		i2c10 = &i2cexio0;
5316b6e4aaSMarek Vasut		i2c11 = &i2cexio1;
54252c8b45SMarek Vasut		i2c12 = &i2chdmi;
55252c8b45SMarek Vasut		i2c13 = &i2cpwr;
5616b6e4aaSMarek Vasut	};
5716b6e4aaSMarek Vasut
5816b6e4aaSMarek Vasut	chosen {
5916b6e4aaSMarek Vasut		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
6016b6e4aaSMarek Vasut		stdout-path = "serial0:115200n8";
6116b6e4aaSMarek Vasut	};
6216b6e4aaSMarek Vasut
6316b6e4aaSMarek Vasut	memory@40000000 {
6416b6e4aaSMarek Vasut		device_type = "memory";
6516b6e4aaSMarek Vasut		reg = <0 0x40000000 0 0x40000000>;
6616b6e4aaSMarek Vasut	};
6716b6e4aaSMarek Vasut
6816b6e4aaSMarek Vasut	memory@140000000 {
6916b6e4aaSMarek Vasut		device_type = "memory";
7016b6e4aaSMarek Vasut		reg = <1 0x40000000 0 0xc0000000>;
7116b6e4aaSMarek Vasut	};
7216b6e4aaSMarek Vasut
7316b6e4aaSMarek Vasut	lbsc {
7416b6e4aaSMarek Vasut		#address-cells = <1>;
7516b6e4aaSMarek Vasut		#size-cells = <1>;
7616b6e4aaSMarek Vasut	};
7716b6e4aaSMarek Vasut
7816b6e4aaSMarek Vasut	keyboard {
7916b6e4aaSMarek Vasut		compatible = "gpio-keys";
8016b6e4aaSMarek Vasut
8116b6e4aaSMarek Vasut		one {
8216b6e4aaSMarek Vasut			linux,code = <KEY_1>;
8316b6e4aaSMarek Vasut			label = "SW2-1";
8416b6e4aaSMarek Vasut			wakeup-source;
8516b6e4aaSMarek Vasut			debounce-interval = <20>;
8616b6e4aaSMarek Vasut			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
8716b6e4aaSMarek Vasut		};
8816b6e4aaSMarek Vasut		two {
8916b6e4aaSMarek Vasut			linux,code = <KEY_2>;
9016b6e4aaSMarek Vasut			label = "SW2-2";
9116b6e4aaSMarek Vasut			wakeup-source;
9216b6e4aaSMarek Vasut			debounce-interval = <20>;
9316b6e4aaSMarek Vasut			gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
9416b6e4aaSMarek Vasut		};
9516b6e4aaSMarek Vasut		three {
9616b6e4aaSMarek Vasut			linux,code = <KEY_3>;
9716b6e4aaSMarek Vasut			label = "SW2-3";
9816b6e4aaSMarek Vasut			wakeup-source;
9916b6e4aaSMarek Vasut			debounce-interval = <20>;
10016b6e4aaSMarek Vasut			gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
10116b6e4aaSMarek Vasut		};
10216b6e4aaSMarek Vasut		four {
10316b6e4aaSMarek Vasut			linux,code = <KEY_4>;
10416b6e4aaSMarek Vasut			label = "SW2-4";
10516b6e4aaSMarek Vasut			wakeup-source;
10616b6e4aaSMarek Vasut			debounce-interval = <20>;
10716b6e4aaSMarek Vasut			gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
10816b6e4aaSMarek Vasut		};
10916b6e4aaSMarek Vasut	};
11016b6e4aaSMarek Vasut
11116b6e4aaSMarek Vasut	leds {
11216b6e4aaSMarek Vasut		compatible = "gpio-leds";
11316b6e4aaSMarek Vasut		led6 {
11416b6e4aaSMarek Vasut			gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
11516b6e4aaSMarek Vasut		};
11616b6e4aaSMarek Vasut		led7 {
11716b6e4aaSMarek Vasut			gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
11816b6e4aaSMarek Vasut		};
11916b6e4aaSMarek Vasut		led8 {
12016b6e4aaSMarek Vasut			gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
12116b6e4aaSMarek Vasut		};
12216b6e4aaSMarek Vasut	};
12316b6e4aaSMarek Vasut
12416b6e4aaSMarek Vasut	fixedregulator3v3: regulator-3v3 {
12516b6e4aaSMarek Vasut		compatible = "regulator-fixed";
12616b6e4aaSMarek Vasut		regulator-name = "fixed-3.3V";
12716b6e4aaSMarek Vasut		regulator-min-microvolt = <3300000>;
12816b6e4aaSMarek Vasut		regulator-max-microvolt = <3300000>;
12916b6e4aaSMarek Vasut		regulator-boot-on;
13016b6e4aaSMarek Vasut		regulator-always-on;
13116b6e4aaSMarek Vasut	};
13216b6e4aaSMarek Vasut
13316b6e4aaSMarek Vasut	vcc_sdhi0: regulator-vcc-sdhi0 {
13416b6e4aaSMarek Vasut		compatible = "regulator-fixed";
13516b6e4aaSMarek Vasut
13616b6e4aaSMarek Vasut		regulator-name = "SDHI0 Vcc";
13716b6e4aaSMarek Vasut		regulator-min-microvolt = <3300000>;
13816b6e4aaSMarek Vasut		regulator-max-microvolt = <3300000>;
13916b6e4aaSMarek Vasut
14016b6e4aaSMarek Vasut		gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
14116b6e4aaSMarek Vasut		enable-active-high;
14216b6e4aaSMarek Vasut	};
14316b6e4aaSMarek Vasut
14416b6e4aaSMarek Vasut	vccq_sdhi0: regulator-vccq-sdhi0 {
14516b6e4aaSMarek Vasut		compatible = "regulator-gpio";
14616b6e4aaSMarek Vasut
14716b6e4aaSMarek Vasut		regulator-name = "SDHI0 VccQ";
14816b6e4aaSMarek Vasut		regulator-min-microvolt = <1800000>;
14916b6e4aaSMarek Vasut		regulator-max-microvolt = <3300000>;
15016b6e4aaSMarek Vasut
15116b6e4aaSMarek Vasut		gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
15216b6e4aaSMarek Vasut		gpios-states = <1>;
15316b6e4aaSMarek Vasut		states = <3300000 1
15416b6e4aaSMarek Vasut			  1800000 0>;
15516b6e4aaSMarek Vasut	};
15616b6e4aaSMarek Vasut
15716b6e4aaSMarek Vasut	vcc_sdhi2: regulator-vcc-sdhi2 {
15816b6e4aaSMarek Vasut		compatible = "regulator-fixed";
15916b6e4aaSMarek Vasut
16016b6e4aaSMarek Vasut		regulator-name = "SDHI2 Vcc";
16116b6e4aaSMarek Vasut		regulator-min-microvolt = <3300000>;
16216b6e4aaSMarek Vasut		regulator-max-microvolt = <3300000>;
16316b6e4aaSMarek Vasut
16416b6e4aaSMarek Vasut		gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
16516b6e4aaSMarek Vasut		enable-active-high;
16616b6e4aaSMarek Vasut	};
16716b6e4aaSMarek Vasut
16816b6e4aaSMarek Vasut	vccq_sdhi2: regulator-vccq-sdhi2 {
16916b6e4aaSMarek Vasut		compatible = "regulator-gpio";
17016b6e4aaSMarek Vasut
17116b6e4aaSMarek Vasut		regulator-name = "SDHI2 VccQ";
17216b6e4aaSMarek Vasut		regulator-min-microvolt = <1800000>;
17316b6e4aaSMarek Vasut		regulator-max-microvolt = <3300000>;
17416b6e4aaSMarek Vasut
17516b6e4aaSMarek Vasut		gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
17616b6e4aaSMarek Vasut		gpios-states = <1>;
17716b6e4aaSMarek Vasut		states = <3300000 1
17816b6e4aaSMarek Vasut			  1800000 0>;
17916b6e4aaSMarek Vasut	};
18016b6e4aaSMarek Vasut
18116b6e4aaSMarek Vasut	audio_clock: audio_clock {
18216b6e4aaSMarek Vasut		compatible = "fixed-clock";
18316b6e4aaSMarek Vasut		#clock-cells = <0>;
18416b6e4aaSMarek Vasut		clock-frequency = <11289600>;
18516b6e4aaSMarek Vasut	};
18616b6e4aaSMarek Vasut
18716b6e4aaSMarek Vasut	rsnd_ak4643: sound {
18816b6e4aaSMarek Vasut		compatible = "simple-audio-card";
18916b6e4aaSMarek Vasut
19016b6e4aaSMarek Vasut		simple-audio-card,format = "left_j";
19116b6e4aaSMarek Vasut		simple-audio-card,bitclock-master = <&sndcodec>;
19216b6e4aaSMarek Vasut		simple-audio-card,frame-master = <&sndcodec>;
19316b6e4aaSMarek Vasut
19416b6e4aaSMarek Vasut		sndcpu: simple-audio-card,cpu {
19516b6e4aaSMarek Vasut			sound-dai = <&rcar_sound>;
19616b6e4aaSMarek Vasut		};
19716b6e4aaSMarek Vasut
19816b6e4aaSMarek Vasut		sndcodec: simple-audio-card,codec {
19916b6e4aaSMarek Vasut			sound-dai = <&ak4643>;
20016b6e4aaSMarek Vasut			clocks = <&audio_clock>;
20116b6e4aaSMarek Vasut		};
20216b6e4aaSMarek Vasut	};
20316b6e4aaSMarek Vasut
20416b6e4aaSMarek Vasut	vga-encoder {
20516b6e4aaSMarek Vasut		compatible = "adi,adv7123";
20616b6e4aaSMarek Vasut
20716b6e4aaSMarek Vasut		ports {
20816b6e4aaSMarek Vasut			#address-cells = <1>;
20916b6e4aaSMarek Vasut			#size-cells = <0>;
21016b6e4aaSMarek Vasut
21116b6e4aaSMarek Vasut			port@0 {
21216b6e4aaSMarek Vasut				reg = <0>;
21316b6e4aaSMarek Vasut				adv7123_in: endpoint {
21416b6e4aaSMarek Vasut					remote-endpoint = <&du_out_rgb>;
21516b6e4aaSMarek Vasut				};
21616b6e4aaSMarek Vasut			};
21716b6e4aaSMarek Vasut			port@1 {
21816b6e4aaSMarek Vasut				reg = <1>;
21916b6e4aaSMarek Vasut				adv7123_out: endpoint {
22016b6e4aaSMarek Vasut					remote-endpoint = <&vga_in>;
22116b6e4aaSMarek Vasut				};
22216b6e4aaSMarek Vasut			};
22316b6e4aaSMarek Vasut		};
22416b6e4aaSMarek Vasut	};
22516b6e4aaSMarek Vasut
22616b6e4aaSMarek Vasut	vga {
22716b6e4aaSMarek Vasut		compatible = "vga-connector";
22816b6e4aaSMarek Vasut
22916b6e4aaSMarek Vasut		port {
23016b6e4aaSMarek Vasut			vga_in: endpoint {
23116b6e4aaSMarek Vasut				remote-endpoint = <&adv7123_out>;
23216b6e4aaSMarek Vasut			};
23316b6e4aaSMarek Vasut		};
23416b6e4aaSMarek Vasut	};
23516b6e4aaSMarek Vasut
23616b6e4aaSMarek Vasut	hdmi-in {
23716b6e4aaSMarek Vasut		compatible = "hdmi-connector";
23816b6e4aaSMarek Vasut		type = "a";
23916b6e4aaSMarek Vasut
24016b6e4aaSMarek Vasut		port {
24116b6e4aaSMarek Vasut			hdmi_con_in: endpoint {
24216b6e4aaSMarek Vasut				remote-endpoint = <&adv7612_in>;
24316b6e4aaSMarek Vasut			};
24416b6e4aaSMarek Vasut		};
24516b6e4aaSMarek Vasut	};
24616b6e4aaSMarek Vasut
247252c8b45SMarek Vasut	cec_clock: cec-clock {
248252c8b45SMarek Vasut		compatible = "fixed-clock";
249252c8b45SMarek Vasut		#clock-cells = <0>;
250252c8b45SMarek Vasut		clock-frequency = <12000000>;
251252c8b45SMarek Vasut	};
252252c8b45SMarek Vasut
25316b6e4aaSMarek Vasut	hdmi-out {
25416b6e4aaSMarek Vasut		compatible = "hdmi-connector";
25516b6e4aaSMarek Vasut		type = "a";
25616b6e4aaSMarek Vasut
25716b6e4aaSMarek Vasut		port {
25816b6e4aaSMarek Vasut			hdmi_con_out: endpoint {
25916b6e4aaSMarek Vasut				remote-endpoint = <&adv7511_out>;
26016b6e4aaSMarek Vasut			};
26116b6e4aaSMarek Vasut		};
26216b6e4aaSMarek Vasut	};
26316b6e4aaSMarek Vasut
26416b6e4aaSMarek Vasut	x2_clk: x2-clock {
26516b6e4aaSMarek Vasut		compatible = "fixed-clock";
26616b6e4aaSMarek Vasut		#clock-cells = <0>;
26716b6e4aaSMarek Vasut		clock-frequency = <148500000>;
26816b6e4aaSMarek Vasut	};
26916b6e4aaSMarek Vasut
27016b6e4aaSMarek Vasut	x13_clk: x13-clock {
27116b6e4aaSMarek Vasut		compatible = "fixed-clock";
27216b6e4aaSMarek Vasut		#clock-cells = <0>;
27316b6e4aaSMarek Vasut		clock-frequency = <148500000>;
27416b6e4aaSMarek Vasut	};
27516b6e4aaSMarek Vasut
27616b6e4aaSMarek Vasut	gpioi2c1: i2c-8 {
27716b6e4aaSMarek Vasut		#address-cells = <1>;
27816b6e4aaSMarek Vasut		#size-cells = <0>;
27916b6e4aaSMarek Vasut		compatible = "i2c-gpio";
28016b6e4aaSMarek Vasut		status = "disabled";
281252c8b45SMarek Vasut		scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
282252c8b45SMarek Vasut		sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
283252c8b45SMarek Vasut		i2c-gpio,delay-us = <5>;
284252c8b45SMarek Vasut	};
285252c8b45SMarek Vasut
286252c8b45SMarek Vasut	gpioi2c2: i2c-9 {
287252c8b45SMarek Vasut		#address-cells = <1>;
288252c8b45SMarek Vasut		#size-cells = <0>;
289252c8b45SMarek Vasut		compatible = "i2c-gpio";
290252c8b45SMarek Vasut		status = "disabled";
291252c8b45SMarek Vasut		scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
292252c8b45SMarek Vasut		sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
29316b6e4aaSMarek Vasut		i2c-gpio,delay-us = <5>;
29416b6e4aaSMarek Vasut	};
29516b6e4aaSMarek Vasut
29616b6e4aaSMarek Vasut	/*
29716b6e4aaSMarek Vasut	 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
29816b6e4aaSMarek Vasut	 * We use the I2C demuxer, so the desired IP core can be selected at runtime
29916b6e4aaSMarek Vasut	 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
30016b6e4aaSMarek Vasut	 * Note: For testing the I2C slave feature, it is convenient to connect this
30116b6e4aaSMarek Vasut	 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
30216b6e4aaSMarek Vasut	 * instantiate the slave device at runtime according to the documentation.
30316b6e4aaSMarek Vasut	 * You can then communicate with the slave via IIC3.
30416b6e4aaSMarek Vasut	 *
30516b6e4aaSMarek Vasut	 * IIC0/I2C0 does not appear to support fallback to GPIO.
30616b6e4aaSMarek Vasut	 */
30716b6e4aaSMarek Vasut	i2cexio0: i2c-10 {
30816b6e4aaSMarek Vasut		compatible = "i2c-demux-pinctrl";
30916b6e4aaSMarek Vasut		i2c-parent = <&iic0>, <&i2c0>;
31016b6e4aaSMarek Vasut		i2c-bus-name = "i2c-exio0";
31116b6e4aaSMarek Vasut		#address-cells = <1>;
31216b6e4aaSMarek Vasut		#size-cells = <0>;
31316b6e4aaSMarek Vasut	};
31416b6e4aaSMarek Vasut
31516b6e4aaSMarek Vasut	/*
31616b6e4aaSMarek Vasut	 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
31716b6e4aaSMarek Vasut	 * This is similar to the arangement described for i2cexio0 (above)
31816b6e4aaSMarek Vasut	 * with a fallback to GPIO also provided.
31916b6e4aaSMarek Vasut	 */
32016b6e4aaSMarek Vasut	i2cexio1: i2c-11 {
32116b6e4aaSMarek Vasut		compatible = "i2c-demux-pinctrl";
32216b6e4aaSMarek Vasut		i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
32316b6e4aaSMarek Vasut		i2c-bus-name = "i2c-exio1";
32416b6e4aaSMarek Vasut		#address-cells = <1>;
32516b6e4aaSMarek Vasut		#size-cells = <0>;
32616b6e4aaSMarek Vasut	};
327252c8b45SMarek Vasut
328252c8b45SMarek Vasut        /*
329252c8b45SMarek Vasut         * IIC2 and I2C2 may be switched using pinmux.
330252c8b45SMarek Vasut         * A fallback to GPIO is also provided.
331252c8b45SMarek Vasut         */
332252c8b45SMarek Vasut	i2chdmi: i2c-12 {
333252c8b45SMarek Vasut		compatible = "i2c-demux-pinctrl";
334252c8b45SMarek Vasut		i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
335252c8b45SMarek Vasut		i2c-bus-name = "i2c-hdmi";
336252c8b45SMarek Vasut		#address-cells = <1>;
337252c8b45SMarek Vasut		#size-cells = <0>;
338252c8b45SMarek Vasut
339252c8b45SMarek Vasut		ak4643: codec@12 {
340252c8b45SMarek Vasut			compatible = "asahi-kasei,ak4643";
341252c8b45SMarek Vasut			#sound-dai-cells = <0>;
342252c8b45SMarek Vasut			reg = <0x12>;
343252c8b45SMarek Vasut		};
344252c8b45SMarek Vasut
345252c8b45SMarek Vasut		composite-in@20 {
346252c8b45SMarek Vasut			compatible = "adi,adv7180";
347252c8b45SMarek Vasut			reg = <0x20>;
348252c8b45SMarek Vasut			remote = <&vin1>;
349252c8b45SMarek Vasut
350252c8b45SMarek Vasut			port {
351252c8b45SMarek Vasut				adv7180: endpoint {
352252c8b45SMarek Vasut					bus-width = <8>;
353252c8b45SMarek Vasut					remote-endpoint = <&vin1ep0>;
354252c8b45SMarek Vasut				};
355252c8b45SMarek Vasut			};
356252c8b45SMarek Vasut		};
357252c8b45SMarek Vasut
358252c8b45SMarek Vasut		hdmi@39 {
359252c8b45SMarek Vasut			compatible = "adi,adv7511w";
360252c8b45SMarek Vasut			reg = <0x39>;
361252c8b45SMarek Vasut			interrupt-parent = <&gpio1>;
362252c8b45SMarek Vasut			interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
363252c8b45SMarek Vasut			clocks = <&cec_clock>;
364252c8b45SMarek Vasut			clock-names = "cec";
365252c8b45SMarek Vasut
366252c8b45SMarek Vasut			adi,input-depth = <8>;
367252c8b45SMarek Vasut			adi,input-colorspace = "rgb";
368252c8b45SMarek Vasut			adi,input-clock = "1x";
369252c8b45SMarek Vasut			adi,input-style = <1>;
370252c8b45SMarek Vasut			adi,input-justification = "evenly";
371252c8b45SMarek Vasut
372252c8b45SMarek Vasut			ports {
373252c8b45SMarek Vasut				#address-cells = <1>;
374252c8b45SMarek Vasut				#size-cells = <0>;
375252c8b45SMarek Vasut
376252c8b45SMarek Vasut				port@0 {
377252c8b45SMarek Vasut					reg = <0>;
378252c8b45SMarek Vasut					adv7511_in: endpoint {
379252c8b45SMarek Vasut						remote-endpoint = <&lvds0_out>;
380252c8b45SMarek Vasut					};
381252c8b45SMarek Vasut				};
382252c8b45SMarek Vasut
383252c8b45SMarek Vasut				port@1 {
384252c8b45SMarek Vasut					reg = <1>;
385252c8b45SMarek Vasut					adv7511_out: endpoint {
386252c8b45SMarek Vasut						remote-endpoint = <&hdmi_con_out>;
387252c8b45SMarek Vasut					};
388252c8b45SMarek Vasut				};
389252c8b45SMarek Vasut			};
390252c8b45SMarek Vasut		};
391252c8b45SMarek Vasut
392252c8b45SMarek Vasut		hdmi-in@4c {
393252c8b45SMarek Vasut			compatible = "adi,adv7612";
394252c8b45SMarek Vasut			reg = <0x4c>;
395252c8b45SMarek Vasut			interrupt-parent = <&gpio1>;
396252c8b45SMarek Vasut			interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
397252c8b45SMarek Vasut			default-input = <0>;
398252c8b45SMarek Vasut
399252c8b45SMarek Vasut			ports {
400252c8b45SMarek Vasut				#address-cells = <1>;
401252c8b45SMarek Vasut				#size-cells = <0>;
402252c8b45SMarek Vasut
403252c8b45SMarek Vasut				port@0 {
404252c8b45SMarek Vasut					reg = <0>;
405252c8b45SMarek Vasut					adv7612_in: endpoint {
406252c8b45SMarek Vasut						remote-endpoint = <&hdmi_con_in>;
407252c8b45SMarek Vasut					};
408252c8b45SMarek Vasut				};
409252c8b45SMarek Vasut
410252c8b45SMarek Vasut				port@2 {
411252c8b45SMarek Vasut					reg = <2>;
412252c8b45SMarek Vasut					adv7612_out: endpoint {
413252c8b45SMarek Vasut						remote-endpoint = <&vin0ep2>;
414252c8b45SMarek Vasut					};
415252c8b45SMarek Vasut				};
416252c8b45SMarek Vasut			};
417252c8b45SMarek Vasut		};
418252c8b45SMarek Vasut	};
419252c8b45SMarek Vasut
420252c8b45SMarek Vasut	/*
421252c8b45SMarek Vasut	 * IIC3 and I2C3 may be switched using pinmux.
422252c8b45SMarek Vasut	 * IIC3/I2C3 does not appear to support fallback to GPIO.
423252c8b45SMarek Vasut	 */
424252c8b45SMarek Vasut	i2cpwr: i2c-13 {
425252c8b45SMarek Vasut		compatible = "i2c-demux-pinctrl";
426252c8b45SMarek Vasut		i2c-parent = <&iic3>, <&i2c3>;
427252c8b45SMarek Vasut		i2c-bus-name = "i2c-pwr";
428252c8b45SMarek Vasut		#address-cells = <1>;
429252c8b45SMarek Vasut		#size-cells = <0>;
430252c8b45SMarek Vasut
431252c8b45SMarek Vasut		pmic@58 {
432252c8b45SMarek Vasut			compatible = "dlg,da9063";
433252c8b45SMarek Vasut			reg = <0x58>;
434252c8b45SMarek Vasut			interrupt-parent = <&irqc0>;
435252c8b45SMarek Vasut			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
436252c8b45SMarek Vasut			interrupt-controller;
437252c8b45SMarek Vasut
438252c8b45SMarek Vasut			rtc {
439252c8b45SMarek Vasut				compatible = "dlg,da9063-rtc";
440252c8b45SMarek Vasut			};
441252c8b45SMarek Vasut
442252c8b45SMarek Vasut			wdt {
443252c8b45SMarek Vasut				compatible = "dlg,da9063-watchdog";
444252c8b45SMarek Vasut			};
445252c8b45SMarek Vasut		};
446252c8b45SMarek Vasut
447252c8b45SMarek Vasut		vdd_dvfs: regulator@68 {
448252c8b45SMarek Vasut			compatible = "dlg,da9210";
449252c8b45SMarek Vasut			reg = <0x68>;
450252c8b45SMarek Vasut			interrupt-parent = <&irqc0>;
451252c8b45SMarek Vasut			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
452252c8b45SMarek Vasut
453252c8b45SMarek Vasut			regulator-min-microvolt = <1000000>;
454252c8b45SMarek Vasut			regulator-max-microvolt = <1000000>;
455252c8b45SMarek Vasut			regulator-boot-on;
456252c8b45SMarek Vasut			regulator-always-on;
457252c8b45SMarek Vasut		};
458252c8b45SMarek Vasut	};
45916b6e4aaSMarek Vasut};
46016b6e4aaSMarek Vasut
46116b6e4aaSMarek Vasut&du {
46216b6e4aaSMarek Vasut	pinctrl-0 = <&du_pins>;
46316b6e4aaSMarek Vasut	pinctrl-names = "default";
46416b6e4aaSMarek Vasut	status = "okay";
46516b6e4aaSMarek Vasut
46616b6e4aaSMarek Vasut	clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
46716b6e4aaSMarek Vasut		 <&x13_clk>, <&x2_clk>;
468252c8b45SMarek Vasut	clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
46916b6e4aaSMarek Vasut
47016b6e4aaSMarek Vasut	ports {
47116b6e4aaSMarek Vasut		port@0 {
47216b6e4aaSMarek Vasut			endpoint {
47316b6e4aaSMarek Vasut				remote-endpoint = <&adv7123_in>;
47416b6e4aaSMarek Vasut			};
47516b6e4aaSMarek Vasut		};
476252c8b45SMarek Vasut	};
477252c8b45SMarek Vasut};
478252c8b45SMarek Vasut
479252c8b45SMarek Vasut&lvds0 {
480252c8b45SMarek Vasut	status = "okay";
481252c8b45SMarek Vasut
482252c8b45SMarek Vasut	ports {
48316b6e4aaSMarek Vasut		port@1 {
48416b6e4aaSMarek Vasut			endpoint {
48516b6e4aaSMarek Vasut				remote-endpoint = <&adv7511_in>;
48616b6e4aaSMarek Vasut			};
48716b6e4aaSMarek Vasut		};
488252c8b45SMarek Vasut	};
489252c8b45SMarek Vasut};
490252c8b45SMarek Vasut
491252c8b45SMarek Vasut&lvds1 {
492252c8b45SMarek Vasut	status = "okay";
493252c8b45SMarek Vasut
494252c8b45SMarek Vasut	ports {
495252c8b45SMarek Vasut		port@1 {
49616b6e4aaSMarek Vasut			lvds_connector: endpoint {
49716b6e4aaSMarek Vasut			};
49816b6e4aaSMarek Vasut		};
49916b6e4aaSMarek Vasut	};
50016b6e4aaSMarek Vasut};
50116b6e4aaSMarek Vasut
50216b6e4aaSMarek Vasut&extal_clk {
50316b6e4aaSMarek Vasut	clock-frequency = <20000000>;
50416b6e4aaSMarek Vasut};
50516b6e4aaSMarek Vasut
50616b6e4aaSMarek Vasut&pfc {
50716b6e4aaSMarek Vasut	pinctrl-0 = <&scif_clk_pins>;
50816b6e4aaSMarek Vasut	pinctrl-names = "default";
50916b6e4aaSMarek Vasut
51016b6e4aaSMarek Vasut	du_pins: du {
51116b6e4aaSMarek Vasut		groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
51216b6e4aaSMarek Vasut		function = "du";
51316b6e4aaSMarek Vasut	};
51416b6e4aaSMarek Vasut
51516b6e4aaSMarek Vasut	scif0_pins: scif0 {
51616b6e4aaSMarek Vasut		groups = "scif0_data";
51716b6e4aaSMarek Vasut		function = "scif0";
51816b6e4aaSMarek Vasut	};
51916b6e4aaSMarek Vasut
52016b6e4aaSMarek Vasut	scif_clk_pins: scif_clk {
52116b6e4aaSMarek Vasut		groups = "scif_clk";
52216b6e4aaSMarek Vasut		function = "scif_clk";
52316b6e4aaSMarek Vasut	};
52416b6e4aaSMarek Vasut
52516b6e4aaSMarek Vasut	ether_pins: ether {
52616b6e4aaSMarek Vasut		groups = "eth_link", "eth_mdio", "eth_rmii";
52716b6e4aaSMarek Vasut		function = "eth";
52816b6e4aaSMarek Vasut	};
52916b6e4aaSMarek Vasut
53016b6e4aaSMarek Vasut	phy1_pins: phy1 {
53116b6e4aaSMarek Vasut		groups = "intc_irq0";
53216b6e4aaSMarek Vasut		function = "intc";
53316b6e4aaSMarek Vasut	};
53416b6e4aaSMarek Vasut
53516b6e4aaSMarek Vasut	scifa1_pins: scifa1 {
53616b6e4aaSMarek Vasut		groups = "scifa1_data";
53716b6e4aaSMarek Vasut		function = "scifa1";
53816b6e4aaSMarek Vasut	};
53916b6e4aaSMarek Vasut
54016b6e4aaSMarek Vasut	sdhi0_pins: sd0 {
54116b6e4aaSMarek Vasut		groups = "sdhi0_data4", "sdhi0_ctrl";
54216b6e4aaSMarek Vasut		function = "sdhi0";
54316b6e4aaSMarek Vasut		power-source = <3300>;
54416b6e4aaSMarek Vasut	};
54516b6e4aaSMarek Vasut
54616b6e4aaSMarek Vasut	sdhi0_pins_uhs: sd0_uhs {
54716b6e4aaSMarek Vasut		groups = "sdhi0_data4", "sdhi0_ctrl";
54816b6e4aaSMarek Vasut		function = "sdhi0";
54916b6e4aaSMarek Vasut		power-source = <1800>;
55016b6e4aaSMarek Vasut	};
55116b6e4aaSMarek Vasut
55216b6e4aaSMarek Vasut	sdhi2_pins: sd2 {
55316b6e4aaSMarek Vasut		groups = "sdhi2_data4", "sdhi2_ctrl";
55416b6e4aaSMarek Vasut		function = "sdhi2";
55516b6e4aaSMarek Vasut		power-source = <3300>;
55616b6e4aaSMarek Vasut	};
55716b6e4aaSMarek Vasut
55816b6e4aaSMarek Vasut	sdhi2_pins_uhs: sd2_uhs {
55916b6e4aaSMarek Vasut		groups = "sdhi2_data4", "sdhi2_ctrl";
56016b6e4aaSMarek Vasut		function = "sdhi2";
56116b6e4aaSMarek Vasut		power-source = <1800>;
56216b6e4aaSMarek Vasut	};
56316b6e4aaSMarek Vasut
56416b6e4aaSMarek Vasut	mmc1_pins: mmc1 {
56516b6e4aaSMarek Vasut		groups = "mmc1_data8", "mmc1_ctrl";
56616b6e4aaSMarek Vasut		function = "mmc1";
56716b6e4aaSMarek Vasut	};
56816b6e4aaSMarek Vasut
56916b6e4aaSMarek Vasut	qspi_pins: qspi {
57016b6e4aaSMarek Vasut		groups = "qspi_ctrl", "qspi_data4";
57116b6e4aaSMarek Vasut		function = "qspi";
57216b6e4aaSMarek Vasut	};
57316b6e4aaSMarek Vasut
57416b6e4aaSMarek Vasut	msiof1_pins: msiof1 {
57516b6e4aaSMarek Vasut		groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
57616b6e4aaSMarek Vasut				 "msiof1_tx";
57716b6e4aaSMarek Vasut		function = "msiof1";
57816b6e4aaSMarek Vasut	};
57916b6e4aaSMarek Vasut
58016b6e4aaSMarek Vasut	i2c0_pins: i2c0 {
58116b6e4aaSMarek Vasut		groups = "i2c0";
58216b6e4aaSMarek Vasut		function = "i2c0";
58316b6e4aaSMarek Vasut	};
58416b6e4aaSMarek Vasut
58516b6e4aaSMarek Vasut	iic0_pins: iic0 {
58616b6e4aaSMarek Vasut		groups = "iic0";
58716b6e4aaSMarek Vasut		function = "iic0";
58816b6e4aaSMarek Vasut	};
58916b6e4aaSMarek Vasut
59016b6e4aaSMarek Vasut	i2c1_pins: i2c1 {
59116b6e4aaSMarek Vasut		groups = "i2c1";
59216b6e4aaSMarek Vasut		function = "i2c1";
59316b6e4aaSMarek Vasut	};
59416b6e4aaSMarek Vasut
59516b6e4aaSMarek Vasut	iic1_pins: iic1 {
59616b6e4aaSMarek Vasut		groups = "iic1";
59716b6e4aaSMarek Vasut		function = "iic1";
59816b6e4aaSMarek Vasut	};
59916b6e4aaSMarek Vasut
600252c8b45SMarek Vasut	i2c2_pins: i2c2 {
601252c8b45SMarek Vasut		groups = "i2c2";
602252c8b45SMarek Vasut		function = "i2c2";
603252c8b45SMarek Vasut	};
604252c8b45SMarek Vasut
60516b6e4aaSMarek Vasut	iic2_pins: iic2 {
60616b6e4aaSMarek Vasut		groups = "iic2";
60716b6e4aaSMarek Vasut		function = "iic2";
60816b6e4aaSMarek Vasut	};
60916b6e4aaSMarek Vasut
610252c8b45SMarek Vasut	i2c3_pins: i2c3 {
611252c8b45SMarek Vasut		groups = "i2c3";
612252c8b45SMarek Vasut		function = "i2c3";
613252c8b45SMarek Vasut	};
614252c8b45SMarek Vasut
61516b6e4aaSMarek Vasut	iic3_pins: iic3 {
61616b6e4aaSMarek Vasut		groups = "iic3";
61716b6e4aaSMarek Vasut		function = "iic3";
61816b6e4aaSMarek Vasut	};
61916b6e4aaSMarek Vasut
62016b6e4aaSMarek Vasut	hsusb_pins: hsusb {
62116b6e4aaSMarek Vasut		groups = "usb0_ovc_vbus";
62216b6e4aaSMarek Vasut		function = "usb0";
62316b6e4aaSMarek Vasut	};
62416b6e4aaSMarek Vasut
62516b6e4aaSMarek Vasut	usb0_pins: usb0 {
62616b6e4aaSMarek Vasut		groups = "usb0";
62716b6e4aaSMarek Vasut		function = "usb0";
62816b6e4aaSMarek Vasut	};
62916b6e4aaSMarek Vasut
63016b6e4aaSMarek Vasut	usb1_pins: usb1 {
63116b6e4aaSMarek Vasut		groups = "usb1";
63216b6e4aaSMarek Vasut		function = "usb1";
63316b6e4aaSMarek Vasut	};
63416b6e4aaSMarek Vasut
63516b6e4aaSMarek Vasut	usb2_pins: usb2 {
63616b6e4aaSMarek Vasut		groups = "usb2";
63716b6e4aaSMarek Vasut		function = "usb2";
63816b6e4aaSMarek Vasut	};
63916b6e4aaSMarek Vasut
64016b6e4aaSMarek Vasut	vin0_pins: vin0 {
64116b6e4aaSMarek Vasut		groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
64216b6e4aaSMarek Vasut		function = "vin0";
64316b6e4aaSMarek Vasut	};
64416b6e4aaSMarek Vasut
64516b6e4aaSMarek Vasut	vin1_pins: vin1 {
64616b6e4aaSMarek Vasut		groups = "vin1_data8", "vin1_clk";
64716b6e4aaSMarek Vasut		function = "vin1";
64816b6e4aaSMarek Vasut	};
64916b6e4aaSMarek Vasut
65016b6e4aaSMarek Vasut	sound_pins: sound {
65116b6e4aaSMarek Vasut		groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
65216b6e4aaSMarek Vasut		function = "ssi";
65316b6e4aaSMarek Vasut	};
65416b6e4aaSMarek Vasut
65516b6e4aaSMarek Vasut	sound_clk_pins: sound_clk {
65616b6e4aaSMarek Vasut		groups = "audio_clk_a";
65716b6e4aaSMarek Vasut		function = "audio_clk";
65816b6e4aaSMarek Vasut	};
65916b6e4aaSMarek Vasut};
66016b6e4aaSMarek Vasut
66116b6e4aaSMarek Vasut&ether {
66216b6e4aaSMarek Vasut	pinctrl-0 = <&ether_pins &phy1_pins>;
66316b6e4aaSMarek Vasut	pinctrl-names = "default";
66416b6e4aaSMarek Vasut
66516b6e4aaSMarek Vasut	phy-handle = <&phy1>;
66616b6e4aaSMarek Vasut	renesas,ether-link-active-low;
66716b6e4aaSMarek Vasut	status = "okay";
66816b6e4aaSMarek Vasut
66916b6e4aaSMarek Vasut	phy1: ethernet-phy@1 {
67016b6e4aaSMarek Vasut		reg = <1>;
67116b6e4aaSMarek Vasut		interrupt-parent = <&irqc0>;
67216b6e4aaSMarek Vasut		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
67316b6e4aaSMarek Vasut		micrel,led-mode = <1>;
67416b6e4aaSMarek Vasut	};
67516b6e4aaSMarek Vasut};
67616b6e4aaSMarek Vasut
67716b6e4aaSMarek Vasut&cmt0 {
67816b6e4aaSMarek Vasut	status = "okay";
67916b6e4aaSMarek Vasut};
68016b6e4aaSMarek Vasut
68116b6e4aaSMarek Vasut&mmcif1 {
68216b6e4aaSMarek Vasut	pinctrl-0 = <&mmc1_pins>;
68316b6e4aaSMarek Vasut	pinctrl-names = "default";
68416b6e4aaSMarek Vasut
68516b6e4aaSMarek Vasut	vmmc-supply = <&fixedregulator3v3>;
68616b6e4aaSMarek Vasut	bus-width = <8>;
68716b6e4aaSMarek Vasut	non-removable;
68816b6e4aaSMarek Vasut	status = "okay";
68916b6e4aaSMarek Vasut};
69016b6e4aaSMarek Vasut
69116b6e4aaSMarek Vasut&sata1 {
69216b6e4aaSMarek Vasut	status = "okay";
69316b6e4aaSMarek Vasut};
69416b6e4aaSMarek Vasut
69516b6e4aaSMarek Vasut&qspi {
69616b6e4aaSMarek Vasut	pinctrl-0 = <&qspi_pins>;
69716b6e4aaSMarek Vasut	pinctrl-names = "default";
69816b6e4aaSMarek Vasut
69916b6e4aaSMarek Vasut	status = "okay";
70016b6e4aaSMarek Vasut
70116b6e4aaSMarek Vasut	flash: flash@0 {
70216b6e4aaSMarek Vasut		compatible = "spansion,s25fl512s", "jedec,spi-nor";
70316b6e4aaSMarek Vasut		reg = <0>;
70416b6e4aaSMarek Vasut		spi-max-frequency = <30000000>;
70516b6e4aaSMarek Vasut		spi-tx-bus-width = <4>;
70616b6e4aaSMarek Vasut		spi-rx-bus-width = <4>;
70716b6e4aaSMarek Vasut		spi-cpha;
70816b6e4aaSMarek Vasut		spi-cpol;
70916b6e4aaSMarek Vasut		m25p,fast-read;
71016b6e4aaSMarek Vasut
71116b6e4aaSMarek Vasut		partitions {
71216b6e4aaSMarek Vasut			compatible = "fixed-partitions";
71316b6e4aaSMarek Vasut			#address-cells = <1>;
71416b6e4aaSMarek Vasut			#size-cells = <1>;
71516b6e4aaSMarek Vasut
71616b6e4aaSMarek Vasut			partition@0 {
71716b6e4aaSMarek Vasut				label = "loader";
71816b6e4aaSMarek Vasut				reg = <0x00000000 0x00040000>;
71916b6e4aaSMarek Vasut				read-only;
72016b6e4aaSMarek Vasut			};
72116b6e4aaSMarek Vasut			partition@40000 {
72216b6e4aaSMarek Vasut				label = "user";
72316b6e4aaSMarek Vasut				reg = <0x00040000 0x00400000>;
72416b6e4aaSMarek Vasut				read-only;
72516b6e4aaSMarek Vasut			};
72616b6e4aaSMarek Vasut			partition@440000 {
72716b6e4aaSMarek Vasut				label = "flash";
72816b6e4aaSMarek Vasut				reg = <0x00440000 0x03bc0000>;
72916b6e4aaSMarek Vasut			};
73016b6e4aaSMarek Vasut		};
73116b6e4aaSMarek Vasut	};
73216b6e4aaSMarek Vasut};
73316b6e4aaSMarek Vasut
73416b6e4aaSMarek Vasut&scif0 {
73516b6e4aaSMarek Vasut	pinctrl-0 = <&scif0_pins>;
73616b6e4aaSMarek Vasut	pinctrl-names = "default";
73716b6e4aaSMarek Vasut
73816b6e4aaSMarek Vasut	status = "okay";
73916b6e4aaSMarek Vasut};
74016b6e4aaSMarek Vasut
74116b6e4aaSMarek Vasut&scifa1 {
74216b6e4aaSMarek Vasut	pinctrl-0 = <&scifa1_pins>;
74316b6e4aaSMarek Vasut	pinctrl-names = "default";
74416b6e4aaSMarek Vasut
74516b6e4aaSMarek Vasut	status = "okay";
74616b6e4aaSMarek Vasut};
74716b6e4aaSMarek Vasut
74816b6e4aaSMarek Vasut&scif_clk {
74916b6e4aaSMarek Vasut	clock-frequency = <14745600>;
75016b6e4aaSMarek Vasut};
75116b6e4aaSMarek Vasut
75216b6e4aaSMarek Vasut&msiof1 {
75316b6e4aaSMarek Vasut	pinctrl-0 = <&msiof1_pins>;
75416b6e4aaSMarek Vasut	pinctrl-names = "default";
75516b6e4aaSMarek Vasut
75616b6e4aaSMarek Vasut	status = "okay";
75716b6e4aaSMarek Vasut
75816b6e4aaSMarek Vasut	pmic: pmic@0 {
75916b6e4aaSMarek Vasut		compatible = "renesas,r2a11302ft";
76016b6e4aaSMarek Vasut		reg = <0>;
76116b6e4aaSMarek Vasut		spi-max-frequency = <6000000>;
76216b6e4aaSMarek Vasut		spi-cpol;
76316b6e4aaSMarek Vasut		spi-cpha;
76416b6e4aaSMarek Vasut	};
76516b6e4aaSMarek Vasut};
76616b6e4aaSMarek Vasut
76716b6e4aaSMarek Vasut&sdhi0 {
76816b6e4aaSMarek Vasut	pinctrl-0 = <&sdhi0_pins>;
76916b6e4aaSMarek Vasut	pinctrl-1 = <&sdhi0_pins_uhs>;
77016b6e4aaSMarek Vasut	pinctrl-names = "default", "state_uhs";
77116b6e4aaSMarek Vasut
77216b6e4aaSMarek Vasut	vmmc-supply = <&vcc_sdhi0>;
77316b6e4aaSMarek Vasut	vqmmc-supply = <&vccq_sdhi0>;
77416b6e4aaSMarek Vasut	cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
77516b6e4aaSMarek Vasut	sd-uhs-sdr50;
77616b6e4aaSMarek Vasut	sd-uhs-sdr104;
77716b6e4aaSMarek Vasut	status = "okay";
77816b6e4aaSMarek Vasut};
77916b6e4aaSMarek Vasut
78016b6e4aaSMarek Vasut&sdhi2 {
78116b6e4aaSMarek Vasut	pinctrl-0 = <&sdhi2_pins>;
78216b6e4aaSMarek Vasut	pinctrl-1 = <&sdhi2_pins_uhs>;
78316b6e4aaSMarek Vasut	pinctrl-names = "default", "state_uhs";
78416b6e4aaSMarek Vasut
78516b6e4aaSMarek Vasut	vmmc-supply = <&vcc_sdhi2>;
78616b6e4aaSMarek Vasut	vqmmc-supply = <&vccq_sdhi2>;
78716b6e4aaSMarek Vasut	cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
78816b6e4aaSMarek Vasut	sd-uhs-sdr50;
78916b6e4aaSMarek Vasut	status = "okay";
79016b6e4aaSMarek Vasut};
79116b6e4aaSMarek Vasut
79216b6e4aaSMarek Vasut&cpu0 {
79316b6e4aaSMarek Vasut	cpu0-supply = <&vdd_dvfs>;
79416b6e4aaSMarek Vasut};
79516b6e4aaSMarek Vasut
79616b6e4aaSMarek Vasut&i2c0	{
79716b6e4aaSMarek Vasut	pinctrl-0 = <&i2c0_pins>;
79816b6e4aaSMarek Vasut	pinctrl-names = "i2c-exio0";
79916b6e4aaSMarek Vasut};
80016b6e4aaSMarek Vasut
80116b6e4aaSMarek Vasut&iic0	{
80216b6e4aaSMarek Vasut	pinctrl-0 = <&iic0_pins>;
80316b6e4aaSMarek Vasut	pinctrl-names = "i2c-exio0";
80416b6e4aaSMarek Vasut};
80516b6e4aaSMarek Vasut
80616b6e4aaSMarek Vasut&i2c1	{
80716b6e4aaSMarek Vasut	pinctrl-0 = <&i2c1_pins>;
80816b6e4aaSMarek Vasut	pinctrl-names = "i2c-exio1";
80916b6e4aaSMarek Vasut};
81016b6e4aaSMarek Vasut
81116b6e4aaSMarek Vasut&iic1	{
81216b6e4aaSMarek Vasut	pinctrl-0 = <&iic1_pins>;
81316b6e4aaSMarek Vasut	pinctrl-names = "i2c-exio1";
81416b6e4aaSMarek Vasut};
81516b6e4aaSMarek Vasut
816252c8b45SMarek Vasut&i2c2	{
817252c8b45SMarek Vasut	pinctrl-0 = <&i2c2_pins>;
818252c8b45SMarek Vasut	pinctrl-names = "i2c-hdmi";
81916b6e4aaSMarek Vasut
82016b6e4aaSMarek Vasut	clock-frequency = <100000>;
82116b6e4aaSMarek Vasut};
82216b6e4aaSMarek Vasut
823252c8b45SMarek Vasut&iic2	{
824252c8b45SMarek Vasut	pinctrl-0 = <&iic2_pins>;
825252c8b45SMarek Vasut	pinctrl-names = "i2c-hdmi";
82616b6e4aaSMarek Vasut
827252c8b45SMarek Vasut	clock-frequency = <100000>;
82816b6e4aaSMarek Vasut};
82916b6e4aaSMarek Vasut
830252c8b45SMarek Vasut&i2c3	{
831252c8b45SMarek Vasut	pinctrl-0 = <&i2c3_pins>;
832252c8b45SMarek Vasut	pinctrl-names = "i2c-pwr";
83316b6e4aaSMarek Vasut};
83416b6e4aaSMarek Vasut
83516b6e4aaSMarek Vasut&iic3	{
83616b6e4aaSMarek Vasut	pinctrl-0 = <&iic3_pins>;
837252c8b45SMarek Vasut	pinctrl-names = "i2c-pwr";
83816b6e4aaSMarek Vasut};
83916b6e4aaSMarek Vasut
84016b6e4aaSMarek Vasut&pci0 {
84116b6e4aaSMarek Vasut	status = "okay";
84216b6e4aaSMarek Vasut	pinctrl-0 = <&usb0_pins>;
84316b6e4aaSMarek Vasut	pinctrl-names = "default";
84416b6e4aaSMarek Vasut};
84516b6e4aaSMarek Vasut
84616b6e4aaSMarek Vasut&pci1 {
84716b6e4aaSMarek Vasut	status = "okay";
84816b6e4aaSMarek Vasut	pinctrl-0 = <&usb1_pins>;
84916b6e4aaSMarek Vasut	pinctrl-names = "default";
85016b6e4aaSMarek Vasut};
85116b6e4aaSMarek Vasut
85216b6e4aaSMarek Vasut&xhci {
85316b6e4aaSMarek Vasut	status = "okay";
85416b6e4aaSMarek Vasut	pinctrl-0 = <&usb2_pins>;
85516b6e4aaSMarek Vasut	pinctrl-names = "default";
85616b6e4aaSMarek Vasut};
85716b6e4aaSMarek Vasut
85816b6e4aaSMarek Vasut&pci2 {
85916b6e4aaSMarek Vasut	status = "okay";
86016b6e4aaSMarek Vasut	pinctrl-0 = <&usb2_pins>;
86116b6e4aaSMarek Vasut	pinctrl-names = "default";
86216b6e4aaSMarek Vasut};
86316b6e4aaSMarek Vasut
86416b6e4aaSMarek Vasut&hsusb {
86516b6e4aaSMarek Vasut	status = "okay";
86616b6e4aaSMarek Vasut	pinctrl-0 = <&hsusb_pins>;
86716b6e4aaSMarek Vasut	pinctrl-names = "default";
86816b6e4aaSMarek Vasut	renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
86916b6e4aaSMarek Vasut};
87016b6e4aaSMarek Vasut
87116b6e4aaSMarek Vasut&usbphy {
87216b6e4aaSMarek Vasut	status = "okay";
87316b6e4aaSMarek Vasut};
87416b6e4aaSMarek Vasut
87516b6e4aaSMarek Vasut/* HDMI video input */
87616b6e4aaSMarek Vasut&vin0 {
87716b6e4aaSMarek Vasut	pinctrl-0 = <&vin0_pins>;
87816b6e4aaSMarek Vasut	pinctrl-names = "default";
87916b6e4aaSMarek Vasut
88016b6e4aaSMarek Vasut	status = "okay";
88116b6e4aaSMarek Vasut
88216b6e4aaSMarek Vasut	port {
88316b6e4aaSMarek Vasut		vin0ep2: endpoint {
88416b6e4aaSMarek Vasut			remote-endpoint = <&adv7612_out>;
88516b6e4aaSMarek Vasut			bus-width = <24>;
88616b6e4aaSMarek Vasut			hsync-active = <0>;
88716b6e4aaSMarek Vasut			vsync-active = <0>;
88816b6e4aaSMarek Vasut			pclk-sample = <1>;
88916b6e4aaSMarek Vasut			data-active = <1>;
89016b6e4aaSMarek Vasut		};
89116b6e4aaSMarek Vasut	};
89216b6e4aaSMarek Vasut};
89316b6e4aaSMarek Vasut
89416b6e4aaSMarek Vasut/* composite video input */
89516b6e4aaSMarek Vasut&vin1 {
89616b6e4aaSMarek Vasut	pinctrl-0 = <&vin1_pins>;
89716b6e4aaSMarek Vasut	pinctrl-names = "default";
89816b6e4aaSMarek Vasut
89916b6e4aaSMarek Vasut	status = "okay";
90016b6e4aaSMarek Vasut
90116b6e4aaSMarek Vasut	port {
90216b6e4aaSMarek Vasut		vin1ep0: endpoint {
90316b6e4aaSMarek Vasut			remote-endpoint = <&adv7180>;
90416b6e4aaSMarek Vasut			bus-width = <8>;
90516b6e4aaSMarek Vasut		};
90616b6e4aaSMarek Vasut	};
90716b6e4aaSMarek Vasut};
90816b6e4aaSMarek Vasut
90916b6e4aaSMarek Vasut&rcar_sound {
91016b6e4aaSMarek Vasut	pinctrl-0 = <&sound_pins &sound_clk_pins>;
91116b6e4aaSMarek Vasut	pinctrl-names = "default";
91216b6e4aaSMarek Vasut
91316b6e4aaSMarek Vasut	/* Single DAI */
91416b6e4aaSMarek Vasut	#sound-dai-cells = <0>;
91516b6e4aaSMarek Vasut
91616b6e4aaSMarek Vasut	status = "okay";
91716b6e4aaSMarek Vasut
91816b6e4aaSMarek Vasut	rcar_sound,dai {
91916b6e4aaSMarek Vasut		dai0 {
92016b6e4aaSMarek Vasut			playback = <&ssi0 &src2 &dvc0>;
92116b6e4aaSMarek Vasut			capture  = <&ssi1 &src3 &dvc1>;
92216b6e4aaSMarek Vasut		};
92316b6e4aaSMarek Vasut	};
92416b6e4aaSMarek Vasut};
92516b6e4aaSMarek Vasut
926*3b255531SMarek Vasut&rwdt {
927*3b255531SMarek Vasut	timeout-sec = <60>;
928*3b255531SMarek Vasut	status = "okay";
929*3b255531SMarek Vasut};
930*3b255531SMarek Vasut
93116b6e4aaSMarek Vasut&ssi1 {
93216b6e4aaSMarek Vasut	shared-pin;
93316b6e4aaSMarek Vasut};
934