From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (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 1BE912DCBF4; Thu, 5 Mar 2026 19:21:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.243.120.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772738479; cv=none; b=bAHP1wfrgAjkoVFwmSKbL8HM5GF0UpBj7lNW/5OjSULN20IQUpax09xTaYg52I77V/LS36H4V548AE1ega1BuSbWMm1Je30iulq4fyZgLGyTglK9Aa9OXdypaGL5A3ka/8nJTZfdd9x+eiwjGNsSicFHTN8SfOF8TXzHwVOx3dc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772738479; c=relaxed/simple; bh=8Acpkllw3JQcZID2Gvfo038Z2G6aDeZvY4gFO4M2RnY=; h=From:To:Cc:Date:Message-ID:MIME-Version:Subject; b=mWgSz3zgvV9RejSLeJKoUHcLIdCL0sPFw6ASPPRTo1V7fmPtdc3jebMHKtprKIVgV/vGUJkRaFi48NTB/uOvUzwAk/tSE0D4mMYBJdgqpqK2IQ7jkH2QeqbEISBz4ikLN3A1MXWElMGSUeysgVbCwpVCQKngzXDITI2HaT4XL8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com; spf=pass smtp.mailfrom=hugovil.com; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b=CX/MOaZB; arc=none smtp.client-ip=162.243.120.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="CX/MOaZB" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Cc:To :From:subject:date:message-id:reply-to; bh=Lx2PeUB/+ktZhYHec4fhLhGaJWMzeKaDOrGyuPAWw+8=; b=CX/MOaZBZ+AUM2gw4bgjeR2Cln 389wJGmvVidldXUMRTNLNWYPENV+HSdyEhdBrJE9CnEvb6ZgWs4cJhG5HChJWQPxiNmxH3ezwNTsz Sp/7+OUAZ+ztq3uN5uYO63SbTslce6jwRkR39jt9Ovp4vfc4W99BSTq8vyXpx75MpPQs=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:42592 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1vyEFr-0002na-Aw; Thu, 05 Mar 2026 14:21:07 -0500 From: Hugo Villeneuve To: robin@protonic.nl, andy@kernel.org, geert@linux-m68k.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com, hvilleneuve@dimonoff.com, mkorpershoek@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lee@kernel.org, alexander.sverdlin@gmail.com, marek.vasut@gmail.com, akurz@blala.de Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, hugo@hugovil.com Date: Thu, 5 Mar 2026 14:20:46 -0500 Message-ID: <20260305192101.2125660-1-hugo@hugovil.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Subject: [PATCH v4 0/4] input: add GPIO-based charlieplex keypad X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) From: Hugo Villeneuve Hello, this patch series add a new GPIO charlieplex keypad driver. The first two patches simply commonize two properties that are present in a few bindings, so that the actual patches for the charlieplex keypad driver can reuse them instead of also redefining them. I have tested the driver on a custom board with a Solidrun RZ/G2LC SOM with three charlieplex keyboards, all connected thru a single PCAL6416 I2C GPIO expander. Link: [v1] https://lore.kernel.org/all/20260203155023.536103-1-hugo@hugovil.com/ Link: [v2] https://lore.kernel.org/all/20260213171431.2228814-1-hugo@hugovil.com/ Link: [v3] https://lore.kernel.org/all/20260225155409.612478-1-hugo@hugovil.com/ Changes for v4: - Fix indentation in comments (Andy) - Add missing includes (Andy) - Remove OF dependency (Andy/Dmitry) - Uniformize return code variables to "err" (Andy/Dmitry) - Change signed iterator to unsigned and move within loop (Andy) - Remove unused platform_set_drvdata() (Andy) - Fixed typo in cover letter PCAL6416 (Geert) - Changed name in bindings example (Geert) - Added pull resistors to bindings doc and example (Geert) - Add debounce-delay-ms common property - Add settling-time-us common property Changes for v3: - Add ASCII diagram in bindings, and reference to it in example - Reorder properties alphabetically - Add patch to define common input settling-time-us property - Add patch to define common input debounce-delay-ms property Changes for v2: - Fix yamllint error for example - Remove unused debug variable (nkeys) - Remove support for custom linux,no-autorepeat DT property - Remove support for custom gpio-activelow DT property Thank you. Hugo Villeneuve (4): dt-bindings: input: add debounce-delay-ms common property dt-bindings: input: add settling-time-us common property dt-bindings: input: add GPIO charlieplex keypad Input: charlieplex_keypad: add GPIO charlieplex keypad .../bindings/auxdisplay/holtek,ht16k33.yaml | 5 +- .../bindings/input/cirrus,ep9307-keypad.yaml | 7 +- .../input/gpio-charlieplex-keypad.yaml | 108 +++++++++ .../bindings/input/gpio-matrix-keypad.yaml | 5 +- .../devicetree/bindings/input/input.yaml | 16 ++ .../input/mediatek,mt6779-keypad.yaml | 1 + .../devicetree/bindings/mfd/fsl,mc13xxx.yaml | 2 - MAINTAINERS | 7 + drivers/input/keyboard/Kconfig | 14 ++ drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/charlieplex_keypad.c | 214 ++++++++++++++++++ 11 files changed, 368 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/gpio-charlieplex-keypad.yaml create mode 100644 drivers/input/keyboard/charlieplex_keypad.c base-commit: 3bf5404fc93825ddde89992acad095a297ed9a31 -- 2.47.3