From patchwork Mon Oct 9 13:44:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamel Bouhara X-Patchwork-Id: 15099 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1878803vqo; Mon, 9 Oct 2023 06:45:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGNy1LNyDZakERSwZoFHxWqfftIMPsbgYdksVq4WmJcZVwYub8M5y5+2VAs5KarbrxrhSU3 X-Received: by 2002:a17:903:244f:b0:1c6:2161:b191 with SMTP id l15-20020a170903244f00b001c62161b191mr20817452pls.8.1696859101081; Mon, 09 Oct 2023 06:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696859101; cv=none; d=google.com; s=arc-20160816; b=csFBKmc22p7rLQ9hfsK4h2U812dSDB9qeq1qI2y6ixFRvlhV6A/+gcJiRARwVK1NsU v4yFJRBf+GlyWgp1FNkNr4gwhfkvWRqRss9uURZSHtcfJAN8QMN/9rN3OAhUmhdX30bu YCB6xQXeIGOQoKAgNm3Lo26TXR7czbW3rjpqw9//cxI2CxqEJokqPcML27+hLd6FFEzE GOVL1rBi613wM1l60pmhsB+HceK1YFZfonfOdyc67gk1l1NVAj4qM56C875+N9rwU6Sc WqQs2ZWJrXK+t7b7NzYO79lK1APtCE4qL78QQqoDet2wOLh4dvQ6eodKSivfip912mH3 GJzw== 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=3jhpCvsya+E2eGbigp8XihjymSXHP4xEBq7kko3/DmU=; fh=9NC6j8GaV03IjQwNegxUswrsi8g3oUkBXbnK+A9v+aQ=; b=RoAUFbjKd37wjD+aS7PYB9uyzsyxKKrBqLVTP7z7ej0/s6TAAqRLOTpeIdxu7vjT+D dUZqBd7HVPCphXr0SMbUltg0pa9wv11gOMxso3L+8nVNPAHf9ixEIpMx9DQmzDe4E/VH 1W74ZeUu0yBQDIT+SxWI6Gs/Mk1uJ8nWtlOCnwp2hipcHRvC9CEV4AgAFzx9nGyXH1Ex l9TGikMXTXf43ey+Z0aZWOUSoNRELu/6YI0LCSAOkxnoCAvq/XMyLOE9ap4MU8JxWgrj 6/jH252kx3iyizO6/XY+RsolIO2DdvALnoQkR1VJQlnWOXpcXZT0+Xvhh5eNCdEOiKbi ylQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DSPt4iLu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id u3-20020a170902e80300b001c1e1fe16cbsi10413508plg.255.2023.10.09.06.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DSPt4iLu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 9BE9280F5855; Mon, 9 Oct 2023 06:44:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377433AbjJINoq (ORCPT + 18 others); Mon, 9 Oct 2023 09:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377428AbjJINoo (ORCPT ); Mon, 9 Oct 2023 09:44:44 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FCF0A3; Mon, 9 Oct 2023 06:44:41 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4B42CC000B; Mon, 9 Oct 2023 13:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696859079; 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=3jhpCvsya+E2eGbigp8XihjymSXHP4xEBq7kko3/DmU=; b=DSPt4iLu/HcnjbvtPQ0AC4c9yuKUKXmxAcXyFXorCIuFf/TOdT3pW/iINXnFcpfvDwdYkX gKyBn5e0Uwe2WOdSMUDjO/gQ9n1g2p3rAo7WADpPnKNEQZp+pAV3YQ7Wfy/SMCrgN1fUBG ntb5ZxB6XHHezFFDO8BK90ZorMjx0F8YOQQWtyARooSOZOnBgxxugSjwcsBDKyBdVdoRAx mFgbo4YtPYqQ+gTqTQAMMXKC6ovhHBhw4o1krOpCClqR5b6m9v442fLRla+TQ34zrGIhXX u29FH1S7LkgwpROCjGcBbj4qHGwNLo9z53MNGqsPeQWJ4XfwHEoKMWSn1iscbg== From: Kamel Bouhara To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mark.satterthwaite@touchnetix.com, pedro.torruella@touchnetix.com, bartp@baasheep.co.uk, hannah.rossiter@touchnetix.com, Thomas Petazzoni , Gregory Clement , bsp-development.geo@leica-geosystems.com, Kamel Bouhara Subject: [PATCH v2 0/3] Input: Add TouchNetix aXiom touchscreen driver Date: Mon, 9 Oct 2023 15:44:32 +0200 Message-Id: <20231009134435.36311-1-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-GND-Sasl: kamel.bouhara@bootlin.com X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 06:44:58 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779285728717095818 X-GMAIL-MSGID: 1779285728717095818 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 Kamel Bouhara (3): dt-bindings: vendor-prefixes: Add TouchNetix AS dt-bindings: input: Add bindings for TouchNetix axiom touchscreen Input: Add TouchNetix aXiom i2c touchscreen driver .../touchscreen/touchnetix,axiom_ax54a.yaml | 52 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 + drivers/input/touchscreen/Kconfig | 13 + drivers/input/touchscreen/Makefile | 1 + .../input/touchscreen/touchnetix_axiom_i2c.c | 751 ++++++++++++++++++ 6 files changed, 825 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,axiom_ax54a.yaml create mode 100644 drivers/input/touchscreen/touchnetix_axiom_i2c.c