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