blob: eafe9b9308c42f80d0ed61ff8238374e0a793434 [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 {
48 bootph-pre-ram;
49 flash@0 {
50 bootph-pre-ram;
51 };
52};
53
54&eqos {
55 /delete-property/ assigned-clocks;
56 /delete-property/ assigned-clock-parents;
57 /delete-property/ assigned-clock-rates;
58};
59
60&gpio1 {
61 bootph-pre-ram;
62};
63
64&gpio2 {
65 bootph-pre-ram;
66};
67
68&gpio3 {
69 bootph-pre-ram;
70};
71
72&gpio4 {
73 bootph-pre-ram;
74};
75
76&gpio5 {
77 bootph-pre-ram;
78};
79
80&i2c3 {
81 bootph-pre-ram;
82};
83
84&pinctrl_ecspi1 {
85 bootph-pre-ram;
86};
87
88&pinctrl_hog_sbc {
89 bootph-pre-ram;
90};
91
92&pinctrl_i2c3 {
93 bootph-pre-ram;
94};
95
96&pinctrl_i2c3_gpio {
97 bootph-pre-ram;
98};
99
100&pinctrl_pmic {
101 bootph-pre-ram;
102};
103
104&pinctrl_uart3 {
105 bootph-pre-ram;
106};
107
108&pinctrl_usdhc2 {
109 bootph-pre-ram;
110};
111
112&pinctrl_usdhc3 {
113 bootph-pre-ram;
114};
115
116&pmic {
117 bootph-pre-ram;
118
119 regulators {
120 bootph-pre-ram;
121 };
122};
123
124&uart3 {
125 bootph-pre-ram;
126};
127
Marek Vasut3869f2d2023-07-15 20:24:16 +0200128&usb3_phy0 {
129 vbus-supply = <&reg_usb1_vbus>;
130};
131
Marek Vasutaa2fc532023-04-04 01:07:43 +0200132&usdhc2 {
133 bootph-pre-ram;
134 sd-uhs-sdr104;
135 sd-uhs-ddr50;
136};
137
138&usdhc3 {
139 bootph-pre-ram;
140 mmc-hs400-1_8v;
141 mmc-hs400-enhanced-strobe;
142};
143
144&wdog1 {
145 bootph-pre-ram;
146};
Marek Vasut3869f2d2023-07-15 20:24:16 +0200147
148&iomuxc {
149 usb1-grp {
150 fsl,pins = <
151 MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC 0x80
152 >;
153 };
154
155 pinctrl_usb1_vbus: usb1-vbus-grp {
156 fsl,pins = <
157 MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x6
158 >;
159 };
160};