Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp74016lqj; Sat, 1 Jun 2024 08:30:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCfpTA3/d04e2vh1+1dQDuTnKn0/fEy7Xv9eB8/uxPWQH+qv5ZYQrLTJY5ZOUIk2TaHtUyTfB7nMBAkf8Uza1Tt/tVcctX01h6jigr/w== X-Google-Smtp-Source: AGHT+IGg8Ir9pgs23ajk3DfvbbV4Y1lxgB46/lD0Rk8Biv183Xlc0yzfDz/tw5nsCI8rGh91gzaP X-Received: by 2002:a17:906:594a:b0:a63:5196:9d33 with SMTP id a640c23a62f3a-a682272efe5mr338169266b.74.1717255853282; Sat, 01 Jun 2024 08:30:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717255853; cv=pass; d=google.com; s=arc-20160816; b=v2K7sufO5CDp+EWJ7u6XD/GXNXCz5qCkLU/tbqEsftld4z0EdcxEkzInf4vkCY7288 9tjWshryL1uOulk8fNYy1NjbekGhRTKbRzPXpNdhXMKim1YPrN0ebibB5zf53KjvLikR YkaXZLW/b4oyuUpqKzS+6YO3sMX+T1tQoOWTHvOWRyBlLh7VVjjAwvJp8nV2VcNQret7 10/gaByGevRhwv0b66ZIFPPc0ssQE1PdlPcA6u7j30Ye6HosOj+YLzvOi+EVfIZzyNK+ Ki+T6oYExvCsYUBKxdLghhAl3y89ikq6z5aidwn7S91Z8NlLRyuO9ZH8TnWIwgdN75kt KZSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:from:dkim-signature; bh=VksIIseKPg6SI8TkOwAXbyNVOfz6k8KD7DJEIao/gJ4=; fh=W5yJIIrkus8mvPRTSLMjBcmwen3JlTiBN0aI2P3/DEE=; b=nQDgp+sA0n9YhrqNfo3fmaY2QckH7kZo2d9xEzwcIpehlfIz7puV/nV5vGlTxXCMku nueDrjm8qdoR/DRK3HbOnCKwKsAeRPH+5lY0Bm34Sv7fsBnwg9E8xjz6U/ose2CpRt29 LYtKrDCmeWLdGk5O7KaQJFIzVQU1DA4WGIppi2zG2wLV6L9VtViKp9/ZwgmPwd5rN6oS C+MDm1i4iAcQ8SZTHvjVoELWi3LF60z4DR2DRxshY+9GXg8cRUXh0XITwP1JicuwHlqj hTmgNQrysIfyu1hW3/56jC1h2xhpS6BWTydPFqS55N+kepeMTJnMMo3eLxy9SWn1vvYW Hc4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HnU2+cMV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197933-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-a68ba93e101si66211366b.402.2024.06.01.08.30.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 08:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197933-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=HnU2+cMV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197933-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 D4B8C1F2176C for ; Sat, 1 Jun 2024 15:30:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 878B515358F; Sat, 1 Jun 2024 15:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HnU2+cMV" 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 8C35C823CE; Sat, 1 Jun 2024 15:30:25 +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=1717255825; cv=none; b=mJk6xGtnbs9pYCyCte6oja+xT5ticTvINYC9p3LXrWz0L+NKohmxCUvvi6L/zfomlb6qIiM0cmmXyabI0ivcNmh6XkvieL0viuREEgUuRE3/43M22yRTvGRR/4YejOItYVqXNDpf6EK7SLiGiP7u0mFPG7CbqCJndT3pqtsx4Cw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717255825; c=relaxed/simple; bh=n8FgRSqS/0SH93OR/rSR5u3qt1CP4ZpLuUxyPWB99QQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=YXcSIClZ3u52iKM/w7EQ7iDlqllYz1Cg5DuJyIeEA1WYcTlwOBml/7+YgEWuc3l2HnJeCRYKy5kLzgFLIv++esMDPapqyyh8/uxIF97VwAqRoCxXiA5MjkRrrDwWnikt8oOISqJs8wLL4xMrdfrGf1hdp9wBB2SpydDk+Edj14M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HnU2+cMV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id F318BC116B1; Sat, 1 Jun 2024 15:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717255825; bh=n8FgRSqS/0SH93OR/rSR5u3qt1CP4ZpLuUxyPWB99QQ=; h=From:Subject:Date:To:Cc:Reply-To:From; b=HnU2+cMVXMJpyCL07v1DvBCsrGKY686c8dB6Q8nnF/FFpDuYqBOwiyGMkqao6goUA Cub3niKvs62ik0iqCLsL0Ftc3NnS1fpk/0I8CREUXEabt+JUxVToVJ/zk3cgwAtUem pmFscLqYzEZG/yC038/8DffZSJqQIAJ/WO37RAcO5dzPlWzEH9xEoSwMJG9H7nzOi7 oXfH8tq1xl1OgB5IA9Q2+VDEeP8kvMf+HeS0WhDy9q/LJtSjJaOrprgpSnLCWDY2jc TqGqKWevJ741FyUve3zyuVCF33NzkCcTtJLxAuxBo34lGqU+jxc257n1b9v0AFAnVV CJTTWEAj3qzZw== 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 D7CD6C25B76; Sat, 1 Jun 2024 15:30:24 +0000 (UTC) From: Joel Selvaraj via B4 Relay Subject: [PATCH v4 0/3] novatek-nvt-ts: add support for NT36672A touchscreen Date: Sat, 01 Jun 2024 10:30:17 -0500 Message-Id: <20240601-nvt-ts-devicetree-regulator-support-v4-0-e0c0174464c4@gmail.com> 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 X-B4-Tracking: v=1; b=H4sIAIk+W2YC/43OQQ7CIBAF0KsY1o4BihRceQ/jAoexkmjbABKN6 d1F40JddfknP+/PgyWKgRLbLB4sUgkpDH0NarlgeHJ9RxB8zUxyqfhaGOhLhpzA1y5SjkQQqbu eXR4ipOs4DjGDQ0vKHlrjhGZVGiMdw+29stvXfAqp1u/v0SJe148vxSy/COBgfKs16sZ6dNvu4 sJ5hcOFvfwiv001z5TVPLTKqpY3BpX6N5tvU88zm2o6Z4wXHNHbnz+naXoCVIju4X4BAAA= 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 , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1717255824; l=2072; i=joelselvaraj.oss@gmail.com; s=20240420; h=from:subject:message-id; bh=n8FgRSqS/0SH93OR/rSR5u3qt1CP4ZpLuUxyPWB99QQ=; b=3AMsyFGEo6VG5DEWahrUosuEQQpoCSe3tGbUVCSBQkn5X5r0mynSkXUb0mQ2BFYeZybdiKpAP W9Q34YsH6tkBQbQndqobUTg7k11XAwVb9vGKea+6UwE5iGDqvGSmrlc 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 Extend the novatek touchscreen driver to support NT36672A chip which is found in phones like qcom/sdm845-xiaomi-beryllium-tianma.dts. Added devicetree support for the driver and used i2c chip data to handle the variation in chip id and wake type. Also added vcc and iovcc regulators which are used to power the touchscreen hardware. Signed-off-by: Joel Selvaraj --- Changes in v4: - Use lowercase i2c device id as suggested by Hans de Goede. - Disable the regulators after nvt_ts_read_data during probe. - Link to v3: https://lore.kernel.org/r/20240526-nvt-ts-devicetree-regulator-support-v3-0-aa88d10ccd9a@gmail.com Changes in v3: - Fix indentation in the binding as suggested by Krzysztof Kozlowski. - Picked up Krzysztof Kozlowski's Reviewed-by tag for the binding. - Link to v2: https://lore.kernel.org/r/20240524-nvt-ts-devicetree-regulator-support-v2-0-b74947038c44@gmail.com Changes in v2: - The generic i2c device id is now replaced with the correct IC variant provided by Hans de Goede - Updated the bindings to reflect the latest changes and also incorporated the suggestions provided by Krzysztof Kozlowski - Link to v1: https://lore.kernel.org/r/20240521-nvt-ts-devicetree-regulator-support-v1-0-8d766c639dca@gmail.com --- Joel Selvaraj (3): Input: novatek-nvt-ts: replace generic i2c device id with specific IC variant dt-bindings: input: document Novatek NVT touchscreen controller Input: novatek-nvt-ts: add support for NT36672A touchscreen .../bindings/input/touchscreen/novatek,nvt-ts.yaml | 62 +++++++++++++++++++ MAINTAINERS | 1 + drivers/input/touchscreen/novatek-nvt-ts.c | 70 ++++++++++++++++++++-- drivers/platform/x86/x86-android-tablets/other.c | 2 +- 4 files changed, 128 insertions(+), 7 deletions(-) --- base-commit: 6578aac6a270bd6deb9f9319b991dd430de263dd change-id: 20240518-nvt-ts-devicetree-regulator-support-ac9e49b78a16 Best regards, -- Joel Selvaraj