blob: 501bc0ce200ee4d90d954a4314baa87cefd645c6 [file] [log] [blame]
Tim Harvey0f5717f2022-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 Glassd3a98cb2023-02-13 08:56:33 -070018 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -070019 wdt = <&wdog1>;
20 };
21};
22
Tim Harvey0f5717f2022-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 Glassd3a98cb2023-02-13 08:56:33 -070036 bootph-pre-ram;
Tim Harvey0f5717f2022-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 Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -070055
Tim Harveyffe9e3c2023-08-15 15:01:15 -070056 m2_pin20 {
57 gpio-hog;
58 input;
59 gpios = <6 GPIO_ACTIVE_HIGH>;
60 line-name = "m2_pin20";
61 };
62
63 m2_pin22 {
64 gpio-hog;
65 input;
66 gpios = <11 GPIO_ACTIVE_HIGH>;
67 line-name = "m2_pin22";
68 };
69
70 tpm_rst_hog {
Tim Harvey0f5717f2022-04-13 11:31:09 -070071 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -070072 output-high;
Tim Harveyffe9e3c2023-08-15 15:01:15 -070073 gpios = <12 GPIO_ACTIVE_HIGH>;
74 line-name = "tpm_rst#";
Tim Harvey0f5717f2022-04-13 11:31:09 -070075 };
76
Tim Harveyffe9e3c2023-08-15 15:01:15 -070077 pcie1_wdis_hog {
Tim Harvey0f5717f2022-04-13 11:31:09 -070078 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -070079 output-high;
Tim Harveyffe9e3c2023-08-15 15:01:15 -070080 gpios = <13 GPIO_ACTIVE_HIGH>;
81 line-name = "pcie1_wdis#";
Tim Harvey0f5717f2022-04-13 11:31:09 -070082 };
83
84 pcie3_wdis_hog {
85 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -070086 output-high;
Tim Harveyffe9e3c2023-08-15 15:01:15 -070087 gpios = <14 GPIO_ACTIVE_HIGH>;
Tim Harvey0f5717f2022-04-13 11:31:09 -070088 line-name = "pcie3_wdis#";
89 };
Tim Harvey0f5717f2022-04-13 11:31:09 -070090
Tim Harveyffe9e3c2023-08-15 15:01:15 -070091 pcie2_wdis_hog {
Tim Harvey0f5717f2022-04-13 11:31:09 -070092 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -070093 output-high;
Tim Harveyffe9e3c2023-08-15 15:01:15 -070094 gpios = <18 GPIO_ACTIVE_HIGH>;
95 line-name = "pcie2_wdis#";
Tim Harvey0f5717f2022-04-13 11:31:09 -070096 };
Tim Harveyffe9e3c2023-08-15 15:01:15 -070097};
98
99&gpio3 {
100 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700101
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700102 m2_rst {
Tim Harvey0f5717f2022-04-13 11:31:09 -0700103 gpio-hog;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700104 output-low;
Tim Harveyfeb22672022-09-08 13:42:01 -0700105 gpios = <6 GPIO_ACTIVE_HIGH>;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700106 line-name = "m2_rst";
Tim Harvey0f5717f2022-04-13 11:31:09 -0700107 };
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700108};
109
110&gpio4 {
111 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700112
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700113 m2_off {
Tim Harvey0f5717f2022-04-13 11:31:09 -0700114 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700115 output-high;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700116 gpios = <2 GPIO_ACTIVE_HIGH>;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700117 line-name = "m2_off#";
118 };
Tim Harvey0f5717f2022-04-13 11:31:09 -0700119
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700120 m2_wdis {
Tim Harvey0f5717f2022-04-13 11:31:09 -0700121 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700122 output-high;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700123 gpios = <18 GPIO_ACTIVE_HIGH>;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700124 line-name = "m2_wdis#";
125 };
126
Tim Harveyeb7878b2022-09-08 13:41:08 -0700127 rs485_en {
Tim Harvey0f5717f2022-04-13 11:31:09 -0700128 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700129 output-low;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700130 gpios = <31 GPIO_ACTIVE_HIGH>;
Tim Harveyeb7878b2022-09-08 13:41:08 -0700131 line-name = "rs485_en";
Tim Harvey0f5717f2022-04-13 11:31:09 -0700132 };
133};
134
135&gpio5 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700136 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700137
Tim Harveyeb7878b2022-09-08 13:41:08 -0700138 rs485_half {
Tim Harvey0f5717f2022-04-13 11:31:09 -0700139 gpio-hog;
Tim Harveyeb7878b2022-09-08 13:41:08 -0700140 output-low;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700141 gpios = <0 GPIO_ACTIVE_HIGH>;
Tim Harveyeb7878b2022-09-08 13:41:08 -0700142 line-name = "rs485_hd";
Tim Harvey0f5717f2022-04-13 11:31:09 -0700143 };
144
Tim Harveyeb7878b2022-09-08 13:41:08 -0700145 rs485_term {
Tim Harvey0f5717f2022-04-13 11:31:09 -0700146 gpio-hog;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700147 output-low;
Tim Harveyffe9e3c2023-08-15 15:01:15 -0700148 gpios = <1 GPIO_ACTIVE_HIGH>;
Tim Harveyeb7878b2022-09-08 13:41:08 -0700149 line-name = "rs485_term";
Tim Harvey0f5717f2022-04-13 11:31:09 -0700150 };
151};
152
153&i2c1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700154 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700155};
156
157&i2c2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700158 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700159};
160
161&i2c3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700162 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700163};
164
165&pinctrl_i2c1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700166 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700167};
168
169&pinctrl_wdog {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700170 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700171};
172
Tim Harvey44754502022-09-09 14:42:11 -0700173&switch {
174 ports {
175 #address-cells = <1>;
176 #size-cells = <0>;
177
178 lan1: port@0 {
179 phy-handle = <&sw_phy0>;
180 };
181
182 lan2: port@1 {
183 phy-handle = <&sw_phy1>;
184 };
185
186 lan3: port@2 {
187 phy-handle = <&sw_phy2>;
188 };
189
190 lan4: port@3 {
191 phy-handle = <&sw_phy3>;
192 };
193
194 lan5: port@4 {
195 phy-handle = <&sw_phy4>;
196 };
197 };
198
199 mdios {
200 #address-cells = <1>;
201 #size-cells = <0>;
202
203 mdio@0 {
204 reg = <0>;
205 compatible = "microchip,ksz-mdio";
206 #address-cells = <1>;
207 #size-cells = <0>;
208
209 sw_phy0: ethernet-phy@0 {
210 reg = <0x0>;
211 };
212
213 sw_phy1: ethernet-phy@1 {
214 reg = <0x1>;
215 };
216
217 sw_phy2: ethernet-phy@2 {
218 reg = <0x2>;
219 };
220
221 sw_phy3: ethernet-phy@3 {
222 reg = <0x3>;
223 };
224
225 sw_phy4: ethernet-phy@4 {
226 reg = <0x4>;
227 };
228 };
229 };
230};
231
Tim Harvey0f5717f2022-04-13 11:31:09 -0700232&usdhc2 {
233 assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
234 assigned-clock-rates = <400000000>;
235 assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
236 sd-uhs-ddr50;
237 sd-uhs-sdr104;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700238 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700239};
240
241&usdhc3 {
242 assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
243 assigned-clock-rates = <400000000>;
244 assigned-clocks = <&clk IMX8MP_CLK_USDHC3>;
245 mmc-hs400-1_8v;
246 mmc-hs400-enhanced-strobe;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700247 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700248};
249
250&wdog1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700251 bootph-pre-ram;
Tim Harvey0f5717f2022-04-13 11:31:09 -0700252};