Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp896528rdh; Thu, 26 Oct 2023 21:05:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0bq7nxWO8zl11bBjio0by4G4IA+MAoalR+JIGh9wgMYn7wHXBto1sNZ4oi9Sf5FTzoRa+ X-Received: by 2002:a25:f828:0:b0:d9a:4f29:866d with SMTP id u40-20020a25f828000000b00d9a4f29866dmr1438949ybd.60.1698379502048; Thu, 26 Oct 2023 21:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698379502; cv=none; d=google.com; s=arc-20160816; b=eNt0J84V12M9Q0oL7B9M6UuacX8KpCFJoPia8lvxtAzYbgIxs9ouloft7vwfy4Ul6o k1N95uO6sF4aG0vRfHXpLMpn3WWKmqx6C05gLm7nHf2F414VNjDGX3yx/N42N+J5Cmvm t/nqf3BztwbjprzCmlN0QjQW4QuRERH7emRkMy0K21/PwRZ9hhkzu5VPaEgBudwYyz8E RnWacgM+gZfB41ynLudRDvOWMhhKuLeGppoO1buiwPatbX7WHCP2xZjU/0DapCxmyRDQ Vz3SkJlHQOg3M/+n3DZdGJ4k2l7zgyNNidMtWhQfchdUK5pNFwCLMvGYgeF328HRe/A9 TE2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=aDX3zvnF+fRtt5wIIVHBTyTD3vLT080LHTbz65XT1Hc=; fh=D5cfNneGbkFwoGYQ307X+Lc+kYn6HZRQT/aCrPS88+Q=; b=kA1/OieCN420odhxb1aA6gtk8syxLeY6CVPi7CEaoHWLI0LMH2H15o+YRSLKeLaea9 lfGVCVLlQO5o4NzJwPMn4le6H7ou0rDUJheRREY2UhxV2glFJOTsIg4OnXVgBIIhfGnt r8jiUthJpqMbdERI8DU3XGqsDTGfSOAZSI1FxVQnebHkvhx9/WYkbIaZCaE9cAM2Oqls APkW+cCOKzCUx0bwJSIB5sLn28wcc1kWIIf9e+kaoRoM8if6K4jzE5KZ6TKEm/Z/E210 pzEbfPIT/sfC1LBFJqS2I5VoSoRe2wDiShVoZJZTUmGVJK4I8MprFSyC17DRzjLbtJgg xNqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ELExcS9k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w3-20020a25ac03000000b00da03f6bb2b7si1319582ybi.690.2023.10.26.21.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 21:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ELExcS9k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8AD3C823B3CC; Thu, 26 Oct 2023 21:04:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjJ0EEr (ORCPT + 99 others); Fri, 27 Oct 2023 00:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjJ0EEp (ORCPT ); Fri, 27 Oct 2023 00:04:45 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697A41B1 for ; Thu, 26 Oct 2023 21:04:39 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20231027040436epoutp036ff16c1cf16778692f34b2f9eb88a508~R2yK33YB22646426464epoutp03L for ; Fri, 27 Oct 2023 04:04:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20231027040436epoutp036ff16c1cf16778692f34b2f9eb88a508~R2yK33YB22646426464epoutp03L 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 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgk+LIzCtJLcpLzFFi42LZdljTQveymXWqwfEfchYP5m1js1iz9xyT xfwj51gtdjQcYbXoe/GQ2WLT42usFpd3zWGzmHF+H5NF694j7A6cHptWdbJ53Lm2h81j85J6 j74tqxg9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Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231027040435epcas2p4628f9c61d4622ed4c4b62edc4486e2d1 References: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 21:04:59 -0700 (PDT) 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>; -- 2.42.0