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