Message ID | 20231017101636.62755-1-raymondhackley@protonmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;hjfbswb@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <raymondhackley@protonmail.com> Cc: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Alim Akhtar <alim.akhtar@samsung.com>, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Raymond Hackley <raymondhackley@protonmail.com> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: <linux-kernel.vger.kernel.org> 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 |
Series |
ARM: dts: samsung: exynos4412-midas: fix key-ok and use Linux event codes
|
|
Commit Message
Raymond Hackley
Oct. 17, 2023, 10:18 a.m. UTC
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 <raymondhackley@protonmail.com>
---
arch/arm/boot/dts/samsung/exynos4412-midas.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 17/10/2023 12:18, Raymond Hackley wrote: > 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 <raymondhackley@protonmail.com> > --- > 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>; I applied this and was about to send in pull request, but it does not seem right, sorry. The button was always called "menu" button. Why changing it to OK? Just because of node name? The node name does not matter, this could be called "key-1" as well.. Best regards, Krzysztof
Hi Krzysztof, This key-ok is the hardware middle button on midas, and there is also touchkey, which already provides <KEY_BACK KEY_MENU>, so I assume the other KEY_MENU in key-ok is duplicated. Fixing it with KEY_OK as the node name implies would make more sense. Regards, Raymond
On 24/10/2023 14:37, Raymond Hackley wrote: > Hi Krzysztof, > > This key-ok is the hardware middle button on midas, and there is also > touchkey, which already provides <KEY_BACK KEY_MENU>, so I assume the other > KEY_MENU in key-ok is duplicated. Fixing it with KEY_OK as the node name > implies would make more sense. Ah, ok, that makes sense. Best regards, Krzysztof
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;