blob: 1e82e718b8fd91ae794832a0ad1f40d3ccf99184 [file] [log] [blame]
Marek Vasutaa2fc532023-04-04 01:07:43 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2022 Marek Vasut <marex@denx.de>
4 */
5
6#include "imx8mp-u-boot.dtsi"
Marek Vasut3869f2d2023-07-15 20:24:16 +02007#include "imx8mp-pinfunc.h"
Marek Vasutaa2fc532023-04-04 01:07:43 +02008
9/ {
10 aliases {
11 eeprom0 = &eeprom;
12 mmc0 = &usdhc3; /* eMMC */
13 mmc1 = &usdhc2; /* MicroSD */
14 spi0 = &ecspi1;
15 };
16
17 config {
18 dmo,ram-coding-gpios = <&gpio3 20 0>, <&gpio4 3 0>, <&gpio4 1 0>;
19 };
20
Marek Vasut3869f2d2023-07-15 20:24:16 +020021 reg_usb1_vbus: regulator-usb1-vbus {
22 compatible = "regulator-fixed";
23 enable-active-high;
24 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinctrl_usb1_vbus>;
27 regulator-max-microvolt = <5000000>;
28 regulator-min-microvolt = <5000000>;
29 regulator-name = "USB1_PWR";
30 };
31
Marek Vasutaa2fc532023-04-04 01:07:43 +020032 wdt-reboot {
33 compatible = "wdt-reboot";
34 wdt = <&wdog1>;
35 bootph-pre-ram;
36 };
37};
38
39&buck4 {
40 bootph-pre-ram;
41};
42
43&buck5 {
44 bootph-pre-ram;
45};
46
47&ecspi1 {
Marek Vasutf05f9362024-02-08 18:33:50 +010048 /delete-property/ assigned-clocks;
49 /delete-property/ assigned-clock-rates;
50 /delete-property/ assigned-clock-parents;
Marek Vasutaa2fc532023-04-04 01:07:43 +020051 bootph-pre-ram;
52 flash@0 {
53 bootph-pre-ram;
54 };
55};
56
Marek Vasutaa2fc532023-04-04 01:07:43 +020057&gpio1 {
58 bootph-pre-ram;
59};
60
61&gpio2 {
62 bootph-pre-ram;
63};
64
65&gpio3 {
66 bootph-pre-ram;
Marek Vasutd6e46182024-11-29 01:13:53 +010067 bootph-some-ram;
Marek Vasut602accd2023-12-18 19:02:14 +010068
69 bl-enable-hog {
70 bootph-pre-ram;
71 gpio-hog;
72 output-low;
73 gpios = <0 GPIO_ACTIVE_HIGH>;
74 line-name = "BL_ENABLE_1V8";
75 };
76
77 tft-enable-hog {
78 bootph-pre-ram;
79 gpio-hog;
80 output-low;
81 gpios = <6 GPIO_ACTIVE_HIGH>;
82 line-name = "TFT_ENABLE_1V8";
83 };
84
85 graphics-gpio0-hog {
86 bootph-pre-ram;
87 gpio-hog;
88 input;
89 gpios = <7 GPIO_ACTIVE_HIGH>;
90 line-name = "GRAPHICS_GPIO0_1V8";
91 };
Marek Vasutaa2fc532023-04-04 01:07:43 +020092};
93
94&gpio4 {
95 bootph-pre-ram;
Marek Vasutd6e46182024-11-29 01:13:53 +010096 bootph-some-ram;
Marek Vasut602accd2023-12-18 19:02:14 +010097
98 dsi-reset-hog {
99 bootph-pre-ram;
100 gpio-hog;
101 output-high;
102 gpios = <0 GPIO_ACTIVE_LOW>;
103 line-name = "DSI_RESET_1V8#";
104 };
105
106 graphics-prsnt-hog {
107 bootph-pre-ram;
108 gpio-hog;
109 input;
110 gpios = <18 GPIO_ACTIVE_LOW>;
111 line-name = "GRAPHICS_PRSNT_1V8#";
112 };
113
114 dsi-irq-hog {
115 bootph-pre-ram;
116 gpio-hog;
117 input;
118 gpios = <19 GPIO_ACTIVE_LOW>;
119 line-name = "DSI_IRQ_1V8#";
120 };
Marek Vasutaa2fc532023-04-04 01:07:43 +0200121};
122
123&gpio5 {
124 bootph-pre-ram;
125};
126
127&i2c3 {
128 bootph-pre-ram;
129};
130
131&pinctrl_ecspi1 {
132 bootph-pre-ram;
133};
134
135&pinctrl_hog_sbc {
136 bootph-pre-ram;
137};
138
139&pinctrl_i2c3 {
140 bootph-pre-ram;
141};
142
143&pinctrl_i2c3_gpio {
144 bootph-pre-ram;
145};
146
147&pinctrl_pmic {
148 bootph-pre-ram;
149};
150
151&pinctrl_uart3 {
152 bootph-pre-ram;
153};
154
155&pinctrl_usdhc2 {
156 bootph-pre-ram;
157};
158
159&pinctrl_usdhc3 {
160 bootph-pre-ram;
161};
162
163&pmic {
164 bootph-pre-ram;
165
166 regulators {
167 bootph-pre-ram;
168 };
169};
170
171&uart3 {
172 bootph-pre-ram;
173};
174
Marek Vasut3869f2d2023-07-15 20:24:16 +0200175&usb3_phy0 {
176 vbus-supply = <&reg_usb1_vbus>;
177};
178
Marek Vasutaa2fc532023-04-04 01:07:43 +0200179&usdhc2 {
180 bootph-pre-ram;
181 sd-uhs-sdr104;
182 sd-uhs-ddr50;
183};
184
185&usdhc3 {
186 bootph-pre-ram;
187 mmc-hs400-1_8v;
188 mmc-hs400-enhanced-strobe;
189};
190
191&wdog1 {
192 bootph-pre-ram;
193};
Marek Vasut3869f2d2023-07-15 20:24:16 +0200194
195&iomuxc {
196 usb1-grp {
197 fsl,pins = <
198 MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC 0x80
199 >;
200 };
201
202 pinctrl_usb1_vbus: usb1-vbus-grp {
203 fsl,pins = <
204 MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x6
205 >;
206 };
207};