Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp903741rwb; Thu, 19 Jan 2023 04:18:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4ksrfPI9b+c+naVJyjc99YuaYahQvrqQHh9FxJu8+Vdb39vY/tHk42txP5AfZ5ec5gM4L X-Received: by 2002:a05:6a20:ba92:b0:9d:efbe:2063 with SMTP id fb18-20020a056a20ba9200b0009defbe2063mr9720440pzb.25.1674130719290; Thu, 19 Jan 2023 04:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674130719; cv=none; d=google.com; s=arc-20160816; b=c0p3Wv0U/VroHkPITKgJ/l3BDlSZHYo4XwvOrs40m30CTyEiStat+O6b+3lzc//mD+ 6u5fBKKjggHKKURkSAVFIAxmMYFHf49KzMslX6XW5HjuGX7i0VJIj8zdUYWUaj/H9ULw AigukztimtMXU02Ph300H7fgADcsd7FMfQTgUPqTXOiRWEMXu5V+8zIaQONWWjCHXT26 wtaQ03qgGKxyA0GF4AuRJDgK6D/QvLFYkcA411XtK+pXzf9R9zIGNA7qH3gEvX5VVnDo 15ke46Z5abD5cJsPUNCKxr28AoF2e5OmGY0l4p+7NJYFANQEDPAlVydJpzkBo5X68gDB 09yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=c/2ba17zj7VIMK/xPxIvdDUjP5shl1h27sejoZLeZuQ=; b=iEK6vRAJDMQt28YWHiQIURMwus4Vi07rbGNo7PQewR5oUTozuSCLdsml4rrOYnOaTM M5eVdHpsLiQF2Ohx15d1+tdqSuMVXbbq78ZdY2KMaBuj7WI5cZGj4vjmqaFXdC8dUo4M /bP3tL8LnT9YPzCpm8X6pyznkHUMR9qsBYh7JqLslW4G13u3MwZM+b2U9V9NNilLsTR7 7WAJd4v30F1LlMnbUD13uqa0X6d2mcil2Q/jVrY5WRqTBFu8WUv/V5DTLtCyLza+P8Xn DeFMAJtcMQWCuOSO/1zoDPjBlbzQi/CB9z6bTspIL679iWo0ZJpCmxD9yt9sybFfTsP3 clFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qw9NmNb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a631102000000b004a1b205441dsi38778303pgl.121.2023.01.19.04.18.33; Thu, 19 Jan 2023 04:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qw9NmNb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbjASLan (ORCPT + 44 others); Thu, 19 Jan 2023 06:30:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230437AbjASLaX (ORCPT ); Thu, 19 Jan 2023 06:30:23 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 330007856B for ; Thu, 19 Jan 2023 03:29:56 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id q8so1245592wmo.5 for ; Thu, 19 Jan 2023 03:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=c/2ba17zj7VIMK/xPxIvdDUjP5shl1h27sejoZLeZuQ=; b=Qw9NmNb2h3Q/WXN8V5dKD8ZMvIo3a0/mIEIjRNyA53EOfat0tKaG0+L0ynTn+k0bn+ 7nB4MNLiiYgOCG7bjoRS10SdcndOKBq9AwVfBDlD94nOxaxQdV3xD35VPPvWBVtg29O0 3wpX7BiIIIR/hUytdPdEjdj/9zcu+Y492n43AxsG6phf2LHg9p4F6WknT7O61Z48ZEfj zQvdXQWl3GvX79bSXIQ4vV97pmYo9gGScPOml2FX5ndGYGUnSkSDt3lXOGiOzx4NXJoY nSvSiP90PrTm9/BI2ZektMxNMMw0QiFqlkZKkxlMtOWCYyWEouI1VUK3PZUhiek9/Obk Jnag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c/2ba17zj7VIMK/xPxIvdDUjP5shl1h27sejoZLeZuQ=; b=DayN+wkj6dpvbeqIL7d87V6MiXE/IpE+WS0bVPyeItKrkonl8lkk/eTFF7ZC+Q6FTo fTOzK95/zdeAS/6zmoSpQx+tCfWsNiIor+ULPppfLAn3GbsMp9cym3z+1nt9W3EtPUu5 1jxW2IgrLmiQtyjsMpB+S0Y7tDqdJfyVJnSqUq4S/9NyOw+90F6xSdKyU2Q07IBK2mEX rjVHGJHRNrQf3K4t8VWlaUKWSG0AWDBOyY779dmzgxTucl63wjd1cVmv5dFPBCY82TPN 8cfXYYVNZYT32mCs9dlKL1nAx4erPjCO7ls6n59k/5lIawHJ6jBZv2ibEehHJg0YWuB3 iFLQ== X-Gm-Message-State: AFqh2krgfSItlFL1t4Y4ekC8fFbcP9Hp/vEojvQrLOOrDO9dwrQJH19m +wd2HFX1LopRaIV2vIHdVlPgjA== X-Received: by 2002:a05:600c:54d0:b0:3d9:7847:96e2 with SMTP id iw16-20020a05600c54d000b003d9784796e2mr9919025wmb.2.1674127792247; Thu, 19 Jan 2023 03:29:52 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id g9-20020a05600c310900b003c21ba7d7d6sm1189775wmo.44.2023.01.19.03.29.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 03:29:51 -0800 (PST) Message-ID: <9622fe3c-0f3a-a3a2-6e35-90befe869d1b@linaro.org> Date: Thu, 19 Jan 2023 12:29:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH 3/3] arm64: dts: qcom: sdm845-oneplus: add tri-state-key Content-Language: en-US To: Gergo Koteles , Dmitry Torokhov , Jonathan Corbet , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly References: <20230118234638.189098-1-soyer@irl.hu> <20230118234638.189098-4-soyer@irl.hu> From: Krzysztof Kozlowski In-Reply-To: <20230118234638.189098-4-soyer@irl.hu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/01/2023 00:46, Gergo Koteles wrote: > The tri-state-key is a sound profile switch found on the OnePlus 6, > Android maps the states to "mute", "vibrate" and "ring", expose them as > ABS_SND_PROFILE events. > The previous GPIO numbers were wrong, the patch updates them to the correct > ones. > > Co-developed-by: Caleb Connolly > Signed-off-by: Caleb Connolly > Signed-off-by: Gergo Koteles > --- > .../boot/dts/qcom/sdm845-oneplus-common.dtsi | 43 ++++++++++++++++++- > 1 file changed, 41 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > index 42cf4dd5ea28..33215ad17513 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > @@ -49,6 +49,44 @@ key-vol-up { > }; > }; > > + tri-state-key { > + compatible = "gpio-keys"; > + label = "Tri-state key"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&tri_state_key_default>; > + > + state-top { Does not look like you tested the DTS against bindings. Please run `make dtbs_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). > + label = "Tri-state key top"; > + linux,input-type = ; > + linux,code = ; > + linux,input-value = <0>; > + gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; > + debounce-interval = <50>; > + linux,can-disable; > + }; > + > + state-middle { > + label = "Tri-state key middle"; > + linux,input-type = ; > + linux,code = ; > + linux,input-value = <1>; > + gpios = <&tlmm 52 GPIO_ACTIVE_LOW>; > + debounce-interval = <50>; > + linux,can-disable; > + }; > + > + state-bottom { > + label = "Tri-state key bottom"; > + linux,input-type = ; > + linux,code = ; > + linux,input-value = <2>; > + gpios = <&tlmm 24 GPIO_ACTIVE_LOW>; > + debounce-interval = <50>; > + linux,can-disable; > + }; > + }; > + > reserved-memory { > /* > * The rmtfs_mem needs to be guarded due to "XPU limitations" > @@ -588,9 +626,10 @@ &usb_1_hsphy { > &tlmm { > gpio-reserved-ranges = <0 4>, <81 4>; > > - tri_state_key_default: tri_state_key_default { > + // The GPIOs have a hardware pullup. > + tri_state_key_default: tri-state-pins { > mux { You need to rebase. Best regards, Krzysztof