xref: /linux/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree include for the Kontron SMARC-sAMX6i board on a SMARC Eval
4 * 2.0 carrier (ADS2).
5 *
6 */
7
8/ {
9	chosen {
10		stdout-path = "serial0:115200n8";
11	};
12
13	sound {
14		#address-cells = <1>;
15		#size-cells = <0>;
16		compatible = "simple-audio-card";
17		simple-audio-card,format = "i2s";
18		simple-audio-card,bitclock-master = <&dailink_master>;
19		simple-audio-card,frame-master = <&dailink_master>;
20		simple-audio-card,widgets =
21			"Headphone", "Headphone Jack",
22			"Line", "Line Out Jack",
23			"Microphone", "Microphone Jack",
24			"Line", "Line In Jack";
25		simple-audio-card,routing =
26			"Line Out Jack", "LINEOUTR",
27			"Line Out Jack", "LINEOUTL",
28			"Headphone Jack", "HPOUTR",
29			"Headphone Jack", "HPOUTL",
30			"IN1L", "Line In Jack",
31			"IN1R", "Line In Jack",
32			"Microphone Jack", "MICBIAS",
33			"IN2L", "Microphone Jack",
34			"IN2R", "Microphone Jack";
35
36		simple-audio-card,cpu {
37			sound-dai = <&ssi1>;
38		};
39
40		dailink_master: simple-audio-card,codec {
41			sound-dai = <&wm8904>;
42		};
43	};
44
45	reg_codec_mic: regulator-codec-mic {
46		compatible = "regulator-fixed";
47		regulator-name = "V_3V3_MIC";
48		regulator-min-microvolt = <3300000>;
49		regulator-max-microvolt = <3300000>;
50		regulator-always-on;
51		regulator-boot-on;
52	};
53
54	reg_codec_1p8v: regulator-codec-1p8v {
55		compatible = "regulator-fixed";
56		regulator-name = "V_1V8_S0_CODEC";
57		regulator-min-microvolt = <1800000>;
58		regulator-max-microvolt = <1800000>;
59		regulator-always-on;
60		regulator-boot-on;
61	};
62};
63
64&audmux {
65	status = "okay";
66};
67
68&can1 {
69	status = "okay";
70};
71
72&can2 {
73	status = "okay";
74};
75
76&ecspi4 {
77	flash@1 {
78		compatible = "jedec,spi-nor";
79		reg = <1>;
80		spi-max-frequency = <100000000>;
81		m25p,fast-read;
82	};
83};
84
85&fec {
86	status = "okay";
87};
88
89&i2c1 {
90	status = "okay";
91
92	wm8904: audio-codec@1a {
93		compatible = "wlf,wm8904";
94		reg = <0x1a>;
95		#sound-dai-cells = <0>;
96		clocks = <&clks IMX6QDL_CLK_CKO2>;
97		clock-names = "mclk";
98		AVDD-supply = <&reg_codec_1p8v>;
99		CPVDD-supply = <&reg_codec_1p8v>;
100		DBVDD-supply = <&reg_codec_1p8v>;
101		DCVDD-supply = <&reg_codec_1p8v>;
102		MICVDD-supply = <&reg_codec_mic>;
103	};
104};
105
106&i2c3 {
107	eeprom@57 {
108		compatible = "atmel,24c64";
109		reg = <0x57>;
110		pagesize = <32>;
111	};
112};
113
114&pcie {
115	status = "okay";
116};
117
118&ssi1 {
119	status = "okay";
120};
121
122&uart1 {
123	status = "okay";
124};
125
126&uart2 {
127	status = "okay";
128};
129
130&uart4 {
131	status = "okay";
132};
133
134&uart5 {
135	status = "okay";
136};
137
138&usbh1 {
139	status = "okay";
140};
141
142&usbotg {
143	status = "okay";
144};
145
146&usdhc3 {
147	status = "okay";
148};
149