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 | |||||
36 | &eqos { | ||||
37 | /delete-property/ assigned-clocks; | ||||
38 | /delete-property/ assigned-clock-parents; | ||||
39 | /delete-property/ assigned-clock-rates; | ||||
40 | }; | ||||
41 | |||||
42 | &gpio1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 43 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 44 | }; |
45 | |||||
46 | &gpio2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 47 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 48 | }; |
49 | |||||
50 | &gpio3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 51 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 52 | }; |
53 | |||||
54 | &gpio4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 55 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 56 | }; |
57 | |||||
58 | &gpio5 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 59 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 60 | }; |
61 | |||||
62 | &i2c3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 63 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 64 | }; |
65 | |||||
66 | &pinctrl_i2c3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 67 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 68 | }; |
69 | |||||
70 | &pinctrl_i2c3_gpio { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 71 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 72 | }; |
73 | |||||
74 | &pinctrl_pmic { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 75 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 76 | }; |
77 | |||||
78 | &pinctrl_uart1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 79 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 80 | }; |
81 | |||||
82 | &pinctrl_usdhc2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 83 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 84 | }; |
85 | |||||
86 | &pinctrl_usdhc2_100mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 87 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 88 | }; |
89 | |||||
90 | &pinctrl_usdhc2_200mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 91 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 92 | }; |
93 | |||||
94 | &pinctrl_usdhc2_vmmc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 95 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 96 | }; |
97 | |||||
98 | &pinctrl_usdhc3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 99 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 100 | }; |
101 | |||||
102 | &pinctrl_usdhc3_100mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 103 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 104 | }; |
105 | |||||
106 | &pinctrl_usdhc3_100mhz { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 107 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 108 | }; |
109 | |||||
110 | &pmic { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 111 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 112 | |
113 | regulators { | ||||
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 | |||||
118 | ®_usdhc2_vmmc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 119 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 120 | }; |
121 | |||||
122 | &uart1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 123 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 124 | }; |
125 | |||||
126 | /* SDIO WiFi */ | ||||
127 | &usdhc1 { | ||||
128 | status = "disabled"; | ||||
129 | }; | ||||
130 | |||||
131 | &usdhc2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 132 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 133 | }; |
134 | |||||
135 | &usdhc3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 136 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 137 | }; |
138 | |||||
139 | &wdog1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame^] | 140 | bootph-pre-ram; |
Marek Vasut | f98c55f | 2022-08-12 22:41:53 +0200 | [diff] [blame] | 141 | }; |