From patchwork Fri Oct 27 04:03:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaewon Kim X-Patchwork-Id: 13438105 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 D4F6CC25B47 for ; Fri, 27 Oct 2023 04:05:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=lAMPtenoQ0VzmeoqV130TfJLah72BImJlEHJGrAbzcQ=; b=F4gNg026wOV92P w12+B054hpFAT74Dn3cBmVZY81gv21NqEdy6oc+EWpZHwU+Kju2kCEwnUH2r8r1uczN0CtfoRpllI YS21hWl/UkI1qk1nIqyIIGbqdzO7TnTz/mlVGxFBWX2mzJcHZOdZsrnFjsIOGFIBGc3aOGaruXMpl 8vJzM6Tz4WJGS0539zcnBJghZJ1NJrMZqC86KhC9d4JhfX2xu675l6itYftHIdAxB7Ly57b9W96Rn l690ULdFCtSPj3jzim5saE6uB08+sLeHpRcus4x8z4CC4r0Y8xhqjT9/VdblpwUONdW2A+MpcAtdr eHAV7avHMKKYA24BN50g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qwE5e-00FYFN-1R; Fri, 27 Oct 2023 04:04:54 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qwE5X-00FYDY-1x for linux-arm-kernel@lists.infradead.org; Fri, 27 Oct 2023 04:04:52 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20231027040436epoutp02fa4f3ae1da49160316dae1f014d55dae~R2yKtEcGZ1523415234epoutp02f for ; Fri, 27 Oct 2023 04:04:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20231027040436epoutp02fa4f3ae1da49160316dae1f014d55dae~R2yKtEcGZ1523415234epoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1698379476; bh=aDX3zvnF+fRtt5wIIVHBTyTD3vLT080LHTbz65XT1Hc=; h=From:To:Cc:Subject:Date:References:From; b=ELExcS9kUHEexepsudknt3e2GIUragsTV5tkSAWuJRgpPb218+46ko1dvB2z5gDQI JxECBvMe30WGOCqm8qCBaXi2cv6/AJHHojInOlGdK+EeihW1Wh56Ed2YFFTCWlrIk+ hTmTt2p0Qo5nMunHaCnT5YO10+yS+9yitnswIxy4= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20231027040436epcas2p21a9ffa6dd46196e8db82257a03be207a~R2yKaJONG2314623146epcas2p2k; Fri, 27 Oct 2023 04:04:36 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.99]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4SGpvl47vbz4x9Pw; Fri, 27 Oct 2023 04:04:35 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 63.AE.09607.3D63B356; Fri, 27 Oct 2023 13:04:35 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20231027040435epcas2p4628f9c61d4622ed4c4b62edc4486e2d1~R2yJh_DeH2938529385epcas2p42; Fri, 27 Oct 2023 04:04:35 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231027040435epsmtrp1efeba21c502e7fcaf50475eb8181fdbc~R2yJhSHlA1246512465epsmtrp1G; Fri, 27 Oct 2023 04:04:35 +0000 (GMT) X-AuditID: b6c32a48-963ff70000002587-d0-653b36d332e2 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 40.05.08817.3D63B356; Fri, 27 Oct 2023 13:04:35 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231027040434epsmtip2db0ce62e5ab00afe11de7e8ba50a993f~R2yJT084Z1325513255epsmtip2V; Fri, 27 Oct 2023 04:04:34 +0000 (GMT) From: Jaewon Kim To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Jaewon Kim Subject: [PATCH] arm64: dts: exynos: add gpio-key node for exynosautov9-sadk Date: Fri, 27 Oct 2023 13:03:37 +0900 Message-ID: <20231027040338.63088-1-jaewon02.kim@samsung.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgk+LIzCtJLcpLzFFi42LZdljTQveymXWqwfEfchYP5m1js1iz9xyT xfwj51gtdjQcYbXoe/GQ2WLT42usFpd3zWGzmHF+H5NF694j7A6cHptWdbJ53Lm2h81j85J6 j74tqxg9Pm+SC2CNyrbJSE1MSS1SSM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1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op: Reflected X-CMS-RootMailID: 20231027040435epcas2p4628f9c61d4622ed4c4b62edc4486e2d1 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_210448_903578_AAE85C91 X-CRM114-Status: GOOD ( 15.02 ) 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 ExynosAutov9 SADK board has 3 keys to test external GPIO interrupt. To support this, add 3 gpio-key(Wakeup, Volume Down, Volume Up) node. Signed-off-by: Jaewon Kim --- .../boot/dts/exynos/exynosautov9-sadk.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts index bc1815f6ada2..de2c1de51a76 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts +++ b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts @@ -9,6 +9,7 @@ /dts-v1/; #include "exynosautov9.dtsi" #include +#include / { model = "Samsung ExynosAuto v9 SADK board"; @@ -32,6 +33,31 @@ memory@80000000 { <0xa 0x00000000 0x2 0x00000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&key_wakeup &key_volup &key_voldown>; + + key-wakeup { + label = "Wakeup"; + linux,code = ; + gpios = <&gpa0 0 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + key-volume-down { + label = "Volume Down"; + linux,code = ; + gpios = <&gpg2 0 GPIO_ACTIVE_LOW>; + }; + + key-volume-up { + label = "Volume Up"; + linux,code = ; + gpios = <&gpg1 5 GPIO_ACTIVE_LOW>; + }; + }; + ufs_0_fixed_vcc_reg: regulator-0 { compatible = "regulator-fixed"; regulator-name = "ufs-vcc"; @@ -49,6 +75,31 @@ ufs_1_fixed_vcc_reg: regulator-1 { }; }; +&pinctrl_alive { + key_wakeup: key-wakeup-pins { + samsung,pins = "gpa0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&pinctrl_peric1 { + key_voldown: key-voldown-pins { + samsung,pins = "gpg2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_volup: key-volup-pins { + samsung,pins = "gpg1-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm_tout3>;