From patchwork Tue May 2 13:35:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 89385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp633691vqo; Tue, 2 May 2023 06:58:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+U4RBJKW5mLyB8RWiov3G9qMDor0NBKLVO6DTKKjwAnqNNKNHLo2QC3WwKPjiaKIqwFxl X-Received: by 2002:a17:902:da83:b0:1a5:1109:f58e with SMTP id j3-20020a170902da8300b001a51109f58emr21122808plx.29.1683035938349; Tue, 02 May 2023 06:58:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683035938; cv=pass; d=google.com; s=arc-20160816; b=dVyBuDx/QGSEfwIiYmLwj3UjWwTg5D5tX2HDhM3YISGqZBB1Dba3DZLS89cLs7Eo5P aFbN2MTEwQVteOW52aiotALSGtQqRKiV86UfDwyKh1Xu1QjvjzWaN4KxCGOVXix+7MRt P8n+H1GLFz9ubVutsRlYuopkZmdHeAoxQqOg8Qpiu1vzpPWr0se9wrFeuyyhxtQuq9Er L9GFS/lWmK7DNBrofDS29/hohYP/tVFVKRibYb4luoq90xjBEuD2BDP8yUNcF8q8rZv2 GBTSJ9eCx9r1wScsw53XFcO2Fyn/3DXgpin9cPmY8FmoimxECQcDFA6oO/cda1cdO/Ty otIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ylh8b5a2BN3/fjePm88uxNb9v1sqH+RyB+kr+738JDM=; b=qbuh8VR6nwj4RZGgPlzjsljAJ0vZGUAfBMWRA6BC4+tPsPyqkL6TiJbPzEH1nN4mCt qC8rOVXP5MUpd4JveT5cj2OmlMnLCXx5wfdNOV5EPRaS+JKolKpR9meE01//PZEkAwto LJPJWaFQ/O1SVG8CRtZXyifx9DHl4uo0h5qsqtT/uPS7leSvK3MXgKVZgrzrvDcb9dMd 0fzAdS8bFaHrChiVATqb8CJEdxK1mBxL088cs9BFHt+UfnsdVkmOF7UqUgI4X7ykMVzH aYUygeBPG2t735Y+7HRNJlfiommbFfib++kJ72iAItszXVMjGZR6ox9dzjGzCMGpxfID glZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=hjkhRyaK; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju4-20020a170903428400b001ab01ba1f89si3172752plb.452.2023.05.02.06.58.43; Tue, 02 May 2023 06:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=hjkhRyaK; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234363AbjEBNiH (ORCPT + 99 others); Tue, 2 May 2023 09:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234061AbjEBNhu (ORCPT ); Tue, 2 May 2023 09:37:50 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2041.outbound.protection.outlook.com [40.107.237.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B69746EA0; Tue, 2 May 2023 06:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I701QP3ZZMojhq5r5HRKy11QFBp91hJKv+DZ2QGAK3GYY1aGFQtq5TETauseORy/GaHPn/+CGdkzjrHQGVWrng2uRRyPOyg86sn+K/zgpA9FohVs/50tvLMeNwslNjArz8qlo40eQeaGZmIMl6zCJfMNxoDaUpWzCm/5KKRSveDNXqkxbd5zfEoe2tNlgSn3qgO+t+Z5qI3V22lhAWTWZm2ZR88kVjLYITqOsKgIHhpbzA0Wpg8aKwde/FnbWjiozPfU7pdINX0oSdPZRbpvbQzsmcjI+65LBqyovUILbkuycJ4u5Y1awoX5ehvwAU+vjhPT++WW+jNW0SuAJFCO5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ylh8b5a2BN3/fjePm88uxNb9v1sqH+RyB+kr+738JDM=; b=YwStkNeASawPKgr3ma7Ho5Nz4lzOPkkeia0tbuWShvY0+rIdorbB3t521d1KsV+CtVGekTuM7mAHBjOt5XJUs4hJidDznuS1/JettP/XIf2QsI0SIceaNogu/Ay4ax+bOe1kxRCe5L0EZU3lxic+uVQToZPjItD7aaibZOgvDFYGUrpRedl/Yw/dgU6n8/ww681EhHkiOntPP3ZYpTlkevwvV993b3xhYuObRDIfmb2RC27Fx6gVFxW+QaRFZA8SpWKFdEVQpOgpEjAyC2XMqg5JFCfyksierTSs6dCnwz3eKT2JV3wwhKF4W9FNB2AnmbqxP+MNGndR2OxmPXFfiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ylh8b5a2BN3/fjePm88uxNb9v1sqH+RyB+kr+738JDM=; b=hjkhRyaKstfFg1JzfI+TFl1Y1MGLQgo+P3SIqcKZPkRhqmVpEPdhwX3wlUggyEhW9EBEFSEpnJHGSzcqV3Qr8JIVzWkYU9XEd3AEXH6SKa0x0Ww2pXrFrr/Qhq7Z5F7lMZ1XREMHvon0utGroyHd6gWaKfkxDcyTMW6fU0tgTzs= Received: from DS7PR03CA0243.namprd03.prod.outlook.com (2603:10b6:5:3b3::8) by MN2PR12MB4440.namprd12.prod.outlook.com (2603:10b6:208:26e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Tue, 2 May 2023 13:36:52 +0000 Received: from DM6NAM11FT107.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b3:cafe::f8) by DS7PR03CA0243.outlook.office365.com (2603:10b6:5:3b3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31 via Frontend Transport; Tue, 2 May 2023 13:36:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT107.mail.protection.outlook.com (10.13.172.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6363.20 via Frontend Transport; Tue, 2 May 2023 13:36:52 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 2 May 2023 08:36:50 -0500 From: Michal Simek To: , , , CC: Srinivas Neeli , Amit Kumar Mahapatra , Krzysztof Kozlowski , Parth Gajjar , "Rob Herring" , Vishal Sagar , , Subject: [PATCH 10/23] arm64: zynqmp: Add linux,code for gpio button Date: Tue, 2 May 2023 15:35:38 +0200 Message-ID: <4e20661f43b1fb8432fa5fcda5c1cb50d0a27475.1683034376.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT107:EE_|MN2PR12MB4440:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d654db8-68ae-454a-c0fd-08db4b1249ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PMThYcRWdnSpgIhIXhOGcT8sdoRr/8PwnBK5AgJ3/3f/zpb8kwxJKSZPzGIPY1UV6ZlP13kgh6s+JJXR9cN3YWIxcM46t77HtLsHtDPcL9BJZ07ctgGlZmvuFQX5wwtypkIoU3LML/t7opXI1G15dOftxebs7IXW1R/ie5OiIwoLcgkxLj15Ae/abkaUG0UvkoofXQrgsUSSLy/FZosBomIhehM4cw9aXNQbkhIbDvBumPbLFm22DgCxdUNocu7bJSGFc1pC9X2vdcDTh3TSq3ojmpD4fpXno8+tgkP6p54ibYKSvTFmiYTerQ7Plb5csy8MmvstSZ6/xbtuKy1J1H991o6plbJ+XMWs+qiRnli98Z+oQUeavrujh7/oMam2slJkK0gRlwoquvhBVBME4QPFsONjND9eBpIeEs0Ev1grA2yrS8XURdEDlKb+8MbEH+PzqDpGKttwsXJXBsNJ6zqpvbOxjHQppVCLvcRDROB7jeuOZDzSJZwS27QHDgFtp96B62O+QE+nZDVOWss47dEYmV1CXlRacQ+7mjbKj/VYiC+cytOoWelATxOayTdtMKxZy37cl+d0hNj9tJ9Afn6wPJIxhexiX4zSbdr3aqux2X2lhw75kSRhMgvbsGa5Ym/lUZdzJEczntHVpkBkRkqB1Jsj+F7VO2S56kz1Xx9qDEenB61L80yr/bDYvoMz+2gvw/FgpspktbKL88OW+uncwrLb/scl/XQKFjkWTC4BfUsi3rBXPg6n5CIoF/pb X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(346002)(39860400002)(136003)(451199021)(46966006)(36840700001)(40470700004)(83380400001)(36860700001)(426003)(336012)(2616005)(47076005)(186003)(26005)(82310400005)(70206006)(316002)(4326008)(70586007)(40460700003)(356005)(81166007)(2906002)(36756003)(478600001)(40480700001)(6666004)(8676002)(8936002)(41300700001)(110136005)(44832011)(5660300002)(16526019)(82740400003)(54906003)(86362001)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2023 13:36:52.1900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d654db8-68ae-454a-c0fd-08db4b1249ce X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT107.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4440 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764791092502836774?= X-GMAIL-MSGID: =?utf-8?q?1764791092502836774?= From: Srinivas Neeli BTN_MISC looks like the most reasonable option for this button. Button is used by firmware to indicate (after reset, power up) that user wants to do firmware upgrade via firmware update utility. For bootloader or OS is this just user button which is worth to have it mapped. Also button can be used as a wakeup source and pressing it for more time can generate more chars that's why also adding wakeup-source and autorepeat properties. Signed-off-by: Srinivas Neeli Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts index 3862168fa026..340a5c43a8b6 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts @@ -55,6 +55,9 @@ gpio-keys { key-fwuen { label = "fwuen"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + autorepeat; }; };