Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2347421ybp; Sat, 12 Oct 2019 08:32:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLllDc1+KZmJMru/PT8Uqo98y78rFu/IuqIll9zT2M1dB2hT6YIPgDnYhcyN6Cia2Y+22Z X-Received: by 2002:aa7:de12:: with SMTP id h18mr19061724edv.226.1570894358030; Sat, 12 Oct 2019 08:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570894358; cv=none; d=google.com; s=arc-20160816; b=h3eLbXuPzEs3/LSpIFTg0fguYFftFGCalqkXJ0lGT8Rh03W8MBJQNUWhB79jWMYUPA bjEEadZjzuIHraGssEGC7fXdBkjCn67sCUJcK5YVaGzRyEHcOHscTnazIkaAnBRz1S4H TYEjW1tD9V4NNu29FNZ8YEW6odaj/pRLgA/QrR2gTcAqCvhC6yeZnxacvlqreHZUdHMP cW04O2wPn/pC6K5BCfyx7WwDUfuj4bvYDYpAJLD+kGTL8EKv+bi7nlDcJMUK3EJBkIL1 /w0ZTWWJX956B2oFSe9yDWVW9n6H9LIvuxYsHOCtJr2PcYE3IYjTv8bZDYMdJGFNWnR7 drXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cN8n+QXvGzhX/uWxSyrg7bj6OfRKWm0QPJfLcwJTSkY=; b=mdJeVCqbT8jlrn/jjtvkgSUJrkxhhyu3gZjKENb96vGDYa4AkAtgfRa2edw1SLvUL/ ykEm0pkVxSmne4kuyIRag4e1HGfRW2mfsktfS+L8JzwOYUOTfbLDwTHyqzrUUz3eWFSA 2hTSMSKetTNugEo70v0OEBMa8Y9o+mbHVPFwH5mJuskh4ZHK9RSsWoUdsoLumYZDyQpy PyjZHcc9DrrmsNavJXMfPxorpsxSGlnpvpXo4OzqmJb2gPVj3j6fSMISkUpUnQFrbMcR FVTkYFvitROFNm3fL46FqKJJ3CUMRFCSPjBbsU0bVxSEjXz4Ch3XxfVcugWhbwU8GeDU OPsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gerhold.net header.s=strato-dkim-0002 header.b=BnReYw9X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oz6si7542977ejb.124.2019.10.12.08.32.06; Sat, 12 Oct 2019 08:32:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gerhold.net header.s=strato-dkim-0002 header.b=BnReYw9X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729347AbfJLPKG (ORCPT + 99 others); Sat, 12 Oct 2019 11:10:06 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:36628 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfJLPKG (ORCPT ); Sat, 12 Oct 2019 11:10:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1570893004; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=cN8n+QXvGzhX/uWxSyrg7bj6OfRKWm0QPJfLcwJTSkY=; b=BnReYw9XpNfJgOo7+pSMYtwQ0ZjHw3uHjovehfg524DNkrnnZRZbNG4foRJdQpMOKW Bq9Pu6SgYI6GkhpUjIDz+GlsY+cMQyALF1/xtwux+6uK4CxflieHJAmV3ftQR7YkT6PV bMSgwWztEWmtJG0NyYRHZqc46d5rifRtsHWiiZtd92n7ii+FrTbHnyMQzpabnbLpMK2b ikZAokHUihRsbSKCEcaesVXTOIQ0MvYYOY0aX1Hd4qT5Stb7AlcdJEINMdlMstAzmLjg We2KCuHuthHkqbFqDO86R8FgFk6RsGogwRL6bnqQcIjWmCysR4TcjKcxjxGoBzM71rpS Xatw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u266HpF+ORJDYrzyYxxieg==" X-RZG-CLASS-ID: mo00 Received: from gerhold.net by smtp.strato.de (RZmta 44.28.0 DYNA|AUTH) with ESMTPSA id L0811cv9CFA3Tiu (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 12 Oct 2019 17:10:03 +0200 (CEST) Date: Sat, 12 Oct 2019 17:10:02 +0200 From: Stephan Gerhold To: nikitos.tr@gmail.com Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: msm8916-longcheer-l8150: Add Volume buttons Message-ID: <20191012151002.GB33229@gerhold.net> References: <20191012145821.20846-1-nikitos.tr@gmail.com> <20191012145821.20846-2-nikitos.tr@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191012145821.20846-2-nikitos.tr@gmail.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 12, 2019 at 07:58:21PM +0500, nikitos.tr@gmail.com wrote: > From: Nikita Travkin > > Add nodes for Volume UP button connected to GPIO and Volume DOWN button, > which is handled by the pm8916 as is common with msm8916 devices. > > Signed-off-by: Nikita Travkin Reviewed-by: Stephan Gerhold > --- > .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 41 +++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts > index e4d467e7dedb..d1ccb9472c8b 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts > +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts > @@ -5,6 +5,7 @@ > #include "msm8916.dtsi" > #include "pm8916.dtsi" > #include > +#include > > / { > model = "Longcheer L8150"; > @@ -113,9 +114,36 @@ > pinctrl-names = "default"; > pinctrl-0 = <&usb_vbus_default>; > }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&gpio_keys_default>; > + > + label = "GPIO Buttons"; > + > + volume-up { > + label = "Volume Up"; > + gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; > + linux,code = ; > + }; > + }; > }; > > &msmgpio { > + gpio_keys_default: gpio_keys_default { > + pinmux { > + function = "gpio"; > + pins = "gpio107"; > + }; > + pinconf { > + pins = "gpio107"; > + drive-strength = <2>; > + bias-pull-up; > + }; > + }; > + > usb_vbus_default: usb-vbus-default { > pinmux { > function = "gpio"; > @@ -128,6 +156,19 @@ > }; > }; > > +&spmi_bus { > + pm8916@0 { > + pon@800 { > + volume-down { > + compatible = "qcom,pm8941-resin"; > + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; > + bias-pull-up; > + linux,code = ; > + }; > + }; > + }; > +}; > + > &smd_rpm_regulators { > vdd_l1_l2_l3-supply = <&pm8916_s3>; > vdd_l4_l5_l6-supply = <&pm8916_s4>; > -- > 2.19.1 >