Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
2 | /* | ||||
3 | * Copyright 2022 Gateworks Corporation | ||||
4 | */ | ||||
5 | |||||
6 | #include "imx8mp-u-boot.dtsi" | ||||
7 | |||||
8 | / { | ||||
9 | firmware { | ||||
10 | optee { | ||||
11 | compatible = "linaro,optee-tz"; | ||||
12 | method = "smc"; | ||||
13 | }; | ||||
14 | }; | ||||
15 | |||||
16 | wdt-reboot { | ||||
17 | compatible = "wdt-reboot"; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 18 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 19 | wdt = <&wdog1>; |
20 | }; | ||||
21 | }; | ||||
22 | |||||
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 23 | ðphy0 { |
24 | reset-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>; | ||||
25 | reset-delay-us = <1000>; | ||||
26 | reset-post-delay-us = <300000>; | ||||
27 | }; | ||||
28 | |||||
29 | &fec { | ||||
30 | phy-reset-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>; | ||||
31 | phy-reset-duration = <15>; | ||||
32 | phy-reset-post-delay = <100>; | ||||
33 | }; | ||||
34 | |||||
35 | &gpio1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 36 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 37 | |
38 | dio0_hog { | ||||
39 | gpio-hog; | ||||
40 | input; | ||||
41 | gpios = <9 GPIO_ACTIVE_LOW>; | ||||
42 | line-name = "dio0"; | ||||
43 | }; | ||||
44 | |||||
45 | dio1_hog { | ||||
46 | gpio-hog; | ||||
47 | input; | ||||
48 | gpios = <11 GPIO_ACTIVE_LOW>; | ||||
49 | line-name = "dio1"; | ||||
50 | }; | ||||
51 | }; | ||||
52 | |||||
53 | &gpio2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 54 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 55 | |
56 | pcie1_wdis_hog { | ||||
57 | gpio-hog; | ||||
58 | gpios = <17 GPIO_ACTIVE_HIGH>; | ||||
59 | output-high; | ||||
60 | line-name = "pcie1_wdis#"; | ||||
61 | }; | ||||
62 | |||||
63 | pcie2_wdis_hog { | ||||
64 | gpio-hog; | ||||
65 | gpios = <18 GPIO_ACTIVE_HIGH>; | ||||
66 | output-high; | ||||
67 | line-name = "pcie2_wdis#"; | ||||
68 | }; | ||||
69 | |||||
70 | pcie3_wdis_hog { | ||||
71 | gpio-hog; | ||||
72 | gpios = <14 GPIO_ACTIVE_HIGH>; | ||||
73 | output-high; | ||||
74 | line-name = "pcie3_wdis#"; | ||||
75 | }; | ||||
76 | }; | ||||
77 | |||||
78 | &gpio3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 79 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 80 | |
81 | m2_dis2_hog { | ||||
82 | gpio-hog; | ||||
Tim Harvey | feb2267 | 2022-09-08 13:42:01 -0700 | [diff] [blame] | 83 | gpios = <0 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 84 | output-high; |
85 | line-name = "m2_gdis#"; | ||||
86 | }; | ||||
87 | |||||
88 | m2rst_hog { | ||||
89 | gpio-hog; | ||||
Tim Harvey | feb2267 | 2022-09-08 13:42:01 -0700 | [diff] [blame] | 90 | gpios = <6 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 91 | output-high; |
92 | line-name = "m2_rst#"; | ||||
93 | }; | ||||
94 | |||||
95 | m2_off_hog { | ||||
96 | gpio-hog; | ||||
Tim Harvey | feb2267 | 2022-09-08 13:42:01 -0700 | [diff] [blame] | 97 | gpios = <14 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 98 | output-high; |
99 | line-name = "m2_off#"; | ||||
100 | }; | ||||
101 | }; | ||||
102 | |||||
103 | &gpio4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 104 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 105 | |
106 | m2_dis1_hog { | ||||
107 | gpio-hog; | ||||
Tim Harvey | feb2267 | 2022-09-08 13:42:01 -0700 | [diff] [blame] | 108 | gpios = <18 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 109 | output-high; |
110 | line-name = "m2_wdis#"; | ||||
111 | }; | ||||
112 | |||||
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 113 | rs485_en { |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 114 | gpio-hog; |
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 115 | gpios = <31 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 116 | output-low; |
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 117 | line-name = "rs485_en"; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 118 | }; |
119 | }; | ||||
120 | |||||
121 | &gpio5 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 122 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 123 | |
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 124 | rs485_half { |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 125 | gpio-hog; |
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 126 | gpios = <0 GPIO_ACTIVE_HIGH>; |
127 | output-low; | ||||
128 | line-name = "rs485_hd"; | ||||
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 129 | }; |
130 | |||||
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 131 | rs485_term { |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 132 | gpio-hog; |
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 133 | gpios = <1 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 134 | output-low; |
Tim Harvey | eb7878b | 2022-09-08 13:41:08 -0700 | [diff] [blame] | 135 | line-name = "rs485_term"; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 136 | }; |
137 | }; | ||||
138 | |||||
139 | &i2c1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 140 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 141 | }; |
142 | |||||
143 | &i2c2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 144 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 145 | }; |
146 | |||||
147 | &i2c3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 148 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 149 | }; |
150 | |||||
151 | &pinctrl_i2c1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 152 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 153 | }; |
154 | |||||
155 | &pinctrl_wdog { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 156 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 157 | }; |
158 | |||||
Tim Harvey | 4475450 | 2022-09-09 14:42:11 -0700 | [diff] [blame] | 159 | &switch { |
160 | ports { | ||||
161 | #address-cells = <1>; | ||||
162 | #size-cells = <0>; | ||||
163 | |||||
164 | lan1: port@0 { | ||||
165 | phy-handle = <&sw_phy0>; | ||||
166 | }; | ||||
167 | |||||
168 | lan2: port@1 { | ||||
169 | phy-handle = <&sw_phy1>; | ||||
170 | }; | ||||
171 | |||||
172 | lan3: port@2 { | ||||
173 | phy-handle = <&sw_phy2>; | ||||
174 | }; | ||||
175 | |||||
176 | lan4: port@3 { | ||||
177 | phy-handle = <&sw_phy3>; | ||||
178 | }; | ||||
179 | |||||
180 | lan5: port@4 { | ||||
181 | phy-handle = <&sw_phy4>; | ||||
182 | }; | ||||
183 | }; | ||||
184 | |||||
185 | mdios { | ||||
186 | #address-cells = <1>; | ||||
187 | #size-cells = <0>; | ||||
188 | |||||
189 | mdio@0 { | ||||
190 | reg = <0>; | ||||
191 | compatible = "microchip,ksz-mdio"; | ||||
192 | #address-cells = <1>; | ||||
193 | #size-cells = <0>; | ||||
194 | |||||
195 | sw_phy0: ethernet-phy@0 { | ||||
196 | reg = <0x0>; | ||||
197 | }; | ||||
198 | |||||
199 | sw_phy1: ethernet-phy@1 { | ||||
200 | reg = <0x1>; | ||||
201 | }; | ||||
202 | |||||
203 | sw_phy2: ethernet-phy@2 { | ||||
204 | reg = <0x2>; | ||||
205 | }; | ||||
206 | |||||
207 | sw_phy3: ethernet-phy@3 { | ||||
208 | reg = <0x3>; | ||||
209 | }; | ||||
210 | |||||
211 | sw_phy4: ethernet-phy@4 { | ||||
212 | reg = <0x4>; | ||||
213 | }; | ||||
214 | }; | ||||
215 | }; | ||||
216 | }; | ||||
217 | |||||
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 218 | &usdhc2 { |
219 | assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>; | ||||
220 | assigned-clock-rates = <400000000>; | ||||
221 | assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; | ||||
222 | sd-uhs-ddr50; | ||||
223 | sd-uhs-sdr104; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 224 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 225 | }; |
226 | |||||
227 | &usdhc3 { | ||||
228 | assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>; | ||||
229 | assigned-clock-rates = <400000000>; | ||||
230 | assigned-clocks = <&clk IMX8MP_CLK_USDHC3>; | ||||
231 | mmc-hs400-1_8v; | ||||
232 | mmc-hs400-enhanced-strobe; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 233 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 234 | }; |
235 | |||||
236 | &wdog1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 237 | bootph-pre-ram; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 238 | }; |