Skip to content

Commit 48636be

Browse files
aabelixepc-aapo
authored andcommitted
dts: Add epc-som
1 parent 5995c88 commit 48636be

File tree

3 files changed

+682
-1
lines changed

3 files changed

+682
-1
lines changed

arch/arm/dts/Makefile

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

11861187
dtb-$(CONFIG_ARCH_IMX9) += \
11871188
imx95-15x15-evk.dtb \
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
// SPDX-License-Identifier: GPL-2.0+
2+
/*
3+
* Copyright 2019 NXP
4+
* Copyright 2024 EPC Power
5+
*/
6+
7+
#include "imx8mn-u-boot.dtsi"
8+
#include "imx8mn-sec-def.h"
9+
10+
/ {
11+
mcu_rdc {
12+
compatible = "imx8m,mcu_rdc";
13+
/* rdc config when MCU starts
14+
* master
15+
* SDMA3p --> domain 1
16+
* SDMA3b --> domian 1
17+
* SDMA3_SPBA2 --> domian 1
18+
* peripheral:
19+
* SAI3 --> Only Domian 1 can access
20+
* UART4 --> Only Domian 1 can access
21+
* GPT1 --> Only Domian 1 can access
22+
* memory:
23+
* TCM --> Only Domian 1 can access (0x7E0000~0x81FFFF)
24+
* DDR --> Only Domian 1 can access (0x80000000~0x81000000)
25+
* end.
26+
*/
27+
start-config = <
28+
RDC_MDA RDC_MDA_SDMA3p DID1 0x0 0x0
29+
RDC_MDA RDC_MDA_SDMA3b DID1 0x0 0x0
30+
RDC_MDA RDC_MDA_SDMA3_SPBA2 DID1 0x0 0x0
31+
RDC_PDAP RDC_PDAP_SAI3 PDAP_D1_ACCESS 0x0 0x0
32+
RDC_PDAP RDC_PDAP_UART4 PDAP_D1_ACCESS 0x0 0x0
33+
RDC_PDAP RDC_PDAP_GPT1 PDAP_D1_ACCESS 0x0 0x0
34+
RDC_MEM_REGION 26 TCM_START TCM_END MEM_D1_ACCESS
35+
RDC_MEM_REGION 0 M4_EVK_DDR4_START M4_EVK_DDR4_END MEM_D1_ACCESS
36+
0x0 0x0 0x0 0x0 0x0
37+
>;
38+
/* rdc config when MCU stops
39+
* memory:
40+
* TCM --> domain 0/1 can access (0x7E0000~0x81FFFF)
41+
* DDR --> domain 0/1 can access (0x80000000~0x81000000)
42+
* end.
43+
*/
44+
stop-config = <
45+
RDC_MEM_REGION 26 TCM_START TCM_END MEM_D0D1_ACCESS
46+
RDC_MEM_REGION 0 M4_EVK_DDR4_START M4_EVK_DDR4_END MEM_D0D1_ACCESS
47+
0x0 0x0 0x0 0x0 0x0
48+
>;
49+
};
50+
};
51+
52+
&pinctrl_uart2 {
53+
bootph-pre-ram;
54+
};
55+
56+
&pinctrl_usdhc2_gpio {
57+
bootph-pre-ram;
58+
};
59+
60+
&pinctrl_usdhc2 {
61+
bootph-pre-ram;
62+
};
63+
64+
&pinctrl_usdhc3 {
65+
bootph-pre-ram;
66+
};
67+
68+
&pinctrl_wdog {
69+
bootph-pre-ram;
70+
};
71+
72+
&gpio1 {
73+
bootph-pre-ram;
74+
};
75+
76+
&gpio2 {
77+
bootph-pre-ram;
78+
};
79+
80+
&gpio3 {
81+
bootph-pre-ram;
82+
};
83+
84+
&gpio4 {
85+
bootph-pre-ram;
86+
};
87+
88+
&gpio5 {
89+
bootph-pre-ram;
90+
};
91+
92+
&uart2 {
93+
bootph-pre-ram;
94+
};
95+
96+
&crypto {
97+
bootph-pre-ram;
98+
};
99+
100+
&sec_jr0 {
101+
bootph-pre-ram;
102+
};
103+
104+
&sec_jr1 {
105+
bootph-pre-ram;
106+
};
107+
108+
&sec_jr2 {
109+
bootph-pre-ram;
110+
};
111+
112+
&usdhc1 {
113+
bootph-pre-ram;
114+
assigned-clocks = <&clk IMX8MN_CLK_USDHC1>;
115+
assigned-clock-rates = <400000000>;
116+
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_400M>;
117+
};
118+
119+
&usdhc2 {
120+
bootph-pre-ram;
121+
sd-uhs-sdr104;
122+
sd-uhs-ddr50;
123+
assigned-clocks = <&clk IMX8MN_CLK_USDHC2>;
124+
assigned-clock-rates = <400000000>;
125+
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_400M>;
126+
};
127+
128+
&usdhc3 {
129+
bootph-pre-ram;
130+
mmc-hs400-1_8v;
131+
mmc-hs400-enhanced-strobe;
132+
assigned-clocks = <&clk IMX8MN_CLK_USDHC3>;
133+
assigned-clock-rates = <400000000>;
134+
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_400M>;
135+
};
136+
137+
&tmu {
138+
bootph-all;
139+
};
140+
141+
&i2c1 {
142+
bootph-pre-ram;
143+
};
144+
145+
&{/soc@0/bus@30800000/i2c@30a20000/pmic@25} {
146+
bootph-pre-ram;
147+
};
148+
149+
&{/soc@0/bus@30800000/i2c@30a20000/pmic@25/regulators} {
150+
bootph-pre-ram;
151+
};
152+
153+
&pinctrl_i2c1 {
154+
bootph-pre-ram;
155+
};
156+
157+
&pinctrl_i2c1_gpio {
158+
bootph-pre-ram;
159+
};
160+
161+
&pinctrl_pmic {
162+
bootph-pre-ram;
163+
};

0 commit comments

Comments
 (0)