xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/ulcb-kf.dtsi (revision b9bf24346cdd417ff5368584937983e7216eabe5)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Kingfisher (ULCB extension) board
4 *
5 * Copyright (C) 2017 Renesas Electronics Corp.
6 * Copyright (C) 2017 Cogent Embedded, Inc.
7 */
8
9/ {
10	aliases {
11		serial1 = &hscif0;
12		serial2 = &scif1;
13		serial3 = &hscif1;
14		mmc2 = &sdhi3;
15	};
16
17	clksndsel: clksndsel {
18		#clock-cells = <0>;
19		compatible = "gpio-mux-clock";
20		clocks = <&cs2000>, <&audio_clk_a>; /* clk8snd, clksnd */
21		select-gpios = <&gpio_exp_75 13 GPIO_ACTIVE_HIGH>;
22	};
23
24	hdmi1-out {
25		compatible = "hdmi-connector";
26		type = "a";
27
28		port {
29			hdmi1_con: endpoint {
30				remote-endpoint = <&adv7513_out>;
31			};
32		};
33	};
34
35	reg_t1p8v: regulator-t1p8v {
36		compatible = "regulator-fixed";
37		regulator-name = "T1.8V";
38		regulator-min-microvolt = <1800000>;
39		regulator-max-microvolt = <1800000>;
40		regulator-boot-on;
41		regulator-always-on;
42	};
43
44	pcie_1v5: regulator-pcie-1v5 {
45		compatible = "regulator-fixed";
46		regulator-name = "pcie-1v5";
47		regulator-min-microvolt = <1500000>;
48		regulator-max-microvolt = <1500000>;
49		gpio = <&gpio_exp_77 15 GPIO_ACTIVE_HIGH>;
50		enable-active-high;
51	};
52
53	pcie_3v3: regulator-pcie-3v3 {
54		compatible = "regulator-fixed";
55		regulator-name = "pcie-3v3";
56		regulator-min-microvolt = <3300000>;
57		regulator-max-microvolt = <3300000>;
58		gpio = <&gpio_exp_77 14 GPIO_ACTIVE_HIGH>;
59		enable-active-high;
60	};
61
62	reg_5v: regulator-5v {
63		compatible = "regulator-fixed";
64		regulator-name = "fixed-5V";
65		regulator-min-microvolt = <5000000>;
66		regulator-max-microvolt = <5000000>;
67		regulator-boot-on;
68		regulator-always-on;
69	};
70
71	wlan_en: regulator-wlan_en {
72		compatible = "regulator-fixed";
73		regulator-name = "wlan-en-regulator";
74
75		regulator-min-microvolt = <3300000>;
76		regulator-max-microvolt = <3300000>;
77
78		gpio = <&gpio_exp_74 4 GPIO_ACTIVE_HIGH>;
79		startup-delay-us = <70000>;
80		enable-active-high;
81	};
82};
83
84&can0 {
85	pinctrl-0 = <&can0_pins>;
86	pinctrl-names = "default";
87	status = "okay";
88};
89
90&can1 {
91	pinctrl-0 = <&can1_pins>;
92	pinctrl-names = "default";
93	status = "okay";
94};
95
96&du {
97	ports {
98		port@0 {
99			du_out_rgb: endpoint {
100				remote-endpoint = <&adv7513_in>;
101			};
102		};
103	};
104};
105
106&ehci0 {
107	dr_mode = "otg";
108	status = "okay";
109};
110
111&hscif0 {
112	pinctrl-0 = <&hscif0_pins>;
113	pinctrl-names = "default";
114	uart-has-rtscts;
115
116	status = "okay";
117};
118
119&hscif1 {
120	pinctrl-0 = <&hscif1_pins>;
121	pinctrl-names = "default";
122	uart-has-rtscts;
123
124	status = "okay";
125};
126
127&hsusb {
128	dr_mode = "otg";
129	status = "okay";
130};
131
132&i2c2 {
133	i2cmux2: i2c-mux@71 {
134		compatible = "nxp,pca9548";
135		#address-cells = <1>;
136		#size-cells = <0>;
137		reg = <0x71>;
138		reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
139
140		/* HDMIoSDA, HDMIoSCL */
141		i2c@4 {
142			#address-cells = <1>;
143			#size-cells = <0>;
144			reg = <4>;
145
146			hdmi@3d {
147				compatible = "adi,adv7513";
148				reg = <0x3d>;
149
150				pinctrl-0 = <&hdmi1_pins>;
151				pinctrl-names = "default";
152
153				interrupt-parent = <&gpio2>;
154				interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
155
156				clocks = <&cs2000>;
157				clock-names = "cec";
158
159				pd-gpios = <&gpio_exp_75 5 GPIO_ACTIVE_LOW>;
160
161				avdd-supply = <&reg_t1p8v>;
162				dvdd-supply = <&reg_t1p8v>;
163				pvdd-supply = <&reg_t1p8v>;
164				dvdd-3v-supply = <&reg_3p3v>;
165				bgvdd-supply = <&reg_t1p8v>;
166
167				adi,input-depth = <8>;
168				adi,input-colorspace = "rgb";
169				adi,input-clock = "1x";
170
171				ports {
172					#address-cells = <1>;
173					#size-cells = <0>;
174
175					port@0 {
176						reg = <0>;
177						adv7513_in: endpoint {
178							remote-endpoint = <&du_out_rgb>;
179						};
180					};
181
182					port@1 {
183						reg = <1>;
184						adv7513_out: endpoint {
185							remote-endpoint = <&hdmi1_con>;
186						};
187					};
188				};
189			};
190		};
191
192		/* Audio_SDA, Audio_SCL */
193		i2c@7 {
194			#address-cells = <1>;
195			#size-cells = <0>;
196			reg = <7>;
197
198			accelerometer@1d {
199				compatible = "st,lsm9ds0-imu";
200				reg = <0x1d>;
201
202				vdd-supply = <&reg_3p3v>;
203				vddio-supply = <&reg_3p3v>;
204			};
205
206			pcm3168a: audio-codec@44 {
207				#sound-dai-cells = <0>;
208				compatible = "ti,pcm3168a";
209				reg = <0x44>;
210				clocks = <&clksndsel>;
211				clock-names = "scki";
212
213				VDD1-supply = <&reg_3p3v>;
214				VDD2-supply = <&reg_3p3v>;
215				VCCAD1-supply = <&reg_5v>;
216				VCCAD2-supply = <&reg_5v>;
217				VCCDA1-supply = <&reg_5v>;
218				VCCDA2-supply = <&reg_5v>;
219			};
220
221			gyroscope@6b {
222				compatible = "st,lsm9ds0-gyro";
223				reg = <0x6b>;
224
225				vdd-supply = <&reg_3p3v>;
226				vddio-supply = <&reg_3p3v>;
227			};
228		};
229	};
230
231	/* U11 */
232	gpio_exp_74: gpio@74 {
233		compatible = "ti,tca9539";
234		reg = <0x74>;
235		gpio-controller;
236		#gpio-cells = <2>;
237		interrupt-controller;
238		interrupt-parent = <&gpio6>;
239		interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
240
241		audio-out-off-hog {
242			gpio-hog;
243			gpios = <0 GPIO_ACTIVE_HIGH>; /* P00 */
244			output-high;
245			line-name = "Audio_Out_OFF";
246		};
247
248		hub-pwen-hog {
249			gpio-hog;
250			gpios = <6 GPIO_ACTIVE_HIGH>;
251			output-high;
252			line-name = "HUB pwen";
253		};
254
255		hub-rst-hog {
256			gpio-hog;
257			gpios = <7 GPIO_ACTIVE_HIGH>;
258			output-high;
259			line-name = "HUB rst";
260		};
261
262		otg-extlpn-hog {
263			gpio-hog;
264			gpios = <9 GPIO_ACTIVE_HIGH>;
265			output-high;
266			line-name = "OTG EXTLPn";
267		};
268
269		otg-offvbusn-hog {
270			gpio-hog;
271			gpios = <8 GPIO_ACTIVE_HIGH>;
272			output-low;
273			line-name = "OTG OFFVBUSn";
274		};
275
276		sd-wifi-mux-hog {
277			gpio-hog;
278			gpios = <5 GPIO_ACTIVE_HIGH>;
279			output-low;	/* Connect WL1837 */
280			line-name = "SD WiFi mux";
281		};
282
283		snd-rst-hog {
284			gpio-hog;
285			gpios = <15 GPIO_ACTIVE_HIGH>; /* P17 */
286			output-high;
287			line-name = "SND_RST";
288		};
289	};
290
291	/* U5 */
292	gpio_exp_75: gpio@75 {
293		compatible = "ti,tca9539";
294		reg = <0x75>;
295		gpio-controller;
296		#gpio-cells = <2>;
297		interrupt-controller;
298		interrupt-parent = <&gpio6>;
299		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
300	};
301};
302
303&i2c4 {
304	i2cmux4: i2c-mux@71 {
305		compatible = "nxp,pca9548";
306		#address-cells = <1>;
307		#size-cells = <0>;
308		reg = <0x71>;
309		reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
310	};
311
312	gpio_exp_76: gpio@76 {
313		compatible = "ti,tca9539";
314		reg = <0x76>;
315		gpio-controller;
316		#gpio-cells = <2>;
317		interrupt-controller;
318		interrupt-parent = <&gpio7>;
319		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
320	};
321
322	gpio_exp_77: gpio@77 {
323		compatible = "ti,tca9539";
324		reg = <0x77>;
325		gpio-controller;
326		#gpio-cells = <2>;
327		interrupt-controller;
328		interrupt-parent = <&gpio5>;
329		interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
330	};
331};
332
333&ohci0 {
334	dr_mode = "otg";
335	status = "okay";
336};
337
338&pcie_bus_clk {
339	clock-frequency = <100000000>;
340};
341
342&pciec0 {
343	status = "okay";
344};
345
346&pciec1 {
347	status = "okay";
348
349	vpcie1v5-supply = <&pcie_1v5>;
350	vpcie3v3-supply = <&pcie_3v3>;
351};
352
353&pfc {
354	can0_pins: can0 {
355		groups = "can0_data_a";
356		function = "can0";
357	};
358
359	can1_pins: can1 {
360		groups = "can1_data";
361		function = "can1";
362	};
363
364	hdmi1_pins: hdmi1 {
365		adv7513-interrupt {
366			pins = "GP_2_14";
367			bias-pull-up;
368		};
369
370		du {
371			groups = "du_rgb888", "du_sync", "du_clk_out_0",
372				 "du_disp";
373			function = "du";
374		};
375	};
376
377	hscif0_pins: hscif0 {
378		groups = "hscif0_data", "hscif0_ctrl";
379		function = "hscif0";
380	};
381
382	hscif1_pins: hscif1 {
383		groups = "hscif1_data_a", "hscif1_ctrl_a";
384		function = "hscif1";
385	};
386
387	scif1_pins: scif1 {
388		groups = "scif1_data_b";
389		function = "scif1";
390	};
391
392	sdhi3_pins: sdhi3 {
393		groups = "sdhi3_data4", "sdhi3_ctrl";
394		function = "sdhi3";
395		power-source = <3300>;
396	};
397
398	sound_pcm_pins: sound-pcm {
399		groups = "ssi349_ctrl", "ssi3_data", "ssi4_data";
400		function = "ssi";
401	};
402
403	usb0_pins: usb0 {
404		groups = "usb0";
405		function = "usb0";
406	};
407};
408
409&rcar_sound {
410	pinctrl-0 = <&sound_pins
411		     &sound_clk_pins
412		     &sound_pcm_pins>;
413};
414
415&scif1 {
416	pinctrl-0 = <&scif1_pins>;
417	pinctrl-names = "default";
418
419	status = "okay";
420
421	gnss {
422		compatible = "u-blox,neo-m8";
423		reset-gpios = <&gpio_exp_75 6 GPIO_ACTIVE_LOW>;
424		vcc-supply = <&reg_3p3v>;
425		current-speed = <9600>;
426	};
427};
428
429&sdhi3 {
430	pinctrl-0 = <&sdhi3_pins>;
431	pinctrl-names = "default";
432
433	vmmc-supply = <&wlan_en>;
434	vqmmc-supply = <&wlan_en>;
435	bus-width = <4>;
436	no-1-8-v;
437	non-removable;
438	cap-power-off-card;
439	keep-power-in-suspend;
440	max-frequency = <26000000>;
441	status = "okay";
442
443	#address-cells = <1>;
444	#size-cells = <0>;
445	wlcore: wlcore@2 {
446		compatible = "ti,wl1837";
447		reg = <2>;
448		interrupt-parent = <&gpio1>;
449		interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
450	};
451};
452
453&ssi4 {
454	shared-pin;
455};
456
457&usb2_phy0 {
458	pinctrl-0 = <&usb0_pins>;
459	pinctrl-names = "default";
460
461	status = "okay";
462};
463
464&xhci0 {
465	status = "okay";
466};
467
468/*
469 * For sound-test.
470 *
471 * We can switch Audio Card for testing
472 * see also ulcb.dtsi
473 *
474 * #include "ulcb-kf-simple-audio-card.dtsi"
475 * #include "ulcb-kf-simple-audio-card-mix+split.dtsi"
476 * #include "ulcb-kf-audio-graph-card.dtsi"
477 * #include "ulcb-kf-audio-graph-card-mix+split.dtsi"
478 * #include "ulcb-kf-audio-graph-card2-mix+split.dtsi"
479 */
480#include "ulcb-kf-audio-graph-card2.dtsi"
481