From patchwork Wed Jan 26 15:35:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12725480 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 CC0EEC2BA4C for ; Wed, 26 Jan 2022 16:58:17 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From: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=dGn0V8F1YkWAdFmB7uee5MAwiXUOxDJ+zlFesgScAhs=; b=Unw1JqBl9X5WXd 2XYzEN4Vo4Df4TXXbaCUmxEgdaQNMwN46bfQzAQuCJsV4+hXLBvPTR6+U30QmBDXnnD09Qh3VgX3i qxA7P3HHY5SczQdfsVeEpCvaGL+XXlaTUflgR649pCb2nFfNh/3f7lAsMTgOMDdORwvbt7a0jrHiV WZU5iLJrX7z8b2BevO6fzqgY35XekqH0Q63OJHvZtG4r1FX/0V88iaSZmZLYAYR/6I39T9lsFitfL 9dkpRYvpcLxl5UjeKxeyBISe2/3uYj0XmhHHrcLN0oq4nSq/dB5yvawwuYVlygS56UwDA8G1PPfBr EJ9Bu4mf7femDtNhmNEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nClb2-00CnaA-PM; Wed, 26 Jan 2022 16:56:38 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCkKT-00CKWK-Vt for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 15:35:29 +0000 Received: by mail-wr1-x436.google.com with SMTP id r25so9758568wrc.12 for ; Wed, 26 Jan 2022 07:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3U2VlbaDiL8zCwzswKdJmuhmgZcDC5jFlEtFb0awmuo=; b=H63H9mJZx+2wNR4miZeP2BG9jFbtr6BXJRaDXRJB7+UM87PNnkEuDk4JU86/Uuj4nU o74Z1FhfadPMea+oscObqeq5MTVxmYqEVr7LaHsT0WU46Z1aN4ZAK7VLijKdpn/rNwTw B3zZi6kW/J7SScpS7ZZvEeV43gZZvIN18CxSDu147n+JJfmHEI+kHWAijEFYhz+rBMCH 7stkchPJ7/1oyNDPCV/DO6HNvgP87Vq4WvLeCA7V+sdluRStNy3PqpjTOLkyygD12tn/ 4wC9Ggh63fA3g/fKGbTNpsyhiZQdduKj5JEpa//INoJmnGun9M6uL6NVUksz3A1otNvo w2UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3U2VlbaDiL8zCwzswKdJmuhmgZcDC5jFlEtFb0awmuo=; b=UnoGHWvTck9eXuYpdACRxvOdUSH1Km8d3HctcU0p0I5gqgqcWAbUVCz2//7mPdHQ0y 84fdjgZFMc00uVcr4wF1DSkU2jKTa4+5/XZkc/ZhTLS5WUWoxdKLnN11FxEEgQpn3ZkS 48Ng5le3nhJtdw5NQ+hqnCgj2aMOG6zVQoB/4/Fmik5CUusL8kqUtr4mjJgf26s+Qy5D qAkZ76vi6swTKb4OVpbCwp1AWZG1/P0oiEGaUIkTqNaCtCzL//sIvyxLOlPimlh8x2zH LlB33YY4TNuztnXevOT9z1LuWW10p9r0X8VFZwTWkGg2uCUPqOFPp091AYZtrOZ0GEW7 oneA== X-Gm-Message-State: AOAM531Co/tktJ0OgEi6iRw5fZAUyl5jzDTs6P1BUhVoDOJ8fGIEilp3 VNta1EiqFTl+qImOBxHw7ZgdjQ== X-Google-Smtp-Source: ABdhPJz2hfUkHjqnjSjNIHx9xgMie+71LhrZ6IWHyS38Ps4va/mJ4GSkip4hIiWw/0AIIgt4hddUww== X-Received: by 2002:a5d:508a:: with SMTP id a10mr6584123wrt.360.1643211323734; Wed, 26 Jan 2022 07:35:23 -0800 (PST) Received: from mkorpershoek-XPS-13-9370.. (laubervilliers-656-1-151-143.w92-154.abo.wanadoo.fr. [92.154.18.143]) by smtp.gmail.com with ESMTPSA id n10sm3360958wmr.25.2022.01.26.07.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 07:35:23 -0800 (PST) From: Mattijs Korpershoek To: Dmitry Torokhov , Andy Shevchenko , Marco Felsch , Rob Herring , Matthias Brugger , Fengping Yu , Yingjoe Chen Cc: Mattijs Korpershoek , Fabien Parent , Kevin Hilman , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v19 0/3] Add matrix keypad driver support for Mediatek SoCs Date: Wed, 26 Jan 2022 16:35:16 +0100 Message-Id: <20220126153519.3637496-1-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_073526_178362_B0F4E5BD X-CRM114-Status: GOOD ( 15.39 ) 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 Dear all, This is a follow-up on an abandoned series, see [1] Since Dmitry seemed generally happy with the driver, I applied his rename recommendations. I also did a couple of binding fixes which were needed to pass "make dt_binding_check". Thus, I have made the following: * All Reviewed-By: tags were kept * Applied Marco's reviewed by on the bindings (since he approved v10) * Fengping is still the maintainer since he is the original author of this driver * The binding license is not changed even if checkpatch recommended it: > WARNING: DT binding documents should be licensed (GPL-2.0-only OR BSD-2-Clause) Please tell me if you would rather have me do things differently. [1] https://lore.kernel.org/all/20200909072159.14888-1-fengping.yu@mediatek.com/ v18 -> v19: - bindings: fix maintainer -> maintainers keyword - bindings: add matrix-keymap.yaml ref and remove included properties - bindings: fix compatible strings (reported by make dt_binding_check) - bindings: reorder properties to match the required ones - bindings: remove un-necessary descriptions - bindings: fix multiline description for mediatek,debounce-us - bindings: fix example to pass make dt_binding_check - bindings: fixed licence to GPL-2.0 only (checkpatch) - bindings: rename to mediatek,mt6779-keypad.yaml to match driver - rename driver to mt6779-keypad.c - prefix function names with mt6779_keypad_ - prefix globals with mt6779_keypad_ - rename CONFIG_KEYBOARD_MTK_KPD to CONFIG_KEYBOARD_MT6779 - rename module name to mt6779-keypad - update copyright year to 2022 fengping.yu (3): dt-bindings: input: Add bindings for Mediatek matrix keypad Input: mt6779-keypad - Add MediaTek keypad driver arm64: defconfig: Add CONFIG_KEYBOARD_MT6779=m .../input/mediatek,mt6779-keypad.yaml | 80 +++++++ arch/arm64/configs/defconfig | 1 + drivers/input/keyboard/Kconfig | 12 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mt6779-keypad.c | 218 ++++++++++++++++++ 5 files changed, 312 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml create mode 100644 drivers/input/keyboard/mt6779-keypad.c base-commit: 87a0b2fafc09766d8c55461a18345a1cfb10a7fe