From patchwork Tue May 21 14:02:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj via B4 Relay X-Patchwork-Id: 798058 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 617457F7ED; Tue, 21 May 2024 14:03:07 +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=1716300187; cv=none; b=TOH1x5BbYZlmzShmZ1rIf+8Tmu/z+RWtUwwAPuI7hqSLokr7JZniempmvSOW36swe7wA3KJ/BBIHL42YLvlt0WZ2KcR0Ywu1YNe05a/U6cOyzpdzH+81QvxJB6AGTZ0p/1vBVD6XkXaiz9bmLTQMglifI2uEQUL++hAo/j4JSl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300187; c=relaxed/simple; bh=7ZEgwSfTRP/dlX5FlfKuMRe1MRjNVmagUhquz/tHbcs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mmxIXuqA53HP7H70J75NxLMAdr+nhR1HmGLfqwwpCbWz/VcTXbI3pqicpEG4uI6ET81wA7F7zy2bYfCcN+e5lfCVfCAzsU2K08fO8hOuXzlupXEQi3waTACY5ASuL617MnzrPGd4SBEZCAIyK0vNpPDb6Uhx/b0002JRqGyVtto= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aEkf1xqz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aEkf1xqz" Received: by smtp.kernel.org (Postfix) with ESMTPS id 182EEC32786; Tue, 21 May 2024 14:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716300187; bh=7ZEgwSfTRP/dlX5FlfKuMRe1MRjNVmagUhquz/tHbcs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aEkf1xqz4U6ntzRKAyHCET5sfDe/XgDDjoz9xnuxDplK/a6LgPc2eJUr8fL9Ng+wb i/TvBBNFx2rmktBvQ5xbUALp6q5ZAmY1YoDWeVwoYn1ng2fpU0BVxhqI8YqWkkfLDw 9g5qvvdpssh8ZunA4DbS7CMZX1N/aOPc66PghW9iDtudClma9R9IChu1SXJDgYIcC3 m9dx9n3IidBHapBVXxFfpF/R/L+BdrtwD92Jm38jkNlvx7BAApcc8aRPHht7NJ1Qel TEBue0ONUHDgv5+RPyjzGepw1HJyWtmn/UFPxNmy8ixrtEz3tdn9HANkSZNaEdn2r2 QzLhaj9gaG2Ig== 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 ED7B4C25B7A; Tue, 21 May 2024 14:03:06 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Tue, 21 May 2024 09:02:57 -0500 Subject: [PATCH 1/2] dt-bindings: input: touchscreen: edt-ft5x06: Document FT5452 and FT8719 support Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240521-add-support-ft5452-and-ft8719-touchscreen-v1-1-2a648ac7176b@gmail.com> References: <20240521-add-support-ft5452-and-ft8719-touchscreen-v1-0-2a648ac7176b@gmail.com> In-Reply-To: <20240521-add-support-ft5452-and-ft8719-touchscreen-v1-0-2a648ac7176b@gmail.com> To: 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=1716300186; l=837; i=joelselvaraj.oss@gmail.com; s=20240420; h=from:subject:message-id; bh=PmHC2ulzR6NuEbASOPCRVTimkIgpsuWNPVJYpR8+BgY=; b=tco50ujfsz4zA97zYnuTnvJ076l7r4lofkiasmm7wUaMZA7TB/KVzUG40KF5mCbDoWcjzmxxw 90+wBBfzLJ/A748IkXhK8MaflSfd1aU038pudd/s25VW5uK+/gOH3Pz 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 FocalTech FT5452 and FT8719 support by adding their compatibles. Signed-off-by: Joel Selvaraj Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml index f2808cb4d99df..745e57c05176e 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml @@ -39,7 +39,9 @@ properties: - edt,edt-ft5406 - edt,edt-ft5506 - evervision,ev-ft5726 + - focaltech,ft5452 - focaltech,ft6236 + - focaltech,ft8719 reg: maxItems: 1 From patchwork Tue May 21 14:02:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj via B4 Relay X-Patchwork-Id: 798277 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 616E77F7E9; Tue, 21 May 2024 14:03:07 +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=1716300187; cv=none; b=gI/tyed1jgpLFAErk/p2ft9gbVdty4d/ksqFug2WCkDlg1l6rP3vHy1CdC62KTz8F4L0A21EO1OvK07MCCI9wg3VW43/XAHVc31I4roaUFboIShMQStNLA8vYUub2QKdMjSQMXWYtay1QV+hiBKUtJWz576aZmGPDjVfZ+qH40Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300187; c=relaxed/simple; bh=Fs042i5wAoiHYsxDdEMef/tN7MxYwiclxHYK18SBFg4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hsG4dy4C840GnFqJt+8uFzXsN2VEiSXJj5poilcO0ajf3eB4CD+T8/gr6vwh+/GBxmZjuB136Nimp1fri362ZEH+k2IV0gogk+HfAO7T/EYl+1422xPGveObWboAFv9Puq5HXHwH9ffuIjrZatXkLXWP/D54sjP1leVVYOS5KXU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VlJTbJjh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VlJTbJjh" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1FC65C4AF09; Tue, 21 May 2024 14:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716300187; bh=Fs042i5wAoiHYsxDdEMef/tN7MxYwiclxHYK18SBFg4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=VlJTbJjhnCQCb4LIzPz2HVWUEVGj9Sz8EYn6oWKSrLpLaonGqVZ8hQc+p3LpLKgRH E5/33hXgAY6T1hJFklqv8UL6B1ZC/NiDvqz4mHS4vTNqWk9cMSN0fIQVMELpPlxtWt reLsIzf7zrLS+K+r5ww8szIgBSemRlC7gGNA4nDWCovNvy7A7a1Q/OcGZycoCHWftu mNy4v5+f43v3eRv/VLBGgjFEKV4f1V+S8V/LJymfNWfTflwj72Dn4cdoKctfiB8xMM tIi9bjVsG/qTe7UHSbYUwn6YfPqWaRPlr+bihvmqtOzwRdOBoO1barYxzq3wTvIhhR imz23/FwFLfKQ== 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 07016C25B7D; Tue, 21 May 2024 14:03:07 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Tue, 21 May 2024 09:02:58 -0500 Subject: [PATCH 2/2] Input: edt-ft5x06 - add support for FocalTech FT5452 and FT8719 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240521-add-support-ft5452-and-ft8719-touchscreen-v1-2-2a648ac7176b@gmail.com> References: <20240521-add-support-ft5452-and-ft8719-touchscreen-v1-0-2a648ac7176b@gmail.com> In-Reply-To: <20240521-add-support-ft5452-and-ft8719-touchscreen-v1-0-2a648ac7176b@gmail.com> To: 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=1716300186; l=2353; i=joelselvaraj.oss@gmail.com; s=20240420; h=from:subject:message-id; bh=nQ1HQkXEqDosRHt1dsb4w1mHu9DuJ+dY0jyixkP33Sg=; b=LHJ7zHKBvISv0qDMgtXQbhmmXEHNomIwmkjkw7JBM9rzrCbY9vOch4bBlQXVuDcL8WYJAm5Mi oCm9etvk9BPDPIMxoWd71ZEci7+JHmUPDpUweg8BcI3D1LHWp3LaxsG 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 The driver is compatible with FocalTech FT5452 and FT8719 touchscreens too. FT5452 supports up to 5 touch points. FT8719 supports up to 10 touch points. Add compatible data for both of them. Signed-off-by: Joel Selvaraj --- drivers/input/touchscreen/edt-ft5x06.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 2a1db11344766..06ec0f2e18ae3 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -1462,6 +1462,10 @@ static const struct edt_i2c_chip_data edt_ft5x06_data = { .max_support_points = 5, }; +static const struct edt_i2c_chip_data edt_ft5452_data = { + .max_support_points = 5, +}; + static const struct edt_i2c_chip_data edt_ft5506_data = { .max_support_points = 10, }; @@ -1470,12 +1474,18 @@ static const struct edt_i2c_chip_data edt_ft6236_data = { .max_support_points = 2, }; +static const struct edt_i2c_chip_data edt_ft8719_data = { + .max_support_points = 10, +}; + static const struct i2c_device_id edt_ft5x06_ts_id[] = { { .name = "edt-ft5x06", .driver_data = (long)&edt_ft5x06_data }, { .name = "edt-ft5506", .driver_data = (long)&edt_ft5506_data }, { .name = "ev-ft5726", .driver_data = (long)&edt_ft5506_data }, + { .name = "ft5452", .driver_data = (long)&edt_ft5452_data }, /* Note no edt- prefix for compatibility with the ft6236.c driver */ { .name = "ft6236", .driver_data = (long)&edt_ft6236_data }, + { .name = "ft8719", .driver_data = (long)&edt_ft8719_data }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(i2c, edt_ft5x06_ts_id); @@ -1486,8 +1496,10 @@ static const struct of_device_id edt_ft5x06_of_match[] = { { .compatible = "edt,edt-ft5406", .data = &edt_ft5x06_data }, { .compatible = "edt,edt-ft5506", .data = &edt_ft5506_data }, { .compatible = "evervision,ev-ft5726", .data = &edt_ft5506_data }, + { .compatible = "focaltech,ft5452", .data = &edt_ft5452_data }, /* Note focaltech vendor prefix for compatibility with ft6236.c */ { .compatible = "focaltech,ft6236", .data = &edt_ft6236_data }, + { .compatible = "focaltech,ft8719", .data = &edt_ft8719_data }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, edt_ft5x06_of_match);