Skip to content

Commit

Permalink
dts: Add epc-som
Browse files Browse the repository at this point in the history
  • Loading branch information
aabelix authored and epc-aapo committed Sep 3, 2024
1 parent 5995c88 commit 48636be
Show file tree
Hide file tree
Showing 3 changed files with 682 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,8 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
imx8mp-navqp.dtb \
imx8mq-pico-pi.dtb \
imx8mq-kontron-pitx-imx8m.dtb \
imx8mq-librem5-r4.dtb
imx8mq-librem5-r4.dtb \
imx8mn-epc-som-rev2-base-rev3.dtb

dtb-$(CONFIG_ARCH_IMX9) += \
imx95-15x15-evk.dtb \
Expand Down
163 changes: 163 additions & 0 deletions arch/arm/dts/imx8mn-epc-som-rev2-base-rev3-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2019 NXP
* Copyright 2024 EPC Power
*/

#include "imx8mn-u-boot.dtsi"
#include "imx8mn-sec-def.h"

/ {
mcu_rdc {
compatible = "imx8m,mcu_rdc";
/* rdc config when MCU starts
* master
* SDMA3p --> domain 1
* SDMA3b --> domian 1
* SDMA3_SPBA2 --> domian 1
* peripheral:
* SAI3 --> Only Domian 1 can access
* UART4 --> Only Domian 1 can access
* GPT1 --> Only Domian 1 can access
* memory:
* TCM --> Only Domian 1 can access (0x7E0000~0x81FFFF)
* DDR --> Only Domian 1 can access (0x80000000~0x81000000)
* end.
*/
start-config = <
RDC_MDA RDC_MDA_SDMA3p DID1 0x0 0x0
RDC_MDA RDC_MDA_SDMA3b DID1 0x0 0x0
RDC_MDA RDC_MDA_SDMA3_SPBA2 DID1 0x0 0x0
RDC_PDAP RDC_PDAP_SAI3 PDAP_D1_ACCESS 0x0 0x0
RDC_PDAP RDC_PDAP_UART4 PDAP_D1_ACCESS 0x0 0x0
RDC_PDAP RDC_PDAP_GPT1 PDAP_D1_ACCESS 0x0 0x0
RDC_MEM_REGION 26 TCM_START TCM_END MEM_D1_ACCESS
RDC_MEM_REGION 0 M4_EVK_DDR4_START M4_EVK_DDR4_END MEM_D1_ACCESS
0x0 0x0 0x0 0x0 0x0
>;
/* rdc config when MCU stops
* memory:
* TCM --> domain 0/1 can access (0x7E0000~0x81FFFF)
* DDR --> domain 0/1 can access (0x80000000~0x81000000)
* end.
*/
stop-config = <
RDC_MEM_REGION 26 TCM_START TCM_END MEM_D0D1_ACCESS
RDC_MEM_REGION 0 M4_EVK_DDR4_START M4_EVK_DDR4_END MEM_D0D1_ACCESS
0x0 0x0 0x0 0x0 0x0
>;
};
};

&pinctrl_uart2 {
bootph-pre-ram;
};

&pinctrl_usdhc2_gpio {
bootph-pre-ram;
};

&pinctrl_usdhc2 {
bootph-pre-ram;
};

&pinctrl_usdhc3 {
bootph-pre-ram;
};

&pinctrl_wdog {
bootph-pre-ram;
};

&gpio1 {
bootph-pre-ram;
};

&gpio2 {
bootph-pre-ram;
};

&gpio3 {
bootph-pre-ram;
};

&gpio4 {
bootph-pre-ram;
};

&gpio5 {
bootph-pre-ram;
};

&uart2 {
bootph-pre-ram;
};

&crypto {
bootph-pre-ram;
};

&sec_jr0 {
bootph-pre-ram;
};

&sec_jr1 {
bootph-pre-ram;
};

&sec_jr2 {
bootph-pre-ram;
};

&usdhc1 {
bootph-pre-ram;
assigned-clocks = <&clk IMX8MN_CLK_USDHC1>;
assigned-clock-rates = <400000000>;
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_400M>;
};

&usdhc2 {
bootph-pre-ram;
sd-uhs-sdr104;
sd-uhs-ddr50;
assigned-clocks = <&clk IMX8MN_CLK_USDHC2>;
assigned-clock-rates = <400000000>;
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_400M>;
};

&usdhc3 {
bootph-pre-ram;
mmc-hs400-1_8v;
mmc-hs400-enhanced-strobe;
assigned-clocks = <&clk IMX8MN_CLK_USDHC3>;
assigned-clock-rates = <400000000>;
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_400M>;
};

&tmu {
bootph-all;
};

&i2c1 {
bootph-pre-ram;
};

&{/soc@0/bus@30800000/i2c@30a20000/pmic@25} {
bootph-pre-ram;
};

&{/soc@0/bus@30800000/i2c@30a20000/pmic@25/regulators} {
bootph-pre-ram;
};

&pinctrl_i2c1 {
bootph-pre-ram;
};

&pinctrl_i2c1_gpio {
bootph-pre-ram;
};

&pinctrl_pmic {
bootph-pre-ram;
};
Loading

0 comments on commit 48636be

Please sign in to comment.