Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1682568rdb; Wed, 31 Jan 2024 06:13:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGrhvQxJJw/mS8x47abcQpPus6Nr1DJPh6vqJdCcVwca1z1zszbE1R+jYFkUP6cqmN/yO2 X-Received: by 2002:a17:906:af89:b0:a36:6175:20d6 with SMTP id mj9-20020a170906af8900b00a36617520d6mr1238993ejb.33.1706710395610; Wed, 31 Jan 2024 06:13:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706710395; cv=pass; d=google.com; s=arc-20160816; b=IgsTbgCxIxN9tl3SRINdjp/FBUOes4MQOg6AB0B7KxciVPMU/HBXEn9gOfrmiCVPpe rSFM2+wjR0CohEUJkTZA+oS+tCDmYwRrl4+SYHKEYRzNl/K7NmC43lhlj85HFDIaUzXG 14yHCiKHK5bb+d3INEWjSIMP0wOHhqrMIgamFePDbmnrFlIl736KlmKJSs3yKTI7Yeaq HUD0rtoR5iI3orSTWQRdziO+pgkwhioklzpKx0Qa+7ZPhAt961nNAwfzRILrR3eXHcOA OqOjLbQFd4m20CIxj2L6ei4z1fyVhhlvEf8kXCNyvo4PTk7tg7HMFvGVnW6JLmRGd2Cb ORBw== 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=66EioyYaNZWrql1Wdx0jMNv3oUgZZuPSMXuTOfK0//M=; fh=5C/F1WoSnRE+BRJyp1oLLLkMaOLeNh9JQuoSDJ6pAnk=; b=CeRcgl6YhnnqId9UBCqeju8F/mtFpYhcwb+5mkhheA+2ywZkXVmE4rRMRPemeXhf1l iImVMykX+g564eKg3tl8vi6uWWOYvBkqCqUnux8k0gHGIqFPUaB3ZVWBHULg1n1xVnac fmK15w64qvOPrtybe4WKaOYInfW46uP3HMFzLNZlVa877SK2qgNzBY1ywdjeQJF6GaFq fefekw6s46frLxadnIwlhTJzK3KZhHarzwuACrCQvXJaLPTrf3R7RjryyW6HQt1jDoMI BRESkHrVRfvxTPl8kw26jYgqQhU5ActZWWGY6Dv1wfl3zUEa6C9jMW3v70YVlokYZCQk 3xuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=V3Z1Vfs2; 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-46573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46573-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCW4EGnWoFU0lHTBQRFHcnA1nGh7hDukCVEGUAFc4kFwV/AcqzjO/tEzprW8LJu4q1fOOl5rIW4pRWEdKRtAM/6vSHaLDg1AmettSLQ2VA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u26-20020a170906069a00b00a35dea0b1e8si2387528ejb.69.2024.01.31.06.13.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:13:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=V3Z1Vfs2; 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-46573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46573-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 17EB41F287CE for ; Wed, 31 Jan 2024 14:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AED682899; Wed, 31 Jan 2024 14:12:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="V3Z1Vfs2" 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 25F247F488; Wed, 31 Jan 2024 14:12:05 +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=1706710329; cv=none; b=clsLVSEjB4RAC0GEUfF5ysVsXkaeHxlXLnhGu7Zti1ZfxAZbFE9+tTZk/QQElAt3gc6L/yG/xLac5DC3FqI9HaJwWuN7e28sfKylSTH6y2pXZwp6LsF2SWOB46Q0Pq0+Ldkni9SzzCnIyxXll3k6xJYNukXg3cmWktDBwAQ2Xao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706710329; c=relaxed/simple; bh=DKgxfvknO4pwhTFl5wVRoY3ZHo7YgxQd2rNgFtft8VE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YBBl4LNDzwQJKW5V77+K3+r1IAVXWk7zzerVfFsMW5Oo/xZEDLbDKn1okkvKpGGBVsNgsTB1gruHb4FVzGMsEnz8UqslJ/AR7Khi6uL58BHDp/eF/OE46NipF+QbxtoejOq3bS1Xcm8bo6AqK0rJgYL4+r1McihkOLsYHfmmBIY= 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=V3Z1Vfs2; 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 92B7D240009; Wed, 31 Jan 2024 14:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706710323; 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=66EioyYaNZWrql1Wdx0jMNv3oUgZZuPSMXuTOfK0//M=; b=V3Z1Vfs2FUvpXjp1N/mRfcgtKQPZkU5AuqkJzjBDxUiXQ6cWkL18CQBEyaHAYZGFycBpJt +H8EXcJC+Oi0xqURSzIYcsC5aay+/pPeweHtV6+7CAzjMzBkRBHYExVUmIwNNoMRuLL/y0 kElw5QzVdzS7Tqrg2oY0DEq9FsSh/J3y3KsuUYHtuKdLOHVJe5PYeAO3YvQWPP3GbIQOer xx17to8jw6ERYySIjvlbxjaKstrsWXOu/e+wXvodbzDkTfFuDFckUN/htMsmgvCpREczRZ cTk2VTAob7f9DUfxcDcOYw8Hop27BRH+Ec3TO7YSG0DSx+lRRAp0So059P8CfQ== 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 v7 0/3] Input: Add TouchNetix axiom touchscreen driver Date: Wed, 31 Jan 2024 15:11:54 +0100 Message-ID: <20240131141158.3350344-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 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 | 666 ++++++++++++++++++ 6 files changed, 750 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml create mode 100644 drivers/input/touchscreen/touchnetix_axiom.c -- 2.25.1