blob: d87211245265eb88906eb7a9d504ce3c89d9bad2 [file] [log] [blame]
Tim Harvey23956252022-04-13 11:31:09 -07001// 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";
18 u-boot,dm-spl;
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&ethphy0 {
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 {
42 u-boot,dm-spl;
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 {
60 u-boot,dm-spl;
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 {
85 u-boot,dm-spl;
86
87 m2_dis2_hog {
88 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -070089 gpios = <0 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -070090 output-high;
91 line-name = "m2_gdis#";
92 };
93
94 m2rst_hog {
95 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -070096 gpios = <6 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -070097 output-high;
98 line-name = "m2_rst#";
99 };
100
101 m2_off_hog {
102 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -0700103 gpios = <14 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700104 output-high;
105 line-name = "m2_off#";
106 };
107};
108
109&gpio4 {
110 u-boot,dm-spl;
111
112 m2_dis1_hog {
113 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -0700114 gpios = <18 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700115 output-high;
116 line-name = "m2_wdis#";
117 };
118
Tim Harvey35a9b622022-09-08 13:41:08 -0700119 rs485_en {
Tim Harvey23956252022-04-13 11:31:09 -0700120 gpio-hog;
Tim Harvey35a9b622022-09-08 13:41:08 -0700121 gpios = <31 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700122 output-low;
Tim Harvey35a9b622022-09-08 13:41:08 -0700123 line-name = "rs485_en";
Tim Harvey23956252022-04-13 11:31:09 -0700124 };
125};
126
127&gpio5 {
128 u-boot,dm-spl;
129
Tim Harvey35a9b622022-09-08 13:41:08 -0700130 rs485_half {
Tim Harvey23956252022-04-13 11:31:09 -0700131 gpio-hog;
Tim Harvey35a9b622022-09-08 13:41:08 -0700132 gpios = <0 GPIO_ACTIVE_HIGH>;
133 output-low;
134 line-name = "rs485_hd";
Tim Harvey23956252022-04-13 11:31:09 -0700135 };
136
Tim Harvey35a9b622022-09-08 13:41:08 -0700137 rs485_term {
Tim Harvey23956252022-04-13 11:31:09 -0700138 gpio-hog;
Tim Harvey35a9b622022-09-08 13:41:08 -0700139 gpios = <1 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700140 output-low;
Tim Harvey35a9b622022-09-08 13:41:08 -0700141 line-name = "rs485_term";
Tim Harvey23956252022-04-13 11:31:09 -0700142 };
143};
144
145&i2c1 {
146 u-boot,dm-spl;
147};
148
149&i2c2 {
150 u-boot,dm-spl;
151};
152
153&i2c3 {
154 u-boot,dm-spl;
155};
156
157&pinctrl_i2c1 {
158 u-boot,dm-spl;
159};
160
161&pinctrl_wdog {
162 u-boot,dm-spl;
163};
164
Tim Harvey1581f172022-09-09 14:42:11 -0700165&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 Harvey23956252022-04-13 11:31:09 -0700224&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;
230 u-boot,dm-spl;
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;
239 u-boot,dm-spl;
240};
241
242&wdog1 {
243 u-boot,dm-spl;
244};