arm64: dts: imx8mm-tqma8mqml-mba8mx: Add LVDS overlay
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 22 Aug 2023 12:08:01 +0000 (14:08 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 00:38:41 +0000 (08:38 +0800)
This overlay enables the DSI-LVDS display chain and configures the
actual panel compatible. Also add the DSIM supply voltages.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtso [new file with mode: 0644]
arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi

index 65faceaa1786b8ac74a3d120ecb4299840508a31..ef4f17a01f14a8d406e1bb0e04c4daab553ffc2b 100644 (file)
@@ -82,6 +82,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-nonwifi-yavia.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-wifi-dahlia.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-wifi-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-wifi-yavia.dtb
+
+imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33-dtbs += imx8mm-tqma8mqml-mba8mx.dtb imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtbo
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtb
+
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-bsh-smm-s2.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-bsh-smm-s2pro.dtb
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtso b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtso
new file mode 100644 (file)
index 0000000..e44249c
--- /dev/null
@@ -0,0 +1,45 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
+/*
+ * Copyright (c) 2022-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
+ * D-82229 Seefeld, Germany.
+ * Author: Alexander Stein
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+&{/} {
+       compatible = "tq,imx8mm-tqma8mqml-mba8mx", "tq,imx8mm-tqma8mqml", "fsl,imx8mm";
+};
+
+&backlight_lvds {
+       status = "okay";
+};
+
+&dsi_lvds_bridge {
+       status = "okay";
+};
+
+&expander0 {
+       dsi-mux-oe-hog {
+               gpio-hog;
+               gpios = <10 GPIO_ACTIVE_LOW>;
+               output-high;
+               line-name = "DSI_MUX_OE#";
+       };
+};
+
+&lcdif {
+       status = "okay";
+};
+
+&mipi_dsi {
+       status = "okay";
+};
+
+&panel {
+       compatible = "tianma,tm070jvhg33";
+       status = "okay";
+};
index b4466a26d838a414fa6fba88ca1203434ba9f5d1..8c0c6e715924713001f0dc0def853166345ffaff 100644 (file)
        };
 };
 
+&mipi_dsi {
+       vddcore-supply = <&ldo4_reg>;
+       vddio-supply = <&ldo3_reg>;
+};
+
 &pcie_phy {
        fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
        fsl,clkreq-unsupported;