Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 1 | // 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 Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 24 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 25 | }; |
26 | }; | ||||
27 | |||||
28 | &buck4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 29 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 30 | }; |
31 | |||||
32 | &buck5 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 34 | }; |
35 | |||||
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 36 | &gpio1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 37 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 38 | }; |
39 | |||||
40 | &gpio2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 42 | }; |
43 | |||||
44 | &gpio3 { | ||||
Marek Vasut | c916b28 | 2023-10-16 00:41:14 +0200 | [diff] [blame] | 45 | bootph-all; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 46 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 47 | }; |
48 | |||||
49 | &gpio4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 50 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 51 | }; |
52 | |||||
53 | &gpio5 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 54 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 55 | }; |
56 | |||||
57 | &i2c3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 58 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 59 | }; |
60 | |||||
61 | &pinctrl_i2c3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 62 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 63 | }; |
64 | |||||
65 | &pinctrl_i2c3_gpio { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 66 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 67 | }; |
68 | |||||
69 | &pinctrl_pmic { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 70 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 71 | }; |
72 | |||||
73 | &pinctrl_uart1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 74 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 75 | }; |
76 | |||||
77 | &pinctrl_usdhc2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 78 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 79 | }; |
80 | |||||
81 | &pinctrl_usdhc2_100mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 82 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 83 | }; |
84 | |||||
85 | &pinctrl_usdhc2_200mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 86 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 87 | }; |
88 | |||||
89 | &pinctrl_usdhc2_vmmc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 90 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 91 | }; |
92 | |||||
93 | &pinctrl_usdhc3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 94 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 95 | }; |
96 | |||||
97 | &pinctrl_usdhc3_100mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 98 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 99 | }; |
100 | |||||
101 | &pinctrl_usdhc3_100mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 102 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 103 | }; |
104 | |||||
105 | &pmic { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 106 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 107 | |
108 | regulators { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 109 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 110 | }; |
111 | }; | ||||
112 | |||||
113 | ®_usdhc2_vmmc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 114 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 115 | }; |
116 | |||||
117 | &uart1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 118 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 119 | }; |
120 | |||||
121 | /* SDIO WiFi */ | ||||
122 | &usdhc1 { | ||||
123 | status = "disabled"; | ||||
124 | }; | ||||
125 | |||||
126 | &usdhc2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 127 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 128 | }; |
129 | |||||
130 | &usdhc3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 131 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 132 | }; |
133 | |||||
134 | &wdog1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 135 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 136 | }; |
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 137 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 138 | &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 Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 144 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 145 | blob-ext { |
146 | filename = "imx8mp-dhcom-som-overlay-eth1xfast.dtbo"; | ||||
147 | }; | ||||
148 | }; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 149 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 150 | fdt-dto-imx8mp-dhcom-som-overlay-eth2xfast { |
151 | description = "imx8mp-dhcom-som-overlay-eth2xfast"; | ||||
152 | type = "flat_dt"; | ||||
153 | compression = "none"; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 154 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 155 | blob-ext { |
156 | filename = "imx8mp-dhcom-som-overlay-eth2xfast.dtbo"; | ||||
157 | }; | ||||
158 | }; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 159 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 160 | fdt-dto-imx8mp-dhcom-pdk-overlay-eth2xfast { |
161 | description = "imx8mp-dhcom-pdk-overlay-eth2xfast"; | ||||
162 | type = "flat_dt"; | ||||
163 | compression = "none"; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 164 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 165 | blob-ext { |
166 | filename = "imx8mp-dhcom-pdk-overlay-eth2xfast.dtbo"; | ||||
167 | }; | ||||
168 | }; | ||||
Marek Vasut | 792cb56 | 2023-09-21 20:44:18 +0200 | [diff] [blame] | 169 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 170 | fdt-dto-imx8mp-dhcom-som-overlay-rev100 { |
171 | description = "imx8mp-dhcom-som-overlay-rev100"; | ||||
172 | type = "flat_dt"; | ||||
173 | compression = "none"; | ||||
Marek Vasut | 792cb56 | 2023-09-21 20:44:18 +0200 | [diff] [blame] | 174 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 175 | blob-ext { |
176 | filename = "imx8mp-dhcom-som-overlay-rev100.dtbo"; | ||||
177 | }; | ||||
178 | }; | ||||
Marek Vasut | 792cb56 | 2023-09-21 20:44:18 +0200 | [diff] [blame] | 179 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 180 | fdt-dto-imx8mp-dhcom-pdk3-overlay-rev100 { |
181 | description = "imx8mp-dhcom-pdk3-overlay-rev100"; | ||||
182 | type = "flat_dt"; | ||||
183 | compression = "none"; | ||||
Marek Vasut | 792cb56 | 2023-09-21 20:44:18 +0200 | [diff] [blame] | 184 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 185 | blob-ext { |
186 | filename = "imx8mp-dhcom-pdk3-overlay-rev100.dtbo"; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 187 | }; |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 188 | }; |
189 | }; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 190 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 191 | configurations { |
192 | default = "@config-DEFAULT-SEQ"; | ||||
Marek Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 193 | |
Marek Vasut | 9fe526d | 2024-05-21 12:48:24 +0200 | [diff] [blame^] | 194 | @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 Vasut | 5ca4121 | 2023-09-21 20:44:17 +0200 | [diff] [blame] | 201 | }; |
202 | }; | ||||
203 | }; |