blob: c3fb040080b63f181e84450076f6a2e63a386df0 [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";
Simon Glass8c103c32023-02-13 08:56:33 -070018 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -070019 wdt = <&wdog1>;
20 };
21};
22
Tim Harvey23956252022-04-13 11:31:09 -070023&ethphy0 {
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 Glass8c103c32023-02-13 08:56:33 -070036 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -070037
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 Glass8c103c32023-02-13 08:56:33 -070054 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -070055
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 Glass8c103c32023-02-13 08:56:33 -070079 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -070080
81 m2_dis2_hog {
82 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -070083 gpios = <0 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -070084 output-high;
85 line-name = "m2_gdis#";
86 };
87
88 m2rst_hog {
89 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -070090 gpios = <6 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -070091 output-high;
92 line-name = "m2_rst#";
93 };
94
95 m2_off_hog {
96 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -070097 gpios = <14 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -070098 output-high;
99 line-name = "m2_off#";
100 };
101};
102
103&gpio4 {
Simon Glass8c103c32023-02-13 08:56:33 -0700104 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700105
106 m2_dis1_hog {
107 gpio-hog;
Tim Harvey22adeef2022-09-08 13:42:01 -0700108 gpios = <18 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700109 output-high;
110 line-name = "m2_wdis#";
111 };
112
Tim Harvey35a9b622022-09-08 13:41:08 -0700113 rs485_en {
Tim Harvey23956252022-04-13 11:31:09 -0700114 gpio-hog;
Tim Harvey35a9b622022-09-08 13:41:08 -0700115 gpios = <31 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700116 output-low;
Tim Harvey35a9b622022-09-08 13:41:08 -0700117 line-name = "rs485_en";
Tim Harvey23956252022-04-13 11:31:09 -0700118 };
119};
120
121&gpio5 {
Simon Glass8c103c32023-02-13 08:56:33 -0700122 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700123
Tim Harvey35a9b622022-09-08 13:41:08 -0700124 rs485_half {
Tim Harvey23956252022-04-13 11:31:09 -0700125 gpio-hog;
Tim Harvey35a9b622022-09-08 13:41:08 -0700126 gpios = <0 GPIO_ACTIVE_HIGH>;
127 output-low;
128 line-name = "rs485_hd";
Tim Harvey23956252022-04-13 11:31:09 -0700129 };
130
Tim Harvey35a9b622022-09-08 13:41:08 -0700131 rs485_term {
Tim Harvey23956252022-04-13 11:31:09 -0700132 gpio-hog;
Tim Harvey35a9b622022-09-08 13:41:08 -0700133 gpios = <1 GPIO_ACTIVE_HIGH>;
Tim Harvey23956252022-04-13 11:31:09 -0700134 output-low;
Tim Harvey35a9b622022-09-08 13:41:08 -0700135 line-name = "rs485_term";
Tim Harvey23956252022-04-13 11:31:09 -0700136 };
137};
138
139&i2c1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700140 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700141};
142
143&i2c2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700144 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700145};
146
147&i2c3 {
Simon Glass8c103c32023-02-13 08:56:33 -0700148 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700149};
150
151&pinctrl_i2c1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700152 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700153};
154
155&pinctrl_wdog {
Simon Glass8c103c32023-02-13 08:56:33 -0700156 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700157};
158
Tim Harvey1581f172022-09-09 14:42:11 -0700159&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 Harvey23956252022-04-13 11:31:09 -0700218&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 Glass8c103c32023-02-13 08:56:33 -0700224 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700225};
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 Glass8c103c32023-02-13 08:56:33 -0700233 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700234};
235
236&wdog1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700237 bootph-pre-ram;
Tim Harvey23956252022-04-13 11:31:09 -0700238};