xref: /freebsd/sys/contrib/device-tree/src/arm/renesas/r8a7794-silk.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree Source for the SILK board
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (C) 2014 Renesas Electronics Corporation
6f126890aSEmmanuel Vadot * Copyright (C) 2014-2015 Renesas Solutions Corp.
7f126890aSEmmanuel Vadot * Copyright (C) 2014-2015 Cogent Embedded, Inc.
8f126890aSEmmanuel Vadot */
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/*
11f126890aSEmmanuel Vadot * SSI-AK4643
12f126890aSEmmanuel Vadot *
13f126890aSEmmanuel Vadot * SW1: 2-1: AK4643
14f126890aSEmmanuel Vadot *      2-3: ADV7511
15f126890aSEmmanuel Vadot *
16f126890aSEmmanuel Vadot * This command is required before playback/capture:
17f126890aSEmmanuel Vadot *
18f126890aSEmmanuel Vadot *	amixer set "LINEOUT Mixer DACL" on
19f126890aSEmmanuel Vadot */
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot/dts-v1/;
22f126890aSEmmanuel Vadot#include "r8a7794.dtsi"
23f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
24f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot/ {
27f126890aSEmmanuel Vadot	model = "SILK";
28f126890aSEmmanuel Vadot	compatible = "renesas,silk", "renesas,r8a7794";
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot	aliases {
31f126890aSEmmanuel Vadot		serial0 = &scif2;
32f126890aSEmmanuel Vadot		i2c9 = &gpioi2c1;
33f126890aSEmmanuel Vadot		i2c10 = &i2chdmi;
34f126890aSEmmanuel Vadot		mmc0 = &mmcif0;
35f126890aSEmmanuel Vadot		mmc1 = &sdhi1;
36f126890aSEmmanuel Vadot	};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot	chosen {
39f126890aSEmmanuel Vadot		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
40f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
41f126890aSEmmanuel Vadot	};
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot	memory@40000000 {
44f126890aSEmmanuel Vadot		device_type = "memory";
45f126890aSEmmanuel Vadot		reg = <0 0x40000000 0 0x40000000>;
46f126890aSEmmanuel Vadot	};
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot	keyboard {
49f126890aSEmmanuel Vadot		compatible = "gpio-keys";
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel Vadot		pinctrl-0 = <&keyboard_pins>;
52f126890aSEmmanuel Vadot		pinctrl-names = "default";
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot		key-3 {
55f126890aSEmmanuel Vadot			gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
56f126890aSEmmanuel Vadot			linux,code = <KEY_3>;
57f126890aSEmmanuel Vadot			label = "SW3";
58f126890aSEmmanuel Vadot			wakeup-source;
59f126890aSEmmanuel Vadot			debounce-interval = <20>;
60f126890aSEmmanuel Vadot		};
61f126890aSEmmanuel Vadot		key-4 {
62f126890aSEmmanuel Vadot			gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
63f126890aSEmmanuel Vadot			linux,code = <KEY_4>;
64f126890aSEmmanuel Vadot			label = "SW4";
65f126890aSEmmanuel Vadot			wakeup-source;
66f126890aSEmmanuel Vadot			debounce-interval = <20>;
67f126890aSEmmanuel Vadot		};
68f126890aSEmmanuel Vadot		key-6 {
69f126890aSEmmanuel Vadot			gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
70f126890aSEmmanuel Vadot			linux,code = <KEY_6>;
71f126890aSEmmanuel Vadot			label = "SW6";
72f126890aSEmmanuel Vadot			wakeup-source;
73f126890aSEmmanuel Vadot			debounce-interval = <20>;
74f126890aSEmmanuel Vadot		};
75f126890aSEmmanuel Vadot		key-a {
76f126890aSEmmanuel Vadot			gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
77f126890aSEmmanuel Vadot			linux,code = <KEY_A>;
78f126890aSEmmanuel Vadot			label = "SW12-1";
79f126890aSEmmanuel Vadot			wakeup-source;
80f126890aSEmmanuel Vadot			debounce-interval = <20>;
81f126890aSEmmanuel Vadot		};
82f126890aSEmmanuel Vadot		key-b {
83f126890aSEmmanuel Vadot			gpios = <&gpio3 10 GPIO_ACTIVE_LOW>;
84f126890aSEmmanuel Vadot			linux,code = <KEY_B>;
85f126890aSEmmanuel Vadot			label = "SW12-2";
86f126890aSEmmanuel Vadot			wakeup-source;
87f126890aSEmmanuel Vadot			debounce-interval = <20>;
88f126890aSEmmanuel Vadot		};
89f126890aSEmmanuel Vadot		key-c {
90f126890aSEmmanuel Vadot			gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
91f126890aSEmmanuel Vadot			linux,code = <KEY_C>;
92f126890aSEmmanuel Vadot			label = "SW12-3";
93f126890aSEmmanuel Vadot			wakeup-source;
94f126890aSEmmanuel Vadot			debounce-interval = <20>;
95f126890aSEmmanuel Vadot		};
96f126890aSEmmanuel Vadot		key-d {
97f126890aSEmmanuel Vadot			gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
98f126890aSEmmanuel Vadot			linux,code = <KEY_D>;
99f126890aSEmmanuel Vadot			label = "SW12-4";
100f126890aSEmmanuel Vadot			wakeup-source;
101f126890aSEmmanuel Vadot			debounce-interval = <20>;
102f126890aSEmmanuel Vadot		};
103f126890aSEmmanuel Vadot	};
104f126890aSEmmanuel Vadot
105*8d13bc63SEmmanuel Vadot	d1_8v: regulator-d1-8v {
106*8d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
107*8d13bc63SEmmanuel Vadot		regulator-name = "D1.8V";
108*8d13bc63SEmmanuel Vadot		regulator-min-microvolt = <1800000>;
109*8d13bc63SEmmanuel Vadot		regulator-max-microvolt = <1800000>;
110*8d13bc63SEmmanuel Vadot		regulator-boot-on;
111*8d13bc63SEmmanuel Vadot		regulator-always-on;
112*8d13bc63SEmmanuel Vadot	};
113*8d13bc63SEmmanuel Vadot
114f126890aSEmmanuel Vadot	d3_3v: regulator-d3-3v {
115f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
116f126890aSEmmanuel Vadot		regulator-name = "D3.3V";
117f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
118f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
119f126890aSEmmanuel Vadot		regulator-boot-on;
120f126890aSEmmanuel Vadot		regulator-always-on;
121f126890aSEmmanuel Vadot	};
122f126890aSEmmanuel Vadot
123f126890aSEmmanuel Vadot	vcc_sdhi1: regulator-vcc-sdhi1 {
124f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot		regulator-name = "SDHI1 Vcc";
127f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
128f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
129f126890aSEmmanuel Vadot
130f126890aSEmmanuel Vadot		gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
131f126890aSEmmanuel Vadot		enable-active-high;
132f126890aSEmmanuel Vadot	};
133f126890aSEmmanuel Vadot
134f126890aSEmmanuel Vadot	vccq_sdhi1: regulator-vccq-sdhi1 {
135f126890aSEmmanuel Vadot		compatible = "regulator-gpio";
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot		regulator-name = "SDHI1 VccQ";
138f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
139f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
140f126890aSEmmanuel Vadot
141f126890aSEmmanuel Vadot		gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
142f126890aSEmmanuel Vadot		gpios-states = <1>;
143f126890aSEmmanuel Vadot		states = <3300000 1>, <1800000 0>;
144f126890aSEmmanuel Vadot	};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot	vga-encoder {
147f126890aSEmmanuel Vadot		compatible = "adi,adv7123";
148f126890aSEmmanuel Vadot
149f126890aSEmmanuel Vadot		ports {
150f126890aSEmmanuel Vadot			#address-cells = <1>;
151f126890aSEmmanuel Vadot			#size-cells = <0>;
152f126890aSEmmanuel Vadot
153f126890aSEmmanuel Vadot			port@0 {
154f126890aSEmmanuel Vadot				reg = <0>;
155f126890aSEmmanuel Vadot				adv7123_in: endpoint {
156f126890aSEmmanuel Vadot					remote-endpoint = <&du_out_rgb1>;
157f126890aSEmmanuel Vadot				};
158f126890aSEmmanuel Vadot			};
159f126890aSEmmanuel Vadot			port@1 {
160f126890aSEmmanuel Vadot				reg = <1>;
161f126890aSEmmanuel Vadot				adv7123_out: endpoint {
162f126890aSEmmanuel Vadot					remote-endpoint = <&vga_in>;
163f126890aSEmmanuel Vadot				};
164f126890aSEmmanuel Vadot			};
165f126890aSEmmanuel Vadot		};
166f126890aSEmmanuel Vadot	};
167f126890aSEmmanuel Vadot
168f126890aSEmmanuel Vadot	hdmi-out {
169f126890aSEmmanuel Vadot		compatible = "hdmi-connector";
170f126890aSEmmanuel Vadot		type = "a";
171f126890aSEmmanuel Vadot
172f126890aSEmmanuel Vadot		port {
173f126890aSEmmanuel Vadot			hdmi_con: endpoint {
174f126890aSEmmanuel Vadot				remote-endpoint = <&adv7511_out>;
175f126890aSEmmanuel Vadot			};
176f126890aSEmmanuel Vadot		};
177f126890aSEmmanuel Vadot	};
178f126890aSEmmanuel Vadot
179f126890aSEmmanuel Vadot	vga {
180f126890aSEmmanuel Vadot		compatible = "vga-connector";
181f126890aSEmmanuel Vadot
182f126890aSEmmanuel Vadot		port {
183f126890aSEmmanuel Vadot			vga_in: endpoint {
184f126890aSEmmanuel Vadot				remote-endpoint = <&adv7123_out>;
185f126890aSEmmanuel Vadot			};
186f126890aSEmmanuel Vadot		};
187f126890aSEmmanuel Vadot	};
188f126890aSEmmanuel Vadot
189f126890aSEmmanuel Vadot	x2_clk: x2-clock {
190f126890aSEmmanuel Vadot		compatible = "fixed-clock";
191f126890aSEmmanuel Vadot		#clock-cells = <0>;
192f126890aSEmmanuel Vadot		clock-frequency = <148500000>;
193f126890aSEmmanuel Vadot	};
194f126890aSEmmanuel Vadot
195f126890aSEmmanuel Vadot	x3_clk: x3-clock {
196f126890aSEmmanuel Vadot		compatible = "fixed-clock";
197f126890aSEmmanuel Vadot		#clock-cells = <0>;
198f126890aSEmmanuel Vadot		clock-frequency = <74250000>;
199f126890aSEmmanuel Vadot	};
200f126890aSEmmanuel Vadot
201f126890aSEmmanuel Vadot	x9_clk: audio_clock {
202f126890aSEmmanuel Vadot		compatible = "fixed-clock";
203f126890aSEmmanuel Vadot		#clock-cells = <0>;
204f126890aSEmmanuel Vadot		clock-frequency = <12288000>;
205f126890aSEmmanuel Vadot	};
206f126890aSEmmanuel Vadot
207f126890aSEmmanuel Vadot	sound {
208f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
209f126890aSEmmanuel Vadot
210f126890aSEmmanuel Vadot		simple-audio-card,format = "left_j";
211f126890aSEmmanuel Vadot		simple-audio-card,bitclock-master = <&soundcodec>;
212f126890aSEmmanuel Vadot		simple-audio-card,frame-master = <&soundcodec>;
213f126890aSEmmanuel Vadot
214f126890aSEmmanuel Vadot		simple-audio-card,cpu {
215f126890aSEmmanuel Vadot			sound-dai = <&rcar_sound>;
216f126890aSEmmanuel Vadot		};
217f126890aSEmmanuel Vadot
218f126890aSEmmanuel Vadot		soundcodec: simple-audio-card,codec {
219f126890aSEmmanuel Vadot			sound-dai = <&ak4643>;
220f126890aSEmmanuel Vadot			clocks = <&x9_clk>;
221f126890aSEmmanuel Vadot		};
222f126890aSEmmanuel Vadot	};
223f126890aSEmmanuel Vadot
224f126890aSEmmanuel Vadot	gpioi2c1: i2c-9 {
225f126890aSEmmanuel Vadot		#address-cells = <1>;
226f126890aSEmmanuel Vadot		#size-cells = <0>;
227f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
228f126890aSEmmanuel Vadot		status = "disabled";
229f126890aSEmmanuel Vadot		scl-gpios = <&gpio4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
230f126890aSEmmanuel Vadot		sda-gpios = <&gpio4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
231f126890aSEmmanuel Vadot		i2c-gpio,delay-us = <5>;
232f126890aSEmmanuel Vadot	};
233f126890aSEmmanuel Vadot
234f126890aSEmmanuel Vadot	/*
235f126890aSEmmanuel Vadot	 * A fallback to GPIO is provided for I2C1.
236f126890aSEmmanuel Vadot	 */
237*8d13bc63SEmmanuel Vadot	i2chdmi: i2c-mux1 {
238f126890aSEmmanuel Vadot		compatible = "i2c-demux-pinctrl";
239f126890aSEmmanuel Vadot		i2c-parent = <&i2c1>, <&gpioi2c1>;
240f126890aSEmmanuel Vadot		i2c-bus-name = "i2c-hdmi";
241f126890aSEmmanuel Vadot		#address-cells = <1>;
242f126890aSEmmanuel Vadot		#size-cells = <0>;
243f126890aSEmmanuel Vadot
244f126890aSEmmanuel Vadot		ak4643: codec@12 {
245f126890aSEmmanuel Vadot			compatible = "asahi-kasei,ak4643";
246f126890aSEmmanuel Vadot			#sound-dai-cells = <0>;
247f126890aSEmmanuel Vadot			reg = <0x12>;
248f126890aSEmmanuel Vadot		};
249f126890aSEmmanuel Vadot
250f126890aSEmmanuel Vadot		composite-in@20 {
251f126890aSEmmanuel Vadot			compatible = "adi,adv7180";
252f126890aSEmmanuel Vadot			reg = <0x20>;
253f126890aSEmmanuel Vadot
254f126890aSEmmanuel Vadot			port {
255f126890aSEmmanuel Vadot				adv7180: endpoint {
256f126890aSEmmanuel Vadot					bus-width = <8>;
257f126890aSEmmanuel Vadot					remote-endpoint = <&vin0ep>;
258f126890aSEmmanuel Vadot				};
259f126890aSEmmanuel Vadot			};
260f126890aSEmmanuel Vadot		};
261f126890aSEmmanuel Vadot
262f126890aSEmmanuel Vadot		hdmi@39 {
263f126890aSEmmanuel Vadot			compatible = "adi,adv7511w";
264f126890aSEmmanuel Vadot			reg = <0x39>;
265f126890aSEmmanuel Vadot			interrupt-parent = <&gpio5>;
266f126890aSEmmanuel Vadot			interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
267f126890aSEmmanuel Vadot
268*8d13bc63SEmmanuel Vadot			avdd-supply = <&d1_8v>;
269*8d13bc63SEmmanuel Vadot			dvdd-supply = <&d1_8v>;
270*8d13bc63SEmmanuel Vadot			pvdd-supply = <&d1_8v>;
271*8d13bc63SEmmanuel Vadot			dvdd-3v-supply = <&d3_3v>;
272*8d13bc63SEmmanuel Vadot			bgvdd-supply = <&d1_8v>;
273*8d13bc63SEmmanuel Vadot
274f126890aSEmmanuel Vadot			adi,input-depth = <8>;
275f126890aSEmmanuel Vadot			adi,input-colorspace = "rgb";
276f126890aSEmmanuel Vadot			adi,input-clock = "1x";
277f126890aSEmmanuel Vadot
278f126890aSEmmanuel Vadot			ports {
279f126890aSEmmanuel Vadot				#address-cells = <1>;
280f126890aSEmmanuel Vadot				#size-cells = <0>;
281f126890aSEmmanuel Vadot
282f126890aSEmmanuel Vadot				port@0 {
283f126890aSEmmanuel Vadot					reg = <0>;
284f126890aSEmmanuel Vadot					adv7511_in: endpoint {
285f126890aSEmmanuel Vadot						remote-endpoint = <&du_out_rgb0>;
286f126890aSEmmanuel Vadot					};
287f126890aSEmmanuel Vadot				};
288f126890aSEmmanuel Vadot
289f126890aSEmmanuel Vadot				port@1 {
290f126890aSEmmanuel Vadot					reg = <1>;
291f126890aSEmmanuel Vadot					adv7511_out: endpoint {
292f126890aSEmmanuel Vadot						remote-endpoint = <&hdmi_con>;
293f126890aSEmmanuel Vadot					};
294f126890aSEmmanuel Vadot				};
295f126890aSEmmanuel Vadot			};
296f126890aSEmmanuel Vadot		};
297f126890aSEmmanuel Vadot
298f126890aSEmmanuel Vadot		eeprom@50 {
299f126890aSEmmanuel Vadot			compatible = "renesas,r1ex24002", "atmel,24c02";
300f126890aSEmmanuel Vadot			reg = <0x50>;
301f126890aSEmmanuel Vadot			pagesize = <16>;
302f126890aSEmmanuel Vadot		};
303f126890aSEmmanuel Vadot	};
304f126890aSEmmanuel Vadot};
305f126890aSEmmanuel Vadot
306f126890aSEmmanuel Vadot&extal_clk {
307f126890aSEmmanuel Vadot	clock-frequency = <20000000>;
308f126890aSEmmanuel Vadot};
309f126890aSEmmanuel Vadot
310f126890aSEmmanuel Vadot&pfc {
311f126890aSEmmanuel Vadot	pinctrl-0 = <&scif_clk_pins>;
312f126890aSEmmanuel Vadot	pinctrl-names = "default";
313f126890aSEmmanuel Vadot
314f126890aSEmmanuel Vadot	scif2_pins: scif2 {
315f126890aSEmmanuel Vadot		groups = "scif2_data";
316f126890aSEmmanuel Vadot		function = "scif2";
317f126890aSEmmanuel Vadot	};
318f126890aSEmmanuel Vadot
319f126890aSEmmanuel Vadot	scif_clk_pins: scif_clk {
320f126890aSEmmanuel Vadot		groups = "scif_clk";
321f126890aSEmmanuel Vadot		function = "scif_clk";
322f126890aSEmmanuel Vadot	};
323f126890aSEmmanuel Vadot
324f126890aSEmmanuel Vadot	ether_pins: ether {
325f126890aSEmmanuel Vadot		groups = "eth_link", "eth_mdio", "eth_rmii";
326f126890aSEmmanuel Vadot		function = "eth";
327f126890aSEmmanuel Vadot	};
328f126890aSEmmanuel Vadot
329f126890aSEmmanuel Vadot	phy1_pins: phy1 {
330f126890aSEmmanuel Vadot		groups = "intc_irq8";
331f126890aSEmmanuel Vadot		function = "intc";
332f126890aSEmmanuel Vadot	};
333f126890aSEmmanuel Vadot
334f126890aSEmmanuel Vadot	i2c1_pins: i2c1 {
335f126890aSEmmanuel Vadot		groups = "i2c1";
336f126890aSEmmanuel Vadot		function = "i2c1";
337f126890aSEmmanuel Vadot	};
338f126890aSEmmanuel Vadot
339f126890aSEmmanuel Vadot	mmcif0_pins: mmcif0 {
340f126890aSEmmanuel Vadot		groups = "mmc_data8", "mmc_ctrl";
341f126890aSEmmanuel Vadot		function = "mmc";
342f126890aSEmmanuel Vadot	};
343f126890aSEmmanuel Vadot
344f126890aSEmmanuel Vadot	sdhi1_pins: sd1 {
345f126890aSEmmanuel Vadot		groups = "sdhi1_data4", "sdhi1_ctrl";
346f126890aSEmmanuel Vadot		function = "sdhi1";
347f126890aSEmmanuel Vadot	};
348f126890aSEmmanuel Vadot
349f126890aSEmmanuel Vadot	qspi_pins: qspi {
350f126890aSEmmanuel Vadot		groups = "qspi_ctrl", "qspi_data4";
351f126890aSEmmanuel Vadot		function = "qspi";
352f126890aSEmmanuel Vadot	};
353f126890aSEmmanuel Vadot
354f126890aSEmmanuel Vadot	vin0_pins: vin0 {
355f126890aSEmmanuel Vadot		groups = "vin0_data8", "vin0_clk";
356f126890aSEmmanuel Vadot		function = "vin0";
357f126890aSEmmanuel Vadot	};
358f126890aSEmmanuel Vadot
359f126890aSEmmanuel Vadot	usb0_pins: usb0 {
360f126890aSEmmanuel Vadot		groups = "usb0";
361f126890aSEmmanuel Vadot		function = "usb0";
362f126890aSEmmanuel Vadot	};
363f126890aSEmmanuel Vadot
364f126890aSEmmanuel Vadot	usb1_pins: usb1 {
365f126890aSEmmanuel Vadot		groups = "usb1";
366f126890aSEmmanuel Vadot		function = "usb1";
367f126890aSEmmanuel Vadot	};
368f126890aSEmmanuel Vadot
369f126890aSEmmanuel Vadot	du0_pins: du0 {
370f126890aSEmmanuel Vadot		groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out";
371f126890aSEmmanuel Vadot		function = "du0";
372f126890aSEmmanuel Vadot	};
373f126890aSEmmanuel Vadot
374f126890aSEmmanuel Vadot	du1_pins: du1 {
375f126890aSEmmanuel Vadot		groups = "du1_rgb666", "du1_sync", "du1_disp", "du1_clk0_out";
376f126890aSEmmanuel Vadot		function = "du1";
377f126890aSEmmanuel Vadot	};
378f126890aSEmmanuel Vadot
379f126890aSEmmanuel Vadot	keyboard_pins: keyboard {
380f126890aSEmmanuel Vadot		pins = "GP_3_9", "GP_3_10", "GP_3_11", "GP_3_12";
381f126890aSEmmanuel Vadot		bias-pull-up;
382f126890aSEmmanuel Vadot	};
383f126890aSEmmanuel Vadot
384f126890aSEmmanuel Vadot	ssi_pins: sound {
385f126890aSEmmanuel Vadot		groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
386f126890aSEmmanuel Vadot		function = "ssi";
387f126890aSEmmanuel Vadot	};
388f126890aSEmmanuel Vadot
389f126890aSEmmanuel Vadot	audio_clk_pins: audio_clk {
390f126890aSEmmanuel Vadot		groups = "audio_clkc";
391f126890aSEmmanuel Vadot		function = "audio_clk";
392f126890aSEmmanuel Vadot	};
393f126890aSEmmanuel Vadot};
394f126890aSEmmanuel Vadot
395f126890aSEmmanuel Vadot&scif2 {
396f126890aSEmmanuel Vadot	pinctrl-0 = <&scif2_pins>;
397f126890aSEmmanuel Vadot	pinctrl-names = "default";
398f126890aSEmmanuel Vadot
399f126890aSEmmanuel Vadot	status = "okay";
400f126890aSEmmanuel Vadot};
401f126890aSEmmanuel Vadot
402f126890aSEmmanuel Vadot&scif_clk {
403f126890aSEmmanuel Vadot	clock-frequency = <14745600>;
404f126890aSEmmanuel Vadot};
405f126890aSEmmanuel Vadot
406f126890aSEmmanuel Vadot&ether {
407f126890aSEmmanuel Vadot	pinctrl-0 = <&ether_pins>, <&phy1_pins>;
408f126890aSEmmanuel Vadot	pinctrl-names = "default";
409f126890aSEmmanuel Vadot
410f126890aSEmmanuel Vadot	phy-handle = <&phy1>;
411f126890aSEmmanuel Vadot	renesas,ether-link-active-low;
412f126890aSEmmanuel Vadot	status = "okay";
413f126890aSEmmanuel Vadot
414f126890aSEmmanuel Vadot	phy1: ethernet-phy@1 {
415f126890aSEmmanuel Vadot		compatible = "ethernet-phy-id0022.1537",
416f126890aSEmmanuel Vadot			     "ethernet-phy-ieee802.3-c22";
417f126890aSEmmanuel Vadot		reg = <1>;
418f126890aSEmmanuel Vadot		interrupt-parent = <&irqc0>;
419f126890aSEmmanuel Vadot		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
420f126890aSEmmanuel Vadot		micrel,led-mode = <1>;
421f126890aSEmmanuel Vadot		reset-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
422f126890aSEmmanuel Vadot	};
423f126890aSEmmanuel Vadot};
424f126890aSEmmanuel Vadot
425f126890aSEmmanuel Vadot&i2c1 {
426f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
427f126890aSEmmanuel Vadot	pinctrl-names = "i2c-hdmi";
428f126890aSEmmanuel Vadot
429f126890aSEmmanuel Vadot	clock-frequency = <400000>;
430f126890aSEmmanuel Vadot};
431f126890aSEmmanuel Vadot
432f126890aSEmmanuel Vadot&i2c7 {
433f126890aSEmmanuel Vadot	status = "okay";
434f126890aSEmmanuel Vadot	clock-frequency = <100000>;
435f126890aSEmmanuel Vadot
436f126890aSEmmanuel Vadot	pmic@58 {
437f126890aSEmmanuel Vadot		compatible = "dlg,da9063";
438f126890aSEmmanuel Vadot		reg = <0x58>;
439f126890aSEmmanuel Vadot		interrupt-parent = <&gpio3>;
440f126890aSEmmanuel Vadot		interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
441f126890aSEmmanuel Vadot		interrupt-controller;
442*8d13bc63SEmmanuel Vadot		#interrupt-cells = <2>;
443f126890aSEmmanuel Vadot
444f126890aSEmmanuel Vadot		onkey {
445f126890aSEmmanuel Vadot			compatible = "dlg,da9063-onkey";
446f126890aSEmmanuel Vadot		};
447f126890aSEmmanuel Vadot
448f126890aSEmmanuel Vadot		rtc {
449f126890aSEmmanuel Vadot			compatible = "dlg,da9063-rtc";
450f126890aSEmmanuel Vadot		};
451f126890aSEmmanuel Vadot
452f126890aSEmmanuel Vadot		watchdog {
453f126890aSEmmanuel Vadot			compatible = "dlg,da9063-watchdog";
454f126890aSEmmanuel Vadot		};
455f126890aSEmmanuel Vadot	};
456f126890aSEmmanuel Vadot};
457f126890aSEmmanuel Vadot
458f126890aSEmmanuel Vadot&mmcif0 {
459f126890aSEmmanuel Vadot	pinctrl-0 = <&mmcif0_pins>;
460f126890aSEmmanuel Vadot	pinctrl-names = "default";
461f126890aSEmmanuel Vadot
462f126890aSEmmanuel Vadot	vmmc-supply = <&d3_3v>;
463f126890aSEmmanuel Vadot	vqmmc-supply = <&d3_3v>;
464f126890aSEmmanuel Vadot	bus-width = <8>;
465f126890aSEmmanuel Vadot	non-removable;
466f126890aSEmmanuel Vadot	status = "okay";
467f126890aSEmmanuel Vadot};
468f126890aSEmmanuel Vadot
469f126890aSEmmanuel Vadot&sdhi1 {
470f126890aSEmmanuel Vadot	pinctrl-0 = <&sdhi1_pins>;
471f126890aSEmmanuel Vadot	pinctrl-names = "default";
472f126890aSEmmanuel Vadot
473f126890aSEmmanuel Vadot	vmmc-supply = <&vcc_sdhi1>;
474f126890aSEmmanuel Vadot	vqmmc-supply = <&vccq_sdhi1>;
475f126890aSEmmanuel Vadot	cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
476f126890aSEmmanuel Vadot	status = "okay";
477f126890aSEmmanuel Vadot};
478f126890aSEmmanuel Vadot
479f126890aSEmmanuel Vadot&qspi {
480f126890aSEmmanuel Vadot	pinctrl-0 = <&qspi_pins>;
481f126890aSEmmanuel Vadot	pinctrl-names = "default";
482f126890aSEmmanuel Vadot
483f126890aSEmmanuel Vadot	status = "okay";
484f126890aSEmmanuel Vadot
485f126890aSEmmanuel Vadot	flash@0 {
486f126890aSEmmanuel Vadot		compatible = "spansion,s25fl512s", "jedec,spi-nor";
487f126890aSEmmanuel Vadot		reg = <0>;
488f126890aSEmmanuel Vadot		spi-max-frequency = <30000000>;
489f126890aSEmmanuel Vadot		spi-tx-bus-width = <4>;
490f126890aSEmmanuel Vadot		spi-rx-bus-width = <4>;
491f126890aSEmmanuel Vadot		spi-cpol;
492f126890aSEmmanuel Vadot		spi-cpha;
493f126890aSEmmanuel Vadot		m25p,fast-read;
494f126890aSEmmanuel Vadot
495f126890aSEmmanuel Vadot		partitions {
496f126890aSEmmanuel Vadot			compatible = "fixed-partitions";
497f126890aSEmmanuel Vadot			#address-cells = <1>;
498f126890aSEmmanuel Vadot			#size-cells = <1>;
499f126890aSEmmanuel Vadot
500f126890aSEmmanuel Vadot			partition@0 {
501f126890aSEmmanuel Vadot				label = "loader";
502f126890aSEmmanuel Vadot				reg = <0x00000000 0x00040000>;
503f126890aSEmmanuel Vadot				read-only;
504f126890aSEmmanuel Vadot			};
505f126890aSEmmanuel Vadot			partition@40000 {
506f126890aSEmmanuel Vadot				label = "user";
507f126890aSEmmanuel Vadot				reg = <0x00040000 0x00400000>;
508f126890aSEmmanuel Vadot				read-only;
509f126890aSEmmanuel Vadot			};
510f126890aSEmmanuel Vadot			partition@440000 {
511f126890aSEmmanuel Vadot				label = "flash";
512f126890aSEmmanuel Vadot				reg = <0x00440000 0x03bc0000>;
513f126890aSEmmanuel Vadot			};
514f126890aSEmmanuel Vadot		};
515f126890aSEmmanuel Vadot	};
516f126890aSEmmanuel Vadot};
517f126890aSEmmanuel Vadot
518f126890aSEmmanuel Vadot/* composite video input */
519f126890aSEmmanuel Vadot&vin0 {
520f126890aSEmmanuel Vadot	status = "okay";
521f126890aSEmmanuel Vadot	pinctrl-0 = <&vin0_pins>;
522f126890aSEmmanuel Vadot	pinctrl-names = "default";
523f126890aSEmmanuel Vadot
524f126890aSEmmanuel Vadot	port {
525f126890aSEmmanuel Vadot		vin0ep: endpoint {
526f126890aSEmmanuel Vadot			remote-endpoint = <&adv7180>;
527f126890aSEmmanuel Vadot			bus-width = <8>;
528f126890aSEmmanuel Vadot		};
529f126890aSEmmanuel Vadot	};
530f126890aSEmmanuel Vadot};
531f126890aSEmmanuel Vadot
532f126890aSEmmanuel Vadot&pci0 {
533f126890aSEmmanuel Vadot	status = "okay";
534f126890aSEmmanuel Vadot	pinctrl-0 = <&usb0_pins>;
535f126890aSEmmanuel Vadot	pinctrl-names = "default";
536f126890aSEmmanuel Vadot};
537f126890aSEmmanuel Vadot
538f126890aSEmmanuel Vadot&pci1 {
539f126890aSEmmanuel Vadot	status = "okay";
540f126890aSEmmanuel Vadot	pinctrl-0 = <&usb1_pins>;
541f126890aSEmmanuel Vadot	pinctrl-names = "default";
542f126890aSEmmanuel Vadot};
543f126890aSEmmanuel Vadot
544f126890aSEmmanuel Vadot&usbphy {
545f126890aSEmmanuel Vadot	status = "okay";
546f126890aSEmmanuel Vadot};
547f126890aSEmmanuel Vadot
548f126890aSEmmanuel Vadot&du {
549f126890aSEmmanuel Vadot	pinctrl-0 = <&du0_pins>, <&du1_pins>;
550f126890aSEmmanuel Vadot	pinctrl-names = "default";
551f126890aSEmmanuel Vadot	status = "okay";
552f126890aSEmmanuel Vadot
553f126890aSEmmanuel Vadot	clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
554f126890aSEmmanuel Vadot		 <&x2_clk>, <&x3_clk>;
555f126890aSEmmanuel Vadot	clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
556f126890aSEmmanuel Vadot
557f126890aSEmmanuel Vadot	ports {
558f126890aSEmmanuel Vadot		port@0 {
559f126890aSEmmanuel Vadot			endpoint {
560f126890aSEmmanuel Vadot				remote-endpoint = <&adv7511_in>;
561f126890aSEmmanuel Vadot			};
562f126890aSEmmanuel Vadot		};
563f126890aSEmmanuel Vadot		port@1 {
564f126890aSEmmanuel Vadot			endpoint {
565f126890aSEmmanuel Vadot				remote-endpoint = <&adv7123_in>;
566f126890aSEmmanuel Vadot			};
567f126890aSEmmanuel Vadot		};
568f126890aSEmmanuel Vadot	};
569f126890aSEmmanuel Vadot};
570f126890aSEmmanuel Vadot
571f126890aSEmmanuel Vadot&rcar_sound {
572f126890aSEmmanuel Vadot	pinctrl-0 = <&ssi_pins>, <&audio_clk_pins>;
573f126890aSEmmanuel Vadot	pinctrl-names = "default";
574f126890aSEmmanuel Vadot	status = "okay";
575f126890aSEmmanuel Vadot
576f126890aSEmmanuel Vadot	/* Single DAI */
577f126890aSEmmanuel Vadot	#sound-dai-cells = <0>;
578f126890aSEmmanuel Vadot
579f126890aSEmmanuel Vadot	rcar_sound,dai {
580f126890aSEmmanuel Vadot		dai0 {
581f126890aSEmmanuel Vadot			playback = <&ssi0>;
582f126890aSEmmanuel Vadot			capture  = <&ssi1>;
583f126890aSEmmanuel Vadot		};
584f126890aSEmmanuel Vadot	};
585f126890aSEmmanuel Vadot};
586f126890aSEmmanuel Vadot
587f126890aSEmmanuel Vadot&rwdt {
588f126890aSEmmanuel Vadot	timeout-sec = <60>;
589f126890aSEmmanuel Vadot	status = "okay";
590f126890aSEmmanuel Vadot};
591f126890aSEmmanuel Vadot
592f126890aSEmmanuel Vadot&ssi1 {
593f126890aSEmmanuel Vadot	shared-pin;
594f126890aSEmmanuel Vadot};
595