]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: ls1021a-tqmals1021a: Add LVDS overlay for Tianma TM070JVGH33
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 8 Apr 2025 09:30:51 +0000 (11:30 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 23 Apr 2025 09:52:21 +0000 (17:52 +0800)
This adds an overlay for the supported LVDS display tianma tm070jvhg33.
The on-board RGB-to-LVDS encoder and DCU graphics chain are configured
accordingly. Add power supply as well, which had been missing all the time.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/ls/Makefile
arch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtso [new file with mode: 0644]
arch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts

index 225a7665b8ad1807f0f1a83497e7ac404c4f7441..7f96de6f8022468b9c47abd4a8e3fc754b7e1a4a 100644 (file)
@@ -8,4 +8,6 @@ dtb-$(CONFIG_SOC_LS1021A) += \
        ls1021a-twr.dtb
 
 ls1021a-tqmls1021a-mbls1021a-hdmi-dtbs += ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-hdmi.dtbo
+ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33-dtbs += ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtbo
 dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-hdmi.dtb
+dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtb
diff --git a/arch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtso b/arch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtso
new file mode 100644 (file)
index 0000000..e9708f3
--- /dev/null
@@ -0,0 +1,47 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
+/*
+ * Copyright 2013-2014 Freescale Semiconductor, Inc.
+ * Copyright 2018-2025 TQ-Systems GmbH <linux@ew.tq-group.com>,
+ * D-82229 Seefeld, Germany.
+ * Author: Alexander Stein
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+
+/dts-v1/;
+/plugin/;
+
+&backlight_dcu {
+       status = "okay";
+};
+
+&dcu {
+       status = "okay";
+
+       port {
+               dcu_out: endpoint {
+                       remote-endpoint = <&lvds_encoder_in>;
+               };
+       };
+};
+
+&display {
+       compatible = "tianma,tm070jvhg33";
+       status = "okay";
+};
+
+&lvds_encoder {
+       status = "okay";
+};
+
+&lvds_encoder_in {
+       remote-endpoint = <&dcu_out>;
+};
+
+&lvds_encoder_out {
+       remote-endpoint = <&panel_in>;
+};
+
+&panel_in {
+       remote-endpoint = <&lvds_encoder_out>;
+};
index 27a55fa638128b30586a2ea99a0fb4049c2e4993..80dae0c09542dd5aee65197291b7686a79f7662e 100644 (file)
        display: panel {
                backlight = <&backlight_dcu>;
                enable-gpios = <&pca9554_1 3 GPIO_ACTIVE_HIGH>;
+               power-supply = <&reg_3p3v>;
                status = "disabled";
 
                port {