Skip to content

Commit dac1c50

Browse files
mwalleShawn Guo
authored andcommitted
ARM: dts: imx6qdl-kontron-samx6i: add actual device trees
For now, there wasn't any in-tree users of the dtsi files for the Kontron SMARC-sAMX6i board. Let's add device trees, for this board on a Kontron SMARC Eval 2.0 Carrier. Signed-off-by: Michael Walle <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 62ee222 commit dac1c50

File tree

4 files changed

+174
-0
lines changed

4 files changed

+174
-0
lines changed

arch/arm/boot/dts/nxp/imx/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
9999
imx6dl-icore.dtb \
100100
imx6dl-icore-mipi.dtb \
101101
imx6dl-icore-rqs.dtb \
102+
imx6dl-kontron-samx6i-ads2.dtb \
102103
imx6dl-lanmcu.dtb \
103104
imx6dl-mamoj.dtb \
104105
imx6dl-mba6a.dtb \
@@ -207,6 +208,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
207208
imx6q-icore-ofcap10.dtb \
208209
imx6q-icore-ofcap12.dtb \
209210
imx6q-icore-rqs.dtb \
211+
imx6q-kontron-samx6i-ads2.dtb \
210212
imx6q-kp-tpc.dtb \
211213
imx6q-logicpd.dtb \
212214
imx6q-marsboard.dtb \
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: GPL-2.0 OR X11
2+
3+
/dts-v1/;
4+
5+
#include "imx6dl.dtsi"
6+
#include "imx6qdl-kontron-samx6i.dtsi"
7+
#include "imx6qdl-kontron-samx6i-ads2.dtsi"
8+
9+
/ {
10+
model = "Kontron SMARC-sAMX6i Dual-Lite/Solo on SMARC Eval 2.0 carrier";
11+
compatible = "kontron,imx6dl-samx6i-ads2", "kontron,imx6dl-samx6i", "fsl,imx6dl";
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: GPL-2.0 OR X11
2+
3+
/dts-v1/;
4+
5+
#include "imx6q.dtsi"
6+
#include "imx6qdl-kontron-samx6i.dtsi"
7+
#include "imx6qdl-kontron-samx6i-ads2.dtsi"
8+
9+
/ {
10+
model = "Kontron SMARC-sAMX6i Quad/Dual on SMARC Eval 2.0 carrier";
11+
compatible = "kontron,imx6q-samx6i-ads2", "kontron,imx6q-samx6i", "fsl,imx6q";
12+
};
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
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+
};

0 commit comments

Comments
 (0)