xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-phytec-pbab01.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2013 Christian Hemp, Phytec Messtechnik GmbH
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot#include <dt-bindings/sound/fsl-imx-audmux.h>
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/ {
9f126890aSEmmanuel Vadot	chosen {
10f126890aSEmmanuel Vadot		stdout-path = &uart4;
11f126890aSEmmanuel Vadot	};
12f126890aSEmmanuel Vadot
13*aa1a8ff2SEmmanuel Vadot	sound_1v8: regulator-sound-1v8 {
14f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
15f126890aSEmmanuel Vadot		regulator-name = "i2s-audio-1v8";
16f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
17f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
18f126890aSEmmanuel Vadot	};
19f126890aSEmmanuel Vadot
20*aa1a8ff2SEmmanuel Vadot	sound_3v3: regulator-sound-3v3 {
21f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
22f126890aSEmmanuel Vadot		regulator-name = "i2s-audio-3v3";
23f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
24f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
25f126890aSEmmanuel Vadot	};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot	tlv320_mclk: oscillator {
28f126890aSEmmanuel Vadot		compatible = "fixed-clock";
29f126890aSEmmanuel Vadot		#clock-cells = <0>;
30f126890aSEmmanuel Vadot		clock-frequency = <19200000>;
31f126890aSEmmanuel Vadot		clock-output-names = "tlv320-mclk";
32f126890aSEmmanuel Vadot	};
33f126890aSEmmanuel Vadot
34f126890aSEmmanuel Vadot	sound {
35f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
36f126890aSEmmanuel Vadot		simple-audio-card,name = "OnboardTLV320AIC3007";
37f126890aSEmmanuel Vadot		simple-audio-card,format = "i2s";
38f126890aSEmmanuel Vadot		simple-audio-card,bitclock-master = <&dailink_master>;
39f126890aSEmmanuel Vadot		simple-audio-card,frame-master = <&dailink_master>;
40f126890aSEmmanuel Vadot		simple-audio-card,widgets =
41f126890aSEmmanuel Vadot			"Microphone", "Mic Jack",
42f126890aSEmmanuel Vadot			"Line", "Line In",
43f126890aSEmmanuel Vadot			"Line", "Line Out",
44f126890aSEmmanuel Vadot			"Speaker", "Speaker",
45f126890aSEmmanuel Vadot			"Headphone", "Headphone Jack";
46f126890aSEmmanuel Vadot		simple-audio-card,routing =
47f126890aSEmmanuel Vadot			"Line Out", "LLOUT",
48f126890aSEmmanuel Vadot			"Line Out", "RLOUT",
49f126890aSEmmanuel Vadot			"Speaker", "SPOP",
50f126890aSEmmanuel Vadot			"Speaker", "SPOM",
51f126890aSEmmanuel Vadot			"Headphone Jack", "HPLOUT",
52f126890aSEmmanuel Vadot			"Headphone Jack", "HPROUT",
53f126890aSEmmanuel Vadot			"MIC3L", "Mic Jack",
54f126890aSEmmanuel Vadot			"MIC3R", "Mic Jack",
55f126890aSEmmanuel Vadot			"Mic Jack", "Mic Bias",
56f126890aSEmmanuel Vadot			"LINE1L", "Line In",
57f126890aSEmmanuel Vadot			"LINE1R", "Line In";
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot		simple-audio-card,cpu {
60f126890aSEmmanuel Vadot			sound-dai = <&ssi2>;
61f126890aSEmmanuel Vadot		};
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot		dailink_master: simple-audio-card,codec {
64f126890aSEmmanuel Vadot			sound-dai = <&codec>;
65f126890aSEmmanuel Vadot			clocks = <&tlv320_mclk>;
66f126890aSEmmanuel Vadot		};
67f126890aSEmmanuel Vadot	};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot};
70f126890aSEmmanuel Vadot
71f126890aSEmmanuel Vadot&audmux {
72f126890aSEmmanuel Vadot	status = "okay";
73f126890aSEmmanuel Vadot
74f126890aSEmmanuel Vadot	mux-ssi2 {
75f126890aSEmmanuel Vadot		fsl,audmux-port = <1>;
76f126890aSEmmanuel Vadot		fsl,port-config = <
77f126890aSEmmanuel Vadot			(IMX_AUDMUX_V2_PTCR_SYN |
78f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PTCR_TFSDIR |
79f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PTCR_TFSEL(4) |
80f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PTCR_TCLKDIR |
81f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PTCR_TCSEL(4))
82f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PDCR_RXDSEL(4)
83f126890aSEmmanuel Vadot		>;
84f126890aSEmmanuel Vadot	};
85f126890aSEmmanuel Vadot
86f126890aSEmmanuel Vadot	mux-pins5 {
87f126890aSEmmanuel Vadot		fsl,audmux-port = <4>;
88f126890aSEmmanuel Vadot		fsl,port-config = <
89f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PTCR_SYN
90f126890aSEmmanuel Vadot			IMX_AUDMUX_V2_PDCR_RXDSEL(1)
91f126890aSEmmanuel Vadot		>;
92f126890aSEmmanuel Vadot	};
93f126890aSEmmanuel Vadot};
94f126890aSEmmanuel Vadot
95f126890aSEmmanuel Vadot&can1 {
96f126890aSEmmanuel Vadot	status = "okay";
97f126890aSEmmanuel Vadot};
98f126890aSEmmanuel Vadot
99f126890aSEmmanuel Vadot&fec {
100f126890aSEmmanuel Vadot	status = "okay";
101f126890aSEmmanuel Vadot};
102f126890aSEmmanuel Vadot
103f126890aSEmmanuel Vadot&hdmi {
104f126890aSEmmanuel Vadot	status = "okay";
105f126890aSEmmanuel Vadot};
106f126890aSEmmanuel Vadot
107f126890aSEmmanuel Vadot&i2c2 {
108f126890aSEmmanuel Vadot	status = "okay";
109f126890aSEmmanuel Vadot
110f126890aSEmmanuel Vadot	codec: tlv320@18 {
111f126890aSEmmanuel Vadot		compatible = "ti,tlv320aic3007";
112f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
113f126890aSEmmanuel Vadot		reg = <0x18>;
114f126890aSEmmanuel Vadot		ai3x-micbias-vg = <2>;
115f126890aSEmmanuel Vadot
116f126890aSEmmanuel Vadot		AVDD-supply = <&sound_3v3>;
117f126890aSEmmanuel Vadot		IOVDD-supply = <&sound_3v3>;
118f126890aSEmmanuel Vadot		DRVDD-supply = <&sound_3v3>;
119f126890aSEmmanuel Vadot		DVDD-supply = <&sound_1v8>;
120f126890aSEmmanuel Vadot	};
121f126890aSEmmanuel Vadot
122f126890aSEmmanuel Vadot	stmpe@41 {
123f126890aSEmmanuel Vadot		compatible = "st,stmpe811";
124f126890aSEmmanuel Vadot		reg = <0x41>;
125f126890aSEmmanuel Vadot	};
126f126890aSEmmanuel Vadot
127f126890aSEmmanuel Vadot	rtc@51 {
128f126890aSEmmanuel Vadot		compatible = "epson,rtc8564";
129f126890aSEmmanuel Vadot		reg = <0x51>;
130f126890aSEmmanuel Vadot	};
131f126890aSEmmanuel Vadot
132f126890aSEmmanuel Vadot	adc@64 {
133f126890aSEmmanuel Vadot		compatible = "maxim,max1037";
134f126890aSEmmanuel Vadot		reg = <0x64>;
135f126890aSEmmanuel Vadot	};
136f126890aSEmmanuel Vadot};
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot&i2c3 {
139f126890aSEmmanuel Vadot	status = "okay";
140f126890aSEmmanuel Vadot};
141f126890aSEmmanuel Vadot
142f126890aSEmmanuel Vadot&pcie {
143f126890aSEmmanuel Vadot	status = "okay";
144f126890aSEmmanuel Vadot};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot&ssi2 {
147f126890aSEmmanuel Vadot	status = "okay";
148f126890aSEmmanuel Vadot};
149f126890aSEmmanuel Vadot
150f126890aSEmmanuel Vadot&uart3 {
151f126890aSEmmanuel Vadot	status = "okay";
152f126890aSEmmanuel Vadot};
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot&uart4 {
155f126890aSEmmanuel Vadot	status = "okay";
156f126890aSEmmanuel Vadot};
157f126890aSEmmanuel Vadot
158f126890aSEmmanuel Vadot&usbh1 {
159f126890aSEmmanuel Vadot	status = "okay";
160f126890aSEmmanuel Vadot};
161f126890aSEmmanuel Vadot
162f126890aSEmmanuel Vadot&usbotg {
163f126890aSEmmanuel Vadot	status = "okay";
164f126890aSEmmanuel Vadot	dr_mode = "peripheral";
165f126890aSEmmanuel Vadot};
166f126890aSEmmanuel Vadot
167f126890aSEmmanuel Vadot&usdhc2 {
168f126890aSEmmanuel Vadot	status = "okay";
169f126890aSEmmanuel Vadot};
170f126890aSEmmanuel Vadot
171f126890aSEmmanuel Vadot&usdhc3 {
172f126890aSEmmanuel Vadot	status = "okay";
173f126890aSEmmanuel Vadot};
174