From patchwork Tue Jul 26 12:56:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12929305 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 9AD42C25B06 for ; Tue, 26 Jul 2022 13:57:16 +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:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OtwlVmjRytDK1rrBgvJSF/gDw/yROV17p6t1hzXp5FA=; b=C0NrzGOPJt3ZX3 ThcmR6qZ9GtdTu1wL30Rordi3blqXi2orXaYsBWKFRiuN9DTLNtzHBfzvQl0BINUMpoZze1Nm7FD0 y9iH4608nvvBhKnS4NUgdR/vpFvLa+5U0CMh+4BgD6fxZStxrGSUJCoI8nQN0QDZX5MzkHVNWBpz6 zI4461mIVeIttKj6EVWPx4tSfEGDXfb06bhs8oDTIkyP4ayfuYWhz1dYwbMExO9p2JKXQRENdFsmP 1ctlcosr42zFdpMdvlvqDBFqzWLYQvwHCtvuIg33sB+7u3qFppq29+KVnBtqe10Kv5gKiPTjl1AJL xsSrTafGuT5ACV7mKWew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGKqf-00HSuC-13; Tue, 26 Jul 2022 13:43:45 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGKqd-00HStN-Tk for linux-arm-kernel@bombadil.infradead.org; Tue, 26 Jul 2022 13:43:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:To:Content-ID:Content-Description; bh=Pv8Wb/XUfgDvlUBb7xZCItYlnc14Qbd8klbk0fBR/cI=; b=X1CawYW0m+KJJ/6/jap8YPDZe+ gJS41reTvf8keN5eaRT8xaMyAUbWJhScPPtUlPTl1zOWBk1wZRMg/1/hMTVShiSEpOMH87cFRs09K 6URex/njBISAUG0rZ9PaElLXM65qKG6DgsSif1iCYkZOXw+HQ/waa9EK4T9BeVlLzoeLqzbKUZ2FV xSAcqbUGGYKoBQbuCiDNxB8ygUsxWJHdtEP/occWU3iu0KMfUEgVBNbD180hzYk8kHm6cMKL0zdBb rq5rgExW8lQy6FgfCaIxBLfXChPNy1BloG0ijyONhFFjRLgxtGmSeVD03dGrLTyhbdryAmpw5n2AF KfyRflUw==; Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGK76-0002SZ-JX for linux-arm-kernel@lists.infradead.org; Tue, 26 Jul 2022 12:56:44 +0000 Received: by mail-wm1-x32a.google.com with SMTP id u14-20020a05600c00ce00b003a323062569so8112122wmm.4 for ; Tue, 26 Jul 2022 05:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:date:subject:mime-version:content-transfer-encoding:message-id :references:in-reply-to:cc; bh=Pv8Wb/XUfgDvlUBb7xZCItYlnc14Qbd8klbk0fBR/cI=; b=JQC0LDeiyCTONLO9wJzCR3DZayr2OeSY97UtihVtK2Bg//mORTzwXNPQ+3bZvguNmQ G8HgNDfEkkPic2mCzlej2yTg5sJBWpWQOKJW4hmFNVLOtUNlTHZLmvnLaYTGO57swON9 JnMb07hRleek6DOVe9ppMcxjCwr4KlqQ5aYSfJsjWJ43VFGGsOTp1NkHXUuBaFtIwwkt /bgJS8DYAK1Zn8Fw53JRW+sZoWXXjJs3uWAfYWySQg+Yc5Wpnwa6Ee7Xuue3cpQ89FD+ e5reycwqnH7QxWvpijS7glQJuXIBJEVn4DgeAUml+0SWnmHj/ADspwBVxwBwtXp/TTOc 0OTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:mime-version :content-transfer-encoding:message-id:references:in-reply-to:cc; bh=Pv8Wb/XUfgDvlUBb7xZCItYlnc14Qbd8klbk0fBR/cI=; b=0Qyb/T7IMBxibQ8bONj9B1G0FWtkQ43JltK31WHknqRj215Z2n9PhGZeSpV19MTscS JH+DKaO36T66zoJDJY0z2IbEbKWfiB7cpdJ07B2qNpCyOJhXpEzobGfZbVu4WYRZYbBo bEUfsNZXki1sTmbcjfPto5l2IWl2yxFBM84ShXOX0A0E9ODEGZhj6RQ/FEm9NW/WFpTB qhJVsDraPpQN+5rDyA3T8eeq0JLI0BTeiy0Uxec67NQMEG5Pmt7XKyvlkupB497Td4TQ kA6rTxL5pZ/aW8hWQQrEtKBwFc2M6FgEU3a7Oo2j3+JVfrlo5etgSwCKos8z8FI3CPRI f3eg== X-Gm-Message-State: AJIora8vxURhZXzIl5qRNJMjg7aIfzIlRljky8EX2e0Px53vXQ9ePoeo 6bflz+Pwj57POPgTBFKlY7xq3A4lwr8D1g== X-Google-Smtp-Source: AGRyM1vvvRdQPmoQCB+VQgE8Mf8j6lPcMzabj6A5fEyQBKVFOEwxFB9YOwKu5xXK1jyzEiBm23752g== X-Received: by 2002:a05:600c:19cc:b0:3a3:3cfe:d548 with SMTP id u12-20020a05600c19cc00b003a33cfed548mr12225185wmq.6.1658840196274; Tue, 26 Jul 2022 05:56:36 -0700 (PDT) Received: from [192.168.2.253] ([82.66.159.240]) by smtp.gmail.com with ESMTPSA id k1-20020adff5c1000000b0020fff0ea0a3sm14171549wrp.116.2022.07.26.05.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 05:56:35 -0700 (PDT) From: Mattijs Korpershoek Date: Tue, 26 Jul 2022 14:56:12 +0200 Subject: [PATCH v2 7/7] arm64: dts: mediatek: mt8183-pumpkin: add keypad support MIME-Version: 1.0 Message-Id: <20220720-mt8183-keypad-v2-7-6d42c357cb76@baylibre.com> References: <20220720-mt8183-keypad-v2-0-6d42c357cb76@baylibre.com> In-Reply-To: <20220720-mt8183-keypad-v2-0-6d42c357cb76@baylibre.com> Cc: linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , Fabien Parent , linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Fabien Parent X-Mailer: b4 0.10.0-dev-78725 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220726_135641_515731_33B43EB3 X-CRM114-Status: UNSURE ( 9.33 ) 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 From: Fabien Parent Add device-tree bindings for the keypad driver on the MT8183 Pumpkin board. The MT8183 Pumpkin board has 2 buttons connected using: KPROW0, KPROW1 and KPCOL0. Signed-off-by: Fabien Parent Signed-off-by: Mattijs Korpershoek diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index 530e0c9ce0c9..a1d01639df30 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include "mt8183.dtsi" #include "mt6358.dtsi" @@ -122,6 +123,18 @@ &i2c6 { clock-frequency = <100000>; }; +&keyboard { + pinctrl-names = "default"; + pinctrl-0 = <&keyboard_pins>; + status = "okay"; + linux,keymap = ; + keypad,num-rows = <2>; + keypad,num-columns = <1>; + debounce-delay-ms = <32>; + mediatek,keys-per-group = <2>; +}; + &mmc0 { status = "okay"; pinctrl-names = "default", "state_uhs"; @@ -226,6 +239,14 @@ pins_cmd_dat { }; }; + keyboard_pins: keyboard { + pins_keyboard { + pinmux = , + , + ; + }; + }; + mmc0_pins_default: mmc0-pins-default { pins_cmd_dat { pinmux = ,