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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F049C64ED6 for ; Thu, 16 Feb 2023 03:32:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbjBPDcL (ORCPT ); Wed, 15 Feb 2023 22:32:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjBPDcI (ORCPT ); Wed, 15 Feb 2023 22:32:08 -0500 Received: from irl.hu (irl.hu [95.85.9.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7878528865; Wed, 15 Feb 2023 19:32:07 -0800 (PST) Received: from [192.168.0.31] (bc065635.dsl.pool.telekom.hu [::ffff:188.6.86.53]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 000000000006EEE5.0000000063EDA3B3.002C0988; Thu, 16 Feb 2023 04:32:03 +0100 Message-ID: <007239f0-1b13-77b9-0d9c-d68747e20331@irl.hu> Date: Thu, 16 Feb 2023 04:32:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sdm845-oneplus: add tri-state-key Content-Language: en-US, hu To: Caleb Connolly , Pavel Machek Cc: Dmitry Torokhov , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20230209232556.91554-1-soyer@irl.hu> From: Gergo Koteles In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > > On 11/02/2023 16:40, Pavel Machek wrote: >> Hi! >> >>> +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi >>> @@ -52,6 +52,43 @@ key-vol-up { >>> }; >>> }; >>> >>> + tri-state-key { >>> + compatible = "gpio-keys"; >>> + label = "Tri-state key"; >>> + pinctrl-names = "default"; >>> + pinctrl-0 = <&tri_state_key_default>; >>> + state-top { >>> + label = "Tri-state key top"; >> >> "top/middle" is not too useful. Do we need the label at all? If so, >> should it say "loud/vibrations only/mute"? > > "mute", "vibrate" and "ring" sound good to me. > OnePlus uses the silent/vibrate/ring, iPhone the silent/ring names. Maybe silent/vibrate/ring are more familiar. Adding labels can document these modes here. Should we also document these in input-event-codes.h? #define ABS_SND_PROFILE 0x22 /* 0 = silent; 1 = vibrate; 2 = ring */ Thanks, Gergo > Although it would be nice if users can easily map the physical key > position to the action when viewing the input device or remapping the > key in userspace. > > Do you have any ideas or recommendations on how to do this? >> >> BR, >> Pavel > > -- > Kind Regards, > Caleb >