MMIOT-35-1 arm64: dts: imx8mq drm: create dts for drm purpose
authorAntoine Bouyer <antoine.bouyer@nxp.com>
Wed, 17 Jan 2018 16:47:28 +0000 (17:47 +0100)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:46 +0000 (14:56 -0500)
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-drm.dts [new file with mode: 0644]

index 4a5c986..8b28281 100644 (file)
@@ -55,7 +55,8 @@ dtb-$(CONFIG_ARCH_FSL_IMX8MQ) += fsl-imx8mq-ddr3l-arm2.dtb \
                                 fsl-imx8mq-evk-dcss-rm67191.dtb \
                                 fsl-imx8mq-evk-dual-display.dtb \
                                 fsl-imx8mq-evk-ak4497.dtb \
-                                fsl-imx8mq-evk-audio-tdm.dtb
+                                fsl-imx8mq-evk-audio-tdm.dtb \
+                                fsl-imx8mq-evk-drm.dtb
 
 always         := $(dtb-y)
 subdir-y       := $(dts-dirs)
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-drm.dts b/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-drm.dts
new file mode 100644 (file)
index 0000000..a695afb
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * 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
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "fsl-imx8mq-evk.dts"
+
+&resmem {
+       display_region: imx_ion@1 {
+               compatible = "imx-ion-pool";
+               reg = <0x0 0xe6000000 0 0x18000000>;
+       };
+
+       vpu_region: imx_ion@2 {
+               compatible = "imx-ion-pool";
+               reg = <0x0 0xe4000000 0 0x02000000>;
+       };
+};
+
+&imx_ion {
+       compatible = "fsl,mxc-ion", "linux,ion";
+
+       ion-display-region {
+               compatible = "fsl,display-heap", "linux,ion-heap-unmapped";
+               memory-region = <&display_region>;
+       };
+
+       ion-vpu-region {
+               compatible = "fsl,vpu-heap", "linux,ion-heap-unmapped";
+               memory-region = <&vpu_region>;
+       };
+};