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