1
0
Fork 0

MLK-23954-1 arm64: dts: add i.MX8MN LPDDR4 EVK root/inmate dts

Add root/inmate dts.
They are almost same as i.MX8MN DDR4 jailhouse dts.

Acked-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Peng Fan 2020-05-09 14:31:51 +08:00
parent 1d808717bb
commit 1bae6cf2bf
3 changed files with 262 additions and 1 deletions

View File

@ -57,7 +57,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk-ak4497.dtb imx8mm-evk-ak5558.dtb imx8mm-evk
dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb imx8mn-evk-rm67191.dtb imx8mn-ddr4-evk.dtb imx8mn-ddr4-evk-ak5558.dtb \
imx8mn-ddr4-evk-rm67191.dtb imx8mn-ddr4-evk-rpmsg.dtb imx8mn-ddr4-evk-usd-wifi.dtb \
imx8mn-evk-ak5558.dtb imx8mn-evk-rpmsg.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk-root.dtb imx8mn-ddr4-evk-inmate.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk-root.dtb imx8mn-ddr4-evk-inmate.dtb imx8mn-evk-root.dtb imx8mn-evk-inmate.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb imx8mp-evk-root.dtb imx8mp-evk-inmate.dtb imx8mp-evk-rpmsg.dtb \
imx8mp-evk-rm67191.dtb imx8mp-evk-flexcan2.dtb imx8mp-evk-it6263-lvds-dual-channel.dtb \
imx8mp-evk-jdi-wuxga-lvds-panel.dtb imx8mp-ab2.dtb imx8mp-evk-sof-wm8960.dtb \

View File

@ -0,0 +1,171 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright 2020 NXP
*/
/dts-v1/;
#include <dt-bindings/interrupt-controller/arm-gic.h>
/ {
model = "Freescale i.MX8MN EVK";
compatible = "fsl,imx8mn-evk", "fsl,imx8mm";
interrupt-parent = <&gic>;
#address-cells = <2>;
#size-cells = <2>;
aliases {
serial3 = &uart4;
mmc2 = &usdhc3;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
A53_2: cpu@2 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0x2>;
clock-latency = <61036>;
next-level-cache = <&A53_L2>;
enable-method = "psci";
#cooling-cells = <2>;
};
A53_3: cpu@3 {
device_type = "cpu";
compatible = "arm,cortex-a53";
reg = <0x3>;
clock-latency = <61036>;
next-level-cache = <&A53_L2>;
enable-method = "psci";
#cooling-cells = <2>;
};
A53_L2: l2-cache0 {
compatible = "cache";
};
};
osc_24m: clock-osc-24m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
clock-output-names = "osc_24m";
};
gic: interrupt-controller@38800000 {
compatible = "arm,gic-v3";
reg = <0x0 0x38800000 0 0x10000>, /* GIC Dist */
<0x0 0x38880000 0 0xC0000>; /* GICR (RD_base + SGI_base) */
#interrupt-cells = <3>;
interrupt-controller;
interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
};
timer {
compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
clock-frequency = <8333333>;
};
clk_dummy: clock@7 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <0>;
clock-output-names = "clk_dummy";
};
/* The clocks are configured by 1st OS */
clk_200m: clock@8 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <200000000>;
clock-output-names = "200m";
};
clk_266m: clock@9 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <266000000>;
clock-output-names = "266m";
};
clk_80m: clock@10 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <80000000>;
clock-output-names = "80m";
};
pci@bb800000 {
compatible = "pci-host-ecam-generic";
device_type = "pci";
bus-range = <0 0>;
#address-cells = <3>;
#size-cells = <2>;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &gic GIC_SPI 76 IRQ_TYPE_EDGE_RISING>;
reg = <0x0 0xbb800000 0x0 0x100000>;
ranges = <0x02000000 0x00 0x10000000 0x0 0x10000000 0x00 0x10000>;
};
soc@0 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x3e000000>;
dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
aips3: bus@30800000 {
compatible = "fsl,imx8mq-aips-bus", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x30800000 0x30800000 0x400000>,
<0x08000000 0x08000000 0x10000000>;
uart4: serial@30a60000 {
compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart";
reg = <0x30a60000 0x10000>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
usdhc3: mmc@30b60000 {
compatible = "fsl,imx8mn-usdhc", "fsl,imx8mm-usdhc";
reg = <0x30b60000 0x10000>;
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "ipg", "ahb", "per";
fsl,tuning-start-tap = <20>;
fsl,tuning-step= <2>;
bus-width = <4>;
status = "disabled";
};
};
};
};
&uart4 {
clocks = <&osc_24m>,
<&osc_24m>;
clock-names = "ipg", "per";
/delete-property/ dmas;
/delete-property/ dmas-names;
status = "okay";
};
&usdhc3 {
clocks = <&clk_dummy>,
<&clk_266m>,
<&clk_200m>;
/delete-property/assigned-clocks;
/delete-property/assigned-clock-rates;
clock-names = "ipg", "ahb", "per";
bus-width = <8>;
non-removable;
status = "okay";
};

View File

@ -0,0 +1,90 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright 2020 NXP
*/
#include "imx8mn-evk.dts"
&{/} {
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0 0x28000000>;
alloc-ranges = <0 0x40000000 0 0x93c00000>;
linux,cma-default;
};
ivshmem_reserved: ivshmem@0xbbb00000 {
no-map;
reg = <0 0xbbb00000 0x0 0x00100000>;
};
ivshmem2_reserved: ivshmem2@0xbba00000 {
no-map;
reg = <0 0xbba00000 0x0 0x00100000>;
};
pci_reserved: pci@0xbb800000 {
no-map;
reg = <0 0xbb800000 0x0 0x00200000>;
};
loader_reserved: loader@0xbb700000 {
no-map;
reg = <0 0xbb700000 0x0 0x00100000>;
};
jh_reserved: jh@0xb7c00000 {
no-map;
reg = <0 0xb7c00000 0x0 0x00400000>;
};
/* 512MB */
inmate_reserved: inmate@0x93c00000 {
no-map;
reg = <0 0x93c00000 0x0 0x24000000>;
};
};
};
&iomuxc {
/*
* Used for the 2nd Linux.
* TODO: M4 may use these pins.
*/
imx8mn-evk {
pinctrl_uart4: uart4grp {
fsl,pins = <
MX8MN_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140
MX8MN_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140
>;
};
};
};
&clk {
init-on-array = <IMX8MN_CLK_NAND_USDHC_BUS
IMX8MN_CLK_USDHC3_ROOT
IMX8MN_CLK_UART4_ROOT>;
};
&uart2 {
pinctrl-0 = <&pinctrl_uart2>, <&pinctrl_uart4>;
assigned-clocks = <&clk IMX8MN_CLK_UART4>;
assigned-clock-parents = <&clk IMX8MN_CLK_24M>;
};
&usdhc3 {
status = "disabled";
};
&usdhc2 {
pinctrl-0 = <&pinctrl_usdhc3>, <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
pinctrl-1 = <&pinctrl_usdhc3>, <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
pinctrl-2 = <&pinctrl_usdhc3>, <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
};