xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-emcon-avari.dtsi (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2//
3// Copyright (C) 2018 emtrion GmbH
4//
5
6/ {
7	aliases {
8		boardid = &boardid;
9		mmc0 = &usdhc3;
10		mmc1 = &usdhc2;
11		mmc2 = &usdhc1;
12		mmc3 = &usdhc4;
13	};
14
15	reg_wall_5p0: reg-wall5p0 {
16		compatible = "regulator-fixed";
17		regulator-name = "Main-Supply";
18		regulator-min-microvolt = <5000000>;
19		regulator-max-microvolt = <5000000>;
20		regulator-always-on;
21		regulator-boot-on;
22	};
23
24	reg_base3p3: reg-base3p3 {
25		compatible = "regulator-fixed";
26		vin-supply = <&reg_wall_5p0>;
27		regulator-name = "3V3-avari";
28		regulator-min-microvolt = <3300000>;
29		regulator-max-microvolt = <3300000>;
30		regulator-always-on;
31		regulator-boot-on;
32	};
33
34	reg_base1p5: reg-base1p5 {
35		compatible = "regulator-fixed";
36		vin-supply = <&reg_base3p3>;
37		regulator-name = "1V5-avari";
38		regulator-min-microvolt = <1500000>;
39		regulator-max-microvolt = <1500000>;
40		regulator-always-on;
41		regulator-boot-on;
42	};
43
44	reg_usb_otg: reg-otgvbus {
45		compatible = "regulator-fixed";
46		vin-supply = <&reg_wall_5p0>;
47		regulator-name = "OTG_VBUS";
48		regulator-min-microvolt = <5000000>;
49		regulator-max-microvolt = <5000000>;
50		gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
51		regulator-always-on;
52	};
53
54	clk_codec: clock-codec {
55		compatible = "fixed-clock";
56		#clock-cells = <0>;
57		clock-frequency = <12000000>;
58	};
59
60	sound {
61		compatible = "fsl,imx-audio-sgtl5000";
62		model = "emCON-avari-sgtl5000";
63		ssi-controller = <&ssi2>;
64		audio-codec = <&sgtl5000>;
65		audio-routing =
66			"Headphone Jack", "HP_OUT";
67		mux-int-port = <2>;
68		mux-ext-port = <3>;
69	};
70};
71
72&audmux {
73	pinctrl-names = "default";
74	pinctrl-0 = <&pinctrl_audmux>;
75	status = "okay";
76};
77
78&can1 {
79	status = "okay";
80};
81
82&can2 {
83	status = "okay";
84};
85
86&ecspi2 {
87	status = "okay";
88};
89
90&hdmi {
91	ddc-i2c-bus = <&i2c2>;
92	status = "okay";
93};
94
95&i2c2 {
96	status = "okay";
97};
98
99&i2c3 {
100	clock-frequency = <100000>;
101	pinctrl-names = "default";
102	pinctrl-0 = <&pinctrl_i2c3>;
103	status = "okay";
104
105	sgtl5000: audio-codec@a {
106		compatible = "fsl,sgtl5000";
107		reg = <0x0a>;
108		#sound-dai-cells = <0>;
109		clocks = <&clk_codec>;
110		VDDA-supply = <&reg_base3p3>;
111		VDDIO-supply = <&reg_base3p3>;
112	};
113
114	captouch: touchscreen@38 {
115		compatible = "edt,edt-ft5406";
116		reg = <0x38>;
117		pinctrl-names = "default";
118		pinctrl-0 = <&pinctrl_irq_touch2 &pinctrl_emcon_gpio4>;
119		interrupt-parent = <&gpio6>;
120		interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
121		wake-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
122		wakeup-source;
123	};
124
125	boardid: gpio@3a {
126		compatible = "nxp,pca8574";
127		reg = <0x3a>;
128		gpio-controller;
129		#gpio-cells = <2>;
130	};
131};
132
133&pcie {
134	status = "okay";
135};
136
137&rgb_encoder {
138	status = "okay";
139};
140
141&rgb_panel {
142	compatible = "edt,etm0700g0bdh6";
143	status = "okay";
144};
145
146&ssi2 {
147	status = "okay";
148};
149
150&uart2 {
151	status = "okay";
152	uart-has-rtscts;
153};
154
155&uart3 {
156	status = "okay";
157};
158
159&uart4 {
160	status = "okay";
161};
162
163&uart5 {
164	status = "okay";
165};
166
167&usbh1 {
168	status = "okay";
169};
170
171&usbotg {
172	status = "okay";
173};
174
175&usdhc1 {
176	status = "okay";
177};
178