Message ID | 20231204140505.2838916-1-kamel.bouhara@bootlin.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2783382vqy; Mon, 4 Dec 2023 06:06:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv6WkQOe/cGOa4eYQTuzy3WZFXLFkMvHztZa9l3tFKxW4Re3FRYA1Fh+Vfd+lyRwVjLTyW X-Received: by 2002:a05:6a20:3c8b:b0:181:74fe:ba83 with SMTP id b11-20020a056a203c8b00b0018174feba83mr1682133pzj.40.1701698787825; Mon, 04 Dec 2023 06:06:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701698787; cv=none; d=google.com; s=arc-20160816; b=PKPhU0J9KVGfzHnFoq9cA8iXCPHJ2EqHduNNEUlc+i3lmE+oTTWODsY56zTOeHskUr UPfceePtorxtrr+sXux5lTZE5APfgqp9Tp99voxhfubJMb+BV91Ju94ILZI4xNlhwSha UMoi+hBvC3YDtPamA5tKalyxAy341jVxW86wohEgBtZ/blOloATretc7jJ2E8KWlkPkO 0pmDtjzVULdMfRlcuASwLcIgneKCcZJlc9otxJ+QTq+2/BwMF1Fg2aaEbM7ZoSJpk05y gRLdpRbLAJn2qvyxczHPV+4iDnae8Sm8mghz1FDDijGp/oA3RWl4G0KybtypuxOVFUGL Istw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DW8ey3CmKKKt0VjHcv6+g7Q0lNwQ0v4Ap1ray1F6E40=; fh=EgA3ynOL0MYidVPneEorVrq8MDk7rnKA329crS/81pE=; b=P7ImZNlZwUuQA9wo9jDcF5g4o+kYwYRbC8wvuW5J0gey3m+EaqM5HWD+8Ylm/TmwOH galDpE+JUgMlXJiBuvdWgSyPg9Lhbzq7b61Md3UOlO/Z0EkAu47BWYGHNWhKYrbwiwIL xqIeTO+RVJdEab35AxqsJ6tVAe6M/5WYRyIzZPSKC/71+tFUrcVxAugI13mlVP4rBnYr rTH17A+c9NkO4wwHzEfk7jZeEhpRqx0KTVTSGlCGvaaOx98Q5K2tC27i23Es/cEU0mBd WG259MufhEf3/uzl4SoJHtdWKVMjDXmMhl/OyLI9tK0dFxw7ksc1uKRw+H2cCER49t+o pp9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cZyw07dl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u42-20020a056a0009aa00b006ce542061fesi1494843pfg.369.2023.12.04.06.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:06:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cZyw07dl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2E9BE804118A; Mon, 4 Dec 2023 06:05:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344916AbjLDOFS (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Mon, 4 Dec 2023 09:05:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234450AbjLDOFQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 4 Dec 2023 09:05:16 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C68AAD8; Mon, 4 Dec 2023 06:05:22 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 67146E000E; Mon, 4 Dec 2023 14:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701698721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DW8ey3CmKKKt0VjHcv6+g7Q0lNwQ0v4Ap1ray1F6E40=; b=cZyw07dl+ayTz8KSvAaKYDgdZQBNJ8eULK8duOQowbKX6EoQPLTpuECiDSPGNjdlyNpZHg nNpNUL4dQ5fDjxFGm6ylIe2eYeO9FzOpymGsV+z91ZP0TzIdTsPhuqjyVzxeJ+dVUBoWJC 06t2Dm7My5y5F4ida/J3wVE5EHVOnr+0zrkrIOOefHJTnP3D+j7sMmLWTSSJbbdGUACJxE 8lq5Qk32S0MvSNtimefuVm76ttP7W3dnaG8+YrKLALL/Igpr+LFdEuuvrbE5NMl27wV2Az uyrpD4qwrcc6DsxeIVEEc1b0HqOccaZGbProiJLlShmRM+dK4XdMQpxtuMs2Xw== From: Kamel Bouhara <kamel.bouhara@bootlin.com> To: Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Henrik Rydberg <rydberg@bitmath.org>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Marco Felsch <m.felsch@pengutronix.de>, Jeff LaBundy <jeff@labundy.com> Cc: catalin.popescu@leica-geosystems.com, mark.satterthwaite@touchnetix.com, bartp@baasheep.co.uk, hannah.rossiter@touchnetix.com, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Gregory Clement <gregory.clement@bootlin.com>, bsp-development.geo@leica-geosystems.com, Kamel Bouhara <kamel.bouhara@bootlin.com> Subject: [PATCH v4 0/3] Input: Add TouchNetix axiom touchscreen driver Date: Mon, 4 Dec 2023 15:05:01 +0100 Message-ID: <20231204140505.2838916-1-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: kamel.bouhara@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 06:05:27 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784360507910565989 X-GMAIL-MSGID: 1784360507910565989 |
Series |
Input: Add TouchNetix axiom touchscreen driver
|
|
Message
Kamel Bouhara
Dec. 4, 2023, 2:05 p.m. UTC
Add a new driver for the TouchNetix's axiom family of touchscreen controller. This driver only support i2c and can be later adapted for SPI and USB support. --- Changes in v2: - Add device tree binding documentation - Move core functions in axiom_i2c as we only care about i2c support now - Use static function when required - Use syntax dev_err_probe() - Add an hardware based reset Changes in v3: - Remove irq-gpios property in dt-binding - Use a generic node name - Fix issues reported in https://lore.kernel.org/oe-kbuild-all/202310100300.oAC2M62R-lkp@intel.com/ Changes in v4: - Cleanup unused headers and macros - Use standard kernel type - Namespace structures and functions - Use packed struct when possible to avoid bitfield operators - Fix missing break when address is found in axiom_populate_target_address() - Split reads in two steps for the reports, first length then report itself so we only read required bytes - Get poll-interval from devicetree - Add VDDI/VDDA regulators - Add a startup delay of 110 ms required after VDDA/VDDI is applied - Remove axiom_i2c_write() as it is no more used Kamel Bouhara (3): dt-bindings: vendor-prefixes: Add TouchNetix AS dt-bindings: input: Add TouchNetix axiom touchscreen Input: Add TouchNetix axiom i2c touchscreen driver .../input/touchscreen/touchnetix,ax54a.yaml | 56 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 7 + drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/touchnetix_axiom.c | 675 ++++++++++++++++++ 6 files changed, 753 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml create mode 100644 drivers/input/touchscreen/touchnetix_axiom.c -- 2.25.1