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: 738878 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15533C25B48 for ; Fri, 27 Oct 2023 04:04:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233234AbjJ0EEu (ORCPT ); Fri, 27 Oct 2023 00:04:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjJ0EEt (ORCPT ); Fri, 27 Oct 2023 00:04:49 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697EB1B2 for ; Thu, 26 Oct 2023 21:04:39 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20231027040436epoutp01bc921122f6b76c38c761124e962490b2~R2yK4S7kU1982219822epoutp01g for ; Fri, 27 Oct 2023 04:04:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20231027040436epoutp01bc921122f6b76c38c761124e962490b2~R2yK4S7kU1982219822epoutp01g 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/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy 8QnQdcvMAbpHSaEsMacUKBSQWFyspG9nU5RfWpKqkJFfXGKrlFqQklNgXqBXnJhbXJqXrpeX WmJlaGBgZApUmJCdsXxTE1vBbqGKi2cOsDQwNvJ3MXJwSAiYSKzaXNjFyMUhJLCDUeLVg142 COcTo8S3ec2MEM43RonLM/cxdTFygnUc3dzIDJHYyyjx6O0VqJaPjBK3JtwHq2IT0Jb4vn4x K0hCRGANo8TqT5tZQBxmgQ2MEsf2v2AFqRIW8JH4uX4CE8glLAKqEkdm24KEeQVsJa507GGB WCcvsWfRdyaIuKDEyZlPwOLMQPHmrbPBzpAQuMUu8eHEV6gGF4m+JT3sELawxKvjW6BsKYmX /W1QdrZE+/Q/rBB2hcTFDbPZIGxjiVnP2hlB7mEW0JRYv0sfEkjKEkduQa3lk+g4/JcdIswr 0dEmBNGoJnF/6jmoITISk46shAaWh8SNeefBFgkJxErM2PSAeQKj/Cwkz8xC8swshL0LGJlX MYqlFhTnpqcWGxWYwCM1OT93EyM4SWp57GCc/faD3iFGJg7GQ4wSHMxKIryRPhapQrwpiZVV qUX58UWlOanFhxhNgaE7kVlKNDkfm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80Zb3C9Eak6y3bg/9QNRydd2GT1tkxfnP9Z/x/v9duUepY8 Yzrw2tguRt/T5dg0fcbXLa07hK41q/KcCyhK+rdQUzX/ziJbhdNt+78unSLrVHO8bqUnc9uU 7u3ym6z8FZotn7RpNl57UPpMsO21hI/eMuWnrc4xLVu25X2rCuMQ95e+oO3Kvrr0UkjFsoSJ UwqlaqsTOdae3+fA9Hf/Rwv+m6cX3fltFHpNZ9vN69ndATl9y6Z26BnVRV465xtW8N8nwPN9 N3PqVZtjAbnv1lzsfFJ0WtpLyiBqH/eamlOsf5VYijMSDbWYi4oTAYB5BJvMAgAA X-CMS-MailID: 20231027040435epcas2p4628f9c61d4622ed4c4b62edc4486e2d1 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231027040435epcas2p4628f9c61d4622ed4c4b62edc4486e2d1 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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>;