From patchwork Tue Oct 17 10:18:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Hackley X-Patchwork-Id: 154052 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4034910vqb; Tue, 17 Oct 2023 03:27:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHM1tUrnkhpl/5q2VrettBZ0+KnODeR3ikrc5LsivmtKSEHvLnAZc8+z7p+MqRNbVBg4adW X-Received: by 2002:a05:6a20:c182:b0:13d:fff1:c672 with SMTP id bg2-20020a056a20c18200b0013dfff1c672mr1803714pzb.4.1697538440479; Tue, 17 Oct 2023 03:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697538440; cv=none; d=google.com; s=arc-20160816; b=r0sNjwZ8A/yXdepMz+0Ef3v0oInRa0XafvbHC/Xe6yGmIan83eKqD2jG09FMMIpGe9 p74YAIXUfkpIHxN+l/AnGHa9kOPh8stHtxSsHjQtjf+7b9svl3hZz+mSJOgVgpPVhSb0 PcPZeGoohQ3XFilC6hGNo4mMAcJbmxvk8tWn8fs3SFb5AUQ+ljyy0kC4LA7c5aJ1jHzS tAD+aRNzjKUk0yGUxcTbRNyPpNBDaEC9NyfMkFmMTRe/iloqz5rd8GO/GRuCdumiPkBj G6+5G6p4lmtf1sv15qv+wOVk4usK8/GFyiVi6e1NV4/U1/BQbHIgK0HwlD2hGblp6VwQ x83A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=SzTv8Fcb4hwq7Dtnm5h/o3jhzCSwX34AJg/3WWk7Qz8=; fh=pKgDI89O/g7pvk95mWkxwPdmV9WnS3yVP2+pEKuJ0XQ=; b=angp0f/K95i9N+IyRkVWT1reirmGhsET9BqANZJpyjnm6gdtjjUsSj5cgT0yXs74hb AocNsjOZGVDedcztXXJL20KHH0gldZ9mknBpBUkl1JY/D2BKcNiwTete9AuZuyFKiyTh ZnvWGqnlFNi6zSVJJ3rHwXoNXZ/3XImBDuWGWRygfQHcHhowKiOrAV1PBR2TUdyMEjib 8ojGUCOArHl8mLcYxBFqu08lqohIKpZl6LgTWu2hBYhU4L59QHNe2vi978CgyiCVI/GN a6dNUA37snI55fTutbHiuZnnDRisXkCGMWbb+uH8EEwvz3nfI6JKuS+iTs1Ya3MsXKyU kLJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=JSKHE33t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t11-20020a170902bc4b00b001c88e81a54asi1399973plz.325.2023.10.17.03.27.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=JSKHE33t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EFE29806E56A; Tue, 17 Oct 2023 03:26:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343614AbjJQK0H (ORCPT + 19 others); Tue, 17 Oct 2023 06:26:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234956AbjJQKZ6 (ORCPT ); Tue, 17 Oct 2023 06:25:58 -0400 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6427930C0 for ; Tue, 17 Oct 2023 03:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1697537940; x=1697797140; bh=SzTv8Fcb4hwq7Dtnm5h/o3jhzCSwX34AJg/3WWk7Qz8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=JSKHE33tKsGkZ6lMXp/H2d9fFMgePevjoGa4ZaS84a5v6sHiczcXQ/lMI8uCxtsu2 ngKHyIz7B+5d8sOXb0b7XpOlAsC04zfNeT75vJE3dKP+Pg6s1hcr2xDTJnzn3yua6+ U5t4hfmdlLtuCdwhaZ6hBUTZpHdTKyYTjDKFBYxPbxQ8UJ953VhDxOT2smwR5sMhiT 1A/PRAUQ4VxnpTxUWE6LwNSn1I6EHgC5yPpHuEzwUQQO4iWeFo13ylHF7rGgG9+P7B mA2MifJ03pLNb6XOwDp534vVKais67TDCaYo4M4qp4aYp96AJXA4uHNlEYZ0hll3Z5 uyxutOH9h97jQ== Date: Tue, 17 Oct 2023 10:18:04 +0000 To: linux-kernel@vger.kernel.org From: Raymond Hackley Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Raymond Hackley Subject: [PATCH v2 1/2] ARM: dts: samsung: exynos4412-midas: fix key-ok event code Message-ID: <20231017101636.62755-1-raymondhackley@protonmail.com> In-Reply-To: <20231017101402.62740-1-raymondhackley@protonmail.com> References: <20231017101402.62740-1-raymondhackley@protonmail.com> Feedback-ID: 49437091:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 03:26:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779998067800997825 X-GMAIL-MSGID: 1779998067800997825 Input event code 139 stands for KEY_MENU, instead of KEY_OK as node name key-ok inplies. Fix it with correct event code 0x160. Signed-off-by: Raymond Hackley --- arch/arm/boot/dts/samsung/exynos4412-midas.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi b/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi index 7daf25865551..3c1ae3c19828 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi @@ -159,7 +159,7 @@ key-power { key-ok { gpios = <&gpx0 1 GPIO_ACTIVE_LOW>; - linux,code = <139>; + linux,code = <0x160>; label = "ok"; debounce-interval = <10>; wakeup-source; From patchwork Tue Oct 17 10:18:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Hackley X-Patchwork-Id: 154051 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4032318vqb; Tue, 17 Oct 2023 03:21:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrQA3BQ+1zYEXrki9hHzkMyHjTi3ZgfApO9YB6J/zHxo3LNbWZSdZsYJjK/cBTqaUC93+Y X-Received: by 2002:a05:6870:b494:b0:1ea:bb5:a534 with SMTP id y20-20020a056870b49400b001ea0bb5a534mr1805002oap.5.1697538068396; Tue, 17 Oct 2023 03:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697538068; cv=none; d=google.com; s=arc-20160816; b=yn4cpW0ppklK+2b1Ytg7uJSgdDPuA9eFcU0FvvFeOtx91TxgX1ntC79Xef63NASgsN 2nZ7XmXwZxuNvR+EAbHJW8hRjqyxZX83ai0ZILOxu4BrbXD2C38+2CwaJLL9bfFRwDFG 2ffRfS3raZ1/tcjibKUl/nq+TcHQ35pJQShkeohIJn+vJVdE4zRFODLobmuQwKWBhnCf UTBROyn3+UDY0De6pWfCQDTjJgk5G28T0hCFwzLxg01fTwyD63lGIYWsevYyba4LusHS PxwoZf6+FCn1BWWtP+Ao/dNKbhFdEL0VfgUzOaq4j1rNdgUyZh8KunN86BpACXsMKNAn k2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=tUB6w0Ph20drmiGZYYSJujiE+ggt/zuWi7AKR0FbM+A=; fh=pKgDI89O/g7pvk95mWkxwPdmV9WnS3yVP2+pEKuJ0XQ=; b=pQx7WXyl6/hd+lTXPDTDGQcLgH6GoTc49YAhGG7oIM9Q4qVokHUKAKoW71zuskzXJt Fjt/OBZel/eI98I1lrA6ZiFBZumh/kgnmQzZAd659JARyd2op5ijS6aNOSzs2yIkQC6g 8QCnFxz1/HGzfRLN/d8EWSof5Nq2bocrWkbLe+uhayvyPZGMh5R9xPH//G0ahFHXY1B4 fL0WPVMak+37q0HT9IcUE7NOJ5s4SyqAlPzy1YPEwnWvVwEpXXqti/v2vQSHPa15rsiv a2TLOhMtkZ1C26I8HdmpJpf93WyQxDK9MAh4U8YFsvRFmMvrieFrANiytQJx0rPKVfjM 6w1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=V6Gjnz01; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z16-20020a656650000000b005641ddd0309si1407071pgv.599.2023.10.17.03.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=V6Gjnz01; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BF80A80A3126; Tue, 17 Oct 2023 03:20:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235078AbjJQKUp (ORCPT + 19 others); Tue, 17 Oct 2023 06:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235067AbjJQKU2 (ORCPT ); Tue, 17 Oct 2023 06:20:28 -0400 X-Greylist: delayed 3437 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 17 Oct 2023 03:18:57 PDT Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A776E113; Tue, 17 Oct 2023 03:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1697537934; x=1697797134; bh=tUB6w0Ph20drmiGZYYSJujiE+ggt/zuWi7AKR0FbM+A=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=V6Gjnz01qj1zOsx8nMnmQ/Lv3GWM6nWGfm7XYVW+6btRn5s2Bo5PZ5kEDmb1As0S0 Jdmk0vlWoPgXaecCPSnPb377l0AAe9UEWbvKK3/b+SraHsqe19SyJ0vRVd1EO99xzM oXzdYulZ+FtDY1Z+djG/zy9rDQv7oCFs6KimbdDyUlK+Bk8SxTiMWGQ0MlkcvSNFgw 5ilsEZypHC/wYfWMdkBj/zxLCXeId1TQ3HoSHWkDtmFUegFpHqZntlLgnT1cgVBfAV wYNyywMEZ1sYmp7nhquxwT/AmIFEa/9Ha64ruvNfHig21KGIhkZWd9ekK0r6uGpvZC F/QSmuCfaxijA== Date: Tue, 17 Oct 2023 10:18:14 +0000 To: linux-kernel@vger.kernel.org From: Raymond Hackley Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Raymond Hackley Subject: [PATCH v2 2/2] ARM: dts: samsung: exynos4412-midas: use Linux event codes for input keys Message-ID: <20231017101647.62770-1-raymondhackley@protonmail.com> In-Reply-To: <20231017101402.62740-1-raymondhackley@protonmail.com> References: <20231017101402.62740-1-raymondhackley@protonmail.com> Feedback-ID: 49437091:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 03:20:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779997677549747327 X-GMAIL-MSGID: 1779997677549747327 Use event codes with linux-event-codes.h included for input keys on midas. Signed-off-by: Raymond Hackley --- arch/arm/boot/dts/samsung/exynos4412-midas.dtsi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi b/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi index 3c1ae3c19828..d00b500254ab 100644 --- a/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4412-midas.dtsi @@ -15,6 +15,7 @@ #include #include +#include #include #include #include "exynos-pinctrl.h" @@ -137,21 +138,21 @@ gpio-keys { key-down { gpios = <&gpx3 3 GPIO_ACTIVE_LOW>; - linux,code = <114>; + linux,code = ; label = "volume down"; debounce-interval = <10>; }; key-up { gpios = <&gpx2 2 GPIO_ACTIVE_LOW>; - linux,code = <115>; + linux,code = ; label = "volume up"; debounce-interval = <10>; }; key-power { gpios = <&gpx2 7 GPIO_ACTIVE_LOW>; - linux,code = <116>; + linux,code = ; label = "power"; debounce-interval = <10>; wakeup-source; @@ -159,7 +160,7 @@ key-power { key-ok { gpios = <&gpx0 1 GPIO_ACTIVE_LOW>; - linux,code = <0x160>; + linux,code = ; label = "ok"; debounce-interval = <10>; wakeup-source;