public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Botka <martin.botka@somainline.org>
To: Dang Huynh <danct12@riseup.net>
Cc: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, marijn.suijten@somainline.org,
	paul.bouchara@somainline.org,
	angelogioacchino.delregno@somainline.org
Subject: Re: [PATCH 4/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add volume up button
Date: Sun, 07 Nov 2021 22:58:25 +0100	[thread overview]
Message-ID: <DD282R.VFVA9P993X2G2@somainline.org> (raw)
In-Reply-To: <20211107195511.3346734-5-danct12@riseup.net>

Reviewed-by: Martin Botka <martin.botka@somainline.org>

On Mon, Nov 8 2021 at 02:55:08 AM +0700, Dang Huynh 
<danct12@riseup.net> wrote:
> This enables the volume up key.
> 
> Signed-off-by: Dang Huynh <danct12@riseup.net>
> ---
>  .../boot/dts/qcom/sdm660-xiaomi-lavender.dts  | 20 
> +++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts 
> b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
> index 28408240735b..5e4682f54fbe 100644
> --- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
> @@ -9,6 +9,9 @@
>  #include "sdm660.dtsi"
>  #include "pm660.dtsi"
>  #include "pm660l.dtsi"
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/input/input.h>
> +#include <dt-bindings/input/gpio-keys.h>
> 
>  / {
>  	model = "Xiaomi Redmi Note 7";
> @@ -31,6 +34,23 @@ vph_pwr: vph-pwr-regulator {
>  		regulator-boot-on;
>  	};
> 
> +	gpio_keys {
> +		status = "okay";
> +		compatible = "gpio-keys";
> +		input-name = "gpio-keys";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		vol_up {
> +			label = "Volume Up";
> +			gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
> +			linux,input-type = <1>;
> +			linux,code = <KEY_VOLUMEUP>;
> +			gpio-key,wakeup;
> +			debounce-interval = <15>;
> +		};
> +	};
> +
>  	reserved-memory {
>  		#address-cells = <2>;
>  		#size-cells = <2>;
> --
> 2.33.1
> 



  reply	other threads:[~2021-11-07 21:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-07 19:55 [PATCH 0/7] Improve support for Xiaomi Redmi Note 7 Dang Huynh
2021-11-07 19:55 ` [PATCH 1/7] arm64: dts: qcom: sdm630: Assign numbers to eMMC and SD Dang Huynh
2021-11-07 21:54   ` Martin Botka
2021-11-07 19:55 ` [PATCH 2/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add RPM and fixed regulators Dang Huynh
2021-11-07 19:55 ` [PATCH 3/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add volume down button Dang Huynh
2021-11-07 21:56   ` Martin Botka
2021-11-07 19:55 ` [PATCH 4/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add volume up button Dang Huynh
2021-11-07 21:58   ` Martin Botka [this message]
2021-11-07 19:55 ` [PATCH 5/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add eMMC and SD Dang Huynh
2021-11-07 19:55 ` [PATCH 6/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable Simple Framebuffer Dang Huynh
2021-11-07 21:59   ` Martin Botka
2021-11-07 19:55 ` [PATCH 7/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add USB Dang Huynh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DD282R.VFVA9P993X2G2@somainline.org \
    --to=martin.botka@somainline.org \
    --cc=agross@kernel.org \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=danct12@riseup.net \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=paul.bouchara@somainline.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox