blob: b05be57e71b859a22eaeda740ee99ccca1c19146 [file] [log] [blame]
Marek Vasutf98c55f2022-08-12 22:41:53 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2022 Marek Vasut <marex@denx.de>
4 */
5
6#include "imx8mp-u-boot.dtsi"
7
8/ {
9 aliases {
10 eeprom0 = &eeprom0;
11 eeprom1 = &eeprom1;
12 mmc0 = &usdhc2; /* MicroSD */
13 mmc1 = &usdhc3; /* eMMC */
14 mmc2 = &usdhc1; /* SDIO */
15 };
16
17 config {
18 dh,ram-coding-gpios = <&gpio3 22 0>, <&gpio3 23 0>, <&gpio3 24 0>;
19 };
20
21 wdt-reboot {
22 compatible = "wdt-reboot";
23 wdt = <&wdog1>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070024 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020025 };
26};
27
28&buck4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070029 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020030};
31
32&buck5 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070033 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020034};
35
Marek Vasutf98c55f2022-08-12 22:41:53 +020036&gpio1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070037 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020038};
39
40&gpio2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020042};
43
44&gpio3 {
Marek Vasutc916b282023-10-16 00:41:14 +020045 bootph-all;
Simon Glassd3a98cb2023-02-13 08:56:33 -070046 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020047};
48
49&gpio4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070050 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020051};
52
53&gpio5 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020055};
56
57&i2c3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070058 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020059};
60
61&pinctrl_i2c3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070062 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020063};
64
65&pinctrl_i2c3_gpio {
Simon Glassd3a98cb2023-02-13 08:56:33 -070066 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020067};
68
69&pinctrl_pmic {
Simon Glassd3a98cb2023-02-13 08:56:33 -070070 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020071};
72
73&pinctrl_uart1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070074 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020075};
76
77&pinctrl_usdhc2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070078 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020079};
80
81&pinctrl_usdhc2_100mhz {
Simon Glassd3a98cb2023-02-13 08:56:33 -070082 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020083};
84
85&pinctrl_usdhc2_200mhz {
Simon Glassd3a98cb2023-02-13 08:56:33 -070086 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020087};
88
89&pinctrl_usdhc2_vmmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070090 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020091};
92
93&pinctrl_usdhc3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070094 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020095};
96
97&pinctrl_usdhc3_100mhz {
Simon Glassd3a98cb2023-02-13 08:56:33 -070098 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +020099};
100
101&pinctrl_usdhc3_100mhz {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700102 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200103};
104
105&pmic {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700106 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200107
108 regulators {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700109 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200110 };
111};
112
113&reg_usdhc2_vmmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700114 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200115};
116
117&uart1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700118 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200119};
120
121/* SDIO WiFi */
122&usdhc1 {
123 status = "disabled";
124};
125
126&usdhc2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700127 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200128};
129
130&usdhc3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700131 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200132};
133
134&wdog1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700135 bootph-pre-ram;
Marek Vasutf98c55f2022-08-12 22:41:53 +0200136};
Marek Vasut5ca41212023-09-21 20:44:17 +0200137
138&binman {
139 itb {
140 fit {
141 images {
142 fdt-dto-imx8mp-dhcom-som-overlay-eth1xfast {
143 description = "imx8mp-dhcom-som-overlay-eth1xfast";
144 type = "flat_dt";
145 compression = "none";
146
147 blob-ext {
148 filename = "imx8mp-dhcom-som-overlay-eth1xfast.dtbo";
149 };
150 };
151
152 fdt-dto-imx8mp-dhcom-som-overlay-eth2xfast {
153 description = "imx8mp-dhcom-som-overlay-eth2xfast";
154 type = "flat_dt";
155 compression = "none";
156
157 blob-ext {
158 filename = "imx8mp-dhcom-som-overlay-eth2xfast.dtbo";
159 };
160 };
161
162 fdt-dto-imx8mp-dhcom-pdk-overlay-eth2xfast {
163 description = "imx8mp-dhcom-pdk-overlay-eth2xfast";
164 type = "flat_dt";
165 compression = "none";
166
167 blob-ext {
168 filename = "imx8mp-dhcom-pdk-overlay-eth2xfast.dtbo";
169 };
170 };
Marek Vasut792cb562023-09-21 20:44:18 +0200171
172 fdt-dto-imx8mp-dhcom-som-overlay-rev100 {
173 description = "imx8mp-dhcom-som-overlay-rev100";
174 type = "flat_dt";
175 compression = "none";
176
177 blob-ext {
178 filename = "imx8mp-dhcom-som-overlay-rev100.dtbo";
179 };
180 };
181
Marek Vasuteaee3032023-09-21 20:44:20 +0200182 fdt-dto-imx8mp-dhcom-pdk3-overlay-rev100 {
183 description = "imx8mp-dhcom-pdk3-overlay-rev100";
Marek Vasut792cb562023-09-21 20:44:18 +0200184 type = "flat_dt";
185 compression = "none";
186
187 blob-ext {
Marek Vasuteaee3032023-09-21 20:44:20 +0200188 filename = "imx8mp-dhcom-pdk3-overlay-rev100.dtbo";
Marek Vasut792cb562023-09-21 20:44:18 +0200189 };
190 };
Marek Vasut5ca41212023-09-21 20:44:17 +0200191 };
192
193 configurations {
194 default = "@config-DEFAULT-SEQ";
195
196 @config-SEQ {
197 fdt = "fdt-1",
198 "fdt-dto-imx8mp-dhcom-som-overlay-eth1xfast",
199 "fdt-dto-imx8mp-dhcom-som-overlay-eth2xfast",
Marek Vasut792cb562023-09-21 20:44:18 +0200200 "fdt-dto-imx8mp-dhcom-pdk-overlay-eth2xfast",
201 "fdt-dto-imx8mp-dhcom-som-overlay-rev100",
Marek Vasuteaee3032023-09-21 20:44:20 +0200202 "fdt-dto-imx8mp-dhcom-pdk3-overlay-rev100";
Marek Vasut5ca41212023-09-21 20:44:17 +0200203 };
204 };
205 };
206 };
207};