Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp385339lqg; Fri, 1 Mar 2024 08:05:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5R62OrxGcKuEhz80cPLisTGiBX21r6jNOADcJ+G3DjJcm0uWo6zBQPL1uWnjat5XLUa3Xoj0TI5Mq791/oTfeHMdM3Ys8wB95TPuc5A== X-Google-Smtp-Source: AGHT+IG2XVgnoaJRInWQKAiVlKRXF86NAav27CZtKErUH5UumJjIZkjXoUMlKuAbnuWh8im5ON6L X-Received: by 2002:a5e:8e43:0:b0:7c8:2de2:66c0 with SMTP id r3-20020a5e8e43000000b007c82de266c0mr75830ioo.8.1709309131054; Fri, 01 Mar 2024 08:05:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709309131; cv=pass; d=google.com; s=arc-20160816; b=BMZMD6p5YJqkecDdGJi++Q1KCbeEu3bOhYLTXWR40N1GWCCo4ThVTHSCBdwuAo1c0j 7W50Bnt/5z8LuwdifGcMWaqVhNJNvsXT8SmNosYUmo/jBCxmENGAjSMHb4js5IZmRnM6 Gc2klvJ0GfJdVbArcp0LQQ0TMgdRUKmi1XW6i/grjiEiws2KotwWzf3vOCKqZDnkuIou qe3nTlB0Xtq2KBkA16ml4vsRvsUpQoHhrFcTtj/jpimCqnuDD9q4tbiLWbIpWj/l8RBo HrL1PJjTfcRXq77JVOec3Qa+EQ+wfchIWBkdzKG4h9SC2DkuigtQ6fF3qcd7RFCMNAPJ n3pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zelpl9Plgt9LUl8SLGJpDVPo1sGxGYnWY3UETmUttgY=; fh=qdGxC24aHPioQ9V0BQ0ZkWUZl2iMfYVGrmlV8rxAHHs=; b=FKd35QEZQYS+HV68JbJClM2Z/iEDC0WYCbGCfrkI3TdQ69kAtmqQTt9TGZUzdSrMth ax+I3o0lclBDWGqVGRsjnv6EvdETl+HZuUheyIPYfpUwpLer5tX4dTtTQzLetbND0v2/ r8xOTx28nvILPHV8SUnbBIHPTgBX3u+hv9QmD1IBSEZbOyxq9Me7TIkxTxX3/DUZWWAt TmT1r3kKqsgJ4a9NLJGx3+WbrVNEG3NLxtWJSh517eFGjjEMWMwvFUyw9VoZsMk6wJs1 U8lMYB+1W6d4qiuXl1fF7mo7Wai1qQ2z64AbQKu7rcBAQqEzOAqJSnGDOG2ymraXdOBz u4+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eaQFp5bZ; 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-88660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l27-20020a02cd9b000000b004748b88280dsi1290860jap.132.2024.03.01.08.05.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 08:05:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eaQFp5bZ; 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-88660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88660-linux.lists.archive=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 06B98283E9D for ; Fri, 1 Mar 2024 16:05:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EA9470CB0; Fri, 1 Mar 2024 16:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="eaQFp5bZ" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 6107338DC3; Fri, 1 Mar 2024 16:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309115; cv=none; b=eL6/Vw27B2wp+mwIK+cbXj+AaVm1HQy8zOQF4xJxl3ZIWtCWMfS6ZQs9yw+8pzMbb/WfepGEyMOWQG4ktyRQ6Byzvf3g7qZVKyV88oJ8UCVoz5VHR2PHbo7lLDkzaS78tFWEqOCghq5kZDjRMIxAA7jNTD/jnuukns1ptvSTQcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309115; c=relaxed/simple; bh=GdiD6GetYQ7plMbY7Z0t9eGPdeIDnAI9+mc+CerOGzw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JRy0dqbU5TEspWf1UeVKmVg3nAvYZYuDCR00uZGWZK1DgFcnxh+IgzkNfYVGJMLCCMOhzXqFm//iSl2r6MSFRDqXOqp3oExcY/+8zZYjIMM1SlaVfTUL9Z3KtX0jSHuBLAna3Or4AzSbFgkWFAK1DdlbIPPpy7Tfe4m2zwRHs50= 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=eaQFp5bZ; arc=none smtp.client-ip=217.70.183.193 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 95E3824000A; Fri, 1 Mar 2024 16:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709309110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zelpl9Plgt9LUl8SLGJpDVPo1sGxGYnWY3UETmUttgY=; b=eaQFp5bZScbGwpgadNiS1YbG9levV0au38YUoIL0hxygwV7g6FeLLeW96RsgM2JSK5/y/v IuCyA/Uvy9RhUykUMzyHdX2sgVoaCwGHteXQclYrhITtGzJOMUov52/XHPBOPSkV/GSbCB Wdmx1iozjOr2wkzXLy5PlzSWYmJni6Rr4WFJWzpNtnLXMXlqu0fvj+gm/VmlOVzhDX98Ch 8jGtXh86+iVXDMVRzC91FwJrUBqzt/5jEGy3DZEUJ30aOVDoeq7iTj7tefQaFWSuRO8ig4 OFRefvZWHEGSzHjLQ8YYJYMjHLCghOIQV8v1JDJ1TW/teic2A7i5MmwAix6yrQ== Date: Fri, 1 Mar 2024 17:05:08 +0100 From: Kamel Bouhara To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Marco Felsch , Jeff LaBundy Cc: catalin.popescu@leica-geosystems.com, mark.satterthwaite@touchnetix.com, Thomas Petazzoni , Gregory Clement , bsp-development.geo@leica-geosystems.com Subject: Re: [PATCH v9 0/3] Input: Add TouchNetix axiom touchscreen driver Message-ID: <20240301160508.GA190983@tpx1.home> References: <20240301103909.167923-1-kamel.bouhara@bootlin.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240301103909.167923-1-kamel.bouhara@bootlin.com> X-GND-Sasl: kamel.bouhara@bootlin.com 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