blob: 2a1aa1935a76ab48eaed0ceba59e4d9c7ce51906 [file] [log] [blame]
Marcel Ziswiler36a439d2022-02-07 11:54:13 +01001// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6#include "imx8mp-u-boot.dtsi"
7
8/ {
Marcel Ziswiler36a439d2022-02-07 11:54:13 +01009 wdt-reboot {
10 compatible = "wdt-reboot";
Simon Glassd3a98cb2023-02-13 08:56:33 -070011 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010012 wdt = <&wdog1>;
13 };
14};
15
Marcel Ziswilerf8621462022-07-21 15:46:44 +020016&{/aliases} {
17 eeprom0 = &eeprom_module;
18 eeprom1 = &eeprom_carrier_board;
19 eeprom2 = &eeprom_display_adapter;
20};
21
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010022&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -070023 bootph-all;
24 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010025 /delete-property/ assigned-clocks;
26 /delete-property/ assigned-clock-parents;
27 /delete-property/ assigned-clock-rates;
28
29};
30
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010031&gpio1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010033};
34
35&gpio2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070036 bootph-pre-ram;
Marcel Ziswilerf8621462022-07-21 15:46:44 +020037
38 regulator-ethphy {
39 gpio-hog;
40 gpios = <20 GPIO_ACTIVE_HIGH>;
41 line-name = "reg_ethphy";
42 output-high;
43 pinctrl-names = "default";
44 pinctrl-0 = <&pinctrl_reg_eth>;
45 };
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010046};
47
48&gpio3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070049 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010050};
51
52&gpio4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070053 bootph-pre-ram;
Andrejs Cainikovsdd1587c2023-07-11 11:09:18 +020054
55 ctrl-sleep-moci-hog {
56 bootph-pre-ram;
57 };
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010058};
59
60&gpio5 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070061 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010062};
63
64&i2c1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070065 bootph-pre-ram;
Marcel Ziswilerf8621462022-07-21 15:46:44 +020066
67 eeprom_module: eeprom@50 {
68 compatible = "i2c-eeprom";
69 pagesize = <16>;
70 reg = <0x50>;
71 };
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010072};
73
74&i2c2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070075 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010076};
77
78&i2c3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070079 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +010080};
81
Marcel Ziswilerf8621462022-07-21 15:46:44 +020082&i2c4 {
83 /* EEPROM on display adapter (MIPI DSI Display Adapter) */
84 eeprom_display_adapter: eeprom@50 {
85 compatible = "i2c-eeprom";
86 pagesize = <16>;
87 reg = <0x50>;
88 };
89
90 /* EEPROM on carrier board */
91 eeprom_carrier_board: eeprom@57 {
92 compatible = "i2c-eeprom";
93 pagesize = <16>;
94 reg = <0x57>;
95 };
96};
97
98&pca9450 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070099 bootph-pre-ram;
Marcel Ziswilerf8621462022-07-21 15:46:44 +0200100};
101
Andrejs Cainikovsdd1587c2023-07-11 11:09:18 +0200102&pinctrl_ctrl_sleep_moci {
103 bootph-pre-ram;
104};
105
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100106&pinctrl_i2c1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700107 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100108};
109
Marcel Ziswilerf8621462022-07-21 15:46:44 +0200110&pinctrl_usdhc2_pwr_en {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700111 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100112 u-boot,off-on-delay-us = <20000>;
113};
114
115&pinctrl_uart3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700116 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100117};
118
Marcel Ziswilerf8621462022-07-21 15:46:44 +0200119&pinctrl_usdhc2_cd {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700120 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100121};
122
123&pinctrl_usdhc2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700124 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100125};
126
127&pinctrl_usdhc3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700128 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100129};
130
131&pinctrl_wdog {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700132 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100133};
134
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100135&reg_usdhc2_vmmc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700136 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100137};
138
139&uart3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700140 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100141};
142
Marcel Ziswilerf8621462022-07-21 15:46:44 +0200143&usdhc1 {
144 status = "disabled";
145};
146
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100147&usdhc2 {
148 assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
149 assigned-clock-rates = <400000000>;
150 assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
151 sd-uhs-ddr50;
152 sd-uhs-sdr104;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700153 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100154};
155
156&usdhc3 {
157 assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
158 assigned-clock-rates = <400000000>;
159 assigned-clocks = <&clk IMX8MP_CLK_USDHC3>;
160 mmc-hs400-1_8v;
161 mmc-hs400-enhanced-strobe;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700162 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100163};
164
165&wdog1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700166 bootph-pre-ram;
Marcel Ziswiler36a439d2022-02-07 11:54:13 +0100167};