]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ARM: dts: ls1021a-tqmals1021a: Add overlay for CDTech DC44 RGB display
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 8 Apr 2025 09:30:53 +0000 (11:30 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 23 Apr 2025 09:52:22 +0000 (17:52 +0800)
This adds an overlay for the supported RGB display CDTech DC44.
DCU graphics chain is configured accordingly.

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-rgb-cdtech-dc44.dtso [new file with mode: 0644]

index 7b97b718ebc16dfc14f4302a0bf2c571baaca815..53240b04c968821ff081685ce3627c9be46bb486 100644 (file)
@@ -9,7 +9,9 @@ dtb-$(CONFIG_SOC_LS1021A) += \
 
 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
+ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-dc44-dtbs += ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-dc44.dtbo
 ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-fc21-dtbs += ls1021a-tqmls1021a-mbls1021a.dtb ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-fc21.dtbo
 dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-hdmi.dtb
 dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-lvds-tm070jvhg33.dtb
+dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-dc44.dtb
 dtb-$(CONFIG_SOC_LS1021A) += ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-fc21.dtb
diff --git a/arch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-dc44.dtso b/arch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a-rgb-cdtech-dc44.dtso
new file mode 100644 (file)
index 0000000..146d456
--- /dev/null
@@ -0,0 +1,55 @@
+// 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>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/dts-v1/;
+/plugin/;
+
+&backlight_dcu {
+       status = "okay";
+};
+
+&dcu {
+       status = "okay";
+
+       port {
+               dcu_out: endpoint {
+                       remote-endpoint = <&panel_in>;
+               };
+       };
+};
+
+&display {
+       compatible = "cdtech,s070swv29hg-dc44";
+       status = "okay";
+};
+
+&i2c0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       polytouch: touchscreen@38 {
+               compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
+               reg = <0x38>;
+               interrupt-parent = <&pca9554_0>;
+               interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
+               /* LCD_PWR_EN -> TSC_WAKE */
+               wake-gpios = <&pca9554_1 4 GPIO_ACTIVE_HIGH>;
+               iovcc-supply = <&reg_3p3v>;
+               vcc-supply = <&reg_3p3v>;
+               gain = <20>;
+               touchscreen-size-x = <800>;
+               touchscreen-size-y = <480>;
+       };
+};
+
+&panel_in {
+       remote-endpoint = <&dcu_out>;
+};