Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3034875lqo; Tue, 21 May 2024 05:10:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXodY5OFm2jIkLEGfCwJlxM3xHY0vvf/C6aI4ABuH5joFCvHbg6y+9BemsuC0QIxoiPTGs+xTixY8enjO+50+H2a5KOGcNCFb/Ue6Gd7w== X-Google-Smtp-Source: AGHT+IHVQ7mSEROUUeBBW6FlqmgDwvg4Mbjr2iJmaKqh4c+Dbgv79v8BNpJbzXafkjZdI4JfmzLU X-Received: by 2002:a5b:a49:0:b0:de6:3e6:55a8 with SMTP id 3f1490d57ef6-dee4f3248dbmr29080391276.2.1716293447379; Tue, 21 May 2024 05:10:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716293447; cv=pass; d=google.com; s=arc-20160816; b=BHlcE5iLDOQNng3+Qgp9baJ7x2jc8PFtB637D4H7h18zRAhxP8wB3dsOKwlLFwSO3P 0y9/Cd1IyOTrDLuoEZbfXSwqTJl0+addkP1aXEbrlETO3Ehc7SxDBSX/LH3Ud+DpSdDC AEAOwv/JdzVRfZzwUXaelvFHLkHV5cY8PfcW2yUaR0JOIyMeZxmew0iBohCdqkRSgaAJ lQBzPhnfgqSBcRP7k23PmIcrbUZD+9QQ/iJLpolIBkZ8zQ1IX9MRSpAweXYGTMp66Llo d2dQHF+ESM2Wu3IGhavZ8Kv3vK+5hXZoSlW2d/k0GFsMGAalPVKdHJwyLPRvG7Ub92ag jQXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=6ut/7usexP9D3YEnZ5grcgW2U0xIbNP3sD+0k9OUyD0=; fh=sVRaTOtKjyPSN0s9b+jqMnKtcpQylPSzoS8zNL3FCco=; b=ARJUhZGi6P1B2rsWS5gETRvSSTEb+esE5CWKuxlN0ZJSRhB/fLre6UAXCF7UrZjlV0 qUPCp64HTrA0U/GjBUcksrGt9GiJaKaxpaWf6Wkr9o8XNzIeFNXqh4jga3hov/tN/UKt 3Bog/NSQcJx0DeCZ1AuftpAYhT/b8+AA720WvXYqoRIUNYT5v2wpAk/J/KXcMQ7IfmgK UpBoSsH2nquita+DIx+ZpAQ6jiquIrsUca1PDuP5AOZ4VBAC/D4f7dF18NhVP+QqiueY qWy4NFRPMmCsUwG4lwiEb6Gxbq6Ig7rv/NTvpp2YvTI2u6KwB01kY4GmTcp1yXUE4nFj OJ+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TSdto/ub"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a1e0cc1a2514c-7f9000e3421si4905927241.160.2024.05.21.05.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="TSdto/ub"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 19AE91C2221F for ; Tue, 21 May 2024 12:10:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A78F770EF; Tue, 21 May 2024 12:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TSdto/ub" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 447647581A; Tue, 21 May 2024 12:10:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716293428; cv=none; b=Psdw/q55pRMsudD6tU5lXaRhSc6/JXaevY377SsqxljIfgGDLq+GrAXf0a+EXzGJSPY+iFAmBP7HzNMYqty1MqNpiMsPHrNQA2VaKGGiM9hn7QC6SW+sM46HcmvrpRV2RKhEfyI3k7m+VKm51Nfl1zLDVp/UKpiDYhYeLvVR7YI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716293428; c=relaxed/simple; bh=UG5eBhNRoib+nYNoHj5imPkbdo4AU8SmjD6PNxoq7gM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j3QtDsch+f0v5ldB1MKzLtiqHTBWmkoka1X4pG+0bhHC4nIen3lHpnfVToWCFy4qPutYa3rZrSXwKk+MU+MywoZdIfWzRcI7zG5IfbVvaScGIfdbpU8nL1XuwQQXFmMnJCeT4zbRRcjXR7VcMT1I8g9pdzrdZ3AeWWIqF0Ci/uQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TSdto/ub; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id DF557C32789; Tue, 21 May 2024 12:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716293428; bh=UG5eBhNRoib+nYNoHj5imPkbdo4AU8SmjD6PNxoq7gM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=TSdto/ubvqOF+SkOLydd0ua3x4Pl9NScjWMBvqtnI9PYHJh8J5bZTpH3GrPOSRZN2 U29YccWmqw1Cy3I1WNW+vs2zHvq2bzYNjZx2h//LviDPr4LmvJ26Xuhpv8loeTu+AK 60kDmDJJrmK8WhZldFEO60CJ4pYlNRVX8erLRBLKXurZSvKCbyhUPuaLqPck+OfUKF YM5xwPYd8AYv6tBvopacHX2hqmLniGRNGiqsn4uHyOajGjWEykrUkHNtasYFuqawQ+ ItB8OxzH9e1MK4mBE1KwsEP5v8XQYcdmkg28bPdzYggGzFTSfwxcAvFEHmk7nyl7gP VJ9CizJDi5AAQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6191C25B7A; Tue, 21 May 2024 12:10:27 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Tue, 21 May 2024 07:09:45 -0500 Subject: [PATCH 1/2] dt-bindings: input: document Novatek NVT touchscreen controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240521-nvt-ts-devicetree-regulator-support-v1-1-8d766c639dca@gmail.com> References: <20240521-nvt-ts-devicetree-regulator-support-v1-0-8d766c639dca@gmail.com> In-Reply-To: <20240521-nvt-ts-devicetree-regulator-support-v1-0-8d766c639dca@gmail.com> To: Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Selvaraj X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1716293427; l=2805; i=joelselvaraj.oss@gmail.com; s=20240420; h=from:subject:message-id; bh=95WsWhwuKwzTjQEHVYwidX2cErhdi13Wf2Y2e3kqVx4=; b=DFdnkNQ88kGuYJgJN2dt9CqbycC27i5ly3Gg5cl4PZJMTdk2g+tzWNiUokTLfTH1ME1f9Lpvb tx0rruaBrubDIWMG71ap8cQ3MWdbsPkNF/C+TMRmEk4l7kY3X7iozMm X-Developer-Key: i=joelselvaraj.oss@gmail.com; a=ed25519; pk=qT4gsuVtlPE0Dpr+tQA/Fumm7wzVP6qfeVaY+6pX04s= X-Endpoint-Received: by B4 Relay for joelselvaraj.oss@gmail.com/20240420 with auth_id=165 X-Original-From: Joel Selvaraj Reply-To: joelselvaraj.oss@gmail.com From: Joel Selvaraj Document the Novatek NVT touchscreen driver which is used in devices like the Xiaomi Poco F1 [1]. Also, include the devictree binding file in the MAINTAINERS file. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts?h=v6.9 Signed-off-by: Joel Selvaraj --- .../bindings/input/touchscreen/novatek,nvt-ts.yaml | 62 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 63 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml b/Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml new file mode 100644 index 0000000000000..7839c6a028e4a --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/novatek,nvt-ts.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek NVT Touchscreen Controller + +maintainers: + - Hans de Goede + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - novatek,nvt-ts + - novatek,nt36672a-ts + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + vcc-supply: true + iovcc-supply: true + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@1 { + compatible = "novatek,nt36672a-ts"; + reg = <0x01>; + interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_RISING>; + reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + vcc-supply = <&vreg_l22a_2p85>; + iovcc-supply = <&vreg_l14a_1p8>; + pinctrl-0 = <&ts_int_default &ts_reset_default>; + pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>; + pinctrl-names = "default", "sleep"; + touchscreen-size-x = <1080>; + touchscreen-size-y = <2246>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 90754a451bcfc..e1f744992b15f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15942,6 +15942,7 @@ NOVATEK NVT-TS I2C TOUCHSCREEN DRIVER M: Hans de Goede L: linux-input@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml F: drivers/input/touchscreen/novatek-nvt-ts.c NSDEPS -- 2.45.1