Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1077969imn; Sat, 30 Jul 2022 14:27:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t6Z8Gcex3UlH1UAAF6coysF7+71mPjywE4fW9LR1g8PspUuk4YOUQ9Qp5ZlNTphODu+i3m X-Received: by 2002:a05:6402:3687:b0:43c:e5d3:d50d with SMTP id ej7-20020a056402368700b0043ce5d3d50dmr9334357edb.174.1659216461190; Sat, 30 Jul 2022 14:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659216461; cv=none; d=google.com; s=arc-20160816; b=PSIYv+GRlrjzgZ2IeZdNOonOQGFNREVOiId/+m8UNr8FaXJfpep0PkNHOS3oqtViCP DjybJiSQPG3LNkymNHRtlxxqVnl1MrYUp/V5WyH12naukB+f6UxAJDJRYEwRlZanwXKv uq9xE8mEJKTGoHuGy7rc5bSoeBsVryoHmZGcm2onV3/hS61/RHkhix9FiuT/f6LIfQBE ivJdjmmOWRlyY8p8l52IijvBGcTl+0X0z27imR179zDJl9SJWuWgcvm06yi1EsF925KV MmKRni+TG+EC89J98bvDhtwkjzfqBioNwBImJWMd8R4Ama9CuxvXN5niZ7A1znQX4wKi CW4g== 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; bh=RN9vrds4wE7/TmFXcyr6dyIPo2lHXdOLy5G76OcRiE0=; b=IOm7pjSXp9gDAHjjra45pPkdM+U92Hqv/wCQne6OSL6MhYFwVgguztIe6cD/JfytQW awqyb9EcPMyUko/AHOc01FTzdXJh1lVSBUtg91bG5ep1LwpfsbuMV7iQkBGxZPiPgEfh 6rpSj0fkoCsurxT342IiP0CUT0BEecx8pwAeBCfd7fXAKyEzK3d/O9bPVQnjUTJUhcGf xJlycc6B4LThmh2loJhHPCH2qTDs9sCxvGG1cOVmzrI/8dRoqOK9kWssIhmR1Fie+2Kf Y/UQc728bZhkWbkg/plYxddvDphK0wC2gPb9iBIabWGElTZYJsaVHxtT2sWvtutIbueu RMWw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p26-20020aa7d31a000000b0043b96c391c7si5780261edq.156.2022.07.30.14.27.16; Sat, 30 Jul 2022 14:27:41 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235883AbiG3Uxr (ORCPT + 99 others); Sat, 30 Jul 2022 16:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235189AbiG3Uxp (ORCPT ); Sat, 30 Jul 2022 16:53:45 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E6711659A; Sat, 30 Jul 2022 13:53:43 -0700 (PDT) Received: from [192.168.1.101] (abxi232.neoplus.adsl.tpnet.pl [83.9.2.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 18BD13F70B; Sat, 30 Jul 2022 22:53:39 +0200 (CEST) Message-ID: Date: Sat, 30 Jul 2022 22:53:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp-lenovo-thinkpad-x13s: Add LID switch Content-Language: en-US To: Bjorn Andersson , Andy Gross Cc: Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220730193617.1688563-1-bjorn.andersson@linaro.org> From: Konrad Dybcio In-Reply-To: <20220730193617.1688563-1-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 30.07.2022 21:36, Bjorn Andersson wrote: > Add gpio-keys for exposing the LID switch state. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Konrad Dybcio Konrad > .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 25 +++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index 84dc92dda0b8..f3246cc13d15 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -7,6 +7,8 @@ > /dts-v1/; > > #include > +#include > +#include > #include > > #include "sc8280xp.dtsi" > @@ -26,6 +28,21 @@ backlight { > pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; > }; > > + gpio-keys { > + compatible = "gpio-keys"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&hall_int_state>; > + > + switch-lid { > + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; > + linux,input-type = ; > + linux,code = ; > + wakeup-source; > + wakeup-event-action = ; > + }; > + }; > + > vreg_edp_bl: regulator-edp-bl { > compatible = "regulator-fixed"; > > @@ -347,6 +364,14 @@ reset { > }; > }; > > + hall_int_state: hall-int-state { > + pins = "gpio107"; > + function = "gpio"; > + > + input-enable; > + bias-disable; > + }; > + > qup0_i2c4_default: qup0-i2c4-default-state { > pins = "gpio171", "gpio172"; > function = "qup4";