Debian Codegraph @

arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3 * Copyright 2022 Toradex
4 */
5
6 / {
7 native-hdmi-connector {
8 compatible = "hdmi-connector";
9 label = "X37";
10 type = "a";
11
12 port {
13 native_hdmi_connector_in: endpoint {
14 remote-endpoint = <&hdmi_tx_out>;
15 };
16 };
17 };
18
19 reg_eth2phy: regulator-eth2phy {
20 compatible = "regulator-fixed";
21 enable-active-high;
22 gpio = <&gpio_expander_21 4 GPIO_ACTIVE_HIGH>; /* ETH_PWR_EN */
23 off-on-delay-us = <500000>;
24 regulator-max-microvolt = <3300000>;
25 regulator-min-microvolt = <3300000>;
26 regulator-name = "+V3.3_ETH";
27 startup-delay-us = <200000>;
28 vin-supply = <&reg_3p3v>;
29 };
30
31 sound {
32 compatible = "simple-audio-card";
33 simple-audio-card,bitclock-master = <&codec_dai>;
34 simple-audio-card,format = "i2s";
35 simple-audio-card,frame-master = <&codec_dai>;
36 simple-audio-card,mclk-fs = <256>;
37 simple-audio-card,name = "verdin-nau8822";
38 simple-audio-card,routing =
39 "Headphones", "LHP",
40 "Headphones", "RHP",
41 "Speaker", "LSPK",
42 "Speaker", "RSPK",
43 "Line Out", "AUXOUT1",
44 "Line Out", "AUXOUT2",
45 "LAUX", "Line In",
46 "RAUX", "Line In",
47 "LMICP", "Mic In",
48 "RMICP", "Mic In";
49 simple-audio-card,widgets =
50 "Headphones", "Headphones",
51 "Line Out", "Line Out",
52 "Speaker", "Speaker",
53 "Microphone", "Mic In",
54 "Line", "Line In";
55
56 codec_dai: simple-audio-card,codec {
57 clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1>;
58 sound-dai = <&nau8822_1a>;
59 };
60
61 simple-audio-card,cpu {
62 sound-dai = <&sai1>;
63 };
64 };
65 };
66
67 /* Verdin HDMI_1 Audio */
68 &aud2htx {
69 status = "okay";
70 };
71
72 &backlight {
73 power-supply = <&reg_3p3v>;
74 };
75
76 /* Verdin SPI_1 */
77 &ecspi1 {
78 status = "okay";
79 };
80
81 /* EEPROM on display adapter boards */
82 &eeprom_display_adapter {
83 status = "okay";
84 };
85
86 /* EEPROM on Verdin Development board */
87 &eeprom_carrier_board {
88 status = "okay";
89 };
90
91 &eqos {
92 status = "okay";
93 };
94
95 &fec {
96 phy-supply = <&reg_eth2phy>;
97 status = "okay";
98 };
99
100 &flexcan1 {
101 status = "okay";
102 };
103
104 &flexcan2 {
105 status = "okay";
106 };
107
108 /* Verdin QSPI_1 */
109 &flexspi {
110 status = "okay";
111 };
112
113 &gpio4 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_ctrl_sleep_moci>;
116 };
117
118 &gpio_expander_21 {
119 status = "okay";
120 vcc-supply = <&reg_1p8v>;
121 };
122
123 /* Verdin HDMI_1 */
124 &hdmi_pai {
125 status = "okay";
126 };
127
128 &hdmi_pvi {
129 status = "okay";
130 };
131
132 &hdmi_tx {
133 status = "okay";
134
135 ports {
136 port@1 {
137 hdmi_tx_out: endpoint {
138 remote-endpoint = <&native_hdmi_connector_in>;
139 };
140 };
141 };
142 };
143
144 &hdmi_tx_phy {
145 status = "okay";
146 };
147
148 /* Current measurement into module VCC */
149 &hwmon {
150 status = "okay";
151 };
152
153 &hwmon_temp {
154 vs-supply = <&reg_1p8v>;
155 status = "okay";
156 };
157
158 /* Verdin I2C_2_DSI */
159 &i2c2 {
160 status = "okay";
161 };
162
163 &i2c3 {
164 status = "okay";
165 };
166
167 /* Verdin I2C_1 */
168 &i2c4 {
169 status = "okay";
170
171 /* Audio Codec */
172 nau8822_1a: audio-codec@1a {
173 compatible = "nuvoton,nau8822";
174 reg = <0x1a>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&pinctrl_sai1>;
177 #sound-dai-cells = <0>;
178 };
179 };
180
181 /* Verdin I2C_3_HDMI */
182 &i2c5 {
183 status = "okay";
184 };
185
186 &lcdif3 {
187 status = "okay";
188 };
189
190 /* Verdin PCIE_1 */
191 &pcie {
192 status = "okay";
193 };
194
195 &pcie_phy {
196 status = "okay";
197 };
198
199 /* Verdin PWM_1 */
200 &pwm1 {
201 status = "okay";
202 };
203
204 /* Verdin PWM_2 */
205 &pwm2 {
206 status = "okay";
207 };
208
209 /* Verdin PWM_3_DSI */
210 &pwm3 {
211 status = "okay";
212 };
213
214 &reg_usdhc2_vmmc {
215 vin-supply = <&reg_3p3v>;
216 };
217
218 /* Verdin I2S_1 */
219 &sai1 {
220 assigned-clocks = <&clk IMX8MP_CLK_SAI1>;
221 assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
222 assigned-clock-rates = <24576000>;
223 fsl,sai-mclk-direction-output;
224 status = "okay";
225 };
226
227 /* Verdin HDMI_1 Audio */
228 &sound_hdmi {
229 status = "okay";
230 };
231
232 /* Verdin UART_1, connector X50 through RS485 transceiver */
233 &uart1 {
234 linux,rs485-enabled-at-boot-time;
235 rs485-rts-active-low;
236 rs485-rx-during-tx;
237 status = "okay";
238 };
239
240 /* Verdin UART_2 */
241 &uart2 {
242 status = "okay";
243 };
244
245 /* Verdin UART_3, used as the Linux Console */
246 &uart3 {
247 status = "okay";
248 };
249
250 /* Verdin USB_1 */
251 &usb3_0 {
252 status = "okay";
253 };
254
255 &usb3_phy0 {
256 status = "okay";
257 };
258
259 /* Verdin USB_2 */
260 &usb3_1 {
261 fsl,permanently-attached;
262 status = "okay";
263 };
264
265 &usb3_phy1 {
266 status = "okay";
267 };
268
269 /* Limit frequency on dev board due to long traces and bad signal integrity */
270 &usdhc2 {
271 max-frequency = <100000000>;
272 status = "okay";
273 };