From patchwork Wed Jul 20 14:48:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12924093 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55773C433EF for ; Wed, 20 Jul 2022 14:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:Date:From:MIME-Version :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=t7Ovu9ohimHzJZee/Zif+KFCWxT0DZUnBANLiRe6rvU=; b=WXV94Rzijc1K7M UpFkNVNvJZH0OpgdMxNGd5ap2E/73fsi50WhEjUFXCKmRAgbGKaaIk1wwfOWtja3KoNTF5N/gtMA/ T3ejWB3UzNbgWkbxK1DpYe9ah3YRWuJj1c+W9fYr7VP2dWZj1h+jLcGFjkNEbCJPzkmPDb/SDtSGQ DjZSPVthEUp8SkLfJIMMlyu72W+IGjHkJd0xQY7y+jIgqut/RDzoCyJXudmXAgVJYRmiFoIM4Q8Cw Luyoa8ZR3auhY7+D9yO3hj09EiCDnV+idQLNyzhcW6iMUPRCkPB3rafx7ZsmQf50fUysiEA4plD3E go4qmKKWphe2SA4MwgwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEB0j-0075Dz-Kg; Wed, 20 Jul 2022 14:49:13 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEB0F-0074d2-9t for linux-arm-kernel@lists.infradead.org; Wed, 20 Jul 2022 14:48:47 +0000 Received: by mail-wm1-x32c.google.com with SMTP id n185so11007329wmn.4 for ; Wed, 20 Jul 2022 07:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=subject:mime-version:content-transfer-encoding:from:date:message-id :to:cc; bh=y0nOdBdH/FiY2jfQvMH95VKpuAO3BFQhEGGb8OIH85M=; b=yI2UwrXOi3+iAjbP6Ub6fisppNUVUrxVmdsq3fNJv+N1wsO60lcIG0WM+ItxOyv4Rp J0pUF3pyFpUzkdwL8Q0jOkNMphJOCg4N/hrIQy5AjQ37nU3pVu6iemD41WcW+fRHW+/s jaPCYzpz13OTcIxMzKeVd/YZ5rDKvd7lmW3y8O1oZP/SPBqo8z51egLC6Dnr0TQSsGGe liZNw/xHmAIH6C2eGologqz4OCE5zYmpsvArnvvfcrI1OuHxNqPkSPrL5KPsWRaGMvnk PQ6MCEAP3UGVGSIDP+NM9cKT1dXQPid6xBLrqZPa2VtgMYUXDNdLTEkvRiwZXpRNI66V uUyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:mime-version:content-transfer-encoding :from:date:message-id:to:cc; bh=y0nOdBdH/FiY2jfQvMH95VKpuAO3BFQhEGGb8OIH85M=; b=TK29e5RdzbqlakIkNZ1acjaltppzXczh17CuNpTz29YioZLiVKddRgQMWdMejVpyV2 Xk8MIh0Q6KWjT4+yJQgTWLpnnpWkVMhWEnQj4XItHBLNf2RB4/tNg4WoDVajOjjl81a+ bSNf7apBGhhlZXg1DQSNzgBLFnte2KtGm6kZwDeeWwf5DAzmrLllIgqVEQTLQ7R2qmsN GcSZjoHDkFMp/csD0m7Kd2yY3xwfufbTuMWK2N0bc9Q40FCV6itF+5DNz/RAt2BlYaaG SaXZ3Dtne8rfI7IC9Zg85nObhGsLs2U4QZwBnyZxQSFL7Y7bvUw7uMYE1sBn4vBiw7zU auRg== X-Gm-Message-State: AJIora+85lalELGhaiL/51TT9gYQ2RRHKX75NUJSfJGnZb77+QgqtzAb KSuHfwMe1fhfHlTOxSXozpu++w== X-Google-Smtp-Source: AGRyM1ublPYAEei2qfPJouysredFf/CYLPH5v96mYBkQf2Q+0TkflmcBuDnsIT97NTApdhrn+fK1vw== X-Received: by 2002:a05:600c:34d0:b0:3a1:a05c:b523 with SMTP id d16-20020a05600c34d000b003a1a05cb523mr4189886wmq.94.1658328518916; Wed, 20 Jul 2022 07:48:38 -0700 (PDT) Received: from [127.0.1.1] ([2a01:cb19:85e6:1900:c639:22f8:bed9:44dd]) by smtp.gmail.com with ESMTPSA id f8-20020a05600c4e8800b003a31673515bsm3321121wmq.7.2022.07.20.07.48.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 07:48:38 -0700 (PDT) Subject: [PATCH v1 0/6] Input: mt6779-keypad - double keys support X-b4-tracking: eyJzZXJpZXMiOiB7InJldmlzaW9uIjogMSwgImNoYW5nZS1pZCI6ICIyMDIyMDcyMC1tdDgxODMta2 V5cGFkLTIwYWE3NzEwNmZmMCIsICJoaXN0b3J5IjogeyJ2MSI6IFsiMjAyMjA3MjAtbXQ4MTgzLWtl eXBhZC12MS0wLTY4YzE5N2MxOWYyY0BiYXlsaWJyZS5jb20iLCAiMjAyMjA3MjAtbXQ4MTgzLWtleX BhZC12MS0wLWUyYmI0MjcwMTI3MUBiYXlsaWJyZS5jb20iLCAiMjAyMjA3MjAtbXQ4MTgzLWtleXBh ZC12MS0wLTc2OTM5ZmM0MTRhZkBiYXlsaWJyZS5jb20iXX19fQ== MIME-Version: 1.0 From: Mattijs Korpershoek Date: Wed, 20 Jul 2022 16:48:36 +0200 Message-Id: <20220720-mt8183-keypad-v1-0-ef9fc29dbff4@baylibre.com> To: Rob Herring , Krzysztof Kozlowski , Mattijs Korpershoek , Dmitry Torokhov , Matthias Brugger Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Fabien Parent , linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.10.0-dev-54fef X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220720_074843_651187_C39A6D7B X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MediaTek keypad controller has multiple operating modes: * single key detection (currently implemented) * double key detection With double key detection, each (row,column) is a group that can detect two keys in the key matrix. This minimizes the overall pin counts for cost reduction. However, pressing multiple keys in the same group will not be detected properly. On some boards, like mt8183-pumpkin, double key detection is used. Signed-off-by: Mattijs Korpershoek --- Fabien Parent (2): arm64: dts: mediatek: mt8183: add keyboard node arm64: dts: mediatek: mt8183-pumpkin: add keypad support Mattijs Korpershoek (4): MAINTAINERS: input: add mattijs for mt6779-keypad dt-bindings: mediatek,mt6779-keypad: use unevaluatedProperties dt-bindings: mediatek,mt6779-keypad: add mediatek,double-keys Input: mt6779-keypad - support double keys matrix .../bindings/input/mediatek,mt6779-keypad.yaml | 8 +++++++- MAINTAINERS | 6 ++++++ arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 21 +++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 +++++++++ drivers/input/keyboard/mt6779-keypad.c | 17 +++++++++++++++-- 5 files changed, 58 insertions(+), 3 deletions(-) --- base-commit: 3b87ed7ea4d598c81a03317a92dfbd59102224fd change-id: 20220720-mt8183-keypad-20aa77106ff0 Best regards,