blob: c065fb82994e17ae2cdf35e0d48b5ce9fc5c6d2f [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
Marek Vasut9fe526d2024-05-21 12:48:24 +0200138&binman_imx_fit {
139 images {
140 fdt-dto-imx8mp-dhcom-som-overlay-eth1xfast {
141 description = "imx8mp-dhcom-som-overlay-eth1xfast";
142 type = "flat_dt";
143 compression = "none";
Marek Vasut5ca41212023-09-21 20:44:17 +0200144
Marek Vasut9fe526d2024-05-21 12:48:24 +0200145 blob-ext {
146 filename = "imx8mp-dhcom-som-overlay-eth1xfast.dtbo";
147 };
148 };
Marek Vasut5ca41212023-09-21 20:44:17 +0200149
Marek Vasut9fe526d2024-05-21 12:48:24 +0200150 fdt-dto-imx8mp-dhcom-som-overlay-eth2xfast {
151 description = "imx8mp-dhcom-som-overlay-eth2xfast";
152 type = "flat_dt";
153 compression = "none";
Marek Vasut5ca41212023-09-21 20:44:17 +0200154
Marek Vasut9fe526d2024-05-21 12:48:24 +0200155 blob-ext {
156 filename = "imx8mp-dhcom-som-overlay-eth2xfast.dtbo";
157 };
158 };
Marek Vasut5ca41212023-09-21 20:44:17 +0200159
Marek Vasut9fe526d2024-05-21 12:48:24 +0200160 fdt-dto-imx8mp-dhcom-pdk-overlay-eth2xfast {
161 description = "imx8mp-dhcom-pdk-overlay-eth2xfast";
162 type = "flat_dt";
163 compression = "none";
Marek Vasut5ca41212023-09-21 20:44:17 +0200164
Marek Vasut9fe526d2024-05-21 12:48:24 +0200165 blob-ext {
166 filename = "imx8mp-dhcom-pdk-overlay-eth2xfast.dtbo";
167 };
168 };
Marek Vasut792cb562023-09-21 20:44:18 +0200169
Marek Vasut9fe526d2024-05-21 12:48:24 +0200170 fdt-dto-imx8mp-dhcom-som-overlay-rev100 {
171 description = "imx8mp-dhcom-som-overlay-rev100";
172 type = "flat_dt";
173 compression = "none";
Marek Vasut792cb562023-09-21 20:44:18 +0200174
Marek Vasut9fe526d2024-05-21 12:48:24 +0200175 blob-ext {
176 filename = "imx8mp-dhcom-som-overlay-rev100.dtbo";
177 };
178 };
Marek Vasut792cb562023-09-21 20:44:18 +0200179
Marek Vasut9fe526d2024-05-21 12:48:24 +0200180 fdt-dto-imx8mp-dhcom-pdk3-overlay-rev100 {
181 description = "imx8mp-dhcom-pdk3-overlay-rev100";
182 type = "flat_dt";
183 compression = "none";
Marek Vasut792cb562023-09-21 20:44:18 +0200184
Marek Vasut9fe526d2024-05-21 12:48:24 +0200185 blob-ext {
186 filename = "imx8mp-dhcom-pdk3-overlay-rev100.dtbo";
Marek Vasut5ca41212023-09-21 20:44:17 +0200187 };
Marek Vasut9fe526d2024-05-21 12:48:24 +0200188 };
189 };
Marek Vasut5ca41212023-09-21 20:44:17 +0200190
Marek Vasut9fe526d2024-05-21 12:48:24 +0200191 configurations {
192 default = "@config-DEFAULT-SEQ";
Marek Vasut5ca41212023-09-21 20:44:17 +0200193
Marek Vasut9fe526d2024-05-21 12:48:24 +0200194 @config-SEQ {
195 fdt = "fdt-1",
196 "fdt-dto-imx8mp-dhcom-som-overlay-eth1xfast",
197 "fdt-dto-imx8mp-dhcom-som-overlay-eth2xfast",
198 "fdt-dto-imx8mp-dhcom-pdk-overlay-eth2xfast",
199 "fdt-dto-imx8mp-dhcom-som-overlay-rev100",
200 "fdt-dto-imx8mp-dhcom-pdk3-overlay-rev100";
Marek Vasut5ca41212023-09-21 20:44:17 +0200201 };
202 };
203};