xref: /freebsd-src/sys/contrib/device-tree/src/arm/renesas/r8a7790-lager.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree Source for the Lager board
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (C) 2013-2014 Renesas Solutions Corp.
6f126890aSEmmanuel Vadot * Copyright (C) 2014 Cogent Embedded, Inc.
7f126890aSEmmanuel Vadot * Copyright (C) 2015-2016 Renesas Electronics Corporation
8f126890aSEmmanuel Vadot */
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/*
11f126890aSEmmanuel Vadot * SSI-AK4643
12f126890aSEmmanuel Vadot *
13f126890aSEmmanuel Vadot * SW1: 1: AK4643
14f126890aSEmmanuel Vadot *      2: CN22
15f126890aSEmmanuel Vadot *      3: ADV7511
16f126890aSEmmanuel Vadot *
17f126890aSEmmanuel Vadot * This command is required when Playback/Capture
18f126890aSEmmanuel Vadot *
19f126890aSEmmanuel Vadot *	amixer set "LINEOUT Mixer DACL" on
20f126890aSEmmanuel Vadot *	amixer set "DVC Out" 100%
21f126890aSEmmanuel Vadot *	amixer set "DVC In" 100%
22f126890aSEmmanuel Vadot *
23f126890aSEmmanuel Vadot * You can use Mute
24f126890aSEmmanuel Vadot *
25f126890aSEmmanuel Vadot *	amixer set "DVC Out Mute" on
26f126890aSEmmanuel Vadot *	amixer set "DVC In Mute" on
27f126890aSEmmanuel Vadot *
28f126890aSEmmanuel Vadot * You can use Volume Ramp
29f126890aSEmmanuel Vadot *
30f126890aSEmmanuel Vadot *	amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
31f126890aSEmmanuel Vadot *	amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
32f126890aSEmmanuel Vadot *	amixer set "DVC Out Ramp" on
33f126890aSEmmanuel Vadot *	aplay xxx.wav &
34f126890aSEmmanuel Vadot *	amixer set "DVC Out"  80%  // Volume Down
35f126890aSEmmanuel Vadot *	amixer set "DVC Out" 100%  // Volume Up
36f126890aSEmmanuel Vadot */
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot/dts-v1/;
39f126890aSEmmanuel Vadot#include "r8a7790.dtsi"
40f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
41f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot/ {
44f126890aSEmmanuel Vadot	model = "Lager";
45f126890aSEmmanuel Vadot	compatible = "renesas,lager", "renesas,r8a7790";
46f126890aSEmmanuel Vadot
47f126890aSEmmanuel Vadot	aliases {
48f126890aSEmmanuel Vadot		serial0 = &scif0;
49f126890aSEmmanuel Vadot		serial1 = &scifa1;
50f126890aSEmmanuel Vadot		i2c8 = &gpioi2c1;
51f126890aSEmmanuel Vadot		i2c9 = &gpioi2c2;
52f126890aSEmmanuel Vadot		i2c10 = &i2cexio0;
53f126890aSEmmanuel Vadot		i2c11 = &i2cexio1;
54f126890aSEmmanuel Vadot		i2c12 = &i2chdmi;
55f126890aSEmmanuel Vadot		i2c13 = &i2cpwr;
56f126890aSEmmanuel Vadot		mmc0 = &mmcif1;
57f126890aSEmmanuel Vadot		mmc1 = &sdhi0;
58f126890aSEmmanuel Vadot		mmc2 = &sdhi2;
59f126890aSEmmanuel Vadot	};
60f126890aSEmmanuel Vadot
61f126890aSEmmanuel Vadot	chosen {
62f126890aSEmmanuel Vadot		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
63f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
64f126890aSEmmanuel Vadot	};
65f126890aSEmmanuel Vadot
66f126890aSEmmanuel Vadot	memory@40000000 {
67f126890aSEmmanuel Vadot		device_type = "memory";
68f126890aSEmmanuel Vadot		reg = <0 0x40000000 0 0x40000000>;
69f126890aSEmmanuel Vadot	};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot	memory@140000000 {
72f126890aSEmmanuel Vadot		device_type = "memory";
73f126890aSEmmanuel Vadot		reg = <1 0x40000000 0 0xc0000000>;
74f126890aSEmmanuel Vadot	};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot	keyboard {
77f126890aSEmmanuel Vadot		compatible = "gpio-keys";
78f126890aSEmmanuel Vadot
79f126890aSEmmanuel Vadot		pinctrl-0 = <&keyboard_pins>;
80f126890aSEmmanuel Vadot		pinctrl-names = "default";
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot		one {
83f126890aSEmmanuel Vadot			linux,code = <KEY_1>;
84f126890aSEmmanuel Vadot			label = "SW2-1";
85f126890aSEmmanuel Vadot			wakeup-source;
86f126890aSEmmanuel Vadot			debounce-interval = <20>;
87f126890aSEmmanuel Vadot			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
88f126890aSEmmanuel Vadot		};
89f126890aSEmmanuel Vadot		two {
90f126890aSEmmanuel Vadot			linux,code = <KEY_2>;
91f126890aSEmmanuel Vadot			label = "SW2-2";
92f126890aSEmmanuel Vadot			wakeup-source;
93f126890aSEmmanuel Vadot			debounce-interval = <20>;
94f126890aSEmmanuel Vadot			gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
95f126890aSEmmanuel Vadot		};
96f126890aSEmmanuel Vadot		three {
97f126890aSEmmanuel Vadot			linux,code = <KEY_3>;
98f126890aSEmmanuel Vadot			label = "SW2-3";
99f126890aSEmmanuel Vadot			wakeup-source;
100f126890aSEmmanuel Vadot			debounce-interval = <20>;
101f126890aSEmmanuel Vadot			gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
102f126890aSEmmanuel Vadot		};
103f126890aSEmmanuel Vadot		four {
104f126890aSEmmanuel Vadot			linux,code = <KEY_4>;
105f126890aSEmmanuel Vadot			label = "SW2-4";
106f126890aSEmmanuel Vadot			wakeup-source;
107f126890aSEmmanuel Vadot			debounce-interval = <20>;
108f126890aSEmmanuel Vadot			gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
109f126890aSEmmanuel Vadot		};
110f126890aSEmmanuel Vadot	};
111f126890aSEmmanuel Vadot
112f126890aSEmmanuel Vadot	leds {
113f126890aSEmmanuel Vadot		compatible = "gpio-leds";
114f126890aSEmmanuel Vadot		led6 {
115f126890aSEmmanuel Vadot			gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
116f126890aSEmmanuel Vadot		};
117f126890aSEmmanuel Vadot		led7 {
118f126890aSEmmanuel Vadot			gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
119f126890aSEmmanuel Vadot		};
120f126890aSEmmanuel Vadot		led8 {
121f126890aSEmmanuel Vadot			gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
122f126890aSEmmanuel Vadot		};
123f126890aSEmmanuel Vadot	};
124f126890aSEmmanuel Vadot
125*8d13bc63SEmmanuel Vadot	fixedregulator1v8: regulator-1v8 {
126*8d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
127*8d13bc63SEmmanuel Vadot		regulator-name = "fixed-1.8V";
128*8d13bc63SEmmanuel Vadot		regulator-min-microvolt = <1800000>;
129*8d13bc63SEmmanuel Vadot		regulator-max-microvolt = <1800000>;
130*8d13bc63SEmmanuel Vadot		regulator-boot-on;
131*8d13bc63SEmmanuel Vadot		regulator-always-on;
132*8d13bc63SEmmanuel Vadot	};
133*8d13bc63SEmmanuel Vadot
134f126890aSEmmanuel Vadot	fixedregulator3v3: regulator-3v3 {
135f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
136f126890aSEmmanuel Vadot		regulator-name = "fixed-3.3V";
137f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
138f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
139f126890aSEmmanuel Vadot		regulator-boot-on;
140f126890aSEmmanuel Vadot		regulator-always-on;
141f126890aSEmmanuel Vadot	};
142f126890aSEmmanuel Vadot
143f126890aSEmmanuel Vadot	vcc_sdhi0: regulator-vcc-sdhi0 {
144f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot		regulator-name = "SDHI0 Vcc";
147f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
148f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
149f126890aSEmmanuel Vadot
150f126890aSEmmanuel Vadot		gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
151f126890aSEmmanuel Vadot		enable-active-high;
152f126890aSEmmanuel Vadot	};
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot	vccq_sdhi0: regulator-vccq-sdhi0 {
155f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
156f126890aSEmmanuel Vadot
157f126890aSEmmanuel Vadot		regulator-name = "SDHI0 VccQ";
158f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
159f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
160f126890aSEmmanuel Vadot
161f126890aSEmmanuel Vadot		gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
162f126890aSEmmanuel Vadot		gpios-states = <1>;
163f126890aSEmmanuel Vadot		states = <3300000 1>, <1800000 0>;
164f126890aSEmmanuel Vadot	};
165f126890aSEmmanuel Vadot
166f126890aSEmmanuel Vadot	vcc_sdhi2: regulator-vcc-sdhi2 {
167f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot		regulator-name = "SDHI2 Vcc";
170f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
171f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
172f126890aSEmmanuel Vadot
173f126890aSEmmanuel Vadot		gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
174f126890aSEmmanuel Vadot		enable-active-high;
175f126890aSEmmanuel Vadot	};
176f126890aSEmmanuel Vadot
177f126890aSEmmanuel Vadot	vccq_sdhi2: regulator-vccq-sdhi2 {
178f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
179f126890aSEmmanuel Vadot
180f126890aSEmmanuel Vadot		regulator-name = "SDHI2 VccQ";
181f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
182f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
183f126890aSEmmanuel Vadot
184f126890aSEmmanuel Vadot		gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
185f126890aSEmmanuel Vadot		gpios-states = <1>;
186f126890aSEmmanuel Vadot		states = <3300000 1>, <1800000 0>;
187f126890aSEmmanuel Vadot	};
188f126890aSEmmanuel Vadot
189f126890aSEmmanuel Vadot	audio_clock: audio_clock {
190f126890aSEmmanuel Vadot		compatible = "fixed-clock";
191f126890aSEmmanuel Vadot		#clock-cells = <0>;
192f126890aSEmmanuel Vadot		clock-frequency = <11289600>;
193f126890aSEmmanuel Vadot	};
194f126890aSEmmanuel Vadot
195f126890aSEmmanuel Vadot	rsnd_ak4643: sound {
196f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
197f126890aSEmmanuel Vadot
198f126890aSEmmanuel Vadot		simple-audio-card,format = "left_j";
199f126890aSEmmanuel Vadot		simple-audio-card,bitclock-master = <&sndcodec>;
200f126890aSEmmanuel Vadot		simple-audio-card,frame-master = <&sndcodec>;
201f126890aSEmmanuel Vadot
202f126890aSEmmanuel Vadot		sndcpu: simple-audio-card,cpu {
203f126890aSEmmanuel Vadot			sound-dai = <&rcar_sound>;
204f126890aSEmmanuel Vadot		};
205f126890aSEmmanuel Vadot
206f126890aSEmmanuel Vadot		sndcodec: simple-audio-card,codec {
207f126890aSEmmanuel Vadot			sound-dai = <&ak4643>;
208f126890aSEmmanuel Vadot			clocks = <&audio_clock>;
209f126890aSEmmanuel Vadot		};
210f126890aSEmmanuel Vadot	};
211f126890aSEmmanuel Vadot
212f126890aSEmmanuel Vadot	vga-encoder {
213f126890aSEmmanuel Vadot		compatible = "adi,adv7123";
214f126890aSEmmanuel Vadot
215f126890aSEmmanuel Vadot		ports {
216f126890aSEmmanuel Vadot			#address-cells = <1>;
217f126890aSEmmanuel Vadot			#size-cells = <0>;
218f126890aSEmmanuel Vadot
219f126890aSEmmanuel Vadot			port@0 {
220f126890aSEmmanuel Vadot				reg = <0>;
221f126890aSEmmanuel Vadot				adv7123_in: endpoint {
222f126890aSEmmanuel Vadot					remote-endpoint = <&du_out_rgb>;
223f126890aSEmmanuel Vadot				};
224f126890aSEmmanuel Vadot			};
225f126890aSEmmanuel Vadot			port@1 {
226f126890aSEmmanuel Vadot				reg = <1>;
227f126890aSEmmanuel Vadot				adv7123_out: endpoint {
228f126890aSEmmanuel Vadot					remote-endpoint = <&vga_in>;
229f126890aSEmmanuel Vadot				};
230f126890aSEmmanuel Vadot			};
231f126890aSEmmanuel Vadot		};
232f126890aSEmmanuel Vadot	};
233f126890aSEmmanuel Vadot
234f126890aSEmmanuel Vadot	vga {
235f126890aSEmmanuel Vadot		compatible = "vga-connector";
236f126890aSEmmanuel Vadot
237f126890aSEmmanuel Vadot		port {
238f126890aSEmmanuel Vadot			vga_in: endpoint {
239f126890aSEmmanuel Vadot				remote-endpoint = <&adv7123_out>;
240f126890aSEmmanuel Vadot			};
241f126890aSEmmanuel Vadot		};
242f126890aSEmmanuel Vadot	};
243f126890aSEmmanuel Vadot
244f126890aSEmmanuel Vadot	hdmi-in {
245f126890aSEmmanuel Vadot		compatible = "hdmi-connector";
246f126890aSEmmanuel Vadot		type = "a";
247f126890aSEmmanuel Vadot
248f126890aSEmmanuel Vadot		port {
249f126890aSEmmanuel Vadot			hdmi_con_in: endpoint {
250f126890aSEmmanuel Vadot				remote-endpoint = <&adv7612_in>;
251f126890aSEmmanuel Vadot			};
252f126890aSEmmanuel Vadot		};
253f126890aSEmmanuel Vadot	};
254f126890aSEmmanuel Vadot
255f126890aSEmmanuel Vadot	cec_clock: cec-clock {
256f126890aSEmmanuel Vadot		compatible = "fixed-clock";
257f126890aSEmmanuel Vadot		#clock-cells = <0>;
258f126890aSEmmanuel Vadot		clock-frequency = <12000000>;
259f126890aSEmmanuel Vadot	};
260f126890aSEmmanuel Vadot
261f126890aSEmmanuel Vadot	hdmi-out {
262f126890aSEmmanuel Vadot		compatible = "hdmi-connector";
263f126890aSEmmanuel Vadot		type = "a";
264f126890aSEmmanuel Vadot
265f126890aSEmmanuel Vadot		port {
266f126890aSEmmanuel Vadot			hdmi_con_out: endpoint {
267f126890aSEmmanuel Vadot				remote-endpoint = <&adv7511_out>;
268f126890aSEmmanuel Vadot			};
269f126890aSEmmanuel Vadot		};
270f126890aSEmmanuel Vadot	};
271f126890aSEmmanuel Vadot
272f126890aSEmmanuel Vadot	x2_clk: x2-clock {
273f126890aSEmmanuel Vadot		compatible = "fixed-clock";
274f126890aSEmmanuel Vadot		#clock-cells = <0>;
275f126890aSEmmanuel Vadot		clock-frequency = <148500000>;
276f126890aSEmmanuel Vadot	};
277f126890aSEmmanuel Vadot
278f126890aSEmmanuel Vadot	x13_clk: x13-clock {
279f126890aSEmmanuel Vadot		compatible = "fixed-clock";
280f126890aSEmmanuel Vadot		#clock-cells = <0>;
281f126890aSEmmanuel Vadot		clock-frequency = <148500000>;
282f126890aSEmmanuel Vadot	};
283f126890aSEmmanuel Vadot
284f126890aSEmmanuel Vadot	gpioi2c1: i2c-8 {
285f126890aSEmmanuel Vadot		#address-cells = <1>;
286f126890aSEmmanuel Vadot		#size-cells = <0>;
287f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
288f126890aSEmmanuel Vadot		status = "disabled";
289f126890aSEmmanuel Vadot		scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
290f126890aSEmmanuel Vadot		sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
291f126890aSEmmanuel Vadot		i2c-gpio,delay-us = <5>;
292f126890aSEmmanuel Vadot	};
293f126890aSEmmanuel Vadot
294f126890aSEmmanuel Vadot	gpioi2c2: i2c-9 {
295f126890aSEmmanuel Vadot		#address-cells = <1>;
296f126890aSEmmanuel Vadot		#size-cells = <0>;
297f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
298f126890aSEmmanuel Vadot		status = "disabled";
299f126890aSEmmanuel Vadot		scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
300f126890aSEmmanuel Vadot		sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
301f126890aSEmmanuel Vadot		i2c-gpio,delay-us = <5>;
302f126890aSEmmanuel Vadot	};
303f126890aSEmmanuel Vadot
304f126890aSEmmanuel Vadot	/*
305f126890aSEmmanuel Vadot	 * IIC0/I2C0 is routed to EXIO connector A, pins 114 (SCL) + 116 (SDA) only.
306f126890aSEmmanuel Vadot	 * We use the I2C demuxer, so the desired IP core can be selected at runtime
307f126890aSEmmanuel Vadot	 * depending on the use case (e.g. DMA with IIC0 or slave support with I2C0).
308f126890aSEmmanuel Vadot	 * Note: For testing the I2C slave feature, it is convenient to connect this
309f126890aSEmmanuel Vadot	 * bus with IIC3 on pins 110 (SCL) + 112 (SDA), select I2C0 at runtime, and
310f126890aSEmmanuel Vadot	 * instantiate the slave device at runtime according to the documentation.
311f126890aSEmmanuel Vadot	 * You can then communicate with the slave via IIC3.
312f126890aSEmmanuel Vadot	 *
313f126890aSEmmanuel Vadot	 * IIC0/I2C0 does not appear to support fallback to GPIO.
314f126890aSEmmanuel Vadot	 */
315*8d13bc63SEmmanuel Vadot	i2cexio0: i2c-mux1 {
316f126890aSEmmanuel Vadot		compatible = "i2c-demux-pinctrl";
317f126890aSEmmanuel Vadot		i2c-parent = <&iic0>, <&i2c0>;
318f126890aSEmmanuel Vadot		i2c-bus-name = "i2c-exio0";
319f126890aSEmmanuel Vadot		#address-cells = <1>;
320f126890aSEmmanuel Vadot		#size-cells = <0>;
321f126890aSEmmanuel Vadot	};
322f126890aSEmmanuel Vadot
323f126890aSEmmanuel Vadot	/*
324f126890aSEmmanuel Vadot	 * IIC1/I2C1 is routed to EXIO connector A, pins 78 (SCL) + 80 (SDA).
325f126890aSEmmanuel Vadot	 * This is similar to the arangement described for i2cexio0 (above)
326f126890aSEmmanuel Vadot	 * with a fallback to GPIO also provided.
327f126890aSEmmanuel Vadot	 */
328*8d13bc63SEmmanuel Vadot	i2cexio1: i2c-mux2 {
329f126890aSEmmanuel Vadot		compatible = "i2c-demux-pinctrl";
330f126890aSEmmanuel Vadot		i2c-parent = <&iic1>, <&i2c1>, <&gpioi2c1>;
331f126890aSEmmanuel Vadot		i2c-bus-name = "i2c-exio1";
332f126890aSEmmanuel Vadot		#address-cells = <1>;
333f126890aSEmmanuel Vadot		#size-cells = <0>;
334f126890aSEmmanuel Vadot	};
335f126890aSEmmanuel Vadot
336f126890aSEmmanuel Vadot	/*
337f126890aSEmmanuel Vadot	 * IIC2 and I2C2 may be switched using pinmux.
338f126890aSEmmanuel Vadot	 * A fallback to GPIO is also provided.
339f126890aSEmmanuel Vadot	 */
340*8d13bc63SEmmanuel Vadot	i2chdmi: i2c-mux3 {
341f126890aSEmmanuel Vadot		compatible = "i2c-demux-pinctrl";
342f126890aSEmmanuel Vadot		i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
343f126890aSEmmanuel Vadot		i2c-bus-name = "i2c-hdmi";
344f126890aSEmmanuel Vadot		#address-cells = <1>;
345f126890aSEmmanuel Vadot		#size-cells = <0>;
346f126890aSEmmanuel Vadot
347f126890aSEmmanuel Vadot		ak4643: codec@12 {
348f126890aSEmmanuel Vadot			compatible = "asahi-kasei,ak4643";
349f126890aSEmmanuel Vadot			#sound-dai-cells = <0>;
350f126890aSEmmanuel Vadot			reg = <0x12>;
351f126890aSEmmanuel Vadot		};
352f126890aSEmmanuel Vadot
353f126890aSEmmanuel Vadot		composite-in@20 {
354f126890aSEmmanuel Vadot			compatible = "adi,adv7180";
355f126890aSEmmanuel Vadot			reg = <0x20>;
356f126890aSEmmanuel Vadot
357f126890aSEmmanuel Vadot			port {
358f126890aSEmmanuel Vadot				adv7180: endpoint {
359f126890aSEmmanuel Vadot					bus-width = <8>;
360f126890aSEmmanuel Vadot					remote-endpoint = <&vin1ep0>;
361f126890aSEmmanuel Vadot				};
362f126890aSEmmanuel Vadot			};
363f126890aSEmmanuel Vadot		};
364f126890aSEmmanuel Vadot
365f126890aSEmmanuel Vadot		hdmi@39 {
366f126890aSEmmanuel Vadot			compatible = "adi,adv7511w";
367f126890aSEmmanuel Vadot			reg = <0x39>;
368f126890aSEmmanuel Vadot			interrupt-parent = <&gpio1>;
369f126890aSEmmanuel Vadot			interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
370f126890aSEmmanuel Vadot			clocks = <&cec_clock>;
371f126890aSEmmanuel Vadot			clock-names = "cec";
372f126890aSEmmanuel Vadot
373*8d13bc63SEmmanuel Vadot			avdd-supply = <&fixedregulator1v8>;
374*8d13bc63SEmmanuel Vadot			dvdd-supply = <&fixedregulator1v8>;
375*8d13bc63SEmmanuel Vadot			pvdd-supply = <&fixedregulator1v8>;
376*8d13bc63SEmmanuel Vadot			dvdd-3v-supply = <&fixedregulator3v3>;
377*8d13bc63SEmmanuel Vadot			bgvdd-supply = <&fixedregulator1v8>;
378*8d13bc63SEmmanuel Vadot
379f126890aSEmmanuel Vadot			adi,input-depth = <8>;
380f126890aSEmmanuel Vadot			adi,input-colorspace = "rgb";
381f126890aSEmmanuel Vadot			adi,input-clock = "1x";
382f126890aSEmmanuel Vadot
383f126890aSEmmanuel Vadot			ports {
384f126890aSEmmanuel Vadot				#address-cells = <1>;
385f126890aSEmmanuel Vadot				#size-cells = <0>;
386f126890aSEmmanuel Vadot
387f126890aSEmmanuel Vadot				port@0 {
388f126890aSEmmanuel Vadot					reg = <0>;
389f126890aSEmmanuel Vadot					adv7511_in: endpoint {
390f126890aSEmmanuel Vadot						remote-endpoint = <&lvds0_out>;
391f126890aSEmmanuel Vadot					};
392f126890aSEmmanuel Vadot				};
393f126890aSEmmanuel Vadot
394f126890aSEmmanuel Vadot				port@1 {
395f126890aSEmmanuel Vadot					reg = <1>;
396f126890aSEmmanuel Vadot					adv7511_out: endpoint {
397f126890aSEmmanuel Vadot						remote-endpoint = <&hdmi_con_out>;
398f126890aSEmmanuel Vadot					};
399f126890aSEmmanuel Vadot				};
400f126890aSEmmanuel Vadot			};
401f126890aSEmmanuel Vadot		};
402f126890aSEmmanuel Vadot
403f126890aSEmmanuel Vadot		hdmi-in@4c {
404f126890aSEmmanuel Vadot			compatible = "adi,adv7612";
405f126890aSEmmanuel Vadot			reg = <0x4c>;
406f126890aSEmmanuel Vadot			interrupt-parent = <&gpio1>;
407f126890aSEmmanuel Vadot			interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
408f126890aSEmmanuel Vadot			default-input = <0>;
409f126890aSEmmanuel Vadot
410f126890aSEmmanuel Vadot			ports {
411f126890aSEmmanuel Vadot				#address-cells = <1>;
412f126890aSEmmanuel Vadot				#size-cells = <0>;
413f126890aSEmmanuel Vadot
414f126890aSEmmanuel Vadot				port@0 {
415f126890aSEmmanuel Vadot					reg = <0>;
416f126890aSEmmanuel Vadot					adv7612_in: endpoint {
417f126890aSEmmanuel Vadot						remote-endpoint = <&hdmi_con_in>;
418f126890aSEmmanuel Vadot					};
419f126890aSEmmanuel Vadot				};
420f126890aSEmmanuel Vadot
421f126890aSEmmanuel Vadot				port@2 {
422f126890aSEmmanuel Vadot					reg = <2>;
423f126890aSEmmanuel Vadot					adv7612_out: endpoint {
424f126890aSEmmanuel Vadot						remote-endpoint = <&vin0ep2>;
425f126890aSEmmanuel Vadot					};
426f126890aSEmmanuel Vadot				};
427f126890aSEmmanuel Vadot			};
428f126890aSEmmanuel Vadot		};
429f126890aSEmmanuel Vadot	};
430f126890aSEmmanuel Vadot
431f126890aSEmmanuel Vadot	/*
432f126890aSEmmanuel Vadot	 * IIC3 and I2C3 may be switched using pinmux.
433f126890aSEmmanuel Vadot	 * IIC3/I2C3 does not appear to support fallback to GPIO.
434f126890aSEmmanuel Vadot	 */
435*8d13bc63SEmmanuel Vadot	i2cpwr: i2c-mux4 {
436f126890aSEmmanuel Vadot		compatible = "i2c-demux-pinctrl";
437f126890aSEmmanuel Vadot		pinctrl-names = "default";
438f126890aSEmmanuel Vadot		pinctrl-0 = <&pmic_irq_pins>;
439f126890aSEmmanuel Vadot		i2c-parent = <&iic3>, <&i2c3>;
440f126890aSEmmanuel Vadot		i2c-bus-name = "i2c-pwr";
441f126890aSEmmanuel Vadot		#address-cells = <1>;
442f126890aSEmmanuel Vadot		#size-cells = <0>;
443f126890aSEmmanuel Vadot
444f126890aSEmmanuel Vadot		pmic@58 {
445f126890aSEmmanuel Vadot			compatible = "dlg,da9063";
446f126890aSEmmanuel Vadot			reg = <0x58>;
447f126890aSEmmanuel Vadot			interrupt-parent = <&irqc0>;
448f126890aSEmmanuel Vadot			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
449f126890aSEmmanuel Vadot			interrupt-controller;
450*8d13bc63SEmmanuel Vadot			#interrupt-cells = <2>;
451f126890aSEmmanuel Vadot
452f126890aSEmmanuel Vadot			rtc {
453f126890aSEmmanuel Vadot				compatible = "dlg,da9063-rtc";
454f126890aSEmmanuel Vadot			};
455f126890aSEmmanuel Vadot
456f126890aSEmmanuel Vadot			watchdog {
457f126890aSEmmanuel Vadot				compatible = "dlg,da9063-watchdog";
458f126890aSEmmanuel Vadot			};
459f126890aSEmmanuel Vadot		};
460f126890aSEmmanuel Vadot
461f126890aSEmmanuel Vadot		vdd_dvfs: regulator@68 {
462f126890aSEmmanuel Vadot			compatible = "dlg,da9210";
463f126890aSEmmanuel Vadot			reg = <0x68>;
464f126890aSEmmanuel Vadot			interrupt-parent = <&irqc0>;
465f126890aSEmmanuel Vadot			interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
466f126890aSEmmanuel Vadot
467f126890aSEmmanuel Vadot			regulator-min-microvolt = <1000000>;
468f126890aSEmmanuel Vadot			regulator-max-microvolt = <1000000>;
469f126890aSEmmanuel Vadot			regulator-boot-on;
470f126890aSEmmanuel Vadot			regulator-always-on;
471f126890aSEmmanuel Vadot		};
472f126890aSEmmanuel Vadot	};
473f126890aSEmmanuel Vadot};
474f126890aSEmmanuel Vadot
475f126890aSEmmanuel Vadot&du {
476f126890aSEmmanuel Vadot	pinctrl-0 = <&du_pins>;
477f126890aSEmmanuel Vadot	pinctrl-names = "default";
478f126890aSEmmanuel Vadot	status = "okay";
479f126890aSEmmanuel Vadot
480f126890aSEmmanuel Vadot	clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
481f126890aSEmmanuel Vadot		 <&x13_clk>, <&x2_clk>;
482f126890aSEmmanuel Vadot	clock-names = "du.0", "du.1", "du.2", "dclkin.0", "dclkin.1";
483f126890aSEmmanuel Vadot
484f126890aSEmmanuel Vadot	ports {
485f126890aSEmmanuel Vadot		port@0 {
486f126890aSEmmanuel Vadot			endpoint {
487f126890aSEmmanuel Vadot				remote-endpoint = <&adv7123_in>;
488f126890aSEmmanuel Vadot			};
489f126890aSEmmanuel Vadot		};
490f126890aSEmmanuel Vadot	};
491f126890aSEmmanuel Vadot};
492f126890aSEmmanuel Vadot
493f126890aSEmmanuel Vadot&lvds0 {
494f126890aSEmmanuel Vadot	status = "okay";
495f126890aSEmmanuel Vadot
496f126890aSEmmanuel Vadot	ports {
497f126890aSEmmanuel Vadot		port@1 {
498f126890aSEmmanuel Vadot			endpoint {
499f126890aSEmmanuel Vadot				remote-endpoint = <&adv7511_in>;
500f126890aSEmmanuel Vadot			};
501f126890aSEmmanuel Vadot		};
502f126890aSEmmanuel Vadot	};
503f126890aSEmmanuel Vadot};
504f126890aSEmmanuel Vadot
505f126890aSEmmanuel Vadot&lvds1 {
506f126890aSEmmanuel Vadot	ports {
507f126890aSEmmanuel Vadot		port@1 {
508f126890aSEmmanuel Vadot			lvds_connector: endpoint {
509f126890aSEmmanuel Vadot			};
510f126890aSEmmanuel Vadot		};
511f126890aSEmmanuel Vadot	};
512f126890aSEmmanuel Vadot};
513f126890aSEmmanuel Vadot
514f126890aSEmmanuel Vadot&extal_clk {
515f126890aSEmmanuel Vadot	clock-frequency = <20000000>;
516f126890aSEmmanuel Vadot};
517f126890aSEmmanuel Vadot
518f126890aSEmmanuel Vadot&pfc {
519f126890aSEmmanuel Vadot	pinctrl-0 = <&scif_clk_pins>;
520f126890aSEmmanuel Vadot	pinctrl-names = "default";
521f126890aSEmmanuel Vadot
522f126890aSEmmanuel Vadot	du_pins: du {
523f126890aSEmmanuel Vadot		groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
524f126890aSEmmanuel Vadot		function = "du";
525f126890aSEmmanuel Vadot	};
526f126890aSEmmanuel Vadot
527f126890aSEmmanuel Vadot	scif0_pins: scif0 {
528f126890aSEmmanuel Vadot		groups = "scif0_data";
529f126890aSEmmanuel Vadot		function = "scif0";
530f126890aSEmmanuel Vadot	};
531f126890aSEmmanuel Vadot
532f126890aSEmmanuel Vadot	scif_clk_pins: scif_clk {
533f126890aSEmmanuel Vadot		groups = "scif_clk";
534f126890aSEmmanuel Vadot		function = "scif_clk";
535f126890aSEmmanuel Vadot	};
536f126890aSEmmanuel Vadot
537f126890aSEmmanuel Vadot	ether_pins: ether {
538f126890aSEmmanuel Vadot		groups = "eth_link", "eth_mdio", "eth_rmii";
539f126890aSEmmanuel Vadot		function = "eth";
540f126890aSEmmanuel Vadot	};
541f126890aSEmmanuel Vadot
542f126890aSEmmanuel Vadot	phy1_pins: phy1 {
543f126890aSEmmanuel Vadot		groups = "intc_irq0";
544f126890aSEmmanuel Vadot		function = "intc";
545f126890aSEmmanuel Vadot	};
546f126890aSEmmanuel Vadot
547f126890aSEmmanuel Vadot	scifa1_pins: scifa1 {
548f126890aSEmmanuel Vadot		groups = "scifa1_data";
549f126890aSEmmanuel Vadot		function = "scifa1";
550f126890aSEmmanuel Vadot	};
551f126890aSEmmanuel Vadot
552f126890aSEmmanuel Vadot	sdhi0_pins: sd0 {
553f126890aSEmmanuel Vadot		groups = "sdhi0_data4", "sdhi0_ctrl";
554f126890aSEmmanuel Vadot		function = "sdhi0";
555f126890aSEmmanuel Vadot		power-source = <3300>;
556f126890aSEmmanuel Vadot	};
557f126890aSEmmanuel Vadot
558f126890aSEmmanuel Vadot	sdhi0_pins_uhs: sd0_uhs {
559f126890aSEmmanuel Vadot		groups = "sdhi0_data4", "sdhi0_ctrl";
560f126890aSEmmanuel Vadot		function = "sdhi0";
561f126890aSEmmanuel Vadot		power-source = <1800>;
562f126890aSEmmanuel Vadot	};
563f126890aSEmmanuel Vadot
564f126890aSEmmanuel Vadot	sdhi2_pins: sd2 {
565f126890aSEmmanuel Vadot		groups = "sdhi2_data4", "sdhi2_ctrl";
566f126890aSEmmanuel Vadot		function = "sdhi2";
567f126890aSEmmanuel Vadot		power-source = <3300>;
568f126890aSEmmanuel Vadot	};
569f126890aSEmmanuel Vadot
570f126890aSEmmanuel Vadot	sdhi2_pins_uhs: sd2_uhs {
571f126890aSEmmanuel Vadot		groups = "sdhi2_data4", "sdhi2_ctrl";
572f126890aSEmmanuel Vadot		function = "sdhi2";
573f126890aSEmmanuel Vadot		power-source = <1800>;
574f126890aSEmmanuel Vadot	};
575f126890aSEmmanuel Vadot
576f126890aSEmmanuel Vadot	mmc1_pins: mmc1 {
577f126890aSEmmanuel Vadot		groups = "mmc1_data8", "mmc1_ctrl";
578f126890aSEmmanuel Vadot		function = "mmc1";
579f126890aSEmmanuel Vadot	};
580f126890aSEmmanuel Vadot
581f126890aSEmmanuel Vadot	qspi_pins: qspi {
582f126890aSEmmanuel Vadot		groups = "qspi_ctrl", "qspi_data4";
583f126890aSEmmanuel Vadot		function = "qspi";
584f126890aSEmmanuel Vadot	};
585f126890aSEmmanuel Vadot
586f126890aSEmmanuel Vadot	msiof1_pins: msiof1 {
587f126890aSEmmanuel Vadot		groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
588f126890aSEmmanuel Vadot				 "msiof1_tx";
589f126890aSEmmanuel Vadot		function = "msiof1";
590f126890aSEmmanuel Vadot	};
591f126890aSEmmanuel Vadot
592f126890aSEmmanuel Vadot	i2c0_pins: i2c0 {
593f126890aSEmmanuel Vadot		groups = "i2c0";
594f126890aSEmmanuel Vadot		function = "i2c0";
595f126890aSEmmanuel Vadot	};
596f126890aSEmmanuel Vadot
597f126890aSEmmanuel Vadot	iic0_pins: iic0 {
598f126890aSEmmanuel Vadot		groups = "iic0";
599f126890aSEmmanuel Vadot		function = "iic0";
600f126890aSEmmanuel Vadot	};
601f126890aSEmmanuel Vadot
602f126890aSEmmanuel Vadot	i2c1_pins: i2c1 {
603f126890aSEmmanuel Vadot		groups = "i2c1";
604f126890aSEmmanuel Vadot		function = "i2c1";
605f126890aSEmmanuel Vadot	};
606f126890aSEmmanuel Vadot
607f126890aSEmmanuel Vadot	iic1_pins: iic1 {
608f126890aSEmmanuel Vadot		groups = "iic1";
609f126890aSEmmanuel Vadot		function = "iic1";
610f126890aSEmmanuel Vadot	};
611f126890aSEmmanuel Vadot
612f126890aSEmmanuel Vadot	i2c2_pins: i2c2 {
613f126890aSEmmanuel Vadot		groups = "i2c2";
614f126890aSEmmanuel Vadot		function = "i2c2";
615f126890aSEmmanuel Vadot	};
616f126890aSEmmanuel Vadot
617f126890aSEmmanuel Vadot	iic2_pins: iic2 {
618f126890aSEmmanuel Vadot		groups = "iic2";
619f126890aSEmmanuel Vadot		function = "iic2";
620f126890aSEmmanuel Vadot	};
621f126890aSEmmanuel Vadot
622f126890aSEmmanuel Vadot	i2c3_pins: i2c3 {
623f126890aSEmmanuel Vadot		groups = "i2c3";
624f126890aSEmmanuel Vadot		function = "i2c3";
625f126890aSEmmanuel Vadot	};
626f126890aSEmmanuel Vadot
627f126890aSEmmanuel Vadot	iic3_pins: iic3 {
628f126890aSEmmanuel Vadot		groups = "iic3";
629f126890aSEmmanuel Vadot		function = "iic3";
630f126890aSEmmanuel Vadot	};
631f126890aSEmmanuel Vadot
632f126890aSEmmanuel Vadot	pmic_irq_pins: pmicirq {
633f126890aSEmmanuel Vadot		groups = "intc_irq2";
634f126890aSEmmanuel Vadot		function = "intc";
635f126890aSEmmanuel Vadot	};
636f126890aSEmmanuel Vadot
637f126890aSEmmanuel Vadot	hsusb_pins: hsusb {
638f126890aSEmmanuel Vadot		groups = "usb0_ovc_vbus";
639f126890aSEmmanuel Vadot		function = "usb0";
640f126890aSEmmanuel Vadot	};
641f126890aSEmmanuel Vadot
642f126890aSEmmanuel Vadot	usb0_pins: usb0 {
643f126890aSEmmanuel Vadot		groups = "usb0";
644f126890aSEmmanuel Vadot		function = "usb0";
645f126890aSEmmanuel Vadot	};
646f126890aSEmmanuel Vadot
647f126890aSEmmanuel Vadot	usb1_pins: usb1 {
648f126890aSEmmanuel Vadot		groups = "usb1";
649f126890aSEmmanuel Vadot		function = "usb1";
650f126890aSEmmanuel Vadot	};
651f126890aSEmmanuel Vadot
652f126890aSEmmanuel Vadot	usb2_pins: usb2 {
653f126890aSEmmanuel Vadot		groups = "usb2";
654f126890aSEmmanuel Vadot		function = "usb2";
655f126890aSEmmanuel Vadot	};
656f126890aSEmmanuel Vadot
657f126890aSEmmanuel Vadot	vin0_pins: vin0 {
658f126890aSEmmanuel Vadot		groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
659f126890aSEmmanuel Vadot		function = "vin0";
660f126890aSEmmanuel Vadot	};
661f126890aSEmmanuel Vadot
662f126890aSEmmanuel Vadot	vin1_pins: vin1 {
663f126890aSEmmanuel Vadot		groups = "vin1_data8", "vin1_clk";
664f126890aSEmmanuel Vadot		function = "vin1";
665f126890aSEmmanuel Vadot	};
666f126890aSEmmanuel Vadot
667f126890aSEmmanuel Vadot	sound_pins: sound {
668f126890aSEmmanuel Vadot		groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
669f126890aSEmmanuel Vadot		function = "ssi";
670f126890aSEmmanuel Vadot	};
671f126890aSEmmanuel Vadot
672f126890aSEmmanuel Vadot	sound_clk_pins: sound_clk {
673f126890aSEmmanuel Vadot		groups = "audio_clk_a";
674f126890aSEmmanuel Vadot		function = "audio_clk";
675f126890aSEmmanuel Vadot	};
676f126890aSEmmanuel Vadot
677f126890aSEmmanuel Vadot	keyboard_pins: keyboard {
678f126890aSEmmanuel Vadot		pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28";
679f126890aSEmmanuel Vadot		bias-pull-up;
680f126890aSEmmanuel Vadot	};
681f126890aSEmmanuel Vadot};
682f126890aSEmmanuel Vadot
683f126890aSEmmanuel Vadot&ether {
684f126890aSEmmanuel Vadot	pinctrl-0 = <&ether_pins>, <&phy1_pins>;
685f126890aSEmmanuel Vadot	pinctrl-names = "default";
686f126890aSEmmanuel Vadot
687f126890aSEmmanuel Vadot	phy-handle = <&phy1>;
688f126890aSEmmanuel Vadot	renesas,ether-link-active-low;
689f126890aSEmmanuel Vadot	status = "okay";
690f126890aSEmmanuel Vadot
691f126890aSEmmanuel Vadot	phy1: ethernet-phy@1 {
692f126890aSEmmanuel Vadot		compatible = "ethernet-phy-id0022.1537",
693f126890aSEmmanuel Vadot			     "ethernet-phy-ieee802.3-c22";
694f126890aSEmmanuel Vadot		reg = <1>;
695f126890aSEmmanuel Vadot		interrupt-parent = <&irqc0>;
696f126890aSEmmanuel Vadot		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
697f126890aSEmmanuel Vadot		micrel,led-mode = <1>;
698f126890aSEmmanuel Vadot		reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
699f126890aSEmmanuel Vadot	};
700f126890aSEmmanuel Vadot};
701f126890aSEmmanuel Vadot
702f126890aSEmmanuel Vadot&cmt0 {
703f126890aSEmmanuel Vadot	status = "okay";
704f126890aSEmmanuel Vadot};
705f126890aSEmmanuel Vadot
706f126890aSEmmanuel Vadot&mmcif1 {
707f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc1_pins>;
708f126890aSEmmanuel Vadot	pinctrl-names = "default";
709f126890aSEmmanuel Vadot
710f126890aSEmmanuel Vadot	vmmc-supply = <&fixedregulator3v3>;
711f126890aSEmmanuel Vadot	bus-width = <8>;
712f126890aSEmmanuel Vadot	non-removable;
713f126890aSEmmanuel Vadot	status = "okay";
714f126890aSEmmanuel Vadot};
715f126890aSEmmanuel Vadot
716f126890aSEmmanuel Vadot&sata1 {
717f126890aSEmmanuel Vadot	status = "okay";
718f126890aSEmmanuel Vadot};
719f126890aSEmmanuel Vadot
720f126890aSEmmanuel Vadot&qspi {
721f126890aSEmmanuel Vadot	pinctrl-0 = <&qspi_pins>;
722f126890aSEmmanuel Vadot	pinctrl-names = "default";
723f126890aSEmmanuel Vadot
724f126890aSEmmanuel Vadot	status = "okay";
725f126890aSEmmanuel Vadot
726f126890aSEmmanuel Vadot	flash: flash@0 {
727f126890aSEmmanuel Vadot		compatible = "spansion,s25fl512s", "jedec,spi-nor";
728f126890aSEmmanuel Vadot		reg = <0>;
729f126890aSEmmanuel Vadot		spi-max-frequency = <30000000>;
730f126890aSEmmanuel Vadot		spi-tx-bus-width = <4>;
731f126890aSEmmanuel Vadot		spi-rx-bus-width = <4>;
732f126890aSEmmanuel Vadot		spi-cpha;
733f126890aSEmmanuel Vadot		spi-cpol;
734f126890aSEmmanuel Vadot		m25p,fast-read;
735f126890aSEmmanuel Vadot
736f126890aSEmmanuel Vadot		partitions {
737f126890aSEmmanuel Vadot			compatible = "fixed-partitions";
738f126890aSEmmanuel Vadot			#address-cells = <1>;
739f126890aSEmmanuel Vadot			#size-cells = <1>;
740f126890aSEmmanuel Vadot
741f126890aSEmmanuel Vadot			partition@0 {
742f126890aSEmmanuel Vadot				label = "loader";
743f126890aSEmmanuel Vadot				reg = <0x00000000 0x00040000>;
744f126890aSEmmanuel Vadot				read-only;
745f126890aSEmmanuel Vadot			};
746f126890aSEmmanuel Vadot			partition@40000 {
747f126890aSEmmanuel Vadot				label = "user";
748f126890aSEmmanuel Vadot				reg = <0x00040000 0x00400000>;
749f126890aSEmmanuel Vadot				read-only;
750f126890aSEmmanuel Vadot			};
751f126890aSEmmanuel Vadot			partition@440000 {
752f126890aSEmmanuel Vadot				label = "flash";
753f126890aSEmmanuel Vadot				reg = <0x00440000 0x03bc0000>;
754f126890aSEmmanuel Vadot			};
755f126890aSEmmanuel Vadot		};
756f126890aSEmmanuel Vadot	};
757f126890aSEmmanuel Vadot};
758f126890aSEmmanuel Vadot
759f126890aSEmmanuel Vadot&scif0 {
760f126890aSEmmanuel Vadot	pinctrl-0 = <&scif0_pins>;
761f126890aSEmmanuel Vadot	pinctrl-names = "default";
762f126890aSEmmanuel Vadot
763f126890aSEmmanuel Vadot	status = "okay";
764f126890aSEmmanuel Vadot};
765f126890aSEmmanuel Vadot
766f126890aSEmmanuel Vadot&scifa1 {
767f126890aSEmmanuel Vadot	pinctrl-0 = <&scifa1_pins>;
768f126890aSEmmanuel Vadot	pinctrl-names = "default";
769f126890aSEmmanuel Vadot
770f126890aSEmmanuel Vadot	status = "okay";
771f126890aSEmmanuel Vadot};
772f126890aSEmmanuel Vadot
773f126890aSEmmanuel Vadot&scif_clk {
774f126890aSEmmanuel Vadot	clock-frequency = <14745600>;
775f126890aSEmmanuel Vadot};
776f126890aSEmmanuel Vadot
777f126890aSEmmanuel Vadot&msiof1 {
778f126890aSEmmanuel Vadot	pinctrl-0 = <&msiof1_pins>;
779f126890aSEmmanuel Vadot	pinctrl-names = "default";
780f126890aSEmmanuel Vadot
781f126890aSEmmanuel Vadot	status = "okay";
782f126890aSEmmanuel Vadot
783f126890aSEmmanuel Vadot	pmic: pmic@0 {
784f126890aSEmmanuel Vadot		compatible = "renesas,r2a11302ft";
785f126890aSEmmanuel Vadot		reg = <0>;
786f126890aSEmmanuel Vadot		spi-max-frequency = <6000000>;
787f126890aSEmmanuel Vadot		spi-cpol;
788f126890aSEmmanuel Vadot		spi-cpha;
789f126890aSEmmanuel Vadot	};
790f126890aSEmmanuel Vadot};
791f126890aSEmmanuel Vadot
792f126890aSEmmanuel Vadot&sdhi0 {
793f126890aSEmmanuel Vadot	pinctrl-0 = <&sdhi0_pins>;
794f126890aSEmmanuel Vadot	pinctrl-1 = <&sdhi0_pins_uhs>;
795f126890aSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
796f126890aSEmmanuel Vadot
797f126890aSEmmanuel Vadot	vmmc-supply = <&vcc_sdhi0>;
798f126890aSEmmanuel Vadot	vqmmc-supply = <&vccq_sdhi0>;
799f126890aSEmmanuel Vadot	cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
800f126890aSEmmanuel Vadot	sd-uhs-sdr50;
801f126890aSEmmanuel Vadot	sd-uhs-sdr104;
802f126890aSEmmanuel Vadot	status = "okay";
803f126890aSEmmanuel Vadot};
804f126890aSEmmanuel Vadot
805f126890aSEmmanuel Vadot&sdhi2 {
806f126890aSEmmanuel Vadot	pinctrl-0 = <&sdhi2_pins>;
807f126890aSEmmanuel Vadot	pinctrl-1 = <&sdhi2_pins_uhs>;
808f126890aSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
809f126890aSEmmanuel Vadot
810f126890aSEmmanuel Vadot	vmmc-supply = <&vcc_sdhi2>;
811f126890aSEmmanuel Vadot	vqmmc-supply = <&vccq_sdhi2>;
812f126890aSEmmanuel Vadot	cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
813f126890aSEmmanuel Vadot	sd-uhs-sdr50;
814f126890aSEmmanuel Vadot	status = "okay";
815f126890aSEmmanuel Vadot};
816f126890aSEmmanuel Vadot
817f126890aSEmmanuel Vadot&cpu0 {
818f126890aSEmmanuel Vadot	cpu0-supply = <&vdd_dvfs>;
819f126890aSEmmanuel Vadot};
820f126890aSEmmanuel Vadot
821f126890aSEmmanuel Vadot&i2c0	{
822f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c0_pins>;
823f126890aSEmmanuel Vadot	pinctrl-names = "i2c-exio0";
824f126890aSEmmanuel Vadot};
825f126890aSEmmanuel Vadot
826f126890aSEmmanuel Vadot&iic0	{
827f126890aSEmmanuel Vadot	pinctrl-0 = <&iic0_pins>;
828f126890aSEmmanuel Vadot	pinctrl-names = "i2c-exio0";
829f126890aSEmmanuel Vadot};
830f126890aSEmmanuel Vadot
831f126890aSEmmanuel Vadot&i2c1	{
832f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
833f126890aSEmmanuel Vadot	pinctrl-names = "i2c-exio1";
834f126890aSEmmanuel Vadot};
835f126890aSEmmanuel Vadot
836f126890aSEmmanuel Vadot&iic1	{
837f126890aSEmmanuel Vadot	pinctrl-0 = <&iic1_pins>;
838f126890aSEmmanuel Vadot	pinctrl-names = "i2c-exio1";
839f126890aSEmmanuel Vadot};
840f126890aSEmmanuel Vadot
841f126890aSEmmanuel Vadot&i2c2	{
842f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c2_pins>;
843f126890aSEmmanuel Vadot	pinctrl-names = "i2c-hdmi";
844f126890aSEmmanuel Vadot
845f126890aSEmmanuel Vadot	clock-frequency = <100000>;
846f126890aSEmmanuel Vadot};
847f126890aSEmmanuel Vadot
848f126890aSEmmanuel Vadot&iic2	{
849f126890aSEmmanuel Vadot	pinctrl-0 = <&iic2_pins>;
850f126890aSEmmanuel Vadot	pinctrl-names = "i2c-hdmi";
851f126890aSEmmanuel Vadot
852f126890aSEmmanuel Vadot	clock-frequency = <100000>;
853f126890aSEmmanuel Vadot};
854f126890aSEmmanuel Vadot
855f126890aSEmmanuel Vadot&i2c3	{
856f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c3_pins>;
857f126890aSEmmanuel Vadot	pinctrl-names = "i2c-pwr";
858f126890aSEmmanuel Vadot};
859f126890aSEmmanuel Vadot
860f126890aSEmmanuel Vadot&iic3	{
861f126890aSEmmanuel Vadot	pinctrl-0 = <&iic3_pins>;
862f126890aSEmmanuel Vadot	pinctrl-names = "i2c-pwr";
863f126890aSEmmanuel Vadot};
864f126890aSEmmanuel Vadot
865f126890aSEmmanuel Vadot&pci0 {
866f126890aSEmmanuel Vadot	status = "okay";
867f126890aSEmmanuel Vadot	pinctrl-0 = <&usb0_pins>;
868f126890aSEmmanuel Vadot	pinctrl-names = "default";
869f126890aSEmmanuel Vadot};
870f126890aSEmmanuel Vadot
871f126890aSEmmanuel Vadot&pci1 {
872f126890aSEmmanuel Vadot	status = "okay";
873f126890aSEmmanuel Vadot	pinctrl-0 = <&usb1_pins>;
874f126890aSEmmanuel Vadot	pinctrl-names = "default";
875f126890aSEmmanuel Vadot};
876f126890aSEmmanuel Vadot
877f126890aSEmmanuel Vadot&xhci {
878f126890aSEmmanuel Vadot	status = "okay";
879f126890aSEmmanuel Vadot	pinctrl-0 = <&usb2_pins>;
880f126890aSEmmanuel Vadot	pinctrl-names = "default";
881f126890aSEmmanuel Vadot};
882f126890aSEmmanuel Vadot
883f126890aSEmmanuel Vadot&pci2 {
884f126890aSEmmanuel Vadot	status = "okay";
885f126890aSEmmanuel Vadot	pinctrl-0 = <&usb2_pins>;
886f126890aSEmmanuel Vadot	pinctrl-names = "default";
887f126890aSEmmanuel Vadot};
888f126890aSEmmanuel Vadot
889f126890aSEmmanuel Vadot&hsusb {
890f126890aSEmmanuel Vadot	status = "okay";
891f126890aSEmmanuel Vadot	pinctrl-0 = <&hsusb_pins>;
892f126890aSEmmanuel Vadot	pinctrl-names = "default";
893f126890aSEmmanuel Vadot	renesas,enable-gpio = <&gpio5 18 GPIO_ACTIVE_HIGH>;
894f126890aSEmmanuel Vadot};
895f126890aSEmmanuel Vadot
896f126890aSEmmanuel Vadot&usbphy {
897f126890aSEmmanuel Vadot	status = "okay";
898f126890aSEmmanuel Vadot};
899f126890aSEmmanuel Vadot
900f126890aSEmmanuel Vadot/* HDMI video input */
901f126890aSEmmanuel Vadot&vin0 {
902f126890aSEmmanuel Vadot	pinctrl-0 = <&vin0_pins>;
903f126890aSEmmanuel Vadot	pinctrl-names = "default";
904f126890aSEmmanuel Vadot
905f126890aSEmmanuel Vadot	status = "okay";
906f126890aSEmmanuel Vadot
907f126890aSEmmanuel Vadot	port {
908f126890aSEmmanuel Vadot		vin0ep2: endpoint {
909f126890aSEmmanuel Vadot			remote-endpoint = <&adv7612_out>;
910f126890aSEmmanuel Vadot			bus-width = <24>;
911f126890aSEmmanuel Vadot			hsync-active = <0>;
912f126890aSEmmanuel Vadot			vsync-active = <0>;
913f126890aSEmmanuel Vadot			pclk-sample = <1>;
914f126890aSEmmanuel Vadot			data-active = <1>;
915f126890aSEmmanuel Vadot		};
916f126890aSEmmanuel Vadot	};
917f126890aSEmmanuel Vadot};
918f126890aSEmmanuel Vadot
919f126890aSEmmanuel Vadot/* composite video input */
920f126890aSEmmanuel Vadot&vin1 {
921f126890aSEmmanuel Vadot	pinctrl-0 = <&vin1_pins>;
922f126890aSEmmanuel Vadot	pinctrl-names = "default";
923f126890aSEmmanuel Vadot
924f126890aSEmmanuel Vadot	status = "okay";
925f126890aSEmmanuel Vadot
926f126890aSEmmanuel Vadot	port {
927f126890aSEmmanuel Vadot		vin1ep0: endpoint {
928f126890aSEmmanuel Vadot			remote-endpoint = <&adv7180>;
929f126890aSEmmanuel Vadot			bus-width = <8>;
930f126890aSEmmanuel Vadot		};
931f126890aSEmmanuel Vadot	};
932f126890aSEmmanuel Vadot};
933f126890aSEmmanuel Vadot
934f126890aSEmmanuel Vadot&rcar_sound {
935f126890aSEmmanuel Vadot	pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
936f126890aSEmmanuel Vadot	pinctrl-names = "default";
937f126890aSEmmanuel Vadot
938f126890aSEmmanuel Vadot	/* Single DAI */
939f126890aSEmmanuel Vadot	#sound-dai-cells = <0>;
940f126890aSEmmanuel Vadot
941f126890aSEmmanuel Vadot	status = "okay";
942f126890aSEmmanuel Vadot
943f126890aSEmmanuel Vadot	rcar_sound,dai {
944f126890aSEmmanuel Vadot		dai0 {
945f126890aSEmmanuel Vadot			playback = <&ssi0>, <&src2>, <&dvc0>;
946f126890aSEmmanuel Vadot			capture  = <&ssi1>, <&src3>, <&dvc1>;
947f126890aSEmmanuel Vadot		};
948f126890aSEmmanuel Vadot	};
949f126890aSEmmanuel Vadot};
950f126890aSEmmanuel Vadot
951f126890aSEmmanuel Vadot&rwdt {
952f126890aSEmmanuel Vadot	timeout-sec = <60>;
953f126890aSEmmanuel Vadot	status = "okay";
954f126890aSEmmanuel Vadot};
955f126890aSEmmanuel Vadot
956f126890aSEmmanuel Vadot&ssi1 {
957f126890aSEmmanuel Vadot	shared-pin;
958f126890aSEmmanuel Vadot};
959