From patchwork Tue Oct 15 21:04:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Belwon X-Patchwork-Id: 13837129 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33A11D1F9D8 for ; Tue, 15 Oct 2024 21:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O9OcfOGN3dXNFYrxEWZctsk4hG/7fWlxo78npZuFEtA=; b=PmX6Sk3rFuD2TWvufj8r0N9/4A r9r10thFGME6Q8VZ4Hv0rnVh1PPnK4nBCZgh17aSmvzpzG72ipbaXyxjJZzmkyKrmcQiSVmzGf6IU K8SxtPwfGFag0ciMTNFfPSFQS+km7DvZgBfzoMLqGtRWyVErq0nu53rTfa3VAeeKxw82pVQ5xumDN Me5R9bPk/7xrdTAwfiBE8TkEfRvelyW/C92ZWqxmE1jLYlaQwbIQfaxHC131f1qRTFtzwdHEfqgdm cmP2+P5lJAecIDnaOadc7UYvkfdvlcJXlq7cji79E0KoKPBxf/gvqR9UXbquTuO+RP2VeRHM5Jlr6 LcieGf5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0p04-00000009cxe-38Ov; Tue, 15 Oct 2024 21:22:40 +0000 Received: from out-02.smtp.spacemail.com ([63.250.43.87]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0ojI-00000009ZyV-0Xln for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 21:05:22 +0000 Received: from prod-lbout-phx.jellyfish.systems (unknown [198.177.122.3]) by smtp.spacemail.com (Postfix) with ESMTPA id 4XSmp70VxNz4wK0; Tue, 15 Oct 2024 21:05:19 +0000 (UTC) Received: from igor-systemproductname.lan (83.8.240.202.ipv4.supernova.orange.pl [83.8.240.202]) (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) (No client certificate requested) by mail.spacemail.com (Postfix) with ESMTPSA id 4XSmnz2HWQz8sWQ; Tue, 15 Oct 2024 21:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mentallysanemainliners.org; s=spacemail; t=1729026313; bh=YscXqSr7g4C+sT65nIZWuK+o+u4BsXRQprc7EXuU42M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ezo3bc8ym01UpzdOoDEQyfJ//SsxyF8EBGooaGqj0eT3dipKXE2Dt8QvjpRsKqGsS e8JfnwdR/QjALgPpqjlQd2do5N7QRsUjtEe6GsTC7uMWM/JPFiBdy+jWcGEorxeTqe cpNIxOi3ULHcXOtqTRlm46DPWur8+KnEpGTMk/wPKdH3KqwV8vyvwZOTzhUxrTygTG g+Uv8lY3fFB8LjQgWGqv4EMRZC5SVCtU5eaQBavWVbByaTgHfYsd6TY4ARSOfrZUf3 GcSk12ygxNjwgFTz/jJbw2sD6WtBA4jeRXdZ9KH97Y0KI4mMbwz3Hycb3PENwPFbPT fVUPQOuJtMnrQ== From: Igor Belwon To: Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , Rob Herring , Conor Dooley , Tomasz Figa Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] arm64: dts: exynos: Add button support for c1s Date: Tue, 15 Oct 2024 23:04:50 +0200 Message-ID: <20241015210450.964093-6-igor.belwon@mentallysanemainliners.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241015210450.964093-1-igor.belwon@mentallysanemainliners.org> References: <20241015210450.964093-1-igor.belwon@mentallysanemainliners.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_140520_238551_623AF3EE X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add button (gpio-keys) support for c1s (SM-N981B). Added are all hardware buttons (vol-, vol+ and power). Signed-off-by: Igor Belwon --- arch/arm64/boot/dts/exynos/exynos990-c1s.dts | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos990-c1s.dts b/arch/arm64/boot/dts/exynos/exynos990-c1s.dts index e57339357dc6..36a6f1377e92 100644 --- a/arch/arm64/boot/dts/exynos/exynos990-c1s.dts +++ b/arch/arm64/boot/dts/exynos/exynos990-c1s.dts @@ -59,8 +59,57 @@ abox_reserved: audio@f7fb0000 { no-map; }; }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_power &key_voldown &key_volup>; + pinctrl-names = "default"; + + power-key { + label = "Power"; + linux,code = ; + gpios = <&gpa2 4 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + voldown-key { + label = "Volume Down"; + linux,code = ; + gpios = <&gpa0 4 GPIO_ACTIVE_LOW>; + }; + + volup-key { + label = "Volume Up"; + linux,code = ; + gpios = <&gpa0 3 GPIO_ACTIVE_LOW>; + }; + }; }; &oscclk { clock-frequency = <26000000>; }; + +&pinctrl_alive { + key_power: key-power-pins { + samsung,pins = "gpa2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_voldown: key-voldown-pins { + samsung,pins = "gpa0-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_volup: key-volup-pins { + samsung,pins = "gpa0-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +};