Skip to content

Commit dfe888d

Browse files
committed
dts: Add tau device tree
1 parent 48636be commit dfe888d

File tree

5 files changed

+1081
-2
lines changed

5 files changed

+1081
-2
lines changed

arch/arm/dts/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,8 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
11821182
imx8mq-pico-pi.dtb \
11831183
imx8mq-kontron-pitx-imx8m.dtb \
11841184
imx8mq-librem5-r4.dtb \
1185-
imx8mn-epc-som-rev2-base-rev3.dtb
1185+
imx8mn-epc-som-rev2-base-rev3.dtb \
1186+
imx8mp-epc-tau-rev1.dtb
11861187

11871188
dtb-$(CONFIG_ARCH_IMX9) += \
11881189
imx95-15x15-evk.dtb \
Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
// SPDX-License-Identifier: GPL-2.0+
2+
/*
3+
* Copyright 2019, 2021 NXP
4+
*/
5+
#include "imx8mp-sec-def.h"
6+
7+
#include "imx8mp-u-boot.dtsi"
8+
9+
/ {
10+
wdt-reboot {
11+
compatible = "wdt-reboot";
12+
wdt = <&wdog1>;
13+
bootph-pre-ram;
14+
};
15+
16+
mcu_rdc {
17+
compatible = "imx8m,mcu_rdc";
18+
/* rdc config when MCU starts
19+
* master
20+
* SDMA3p --> domain 1
21+
* SDMA3b --> domian 1
22+
* SDMA3_SPBA2 --> domian 1
23+
* peripheral:
24+
* SAI3 --> Only Domian 1 can access
25+
* UART4 --> Only Domian 1 can access
26+
* GPT1 --> Only Domian 1 can access
27+
* SDMA3 --> Only Domian 1 can access
28+
* I2C3 --> Only Domian 1 can access
29+
* memory:
30+
* TCM --> Only Domian 1 can access (0x7E0000~0x81FFFF)
31+
* DDR --> Only Domian 1 can access (0x80000000~0x81000000)
32+
* end.
33+
*/
34+
start-config = <
35+
RDC_MDA RDC_MDA_SDMA3p DID1 0x0 0x0
36+
RDC_MDA RDC_MDA_ENET1_TX DID1 0x0 0x0
37+
RDC_MDA RDC_MDA_ENET1_RX DID1 0x0 0x0
38+
RDC_MDA RDC_MDA_SDMA3b DID1 0x0 0x0
39+
RDC_MDA RDC_MDA_SDMA3_SPBA2 DID1 0x0 0x0
40+
RDC_PDAP RDC_PDAP_ENET1 PDAP_D0D1_ACCESS 0x0 0x0
41+
RDC_PDAP RDC_PDAP_SAI3 PDAP_D1_ACCESS 0x0 0x0
42+
RDC_PDAP RDC_PDAP_UART4 PDAP_D1_ACCESS 0x0 0x0
43+
RDC_PDAP RDC_PDAP_GPT1 PDAP_D1_ACCESS 0x0 0x0
44+
RDC_PDAP RDC_PDAP_SDMA3 PDAP_D1_ACCESS 0x0 0x0
45+
RDC_PDAP RDC_PDAP_I2C3 PDAP_D1_ACCESS 0x0 0x0
46+
RDC_MEM_REGION 22 TCM_START TCM_END MEM_D1_ACCESS
47+
RDC_MEM_REGION 39 M4_DDR_START M4_DDR_END MEM_D1_ACCESS
48+
0x0 0x0 0x0 0x0 0x0
49+
>;
50+
/* rdc config when MCU stops
51+
* memory:
52+
* TCM --> domain 0/1 can access (0x7E0000~0x81FFFF)
53+
* DDR --> domain 0/1 can access (0x80000000~0x81000000)
54+
* end.
55+
*/
56+
stop-config = <
57+
RDC_MEM_REGION 22 TCM_START TCM_END MEM_D0D1_ACCESS
58+
RDC_MEM_REGION 39 M4_DDR_START M4_DDR_END MEM_D0D1_ACCESS
59+
0x0 0x0 0x0 0x0 0x0
60+
>;
61+
};
62+
};
63+
64+
&pinctrl_i2c1 {
65+
bootph-all;
66+
};
67+
68+
&pinctrl_i2c1_gpio {
69+
bootph-all;
70+
};
71+
72+
&pinctrl_pmic {
73+
bootph-all;
74+
};
75+
76+
&{/soc@0/bus@30800000/i2c@30a20000/pmic@25} {
77+
bootph-all;
78+
};
79+
80+
&{/soc@0/bus@30800000/i2c@30a20000/pmic@25/regulators} {
81+
bootph-all;
82+
};
83+
84+
&reg_usdhc2_vmmc {
85+
bootph-pre-ram;
86+
u-boot,off-on-delay-us = <20000>;
87+
};
88+
89+
&pinctrl_reg_usdhc2_vmmc {
90+
bootph-pre-ram;
91+
};
92+
93+
&pinctrl_uart2 {
94+
bootph-pre-ram;
95+
};
96+
97+
&pinctrl_usdhc2_gpio {
98+
bootph-pre-ram;
99+
};
100+
101+
&pinctrl_usdhc2 {
102+
bootph-pre-ram;
103+
};
104+
105+
&pinctrl_usdhc3 {
106+
bootph-pre-ram;
107+
};
108+
109+
&pinctrl_wdog {
110+
bootph-pre-ram;
111+
};
112+
113+
&gpio1 {
114+
bootph-pre-ram;
115+
};
116+
117+
&gpio2 {
118+
bootph-pre-ram;
119+
};
120+
121+
&gpio3 {
122+
bootph-pre-ram;
123+
};
124+
125+
&gpio4 {
126+
bootph-pre-ram;
127+
};
128+
129+
&gpio5 {
130+
bootph-pre-ram;
131+
};
132+
133+
&uart2 {
134+
bootph-pre-ram;
135+
};
136+
137+
&i2c1 {
138+
bootph-all;
139+
};
140+
141+
&i2c2 {
142+
bootph-pre-ram;
143+
};
144+
145+
&i2c3 {
146+
bootph-pre-ram;
147+
};
148+
149+
&usdhc1 {
150+
bootph-pre-ram;
151+
assigned-clocks = <&clk IMX8MP_CLK_USDHC1>;
152+
assigned-clock-rates = <400000000>;
153+
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
154+
};
155+
156+
&usdhc2 {
157+
bootph-pre-ram;
158+
sd-uhs-sdr104;
159+
sd-uhs-ddr50;
160+
assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
161+
assigned-clock-rates = <400000000>;
162+
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
163+
};
164+
165+
&usdhc3 {
166+
bootph-pre-ram;
167+
mmc-hs400-1_8v;
168+
mmc-hs400-enhanced-strobe;
169+
assigned-clocks = <&clk IMX8MP_CLK_USDHC3>;
170+
assigned-clock-rates = <400000000>;
171+
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
172+
};
173+
174+
&wdog1 {
175+
bootph-pre-ram;
176+
};
177+
178+
&ethphy0 {
179+
reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
180+
reset-assert-us = <15000>;
181+
reset-deassert-us = <100000>;
182+
};
183+
184+
&fec {
185+
phy-reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
186+
phy-reset-duration = <15>;
187+
phy-reset-post-delay = <100>;
188+
};
189+
190+
&flexspi {
191+
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_400M>;
192+
};
193+
194+
&mipi_dsi {
195+
/delete-property/ assigned-clocks;
196+
/delete-property/ assigned-clock-parents;
197+
/delete-property/ assigned-clock-rates;
198+
};
199+
200+
&media_blk_ctrl {
201+
assigned-clock-rates = <500000000>, <200000000>;
202+
};
203+
204+
&usb_dwc3_0 {
205+
compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
206+
assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>;
207+
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_800M>;
208+
assigned-clock-rates = <400000000>;
209+
};
210+
211+
&usb_dwc3_1 {
212+
compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
213+
assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>;
214+
assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_800M>;
215+
assigned-clock-rates = <400000000>;
216+
};

0 commit comments

Comments
 (0)