From patchwork Sat Jan 20 08:45:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudraksha Gupta via B4 Relay X-Patchwork-Id: 189722 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1509489dyb; Sat, 20 Jan 2024 00:45:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPE285VleylW2ifJS3OMr0btEdQz6b6Q2O65aeWptUDR1CHZC585rwP7xgREKNZwgGAWo4 X-Received: by 2002:a05:6214:5184:b0:681:648d:6309 with SMTP id kl4-20020a056214518400b00681648d6309mr1340842qvb.14.1705740342434; Sat, 20 Jan 2024 00:45:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705740342; cv=pass; d=google.com; s=arc-20160816; b=Mnt0IMBhTXQFNRo3cF7RZNdYcdCg2UUq0dxAGJq3k6NYEYc08k4VZK3X1TVJ+etm6j 7BbHtmwaDy/MWsh/H09VJpvvL7Df2wOA2Bk2T3b72HapfUYsAibtDFnMW2TNKv91nOFR RBPvg3HLqJhcRBY+tyShOzP5Zzn1n2QuE9GdShOtQvI6vlDWtdnxK/xuDxYXmUz6C1YY 7OSkpBO44jnO+ha/HfAMtEjV9AiIVC7XTuTgNtRLOwkorlKmghVY+q9np2uNaXoKy8GG UAsTznn82KILQiS1Il+PZETZSGFI3UT+uMfj2x0Bf9eVZVsfF1OWoyKvmWBLbM6TzRqe 99aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=l7sGwG7liky5OlUIWaYd5wYnrIOhNcNQpo9OQ2I08nA=; fh=UB8/fwBhD5SFjLUdd9l/OclZkm6Dg+6NywJkgaI/eSU=; b=NWOsaxfMuPt7pukGmL77/0PzCB2Hq3V7PAvi3tFuI8o1NvltzWmGgpaSK4dUF7r7XZ GUeUI8KPEVSqvLn8Fim06j2HfOtuIA7SGBAK1KQRZiUTxCN8jdhbVT6nMbb99WCDP/ja 4c3yGP92M+0sUw7o0RA+2P3uav2qSUZS81REDfj8i9GZAC4C89hFr6tDhaXfhu88X1NC RDpSKN1TPdx3lWDcmFOeKEHj6m/UNCTF8hOrc3StBhcuk/Zpb28lZw/sNET7j0Z+rdt/ /0xROMWNH2DxW0H0lmk32XmJI+7XCFC0V5EerZ/XfF2lcv9Nym9IOn2DWX3BoGGQ4A5E eK+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jwTJDo9U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31745-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31745-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r13-20020a0ccc0d000000b0067f6f705a9asi1120161qvk.101.2024.01.20.00.45.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 00:45:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31745-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jwTJDo9U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31745-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31745-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3DFA01C210FC for ; Sat, 20 Jan 2024 08:45:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ED65CA7B; Sat, 20 Jan 2024 08:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jwTJDo9U" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F7133D7F; Sat, 20 Jan 2024 08:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705740325; cv=none; b=nSmUePOuCXIzJyG8UXKmn3ROKuaJnPr+P5DmSz86M3n8FZxKsuWN+JPk2GIlt15KIrsmqR3eiHKwErH2KaHv3MzyNflzUnBtn22kzK6mccKCiXd5fHRa1xzKEsr8744YQ3Oud408euhdRIhLdvKO4vZqXGuSMwBFmiQJ5WqBNU0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705740325; c=relaxed/simple; bh=a1DPUX1cmvhpZrjctxn5ECPNE3NiEQ76qsFCiU+2mGg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Z9aFn6zShcd4NfTcK+XtChSmxBa+Ojqfu7DYtWIMT9itj8qXa8qHj/mzKGsYXUz8IF+ouDyAIQZNdngLdvVY/2bbRRxP9HPwM02z3c9pK1pZT42s0a1PM+IG6DnBq/VacCANKyYrpZ5if+/IXLCRCK2y+7UW3yFnAW3E0+1P9P8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jwTJDo9U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id F051EC433C7; Sat, 20 Jan 2024 08:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705740325; bh=a1DPUX1cmvhpZrjctxn5ECPNE3NiEQ76qsFCiU+2mGg=; h=From:Date:Subject:To:Cc:Reply-To:From; b=jwTJDo9UY2tJCPoVoo/tdIHgO65sMPVzuwMHYERjh575UroXUF7WUqOuueuQDGjsF 8ohGWzKRWej9TyQ8v0sR+O2JoYNMBs4D4L7KxCfdjdAEHYlgdy1pveZhf0vT49QK0V JCstGOqY+VSKRSPTRv8kddGiMiNm8zNOs1B+lRWwMQxoWNDpNi1jI/3ckmRq6KTXWB NzSJ8H+sJJ/qaGlyAnoeQRu4hHXxx2u4S8d1s3O5s0gvUConMKWMYbO2a506pyZTII qAYoLQjddkfbT1nbueDp97lOPL2S3q20CFEhYckm0p6rylrbPd8yfo+EjoXfN6Zdf/ O96NLVdmLgkng== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D419EC47258; Sat, 20 Jan 2024 08:45:24 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Sat, 20 Jan 2024 00:45:23 -0800 Subject: [PATCH] ARM: dts: qcom: msm8960: expressatt: Add gpio-keys Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240120-expressatt-gpio-keys-v1-1-4da7e37440b1@gmail.com> X-B4-Tracking: v=1; b=H4sIACKIq2UC/x2MWwqAIBAAryL73YLak64SfYRttQQWrkQR3j3pc 2BmXhAKTAK9eiHQxcKHz2AKBW6b/ErIc2aw2lbaWI10n4FEphhxPfnAnR5B17i608vcmpIgp1l Z+P63w5jSBwpOfn9mAAAA To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705740324; l=2136; i=guptarud@gmail.com; s=20240120; h=from:subject:message-id; bh=T+B5s38HvE5wvfTx+enY1qi1SBEpEVBTYASUCLQBqwU=; b=5UsFmbupML19LrX80fkEWOLZlRS9ScDP+D8wWQsRQdb5oi45aWI0aU0X8kJPWiAA2zsSUDwt8 JJWsV1VM4FBCOU6k8dRT6Emu/ieTQkcfTXdNy7HOfdTvgUn6zzY5diW X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=RGmug3GRHS4XYTXDcT2VrlTGXlEF2gY4L9/swGIU1ko= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240120 with auth_id=114 X-Original-From: Rudraksha Gupta Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788598385241006260 X-GMAIL-MSGID: 1788598385241006260 From: Rudraksha Gupta Adds volume up, volume down, and home keys to expressatt Signed-off-by: Rudraksha Gupta --- Adds volume up, volume down, and home keys to expressatt. Applies on top of 5c903b859aaced384c0cd01d515f3e43a115fd9e --- .../dts/qcom/qcom-msm8960-samsung-expressatt.dts | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) --- base-commit: 9d64bf433c53cab2f48a3fff7a1f2a696bc5229a change-id: 20240120-expressatt-gpio-keys-c6c580fd713e Best regards, diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts index 1a5116336ff0..47e0e26ad9f0 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts @@ -4,6 +4,9 @@ #include "qcom-msm8960.dtsi" #include "pm8921.dtsi" +#include +#include +#include / { model = "Samsung Galaxy Express SGH-I437"; @@ -19,6 +22,36 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_pin_a>; + + key-home { + label = "Home"; + gpios = <&msmgpio 40 GPIO_ACTIVE_LOW>; + debounce-interval = <5>; + linux,code = ; + wakeup-event-action = ; + wakeup-source; + }; + + key-volume-up { + label = "Volume Up"; + gpios = <&msmgpio 50 GPIO_ACTIVE_LOW>; + debounce-interval = <5>; + linux,code = ; + }; + + key-volume-down { + label = "Volume Down"; + gpios = <&msmgpio 81 GPIO_ACTIVE_LOW>; + debounce-interval = <5>; + linux,code = ; + }; + }; }; &gsbi5 { @@ -83,6 +116,13 @@ clk-pins { bias-disable; }; }; + + gpio_keys_pin_a: gpio-keys-active-state { + pins = "gpio40", "gpio50", "gpio81"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; }; &pm8921 {