Add dedicated dts for OP-TEE.
The modification is about ocram partition. The default dtsi
use lower ocram area for low power things. But i.MX
chips TZASC could only protect OCRAM from high address to low address.
So modify the OCRAM space for OP-TEE.
The PSCI/OPTEE firmware node will be dynamically created in OP-TEE.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
imx6dl-sabreauto-enetirq.dtb \
imx6dl-sabreauto-flexcan1.dtb \
imx6dl-sabreauto-gpmi-weim.dtb \
+ imx6dl-sabreauto-optee.dtb \
imx6dl-sabrelite.dtb \
imx6dl-sabresd.dtb \
imx6dl-sabresd-btwifi.dtb \
imx6dl-sabresd-hdcp.dtb \
imx6dl-sabresd-ldo.dtb \
+ imx6dl-sabresd-optee.dtb \
imx6dl-ts4900.dtb \
imx6dl-tx6dl-comtft.dtb \
imx6dl-tx6s-8034.dtb \
imx6q-sabreauto-enetirq.dtb \
imx6q-sabreauto-flexcan1.dtb \
imx6q-sabreauto-gpmi-weim.dtb \
+ imx6q-sabreauto-optee.dtb \
imx6q-sabrelite.dtb \
imx6q-sabresd.dtb \
imx6q-sabresd-btwifi.dtb \
imx6q-sabresd-hdcp.dtb \
imx6q-sabresd-ldo.dtb \
imx6q-sabresd-enetirq.dtb \
+ imx6q-sabresd-optee.dtb \
imx6q-sbc6x.dtb \
imx6q-tbs2910.dtb \
imx6q-ts4900.dtb \
imx6qp-sabreauto-ecspi.dtb \
imx6qp-sabreauto-flexcan1.dtb \
imx6qp-sabreauto-gpmi-weim.dtb \
+ imx6qp-sabreauto-optee.dtb \
imx6qp-sabresd-btwifi.dtb \
imx6qp-sabresd-hdcp.dtb \
imx6qp-sabresd-ldo.dtb \
imx6qp-sabresd-ldo-pcie-cert.dtb \
+ imx6qp-sabresd-optee.dtb \
imx6qp-sabresd.dtb
dtb-$(CONFIG_SOC_IMX6SL) += \
imx6sl-evk.dtb \
imx6sx-14x14-arm2.dtb \
imx6sx-sabreauto.dtb \
imx6sx-sabreauto-m4.dtb \
+ imx6sx-sabreauto-optee.dtb \
imx6sx-sdb-reva.dtb \
imx6sx-sdb-sai.dtb \
imx6sx-sdb-reva-ldo.dtb \
imx6sx-sdb-m4.dtb \
imx6sx-sdb-mqs.dtb \
imx6sx-sdb-sai.dtb \
+ imx6sx-sdb-optee.dtb \
imx6sx-19x19-arm2.dtb \
imx6sx-19x19-arm2-ldo.dtb \
imx6sx-19x19-arm2-csi.dtb \
imx6ul-14x14-evk-emmc.dtb \
imx6ul-14x14-evk-gpmi-weim.dtb \
imx6ul-14x14-evk-usb-certi.dtb \
+ imx6ul-14x14-evk-optee.dtb \
imx6ul-geam-kit.dtb \
imx6ul-pico-hobbit.dtb \
imx6ul-tx6ul-0010.dtb \
imx6ul-9x9-evk-btwifi.dtb \
imx6ul-9x9-evk-btwifi-oob.dtb \
imx6ul-9x9-evk-csi.dtb \
+ imx6ul-9x9-evk-optee.dtb \
imx6ul-9x9-evk-ldo.dtb
dtb-$(CONFIG_SOC_IMX6ULL) += \
imx6ull-14x14-ddr3-arm2.dtb \
imx6ull-14x14-evk-emmc.dtb \
imx6ull-14x14-evk-gpmi-weim.dtb \
imx6ull-14x14-evk-usb-certi.dtb \
+ imx6ull-14x14-evk-optee.dtb \
imx6ull-9x9-evk.dtb \
imx6ull-9x9-evk-btwifi.dtb \
imx6ull-9x9-evk-btwifi-oob.dtb \
imx7d-sdb-m4.dtb \
imx7d-sdb-qspi.dtb \
imx7d-sdb-mipi-dsi.dtb \
+ imx7d-sdb-optee.dtb \
imx7d-sdb-reva.dtb \
imx7d-sdb-reva-epdc.dtb \
imx7d-sdb-reva-gpmi-weim.dtb \
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6dl-sabreauto.dts"
+
+&ocram {
+ reg = <0x00905000 0x13000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6dl-sabresd.dts"
+
+&ocram {
+ reg = <0x00905000 0x13000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6q-sabreauto.dts"
+
+&ocram {
+ /* Reserve the high 32K for OP-TEE */
+ reg = <0x00905000 0x33000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6q-sabresd.dts"
+
+&ocram {
+ /* Reserve the high 32K for OP-TEE */
+ reg = <0x00905000 0x33000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6qp-sabreauto.dts"
+
+/* TODO: This needs to be changed to use OCRAM3 */
+&ocram {
+ reg = <0x00905000 0x33000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6qp-sabresd.dts"
+
+/* TODO: This needs to be changed to use OCRAM3 */
+&ocram {
+ reg = <0x00905000 0x33000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6sx-sabreauto.dts"
+
+&ocram {
+ reg = <0x00905000 0x1b000>;
+};
+
+&ocrams_ddr {
+ reg = <0x00904000 0x1000>;
+};
+
+&ocrams {
+ /* 0x8f8000 are used by optee */
+ reg = <0x00900000 0x4000>;
+ clocks = <&clks IMX6SX_CLK_OCRAM>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6sx-sdb.dts"
+
+&ocram {
+ reg = <0x00905000 0x1b000>;
+};
+
+&ocrams_ddr {
+ reg = <0x00904000 0x1000>;
+};
+
+&ocrams {
+ /* 0x8f8000 are used by optee */
+ reg = <0x00900000 0x4000>;
+ clocks = <&clks IMX6SX_CLK_OCRAM>;
+};
--- /dev/null
+
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6ul-14x14-evk.dts"
+
+&ocram {
+ reg = <0x00905000 0x13000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6ul-9x9-evk.dts"
+
+&ocram {
+ reg = <0x00905000 0x13000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6ull-14x14-evk.dts"
+
+&ocram {
+ reg = <0x00905000 0x13000>;
+};
--- /dev/null
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include "imx7d-sdb.dts"
+
+&ocram {
+ reg = <0x00905000 0x1b000>;
+};
+
+&ocrams_ddr {
+ reg = <0x00904000 0x1000>;
+};
+
+&ocrams {
+ /* 0x180000 are used by optee */
+ reg = <0x00900000 0x4000>;
+ clocks = <&clks IMX7D_OCRAM_CLK>;
+};