Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2407448pxb; Fri, 17 Sep 2021 09:05:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxppMpmfFTcc7G+bTOa/CEqdHYpeYugD+ocozFSRvHetRrOYdzEGymvkIC8rm2JXKgXpAuG X-Received: by 2002:a17:906:c014:: with SMTP id e20mr4719446ejz.166.1631894754287; Fri, 17 Sep 2021 09:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631894754; cv=none; d=google.com; s=arc-20160816; b=bEOnh9HR7inaMrM8TGRe/WynPT7CHZpOj5gFZF/tM4604rVs9K4FYOqtPnTRNPAzAJ /WfECFVUU/ftBANz+npx1flnlgYnW+Ex02C2/Cx2D6iNuHw4UYHER8W4kn3Gl5kyhUpQ WtLpPnPZ43d5GjVNDiF5smxAUoAUFTIBPhv/anLcmq0l574apOVTpOijWpaA7h5HJGoJ QBOLtRX0wdLl2MM6auFNxhIlW+d4F8pNeUQFhwDqT/U9tHcAO6ciA82Z44ZTKS5M3aVY f2GaAYwpJ+cAQjykn9GF8k5potLBdO2Rl4vw0JC9neQfc/epahtSeQlbvU1f3KCLnKYA xeAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=YRrg8XUL8FJqo8KoauQn9l5TvQY7Cfbt6ieu0fU9ExE=; b=AYTJ04n6suA9fFBUKPjb3ZFXSEHNqWtUU3qWix5wBxHYx1Fi8Co4Yhl99sr1X8dLMC NvfmhSnvStlCc2JpzxUQ31WDk1Fovz79qlZEF6n/VCFqV9PCzfS214pr8SDtMBBDUxqp iO3zgwZHb7LJ1cgX4lA1OnTfHWwSHSz/Bi2jZkooxibL8tCUCj/gyI95Nx4tvV2m3I9O 6yPhndegx2+qLZAW3W5NAJ9w8akgVXPsmSiE5rfTXa3qoSQzqppmw5W9a0x6I4+ll9Hp If3lMuKsfVPA+A10us+iLpFIii1si6/qWftLR46Tpja7eioSoVJgGT4BWb+cBG1qyHVk 9hyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="p/Zez2/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z28si76318ejl.437.2021.09.17.09.05.24; Fri, 17 Sep 2021 09:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="p/Zez2/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244799AbhIQELu (ORCPT + 99 others); Fri, 17 Sep 2021 00:11:50 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:52604 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244634AbhIQEJh (ORCPT ); Fri, 17 Sep 2021 00:09:37 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1631851695; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=YRrg8XUL8FJqo8KoauQn9l5TvQY7Cfbt6ieu0fU9ExE=; b=p/Zez2/y8crIl62n4a23k3+0hA4I1DoNF7TkhoRblGhihrQ3L4tWuYLXs4Oz/VT5l71A+pYR gJxmumVtzuxxm6xuAGA1TyNCjQJuNtCCSNcdHAWl+KC2FmVM9X8UIXz6dbGQfcuHliOLt6+u mfFZhW6A9p5G18ZJCx6qoKgxo1E= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 614414acb585cc7d2468e1dc (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 17 Sep 2021 04:08:12 GMT Sender: skakit=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5FBA1C4361A; Fri, 17 Sep 2021 04:08:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id 85DDBC4360C; Fri, 17 Sep 2021 04:08:11 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 17 Sep 2021 09:38:11 +0530 From: skakit@codeaurora.org To: Stephen Boyd Cc: Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring , David Collins , kgunda@codeaurora.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH V5 2/2] arm64: dts: sc7280: Add volume up support for sc7280-idp In-Reply-To: References: <1631798498-10864-1-git-send-email-skakit@codeaurora.org> <1631798498-10864-3-git-send-email-skakit@codeaurora.org> Message-ID: X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-17 00:32, Stephen Boyd wrote: > Quoting Satya Priya (2021-09-16 06:21:38) >> diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> index 371a2a9..cbbb0ee 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi >> @@ -12,6 +12,26 @@ >> #include "pm8350c.dtsi" >> #include "pmk8350.dtsi" >> >> +/ { >> + gpio-keys { >> + compatible = "gpio-keys"; >> + label = "gpio-keys"; >> + >> + pinctrl-names = "default"; >> + pinctrl-0 = <&key_vol_up_default>; >> + >> + volume-up { >> + label = "volume_up"; >> + gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>; >> + linux,input-type = <1>; >> + linux,code = ; > > Is there an include for this define? Looks like > should be added as well? Did you try > compiling? > Yeah, it needs to be included. This header was included in pmk8350.dtsi which is added in this file. >> + gpio-key,wakeup; >> + debounce-interval = <15>; >> + linux,can-disable; >> + }; >> + }; >> +}; >> + >> &apps_rsc { >> pm7325-regulators { >> compatible = "qcom,pm7325-rpmh-regulators"; >> @@ -284,6 +304,17 @@ >> >> /* PINCTRL - additions to nodes defined in sc7280.dtsi */ >> >> +&pm7325_gpios { >> + key_vol_up_default: key-vol-up-default { >> + pins = "gpio6"; >> + function = "normal"; >> + input-enable; >> + bias-pull-up; >> + power-source = <0>; >> + qcom,drive-strength = <3>; >> + }; >> +}; >> + >> &qup_uart5_default { >> tx { >> pins = "gpio46"; >> -- >> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a >> member >> of Code Aurora Forum, hosted by The Linux Foundation >>