From patchwork Mon Nov 8 05:03:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dang Huynh X-Patchwork-Id: 12607831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A484C4332F for ; Mon, 8 Nov 2021 05:06:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 82460613D3 for ; Mon, 8 Nov 2021 05:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237606AbhKHFJV (ORCPT ); Mon, 8 Nov 2021 00:09:21 -0500 Received: from mx1.riseup.net ([198.252.153.129]:45986 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237610AbhKHFJD (ORCPT ); Mon, 8 Nov 2021 00:09:03 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HnfGJ5pHvzF2Hd; Sun, 7 Nov 2021 21:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1636347976; bh=tioFDJfzihGLbumRH4c/w9cEfNW3tVsiU1fbw/gL4K8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r104rRT3hhcUAv7e51qtK6+Xi7iwM0GAMCeE8HGtQ3Cx+TXMBEFjJXWELHN8PPaxt DFL3oJWCc8FW7R8mAZG+4T+1y7ReqYgAZjlnQ5Eq/I7TO3ql7Dtou3MyCGLU0A1TYx 8gZ0cbcNIVfgkD0wJeKRylpR/R6lRX1jwP7yttEM= X-Riseup-User-ID: 8712C061C11082B3840CEA5672B1879E3D63A98BA7AD4CE4754C7E9D1838E39A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HnfGF3gTvz5vj2; Sun, 7 Nov 2021 21:06:13 -0800 (PST) From: Dang Huynh To: Dang Huynh Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, martin.botka@somainline.org, marijn.suijten@somainline.org, paul.bouchara@somainline.org, angelogioacchino.delregno@somainline.org, Caleb Connolly Subject: [PATCH v2 4/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add volume up button Date: Mon, 8 Nov 2021 12:03:33 +0700 Message-Id: <20211108050336.3404559-5-danct12@riseup.net> In-Reply-To: <20211108050336.3404559-1-danct12@riseup.net> References: <20211108050336.3404559-1-danct12@riseup.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This enables the volume up key. Reviewed-by: Caleb Connolly Reviewed-by: Martin Botka Signed-off-by: Dang Huynh --- .../boot/dts/qcom/sdm660-xiaomi-lavender.dts | 18 ++++++++++++++++++ 1 file changed, 18 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..ab814dc8a875 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 +#include +#include / { model = "Xiaomi Redmi Note 7"; @@ -31,6 +34,21 @@ 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,code = ; + debounce-interval = <15>; + }; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>;