Message ID | 20240301103909.167923-1-kamel.bouhara@bootlin.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-88263-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp988708dyb; Fri, 1 Mar 2024 02:40:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV06RAVnktw9C0HjA6eyhMn+u5pNGV1fJ2ei9FvGb44jK2NTIIfkwjJmVbP8Q4bX0VAJxPvEcgW8hhllfvNa2Qg2EJBDQ== X-Google-Smtp-Source: AGHT+IGFwO46LEvpd4/d/qBPHBN8U7YIBTn677IG0krjhO1Q80yOWbYC0JZi+SkaR5827koPRUqC X-Received: by 2002:a05:6a00:4b4f:b0:6e5:3e08:cbf1 with SMTP id kr15-20020a056a004b4f00b006e53e08cbf1mr1583375pfb.23.1709289610973; Fri, 01 Mar 2024 02:40:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709289610; cv=pass; d=google.com; s=arc-20160816; b=xhDhOzqdE82UbdEZR5hK+232GjyhixF4eR1qOJCjqamuPs5hEWvC9g57xFZ50MvSJo gPVKNg0kYE1tyuLGTkQefoilRedDdT6Ktm27Slx9mR+Gx7FYJcJZU3qIOg7g/gIBsatP yeWlW/SyspMgZiWuEO5XzGzzS1rA8y6TjwCKkG9SCauZdoiV8q4dTnpWDtRsynMm8y9w tqi/uY0Lq6eBKVut/QHIBoMC0rFbJWhN6/xrGQG2hNQl/f7iYBLu6M6QZW2YwAvWVGsU J+mrpVvDRxPXNl6R/epPQP5gqrSKCycbEfnPhoAvT4AGl/Uk7WK1EJLYUzJt6zMbrjta 7M5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=YKEiVtaPCvaI11wI4SOmpa0aMH7IZX/eMbHt5I4oNlE=; fh=l/elLLo7M1nSwGYZiEbAnwj82rcXZ4kfeXoVXVQQoPk=; b=hCOrjuv5197/Hs+/iqRXbuzyWt/xUM7Awt5nsh43RK6Sc0ewF0gFPWN2sm1oKqcAKx XwiGXs1kcJofasDUvrgdSKVtrkRoWbd48W30M3yPrtUa1Yro4icvC2zsFDEhCsDvqsnj ezzi95GAUeq4djfcX+GSerRGXLaN5EJ2Wak7dMwgJ0GI++Ny5RYwRqAkxnNiSZb7vKAq VKD9RCGQSLBAV94rp0ivYk+Ztv4y6OBndLaHz0n750gKk4PYv4CLwq+qroBzPaoedIby asji0QcdxdMRINHNuKQXLDbbmm7XG/wScPdrdyLnBgrZBpowf9X4LgrZJk7tlchJZ76a zuaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EKF8ADaE; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-88263-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88263-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ff22-20020a056a002f5600b006e478e9b0d1si3230515pfb.22.2024.03.01.02.40.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 02:40:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88263-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EKF8ADaE; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-88263-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88263-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C5B2F286260 for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 10:40:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E178B6CDD2; Fri, 1 Mar 2024 10:39:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="EKF8ADaE" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 ED9A96A8BB; Fri, 1 Mar 2024 10:39:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709289562; cv=none; b=VK+MFOsW2Ziy+v+jbUEeXp5HXnQdIC7aSpIvApJe17qGaGEhDrYGEhsiDd6Hvx21gK1l32AJAN53LOy3tq4nJP65oRfr0vKWOLA7ITGJT3PE0etxnZhPdA709zjuA60J6bSF0btnHDJNkPFEEd/drEqqTDufYfrSdvbe1ruF+6A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709289562; c=relaxed/simple; bh=QPg/h26ctDiEjOy4/uODxhaeiQTEE5tf2aqedWIaU3s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UU+IiQbJLkmSezAE2gcASdwmwUUyQzVzQfd3sm6l9f+8RckQtzxx5D/8M4b2AzoiT5Abv8WYVDUPlhKDT2+d9gRRNH9Pjrm/3K9kaUsoLrgdZZrb9BTQ1JtUMxeUNicTt94Els8Qz4F881iaJAG4KY5EBLCZzCyC2c37+VQL16g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=EKF8ADaE; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id AF50AFF802; Fri, 1 Mar 2024 10:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709289552; 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=YKEiVtaPCvaI11wI4SOmpa0aMH7IZX/eMbHt5I4oNlE=; b=EKF8ADaEuw22Uc7j7+xbS62ttfxCDzDtoU/K1b0vsdoMydyOeiwUT16aUa7mUx2KW5++MJ dYfgP53PqNVCKmq6CPRyvhL2NyBg9gVP26rnYLl2oy9UlicEulvtWIiPnSEJzpLIIBPyrr mRLsuKCWPH/Qj6p+6HJIbIEcHsmoytk6sl7u53nbijsUR1ypmaBserD5Z2YcqjWkInMYPm fEIYFjZwRsZfzed+LRCqtyJ7KpSNjMeqpC0u+zgKftPRn9zvGiTniHFZXYyqwNWLc8ZpHZ bP5S0VaGmmLPl1JB1fyDRR0E5PpVnI6n2MLjwTB7UweVlhO8oQGUD+OVwh4YVQ== 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, 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 v9 0/3] Input: Add TouchNetix axiom touchscreen driver Date: Fri, 1 Mar 2024 11:39:05 +0100 Message-ID: <20240301103909.167923-1-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: kamel.bouhara@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792320063026713297 X-GMAIL-MSGID: 1792320063026713297 |
Series |
Input: Add TouchNetix axiom touchscreen driver
|
|
Message
Kamel Bouhara
March 1, 2024, 10:39 a.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. 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 | 62 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 7 + drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/touchnetix_axiom.c | 669 ++++++++++++++++++ 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
Comments
Le Fri, Mar 01, 2024 at 11:39:05AM +0100, Kamel Bouhara a écrit : > 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. > > 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 | 62 ++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > MAINTAINERS | 7 + > drivers/input/touchscreen/Kconfig | 12 + > drivers/input/touchscreen/Makefile | 1 + > drivers/input/touchscreen/touchnetix_axiom.c | 669 ++++++++++++++++++ > 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 > Above is the missing changelog: 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 Changes in v5: - Fix wrong message constructed in axiom_i2c_read - Delay required between i2c reads is >= 250us - Do not split report reading in two phases as we'll have to wait 500us - Use lower-case in properties names - Make regulators properties are required in dt-binding - Fix bug report: https://lore.kernel.org/lkml/202312051457.y3N1q3sZ-lkp@intel.com/ - Fix bug report: https://lore.kernel.org/lkml/6f8e3b64-5b21-4a50-8680-063ef7a93bdb@suswa.mountain/ Changes in v6: - Fix missing unevaluatedProperties.in dt-binding - Use __le16 to correctly deal with device endianness - Use standart kernel types s/char/u8/ - Use regmap api as driver might support spi later - Use get_unaligned_le16() for the sake of clarity - Use devm_regulator_enable_optional() Changes in v7: - Remove startup time from dt-binding - Fix usage table not correctly populated Changes in v8: - Fix missing call to input_report_slot_state() - Fix issue reported in https://lore.kernel.org/oe-kbuild-all/202402020623.8T1Ah513-lkp@intel.com/ Changes in v9: - Fix issue reported in https://lore.kernel.org/oe-kbuild-all/202402201157.BKo97uWl-lkp@intel.com/ - Rebase on v6.8-rc2 -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com