Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5930129pxb; Mon, 8 Nov 2021 00:00:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjk991drTKuEl/Aq3DtnnY1Y6pOTFK27Cud4YCLuByJ2bVdV1REDZ/D/5dOgjNqIln3+tR X-Received: by 2002:a05:6e02:1bed:: with SMTP id y13mr34043247ilv.279.1636358402893; Mon, 08 Nov 2021 00:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636358402; cv=none; d=google.com; s=arc-20160816; b=QYpBBcjcrrE37fWPh4x2sP5KZTQ7ouLF40W+GRvnPF+KbmKQxmbr0ZaECICXHElKUw bEudHreowaK7NZIkgf9X0Wam6gLrMUfAd8v3APluLW7FkDkNsncHpxF70Mqd1VcclNYU 8AH5Fs03Iw8ddUURVvK0a0CmYadnZLmn1Sas4Msz5gtZDnu8SGD167JXqDCDD67LT18x uOeAnC/Jh1F7upJwluQ/i5+h3P65NoIom+1ULkpvshhx5jdDmU3HgspoYN2oL3ty1har R92BOj8BakK7yijDW3nCihOQWFghkzyLcnYo6THad/o2g8Ix21zHhO/14VljIFV+wWNg mgtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QSXDEq/knD8sy4sI03YzrxIsOua1/ki4zBaJpQr2Oww=; b=cjnAwOIJLJmB3SJ0VffpGysg8j8KBe1tuHEn0G4k/0Lj4vIAkz0hvWoMJrZg2mKy1M CbC+KZh/lfmq9nA/EyGhul5VzP/5qM/BrARF19+evLqFKIMdHoy9uIY7thsBAQa+o08C R/+obg9ivK7oTgPpFyUf15Jr10QZFtgaKOhus5GYYsomf+AGePE7pU2jIGeSXIYB8vnZ VYsKexRFDeSPQ2t6U2b1h7rnAun/2OxmAirtIu1wyECXWFbZxaxGx36jhH95qaFhxHPE RV8J2aZXhbvJxDkfSvd2aHt3uLGSRaypYrwEp5QN0vk7qbnS1vbb5Aqh0sd9iCScwyoN 2rRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=r104rRT3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si4292596jap.58.2021.11.07.23.59.49; Mon, 08 Nov 2021 00:00:02 -0800 (PST) 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=@riseup.net header.s=squak header.b=r104rRT3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237647AbhKHFJX (ORCPT + 99 others); Mon, 8 Nov 2021 00:09:23 -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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; -- 2.33.1