Debian Codegraph @

scripts/dtc/include-prefixes/arm64/mediatek/mt8173-evb.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (c) 2014 MediaTek Inc.
4 * Author: Eddie Huang <[email protected]>
5 */
6
7 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include "mt8173.dtsi"
10
11 / {
12 model = "MediaTek MT8173 evaluation board";
13 chassis-type = "embedded";
14 compatible = "mediatek,mt8173-evb", "mediatek,mt8173";
15
16 aliases {
17 serial0 = &uart0;
18 serial1 = &uart1;
19 serial2 = &uart2;
20 serial3 = &uart3;
21 };
22
23 memory@40000000 {
24 device_type = "memory";
25 reg = <0 0x40000000 0 0x80000000>;
26 };
27
28 chosen { };
29
30 connector {
31 compatible = "hdmi-connector";
32 label = "hdmi";
33 type = "d";
34
35 port {
36 hdmi_connector_in: endpoint {
37 remote-endpoint = <&hdmi0_out>;
38 };
39 };
40 };
41
42 extcon_usb: extcon_iddig {
43 compatible = "linux,extcon-usb-gpio";
44 id-gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
45 };
46
47 usb_p1_vbus: regulator-usb-p1 {
48 compatible = "regulator-fixed";
49 regulator-name = "usb_vbus";
50 regulator-min-microvolt = <5000000>;
51 regulator-max-microvolt = <5000000>;
52 gpio = <&pio 130 GPIO_ACTIVE_HIGH>;
53 enable-active-high;
54 };
55
56 usb_p0_vbus: regulator-usb-p0 {
57 compatible = "regulator-fixed";
58 regulator-name = "vbus";
59 regulator-min-microvolt = <5000000>;
60 regulator-max-microvolt = <5000000>;
61 gpio = <&pio 9 GPIO_ACTIVE_HIGH>;
62 enable-active-high;
63 };
64 };
65
66 &mfg_async {
67 domain-supply = <&da9211_vgpu_reg>;
68 };
69
70 &cec {
71 status = "okay";
72 };
73
74 &cpu0 {
75 proc-supply = <&mt6397_vpca15_reg>;
76 };
77
78 &cpu1 {
79 proc-supply = <&mt6397_vpca15_reg>;
80 };
81
82 &cpu2 {
83 proc-supply = <&da9211_vcpu_reg>;
84 sram-supply = <&mt6397_vsramca7_reg>;
85 };
86
87 &cpu3 {
88 proc-supply = <&da9211_vcpu_reg>;
89 sram-supply = <&mt6397_vsramca7_reg>;
90 };
91
92 &dpi0 {
93 status = "okay";
94 };
95
96 &hdmi_phy {
97 status = "okay";
98 };
99
100 &hdmi0 {
101 status = "okay";
102
103 ports {
104 port@1 {
105 reg = <1>;
106
107 hdmi0_out: endpoint {
108 remote-endpoint = <&hdmi_connector_in>;
109 };
110 };
111 };
112 };
113
114 &i2c1 {
115 status = "okay";
116
117 buck: da9211@68 {
118 compatible = "dlg,da9211";
119 reg = <0x68>;
120 interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
121
122 regulators {
123 da9211_vcpu_reg: BUCKA {
124 regulator-name = "VBUCKA";
125 regulator-min-microvolt = < 700000>;
126 regulator-max-microvolt = <1310000>;
127 regulator-min-microamp = <2000000>;
128 regulator-max-microamp = <4400000>;
129 regulator-ramp-delay = <10000>;
130 regulator-always-on;
131 };
132
133 da9211_vgpu_reg: BUCKB {
134 regulator-name = "VBUCKB";
135 regulator-min-microvolt = < 700000>;
136 regulator-max-microvolt = <1310000>;
137 regulator-min-microamp = <2000000>;
138 regulator-max-microamp = <3000000>;
139 regulator-ramp-delay = <10000>;
140 };
141 };
142 };
143 };
144
145 &mmc0 {
146 status = "okay";
147 pinctrl-names = "default", "state_uhs";
148 pinctrl-0 = <&mmc0_pins_default>;
149 pinctrl-1 = <&mmc0_pins_uhs>;
150 bus-width = <8>;
151 max-frequency = <50000000>;
152 cap-mmc-highspeed;
153 mediatek,hs200-cmd-int-delay = <26>;
154 mediatek,hs400-cmd-int-delay = <14>;
155 mediatek,hs400-cmd-resp-sel-rising;
156 vmmc-supply = <&mt6397_vemc_3v3_reg>;
157 vqmmc-supply = <&mt6397_vio18_reg>;
158 non-removable;
159 };
160
161 &mmc1 {
162 status = "okay";
163 pinctrl-names = "default", "state_uhs";
164 pinctrl-0 = <&mmc1_pins_default>;
165 pinctrl-1 = <&mmc1_pins_uhs>;
166 bus-width = <4>;
167 max-frequency = <50000000>;
168 cap-sd-highspeed;
169 sd-uhs-sdr25;
170 cd-gpios = <&pio 132 0>;
171 vmmc-supply = <&mt6397_vmch_reg>;
172 vqmmc-supply = <&mt6397_vmc_reg>;
173 };
174
175 &pio {
176 disp_pwm0_pins: disp-pwm0-pins {
177 pins1 {
178 pinmux = <MT8173_PIN_87_DISP_PWM0__FUNC_DISP_PWM0>;
179 output-low;
180 };
181 };
182
183 i2c1_pins_a: i2c1-pins {
184 pins-da9211 {
185 pinmux = <MT8173_PIN_15_EINT15__FUNC_GPIO15>;
186 bias-pull-up;
187 };
188 };
189
190 mmc0_pins_default: mmc0-default-pins {
191 pins-cmd-dat {
192 pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
193 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
194 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
195 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
196 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
197 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
198 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
199 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
200 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
201 input-enable;
202 bias-pull-up;
203 };
204
205 pins-clk {
206 pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
207 bias-pull-down;
208 };
209
210 pins-rst {
211 pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
212 bias-pull-up;
213 };
214 };
215
216 mmc1_pins_default: mmc1-default-pins {
217 pins-cmd-dat {
218 pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
219 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
220 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
221 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
222 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
223 input-enable;
224 drive-strength = <4>;
225 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
226 };
227
228 pins-clk {
229 pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
230 bias-pull-down;
231 drive-strength = <4>;
232 };
233
234 pins-insert {
235 pinmux = <MT8173_PIN_132_I2S0_DATA1__FUNC_GPIO132>;
236 bias-pull-up;
237 };
238 };
239
240 mmc0_pins_uhs: mmc0-uhs-pins {
241 pins-cmd-dat {
242 pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
243 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
244 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
245 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
246 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
247 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
248 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
249 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
250 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
251 input-enable;
252 drive-strength = <2>;
253 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
254 };
255
256 pins-clk {
257 pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
258 drive-strength = <2>;
259 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
260 };
261
262 pins-rst {
263 pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
264 bias-pull-up;
265 };
266 };
267
268 spi_pins_a: spi0-pins {
269 pins-bus {
270 pinmux = <MT8173_PIN_69_SPI_CK__FUNC_SPI_CK_0_>,
271 <MT8173_PIN_70_SPI_MI__FUNC_SPI_MI_0_>,
272 <MT8173_PIN_71_SPI_MO__FUNC_SPI_MO_0_>,
273 <MT8173_PIN_72_SPI_CS__FUNC_SPI_CS_0_>;
274 };
275 };
276
277 mmc1_pins_uhs: mmc1-uhs-pins {
278 pins-cmd-dat {
279 pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
280 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
281 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
282 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
283 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
284 input-enable;
285 drive-strength = <4>;
286 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
287 };
288
289 pins-clk {
290 pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
291 drive-strength = <4>;
292 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
293 };
294 };
295
296 usb_id_pins_float: usb-iddig-pu-pins {
297 pins-iddig-pu {
298 pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>;
299 bias-pull-up;
300 };
301 };
302
303 usb_id_pins_ground: usb-iddig-pd-pins {
304 pins-iddig-pd {
305 pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>;
306 bias-pull-down;
307 };
308 };
309 };
310
311 &pwm0 {
312 pinctrl-names = "default";
313 pinctrl-0 = <&disp_pwm0_pins>;
314 status = "okay";
315 };
316
317 &pwrap {
318 /* Only MT8173 E1 needs USB power domain */
319 power-domains = <&spm MT8173_POWER_DOMAIN_USB>;
320
321 pmic: pmic {
322 compatible = "mediatek,mt6397";
323 interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>;
324 interrupt-controller;
325 #interrupt-cells = <2>;
326
327 regulators {
328 compatible = "mediatek,mt6397-regulator";
329
330 mt6397_vpca15_reg: buck_vpca15 {
331 regulator-name = "vpca15";
332 regulator-min-microvolt = < 700000>;
333 regulator-max-microvolt = <1350000>;
334 regulator-ramp-delay = <12500>;
335 regulator-always-on;
336 };
337
338 mt6397_vpca7_reg: buck_vpca7 {
339 regulator-name = "vpca7";
340 regulator-min-microvolt = < 700000>;
341 regulator-max-microvolt = <1350000>;
342 regulator-ramp-delay = <12500>;
343 regulator-enable-ramp-delay = <115>;
344 };
345
346 mt6397_vsramca15_reg: buck_vsramca15 {
347 regulator-name = "vsramca15";
348 regulator-min-microvolt = < 700000>;
349 regulator-max-microvolt = <1350000>;
350 regulator-ramp-delay = <12500>;
351 regulator-always-on;
352 };
353
354 mt6397_vsramca7_reg: buck_vsramca7 {
355 regulator-name = "vsramca7";
356 regulator-min-microvolt = < 700000>;
357 regulator-max-microvolt = <1350000>;
358 regulator-ramp-delay = <12500>;
359 regulator-always-on;
360 };
361
362 mt6397_vcore_reg: buck_vcore {
363 regulator-name = "vcore";
364 regulator-min-microvolt = < 700000>;
365 regulator-max-microvolt = <1350000>;
366 regulator-ramp-delay = <12500>;
367 regulator-always-on;
368 };
369
370 mt6397_vgpu_reg: buck_vgpu {
371 regulator-name = "vgpu";
372 regulator-min-microvolt = < 700000>;
373 regulator-max-microvolt = <1350000>;
374 regulator-ramp-delay = <12500>;
375 regulator-enable-ramp-delay = <115>;
376 };
377
378 mt6397_vdrm_reg: buck_vdrm {
379 regulator-name = "vdrm";
380 regulator-min-microvolt = <1200000>;
381 regulator-max-microvolt = <1400000>;
382 regulator-ramp-delay = <12500>;
383 regulator-always-on;
384 };
385
386 mt6397_vio18_reg: buck_vio18 {
387 regulator-name = "vio18";
388 regulator-min-microvolt = <1620000>;
389 regulator-max-microvolt = <1980000>;
390 regulator-ramp-delay = <12500>;
391 regulator-always-on;
392 };
393
394 mt6397_vtcxo_reg: ldo_vtcxo {
395 regulator-name = "vtcxo";
396 regulator-always-on;
397 };
398
399 mt6397_va28_reg: ldo_va28 {
400 regulator-name = "va28";
401 regulator-always-on;
402 };
403
404 mt6397_vcama_reg: ldo_vcama {
405 regulator-name = "vcama";
406 regulator-min-microvolt = <1500000>;
407 regulator-max-microvolt = <2800000>;
408 regulator-enable-ramp-delay = <218>;
409 };
410
411 mt6397_vio28_reg: ldo_vio28 {
412 regulator-name = "vio28";
413 regulator-always-on;
414 };
415
416 mt6397_vusb_reg: ldo_vusb {
417 regulator-name = "vusb";
418 };
419
420 mt6397_vmc_reg: ldo_vmc {
421 regulator-name = "vmc";
422 regulator-min-microvolt = <1800000>;
423 regulator-max-microvolt = <3300000>;
424 regulator-enable-ramp-delay = <218>;
425 };
426
427 mt6397_vmch_reg: ldo_vmch {
428 regulator-name = "vmch";
429 regulator-min-microvolt = <3000000>;
430 regulator-max-microvolt = <3300000>;
431 regulator-enable-ramp-delay = <218>;
432 };
433
434 mt6397_vemc_3v3_reg: ldo_vemc3v3 {
435 regulator-name = "vemc_3v3";
436 regulator-min-microvolt = <3000000>;
437 regulator-max-microvolt = <3300000>;
438 regulator-enable-ramp-delay = <218>;
439 };
440
441 mt6397_vgp1_reg: ldo_vgp1 {
442 regulator-name = "vcamd";
443 regulator-min-microvolt = <1220000>;
444 regulator-max-microvolt = <3300000>;
445 regulator-enable-ramp-delay = <240>;
446 };
447
448 mt6397_vgp2_reg: ldo_vgp2 {
449 regulator-name = "vcamio";
450 regulator-min-microvolt = <1000000>;
451 regulator-max-microvolt = <3300000>;
452 regulator-enable-ramp-delay = <218>;
453 };
454
455 mt6397_vgp3_reg: ldo_vgp3 {
456 regulator-name = "vcamaf";
457 regulator-min-microvolt = <1200000>;
458 regulator-max-microvolt = <3300000>;
459 regulator-enable-ramp-delay = <218>;
460 };
461
462 mt6397_vgp4_reg: ldo_vgp4 {
463 regulator-name = "vgp4";
464 regulator-min-microvolt = <1200000>;
465 regulator-max-microvolt = <3300000>;
466 regulator-enable-ramp-delay = <218>;
467 };
468
469 mt6397_vgp5_reg: ldo_vgp5 {
470 regulator-name = "vgp5";
471 regulator-min-microvolt = <1200000>;
472 regulator-max-microvolt = <3000000>;
473 regulator-enable-ramp-delay = <218>;
474 };
475
476 mt6397_vgp6_reg: ldo_vgp6 {
477 regulator-name = "vgp6";
478 regulator-min-microvolt = <1200000>;
479 regulator-max-microvolt = <3300000>;
480 regulator-enable-ramp-delay = <218>;
481 };
482
483 mt6397_vibr_reg: ldo_vibr {
484 regulator-name = "vibr";
485 regulator-min-microvolt = <1300000>;
486 regulator-max-microvolt = <3300000>;
487 regulator-enable-ramp-delay = <218>;
488 };
489 };
490 };
491 };
492
493 &spi {
494 pinctrl-names = "default";
495 pinctrl-0 = <&spi_pins_a>;
496 mediatek,pad-select = <0>;
497 status = "okay";
498 };
499
500 &ssusb {
501 vusb33-supply = <&mt6397_vusb_reg>;
502 vbus-supply = <&usb_p0_vbus>;
503 extcon = <&extcon_usb>;
504 dr_mode = "otg";
505 wakeup-source;
506 pinctrl-names = "default";
507 pinctrl-0 = <&usb_id_pins_float>;
508 status = "okay";
509 };
510
511 &uart0 {
512 status = "okay";
513 };
514
515 &usb_host {
516 vusb33-supply = <&mt6397_vusb_reg>;
517 vbus-supply = <&usb_p1_vbus>;
518 status = "okay";
519 };