From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C925CCD5BAC for ; Thu, 21 May 2026 15:01:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0723610F385; Thu, 21 May 2026 15:01:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="o6UgBdWN"; dkim-atps=neutral Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 527D610F380 for ; Thu, 21 May 2026 15:01:07 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4891e5b9c1fso56022885e9.2 for ; Thu, 21 May 2026 08:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779375666; x=1779980466; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g2nNvQ/9QzF53UePGdmOGFkUv81LpKRUaMuMcSzTUng=; b=o6UgBdWNce0JHOPcQ0YHrAqmmwqJ6bKypJMN9oVXuwQfM49T6S1HZOicYnjmalzv9A cE5/rDxWr2ZPUOftvqpQh0idK659lunyMFZrfbIZLYdFLwpB37T4d0YFKdTxT7V34MBD NaErFp7bRU4uxjtP/4lxe1CBVNOkgjxFk/uQRHrOyzSmmL6F3RB6jZfwouinfx9IEStT Q6IF8YtiuQ7dBw9hVaa0ndhi984qSOX/W7rfVDkwVof3FyJpprJRpmpzbYmWphLixbag fp8IfdC50RIifeQHSV7Df0vpPmoqgR4iWO7lSvpobQm7RSWG0Zk2Ic/ry8pByh2Tzw32 SdBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779375666; x=1779980466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=g2nNvQ/9QzF53UePGdmOGFkUv81LpKRUaMuMcSzTUng=; b=cdg3MaWao5VuT1tzM4Ay7arbyM/eW1mpP/GDdM2CzkCMnBkP11Mbr53YScew6uCNnS 2UeT1et0TS15brcnH8u4Su4xfUsCLIoquxZm1vN1cIhoSo4nU1Wa56+HCHLsN0oZbbMU RA9SanWGClIG84pPXKH6W2G82D0C/pMawUj4gJHnqICR/QzoeRRQlCCnKSLa05cekn05 /YvsX5SdIH5jU/wlENac//ybhhc1XvpsgnCl9cr8esm7VkNy5+UnyikZSljhMvM8m1eX NG3GRkfscWFezgh2AqvtZLeQ3nDwkMjYZMENPiTd3VZ11m8nQ1ZDcEMALJKWcu8JIrgX /1hg== X-Forwarded-Encrypted: i=1; AFNElJ9saNdCCvIyJfPVxosAK6VBo5VHiMPr7RetUn3eX3WYJcaf+vzfUSSYNko6Hx+ftRWUnwvB/uSGzOU=@lists.freedesktop.org X-Gm-Message-State: AOJu0YwBYjqX8DfP5UOKhXaOtpnIvogsVhwC16M+7aBlixovcRWlnZU+ 5SVAvid9FxM/XJNDvNYv3HtmassgUpfCsCXGwz+OhApAgJwB35OnZGV6 X-Gm-Gg: Acq92OGQ+zlbNLSjvs2RkSEUyPqkjTf7FWYlVd2o3bmabtg2K1SsAR13Pk+b4uqZoCR 3lblqO9KgAmHA1HLc2XL9SpqRIQkV4AnWkVD8RtMQ428iqlz+jwvRdHiAGMoTqVduUqety0yj3E BqdQbcB2c/SMuUfmQJTQ1bDlxuk4jAqiKtRjWOF+MDMcEAIQBm9MYvJNjMCEuN6EiUebo/Y4Epq IY+miwDWf/twZqCDZtj27Y/riDKf+/yPAc6n5AHwqx2Pk6yMYbOqddWQ+6jSyHlZspEyPnACUNT n2Ncsfgf3AhqdOL+kdj/MlNlrw00gO7kuSc/RSWaJKi7zd37cwa6wvfPruWqTco2qbMh0m1ecXr LE71yh9B+RHCJ5d9wwRzg/EW0JuhXbiZU0yezSoRRvXhUeG3jXfI3CIaEsupNtFDoQHQuZ7dOBo D3jEim/+iSZ/JPk4y4O2GLHI48T2NTbCsOZIVUgP8Sow== X-Received: by 2002:a05:600c:4d82:b0:48f:e230:8caa with SMTP id 5b1f17b1804b1-490360ceaf7mr29173645e9.30.1779375665343; Thu, 21 May 2026 08:01:05 -0700 (PDT) Received: from vitor-nb (dsl-113-208.bl27.telepac.pt. [176.79.113.208]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4903caede9fsm34056745e9.14.2026.05.21.08.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 08:01:04 -0700 (PDT) From: Vitor Soares To: Laurent Pinchart , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Lad Prabhakar , Thierry Reding , Sam Ravnborg Cc: Vitor Soares , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 03/15] arm64: dts: ti: k3-am62-verdin: Add Toradex Capacitive Touch Display 10.1" LVDS Date: Thu, 21 May 2026 16:00:39 +0100 Message-ID: <20260521150038.103538-20-ivitro@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260521150038.103538-17-ivitro@gmail.com> References: <20260521150038.103538-17-ivitro@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Vitor Soares Add a device tree overlay for the Toradex Capacitive Touch Display 10.1" LVDS connected via Verdin AM62 OLDI on carrier boards exposing LVDS interface (e.g., Mallow). The panel is a LogicTechno LT170410-2WHC 10.1" WXGA IPS LCD and the touch input is provided by an Atmel MaxTouch capacitive touch controller. Link: https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds Assisted-by: Claude:claude-sonnet-4.6 Signed-off-by: Vitor Soares --- arch/arm64/boot/dts/ti/Makefile | 5 + ...25-verdin-panel-cap-touch-10inch-lvds.dtso | 131 ++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index b2408f62c139..867c05b675d1 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -33,6 +33,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-ivy.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-mallow.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-yavia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-zinnia.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-panel-cap-touch-10inch-lvds.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dahlia-dsi-to-hdmi.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dev-dsi-to-hdmi.dtb @@ -213,6 +214,9 @@ k3-am625-sk-hdmi-audio-dtbs := k3-am625-sk.dtb k3-am62x-sk-hdmi-audio.dtbo k3-am625-verdin-wifi-dev-dsi-to-lvds-panel-cap-touch-10inch-dtbs := \ k3-am625-verdin-wifi-dev.dtb \ k3-am625-verdin-dsi-to-lvds-panel-cap-touch-10inch.dtbo +k3-am625-verdin-wifi-mallow-panel-cap-touch-10inch-lvds-dtbs := \ + k3-am625-verdin-wifi-mallow.dtb \ + k3-am625-verdin-panel-cap-touch-10inch-lvds.dtbo k3-am62-lp-sk-hdmi-audio-dtbs := k3-am62-lp-sk.dtb k3-am62x-sk-hdmi-audio.dtbo k3-am62-lp-sk-nand-dtbs := k3-am62-lp-sk.dtb k3-am62-lp-sk-nand.dtbo k3-am62a7-phyboard-lyra-disable-eth-phy-dtbs := k3-am62a7-phyboard-lyra-rdk.dtb \ @@ -315,6 +319,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am625-sk-csi2-tevi-ov5640.dtb \ k3-am625-sk-hdmi-audio.dtb \ k3-am625-verdin-wifi-dev-dsi-to-lvds-panel-cap-touch-10inch.dtb \ + k3-am625-verdin-wifi-mallow-panel-cap-touch-10inch-lvds.dtb \ k3-am62-lp-sk-hdmi-audio.dtb \ k3-am62-lp-sk-nand.dtb \ k3-am62a7-phyboard-lyra-disable-eth-phy.dtb \ diff --git a/arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso b/arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso new file mode 100644 index 000000000000..893dde0e2e2b --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-verdin-panel-cap-touch-10inch-lvds.dtso @@ -0,0 +1,131 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) Toradex + * + * Toradex Capacitive Touch Display 10.1" connected via Verdin AM62 OLDI + * on carrier boards with a Toradex standard LVDS display connector + * (e.g., Mallow). + * + * https://developer.toradex.com/hardware/accessories/displays/capacitive-touch-display-101inch-lvds + * https://www.toradex.com/accessories/capacitive-touch-display-10.1-inch-lvds + */ + +/dts-v1/; +/plugin/; + +#include +#include +#include +#include "k3-pinctrl.h" + +&{/} { + backlight_pwm2: backlight-pwm2 { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2s_2_d_out_gpio>; + brightness-levels = <0 45 63 88 119 158 203 255>; + default-brightness-level = <4>; + /* Verdin I2S_2_D_OUT as GPIO (SODIMM 46) */ + enable-gpios = <&main_gpio0 34 GPIO_ACTIVE_HIGH>; + /* Verdin PWM_2 (SODIMM 16) */ + pwms = <&epwm0 1 6666667 PWM_POLARITY_INVERTED>; + }; + + panel-lvds-native { + compatible = "logictechno,lt170410-2whc", "panel-lvds"; + backlight = <&backlight_pwm2>; + data-mapping = "vesa-24"; + height-mm = <136>; + width-mm = <217>; + + panel-timing { + clock-frequency = <71100000>; + de-active = <1>; + hactive = <1280>; + hback-porch = <3 40 51>; + hfront-porch = <43 80 91>; + hsync-active = <0>; + hsync-len = <15 40 47>; + pixelclk-active = <1>; /* positive edge */ + vactive = <800>; + vback-porch = <5 7 10>; + vfront-porch = <5 7 10>; + vsync-active = <0>; + vsync-len = <6 9 12>; + }; + + port { + panel_lvds_native_in: endpoint { + remote-endpoint = <&oldi0_out>; + }; + }; + }; +}; + +&dss { + status = "okay"; +}; + +&dss_ports { + #address-cells = <1>; + #size-cells = <0>; + + /* DSS VP1: internal DPI output to OLDIx */ + port@0 { + reg = <0>; + + dss0_out: endpoint { + remote-endpoint = <&oldi0_in>; + }; + }; +}; + +/* Verdin I2C_2_DSI */ +&main_i2c2 { + #address-cells = <1>; + #size-cells = <0>; + + touch@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2s_2_d_in_gpio>, <&pinctrl_i2s_2_sync_gpio>; + /* Verdin I2S_2_SYNC as GPIO (SODIMM 44) */ + interrupt-parent = <&main_gpio0>; + interrupts = <37 IRQ_TYPE_EDGE_FALLING>; + /* Verdin I2S_2_D_IN as GPIO (SODIMM 48) */ + reset-gpios = <&main_gpio0 33 GPIO_ACTIVE_LOW>; + }; +}; + +&main_pmx0 { + /* Mallow Touch RST */ + pinctrl_i2s_2_d_in_gpio: main-gpio0-33-default-pins { + pinctrl-single,pins = < + AM62X_IOPAD(0x0088, PIN_INPUT, 7) /* (L24) GPMC0_OEn_REn.GPIO0_33 */ /* SODIMM 48 */ + >; + }; + + /* Mallow Touch INT#*/ + pinctrl_i2s_2_sync_gpio: main-gpio0-37-default-pins { + pinctrl-single,pins = < + AM62X_IOPAD(0x0098, PIN_INPUT, 7) /* (U23) GPMC0_WAIT0.GPIO0_37 */ /* SODIMM 44 */ + >; + }; +}; + +&oldi0 { + status = "okay"; +}; + +&oldi0_port0 { + oldi0_in: endpoint { + remote-endpoint = <&dss0_out>; + }; +}; + +&oldi0_port1 { + oldi0_out: endpoint { + remote-endpoint = <&panel_lvds_native_in>; + }; +}; -- 2.54.0