Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp594906lqb; Fri, 24 May 2024 07:40:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjDFsQdq5QV9QJxeofGOKlB6+xc/OoeBNuzAoaZWle5/lPAfGeyjHVpx1QWpeF1LuIUf6WU1Tc9EsfmwanNzTUkD9eBvjBhdMbGSy+4A== X-Google-Smtp-Source: AGHT+IFPAr3fRXG3gw4cxnswtfeYn8pwbUSKQU3yT3q+no2D5Zv9wF4dshjFsboTmXSIucu8jWlm X-Received: by 2002:a17:906:2511:b0:a5a:1b78:9450 with SMTP id a640c23a62f3a-a62641c7b2emr161846566b.6.1716561616590; Fri, 24 May 2024 07:40:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716561616; cv=pass; d=google.com; s=arc-20160816; b=eEJMvRrAqGmigUo8CZ8KjQLTVm7sIN+EnReQF890v2WRwZiyTOSsGx+DdB9zzWAJN+ lJlOOLbxoMUXK1NdN2y9sDPOme3Mbyz14nP0LMy8Hmc71PjiflTRm4wlK/fOVoSFj1q9 D5ilQQT4GQon4obTPlYAS8aO6pgEFpeOX+/dJgRLSM3kYYVrzvA0SNCOob9vBEjE3gHL 3Fk8Ai+Rbp94lJfZM1aLYs/FtjqBen331xLl1E8zEG5QYrEycW8VuF2RD6I2DX58FBub VxEthqPcv3zr9ip+RH6FpusfIpLyyF5Zg36HTUAnxca9NdZRry6/RDDUAMmThmohxDXn 2njg== 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=b5BNLCccHyq7v3/MCuMnxC3+ZYrhuMy2SwAL1n4B0jU=; fh=+bITLk+4bZifTNvdyo0ho6D4aPp0DWOpWOQEylePalg=; b=lPXVA8s8x4toH8K4BVYerJI1KoRtgd6tIN9WZykvJb3Xuy6rJMCkJsO01SQD/d+rQD CPBbxFOTr+Zde8deaosPDlqEWVQIkeAvE/A/9Oef9sAPt2VCYY4TdnDRqNRdl2MICqgJ 3aCOp6cj1fcPtik9WlJuTSAKr2fixhzY90xNTN310ldtyTNn1yGMvWEDx3XJxP6BGOna r7yhyKl1HhSCUoeH+XGHntzgZDnm0V+GPW54PE1EhmQa0dmmgDwIofbxOpKc88zMhOGn dSIMW3tbz20qaBorYGB4ZUVYvbaz0HquQUwbiziuYQ7hWkEvsFfLv2wX54Bc/hei0QAr AUMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5U1d6lj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc3662dsi88603066b.349.2024.05.24.07.40.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 07:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5U1d6lj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188808-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 52EC81F21C8D for ; Fri, 24 May 2024 14:40:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C89CC12CDBE; Fri, 24 May 2024 14:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a5U1d6lj" 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 D1CC117C9; Fri, 24 May 2024 14:39:49 +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=1716561589; cv=none; b=mhSZozOCHHwLC7QBTi9Llbcv9sXgk0e9kLoTbzMDhl6ODod6YAhYvjF6SbMvPxfpNKTeBDL52hNgmOt9W/8RcM3P9bx3pIEpsLRgwH2O73GssuadzfozrOW7Ed51hYGVBCiqpPo6K9xIhvSoZkGdIhmyS3wUbh/3SXNDfjiXPts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716561589; c=relaxed/simple; bh=qPagS3nf7JxLDEBoJP6Rlhnx9zPxEQqI9AG4+8sd/Oo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SXrlhEh/wTJKWQ16zw324XF0Jbfs3tL3AdgAVzpin9wJrtykg2Yyn8pO1p6Dg95dPxl0LKyjNrOkUKqDGxFPSiCme/hkVfA19m1AtkZZJwxkcMnGywWvTchgBdhE92KIoYD7TcxfT/YvQd/q+wNllnTrxuTks6xwmHHB7eWsiOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a5U1d6lj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 81378C2BD11; Fri, 24 May 2024 14:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716561589; bh=qPagS3nf7JxLDEBoJP6Rlhnx9zPxEQqI9AG4+8sd/Oo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=a5U1d6lj5avUgnLbwhLnasDun9VuLD6Pq/mjpi/7jv7N7IGzpIngjgD4vilY1n6QZ zOfbqsOmWG1fxUABq3uBdE2Pf67RCpya3JZRtbrU8EAjEq5oRHJqxRiZAUazcw2ekT iLj+dG3T5C1aKQCpib/8bKODh+xQnpzheOniz3SHbA7sjxl4Poqg8XVMuhkbHIe4rW Uzz6GyNwE2K2WuFK4FzA3QLbDUrQPvoMsNdIoiXBqDbAGh5GTUq9jaU7hr5vPGh0AZ JPncP6XxhC+5r8zyDInFjaaLJvEc3mr2h5MQRA377B2DbzViyLaCLvura7nl6j0sIm 4jhX8OEwoRf5A== 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 6912FC25B7D; Fri, 24 May 2024 14:39:49 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Fri, 24 May 2024 09:39:19 -0500 Subject: [PATCH v2 2/3] 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: <20240524-nvt-ts-devicetree-regulator-support-v2-2-b74947038c44@gmail.com> References: <20240524-nvt-ts-devicetree-regulator-support-v2-0-b74947038c44@gmail.com> In-Reply-To: <20240524-nvt-ts-devicetree-regulator-support-v2-0-b74947038c44@gmail.com> To: Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Joel Selvaraj X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1716561588; l=2807; i=joelselvaraj.oss@gmail.com; s=20240420; h=from:subject:message-id; bh=Y6dkGY1AKwCQh1ciYwF2DiXPtYGhHE52a60bkhbIlpc=; b=YJD1TuFL0D65mNKAyem1JMSxF062NJeL2lFevzqLNvapmkGwEpGn6W+EksRgr26odzQCIas0Z ARnVuVCHoCHAQSjHxcO1EKB+XS9z9dysNdHYAWfB8a2InIhr0Ja1/na 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 controller present 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..c47b4de9d58e7 --- /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,nt11205-ts + - novatek,nt36672a-ts + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + vcc-supply: true + iovcc-supply: true + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +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