Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1041269rdb; Mon, 19 Feb 2024 02:12:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2t6NxUjmfbPHOtd1Jk0gTXuNGFYljIcRo2V+TQlnoHvWCGaQq17WHcov3mcckgcOowsxCnJ+e86yiQxUv7hM10sBSa3mOuy07nD3+2g== X-Google-Smtp-Source: AGHT+IEK1EH84q/aYfMdZT5hdEmx8+QqRS8BWRFGGuxmA5BRQgBP+Nv1ZhuJmLuHN/WEK8rPbEkx X-Received: by 2002:a05:6a20:6d07:b0:1a0:73e2:f31a with SMTP id fv7-20020a056a206d0700b001a073e2f31amr11777227pzb.19.1708337566748; Mon, 19 Feb 2024 02:12:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708337566; cv=pass; d=google.com; s=arc-20160816; b=MF2gpZtIOQgOK85vgMqJLTPfOuqL29M+hioMduyLOqRFqsGLGYbAS3BEhxCzlKGA1M gQ0y+i7oVfOAjLpO9u63py3L/TCwo32c3ZQwNGEiks/uGdir9S7BVIi/AQkWuHQpnyCG GNCpjTREhV0OoxaotfctQfjdfCH7XsFDAvMGhP0ga8dQRFEUUJeoOBWKKbekAs1pjUjQ fn+Unc5+n6kMVgP4bIsNWQcbJJJheV8zsjl18fOBGZP9rAkAxUMXj8L5mznNqTLeQlEv bTJiXnALDZv+PN3YlpNsCNqbGn+Yw6hxSQ49luL+IYs/JxZ833kIp+pt2dFcwF+ZveBA ycmQ== 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=BcJsfaFxenusOZ9nI3T4tCZgwA3MbGCtH/WroXyREH8=; fh=l/elLLo7M1nSwGYZiEbAnwj82rcXZ4kfeXoVXVQQoPk=; b=zGwWcZjK1fkBbN9bhlRq1nLZJd7x9733fZari7lf5ACdPHGGzDRDe9GjFmZXnw7Rou v/FmUXuVJnxPu0W6Y/3DQBbvpxHzq+kRBQ/FePUZ+K94d95z5RJ6cK4hnxmwjSA++YcY Rp16Aq1WP1XBpxwV6whiYB8oA6cjneJq9Kn45FDLd+a8g6Pb8pR607ubajqFq/hbSSWl tBpA5X4EyZYexWSGFUY2ByZdziNs2LOz+nK9j3Mf3HoS26++hhK786X6Zkmzcvc/v8zh inVkBaJNuAeS37Q0titue/446gLmDf+gZaMZjQavI7MPJOv2F89gXFAbgalOFYCVM0EO mQAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="IV/9mX/P"; 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-71102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71102-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 e13-20020a056a0000cd00b006e28029784dsi3867248pfj.26.2024.02.19.02.12.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:12:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71102-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="IV/9mX/P"; 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-71102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71102-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 60B90283418 for ; Mon, 19 Feb 2024 10:12:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C744125626; Mon, 19 Feb 2024 10:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="IV/9mX/P" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 8628828684; Mon, 19 Feb 2024 10:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337554; cv=none; b=nbmFDXGaFT+is3A2ktz5B1yWVa6xE/NAZftYsZEWHm/JMcc1iTtvHPJxcBoVmcWEctAg2zN+mzROf04k/Ve6jFe2fchpMEY3K9/kznmoHsZsvZ3VC8F7flJelDYI0kwUaj7jpCF6q0E7bt7NLRiXzcK18qGNDFMJTzjWUPbGYOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337554; c=relaxed/simple; bh=bjIBJ7UrxWxxjHTwORzc+o6WLuSzgbJPudgzzJQUoZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qJhrg0wbzPiA0NyVQj1jBcq7l7rl+dmk7CWR+3zM9K9TTTjuryDEsWgEr49/RmH71jq/5lOPVFJDETGVgpxwrxwwNEZIONySHZokXC5JT2jv8AI1AfvgVj+X5BtZ/Rqnt7WDNnyCCHasQxzLODTXGiOmI2toSovTCvSUYJqxWI4= 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=IV/9mX/P; arc=none smtp.client-ip=217.70.183.194 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 1A05240004; Mon, 19 Feb 2024 10:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708337543; 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=BcJsfaFxenusOZ9nI3T4tCZgwA3MbGCtH/WroXyREH8=; b=IV/9mX/PYKkK8OdsGH6vwgQiYAs+z2lZvhJJV1fbrptbChwLM964x9/I7Mtf7rczdXqPkR QDSiNp5JOJ0pZZY7PWLHSGljPsXBdwiAeECPnff44Q+WXyS4SBX8bu1827TUzBjh0tvqsr ZYeiT8l1uQPGUeoF4IYMOgJ7A/26/u6lLnTgiqH8jWbx28EL+xQ31l5Yf6aJr81LpirUI3 XGtPkKRASDDSt4XqqkJ2lL+9NzAa/8UfZX5UjU62DveSoqoDDDiwEOQsjiAL8jyxhW/8Wg lrHs4gebKsOd/EhgeEmU7VGSnuyn57k0yy4rfXDLwMbB4Y6VVZS62q84I00bAQ== 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, Kamel Bouhara Subject: [PATCH v8 0/3] Input: Add TouchNetix axiom touchscreen driver Date: Mon, 19 Feb 2024 11:12:17 +0100 Message-ID: <20240219101221.129750-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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: kamel.bouhara@bootlin.com 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 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/ 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