From patchwork Mon May 23 13:45:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 12859091 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 C449FC433F5 for ; Mon, 23 May 2022 13:47:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236526AbiEWNpm (ORCPT ); Mon, 23 May 2022 09:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236497AbiEWNpk (ORCPT ); Mon, 23 May 2022 09:45:40 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2076.outbound.protection.outlook.com [40.107.93.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86075537F; Mon, 23 May 2022 06:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EfKGm8J2fVXUrtaCJE8LAHqTyFqBOSMEwb2QrpDpCRpitpOpuBWNwqcI+TePSTfjWK4hDUFMohr+K8qWx5IO0S69dBirezlldl8UpwO4jlc23deKsY1jDjPRD3Mx6MyMYw8D7E6mnvbosfe00EVUioO30PVGYebLHgGKb6kZ/hdbQlbv2dDNQ9xnPB8TOJXntoATsBrcr+bkOtOirSKKXJoWtbIcoe+7ruDrcVzzuK6UJjjH1WC0tHr8d1N/dOpC4onK5NMBwhsDztjzYOjjUz6lEzHsNfBx22/g+1B2r6rNqf8rAbZ4Fy70acP/OKvX7/QBjWQd7616fmRA3ECzsQ== 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=7JTE8l5I9B5I8zU6yAaYqjihb+4c44fEKgWyxjZU6fI=; b=QT1w2Ara+/ywD6I5N/fLOcoYqaGFHMLFZ6roe+v6Dht9JNPUbK9+JmoNqn6eHEHHpl8+b8R38PSI/Iw9Gi0hQc1/yOINELkgx+qcNAVSNBJ3Eozsdg+yyMfWDEdfTDIQv9ikSVnp0GJ1hLoxQEVzoghqHXDIc2r+LhJWJo85NoGcXBv3SuZK00Qil5RI+52PnF4z6ulu72KCAltcr/VKVcNOKBFTHAhN1VQq24jpgPaoYtmFqtv72e577xviIj5dOGawSy7yj3Zwjk7TxGik4bW2Hv+/Xf6Stcp9KXxEEgo1LVY+1A6w2ONj4xxb7IBTaXhYzYwLp0cDAXmxvEI3IA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7JTE8l5I9B5I8zU6yAaYqjihb+4c44fEKgWyxjZU6fI=; b=kKMlY9F2U3bh2PujmB2AoIG/5lEteBUglFCB5zbDC+GRH/qRtWG5bCNV3Iim3Qyxd37zwMucwuqpOLThOmDvB278rp9Ld0PJ4gTr3xI2dK1ULB/NHUf9fJ+2EbmMYxVtJh4fp87Hpe5daMQ1I6wUS3GgLkpL5IG+YOpxjBVKah4= Received: from BN0PR03CA0040.namprd03.prod.outlook.com (2603:10b6:408:e7::15) by SA1PR02MB8495.namprd02.prod.outlook.com (2603:10b6:806:1fa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16; Mon, 23 May 2022 13:45:36 +0000 Received: from BN1NAM02FT014.eop-nam02.prod.protection.outlook.com (2603:10b6:408:e7:cafe::32) by BN0PR03CA0040.outlook.office365.com (2603:10b6:408:e7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.15 via Frontend Transport; Mon, 23 May 2022 13:45:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT014.mail.protection.outlook.com (10.13.2.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5273.14 via Frontend Transport; Mon, 23 May 2022 13:45:36 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 23 May 2022 06:45:34 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 23 May 2022 06:45:34 -0700 Envelope-to: git@xilinx.com, mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh@kernel.org Received: from [10.140.6.60] (port=57798 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nt8NK-000GwK-0X; Mon, 23 May 2022 06:45:34 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , CC: Rob Herring Subject: [PATCH v2 1/3] dt-bindings: zynqmp: Add new PD_PL macro Date: Mon, 23 May 2022 19:15:15 +0530 Message-ID: <20220523134517.4056873-2-nava.manne@xilinx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220523134517.4056873-1-nava.manne@xilinx.com> References: <20220523134517.4056873-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 05ac98b4-cd6b-4b2e-ed92-08da3cc28417 X-MS-TrafficTypeDiagnostic: SA1PR02MB8495:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FAVgqIHayUuzlD9IfICs+fXXTx0hy/uTNtwvpEZk1+jsj0RAVK+asBw0cDXJS0a97MWP9PgaX0/qDrVvqTBQlEyBNBjoLYPDV6jMQfhd9Ems+RSYyQjCjIj6tCVFWxMnPwCeMVATcBq9cxnG66PwINZZtD9d7KUqvjRXpSaXGDhyaCmc+Or5aD5P6fdXicxzs4Iq2dc1oXhiY/ROr+j2FIoTNNqVhzwmBcTWtK8E5ZdOQXpdocZabyo49wTDFINyrUXBB09TFJaK0t5kWGslsjJT0ca7DbSZo7HsQ39tv2gtk0ObmwPIrO6fPnaohxUurWcBNhMZOb8LxHLAzMnQ3M8O7MQVWcsyGDFwLa4imdpEnui+K1LFZoRzfj+h7LyaO5EgNKd9FOb+olr+gcwpqw8X76wLqUWyxJGXmFmHBT9H8mP4l3pPet/vQ0s2Gy+97kvjF3DIRC0Jt0/KDOTj6xRBguf4u76EBUgc7aJsl8VX2dIh1oLkr1NR/qtnVpbERQY0ts6+LlIqFzMVjprHhQ0GBZDaqT4163yj7EcGFY/VMJO75n+0dcsW4anKhzhz2rDZuMe7qlz3m4Ghdaz0hQLPW2tq5YL9VPjohM99pxPH2LFk/Id4Hs6CPIqu4793wWdZ2/DxvjHVI6oJuY0/gZvt+YecQjwML/fvn/Kws4ALl3nhyYE06kiWSqFcxRinPk1JoqxtX5ep8aahcd2kmqfGg2wgkRHtwk2BUF6PQh8Gz1zz2RHWrNbYB4DgrORztjL3ocFMcpmAaWRg0u934A== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(356005)(6666004)(40460700003)(508600001)(921005)(6636002)(7636003)(2906002)(70586007)(4326008)(110136005)(70206006)(8676002)(7696005)(82310400005)(316002)(5660300002)(2616005)(36756003)(36860700001)(47076005)(426003)(336012)(4744005)(186003)(26005)(9786002)(1076003)(8936002)(7416002)(102446001)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2022 13:45:36.2423 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 05ac98b4-cd6b-4b2e-ed92-08da3cc28417 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT014.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR02MB8495 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org Add new power domain for PL region. Signed-off-by: Nava kishore Manne Acked-by: Rob Herring --- Changes for v2: - None. include/dt-bindings/power/xlnx-zynqmp-power.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/power/xlnx-zynqmp-power.h b/include/dt-bindings/power/xlnx-zynqmp-power.h index 0d9a412fd5e0..5f718759c38f 100644 --- a/include/dt-bindings/power/xlnx-zynqmp-power.h +++ b/include/dt-bindings/power/xlnx-zynqmp-power.h @@ -35,5 +35,6 @@ #define PD_CAN_1 48 #define PD_GPU 58 #define PD_PCIE 59 +#define PD_PL 69 #endif From patchwork Mon May 23 13:45:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 12859093 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 A9C48C433FE for ; Mon, 23 May 2022 13:48:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236568AbiEWNqW (ORCPT ); Mon, 23 May 2022 09:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236513AbiEWNpu (ORCPT ); Mon, 23 May 2022 09:45:50 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2041.outbound.protection.outlook.com [40.107.93.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A04FE5521D; Mon, 23 May 2022 06:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xfr+91tRYauocLA1LvNF9xTlVw9VLjuHyTZ+mgrbwPORhUJwADAgQH91j5gtZnTxx4GiDEP7odpkDySUw2kF5qdMy9HJpCvTiBjSLqOfIp7GjG/SzOKDUizy1TA5Ll5+sVnWrQadBIyLBxy4gsEoggqCM5RX0qnqjANN/sZlcAFqxb0ZC2o/iYvNVgtO2rAJG8glndV6kFNBI8898C0kxupqhM6tDfwh7cWOYB4o+Qmup1d52m7926Jyd4eXIugrEiWGwHr1wFEntNX2Vakuuz2FdptuHoeP1+0gTlcQ/EsEUJ5c6o4MKe6BUA5GIEejQpKhdstJbja0mquDq8GLXw== 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=rOqcwuEswQM+8f/f/L7NB61pc9L6si9Q1erZUi/w7W0=; b=m9Wz174MezA2oHWywF8x0kjv+QnXIrm5plsbicObd885bGEeGcY6QFWyQE31mxzHPw6Ak9fawqjy3WV3OZq08wWbckNy0ybCPcYzUuTMEE5tEw8SZTVQk5zNjr8CehcC8nbQC9voKhBvExxeceQtsjmRX/VwK7soyEMKKoW+TCL21GnScQRmbpwXiHjZ3G2OY6N7/A+sORdqHyc/9BYZDWFPl8kc0ns6phQ6UFo46GcbHY8jQ+Crz9ljWqvIrZo6sLI/VlfB0QX5k0Jy94i4o9veQJXvHe7SlR004dLO/QbgsamWIjuBOtGno6uiCY3vj+Gy8jiuLDN5r9wrnH95mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rOqcwuEswQM+8f/f/L7NB61pc9L6si9Q1erZUi/w7W0=; b=C3uc+IA5fKbd2e6r+R1eEM1Bg7I5xua00L851J52lUyH0PGe4gmV6oHgr8oq2rHjweHqhwWx8DoazGs52jSuTlXtWSPzcBgDtEcYFzMyM81lEurn4FGtmeXYmOjH/AdlqpAcMypuHQ9WVHtuneiCyWqQmPtvtS5TcO5wUABnYlI= Received: from SN6PR16CA0043.namprd16.prod.outlook.com (2603:10b6:805:ca::20) by CO6PR02MB7508.namprd02.prod.outlook.com (2603:10b6:303:a8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.16; Mon, 23 May 2022 13:45:44 +0000 Received: from SN1NAM02FT0033.eop-nam02.prod.protection.outlook.com (2603:10b6:805:ca:cafe::74) by SN6PR16CA0043.outlook.office365.com (2603:10b6:805:ca::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.22 via Frontend Transport; Mon, 23 May 2022 13:45:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0033.mail.protection.outlook.com (10.97.5.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5273.14 via Frontend Transport; Mon, 23 May 2022 13:45:44 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 23 May 2022 06:45:40 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 23 May 2022 06:45:40 -0700 Envelope-to: git@xilinx.com, mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh@kernel.org Received: from [10.140.6.60] (port=57798 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nt8NQ-000GwK-4Q; Mon, 23 May 2022 06:45:40 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , CC: Rob Herring Subject: [PATCH v2 2/3] fpga: region: Add fpga-region 'power-domains' property Date: Mon, 23 May 2022 19:15:16 +0530 Message-ID: <20220523134517.4056873-3-nava.manne@xilinx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220523134517.4056873-1-nava.manne@xilinx.com> References: <20220523134517.4056873-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b8a696ac-533b-47b4-3f80-08da3cc288eb X-MS-TrafficTypeDiagnostic: CO6PR02MB7508:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0Gg9bY6QPxRoJKhsWmwcDeEOjBXVuIUfs7Gac31f1nudr+/weIoi0HdfKxV7VtIRkbSlL3yXVx1qyNKRYPl29iDsbsH/2a9ooAwk83KD644ncgvXbTerUE0SKWZc4glhBEmMIPyV/XkXT3kBNwgIybqlof/QBlIt4gwo3ZcFkcUgPWyYbhEvArWHOeWV63uWTmY+/KxJJFL7oea+VtzrKmocH7nmfU1UPraKtlWGd634u++f/c2o0p4jPzxmWx2IKirv3zvkVWsm3JlvLPM234xdKGjYHbxTbrr/8A8dc8ETJ2x50a4qVTC4UMOAP+1rSX+3b52lvg+qcgXCGE7OMbaLaiAGfgjJ9q71QqnO74ocOYt/YyfxdXe1oPqp+zdtOIH630YcIWGAUYRiAQNqaPUwwpIpQ4InkXQZ59g8NOKG/sxTmwtd+Vw0N+mSTwP8Jz+hm6ysaDbMRrvAwt2K1MoapmrJz0IMjyUBY4VXjalXvnQe4GS9dJ5kdc2BvfrVfbhyoHA8lRcfeFdRQg5RzQRPwpkQM+wjDKB3hnVVdhnNUuBTovrE11OACyLAzb9Fjis8mzrVI4qc84IJNSVXoaeLzPYlELRF2LUFZviGSaTP0u7PbfZFhVirNCLd5e0Yns8o5d5AD2epCLD+6cHDuoC2FY/TViUQKpnRlz11KJhMjA2r0QevCBc5thlJwAxlGDrS2STCWf48wbQMofJNBMPEG7Hi5iZANLZU49B7I2j1fl4NrGpQ87w1Cy5VbnIBgslqRfum3BohISL6/MKjeQ== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(7636003)(921005)(356005)(7416002)(5660300002)(8936002)(83380400001)(7696005)(6666004)(9786002)(26005)(40460700003)(2616005)(508600001)(1076003)(2906002)(336012)(186003)(47076005)(316002)(426003)(70586007)(8676002)(4326008)(6636002)(36756003)(36860700001)(70206006)(110136005)(82310400005)(102446001)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2022 13:45:44.4005 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b8a696ac-533b-47b4-3f80-08da3cc288eb X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0033.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR02MB7508 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org Add fpga-region 'power-domains' property to allow to handle the FPGA/PL power domains. Signed-off-by: Nava kishore Manne Acked-by: Rob Herring --- Changes for v2: - Updated power-domains description. .../devicetree/bindings/fpga/fpga-region.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/fpga/fpga-region.txt b/Documentation/devicetree/bindings/fpga/fpga-region.txt index 7d3515264838..f299c3749505 100644 --- a/Documentation/devicetree/bindings/fpga/fpga-region.txt +++ b/Documentation/devicetree/bindings/fpga/fpga-region.txt @@ -196,6 +196,20 @@ Optional properties: - config-complete-timeout-us : The maximum time in microseconds time for the FPGA to go to operating mode after the region has been programmed. - child nodes : devices in the FPGA after programming. +- power-domains : A phandle and power domain specifier pair to the power domain + which is responsible for turning on/off the power to the FPGA/PL region. +Example: + fpga_full: fpga-full { + compatible = "fpga-region"; + fpga-mgr = <&zynqmp_pcap>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + power-domains = <&zynqmp_firmware PL_PD>; + }; + + The PL_PD power domain will be turned on before loading the bitstream +and turned off while removing/unloading the bitstream using overlays. In the example below, when an overlay is applied targeting fpga-region0, fpga_mgr is used to program the FPGA. Two bridges are controlled during From patchwork Mon May 23 13:45:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 12859092 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 85CF5C433F5 for ; Mon, 23 May 2022 13:48:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236490AbiEWNqW (ORCPT ); Mon, 23 May 2022 09:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236614AbiEWNqB (ORCPT ); Mon, 23 May 2022 09:46:01 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2081.outbound.protection.outlook.com [40.107.93.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B352632; Mon, 23 May 2022 06:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XLbZwc85Huw4nDUb1VIJw8ZogJF/UOZzvERfrZy+SIaIVv6dQ2G1M/sZ/YJjF2mXTw6fnA3G52FStnCCphr8+Zp95iIa/IXrCATlhmxtwhfTqVwlFFCI3W4hWdSFIu1kP4ka1bZLO4RhNIT9SRdiArOMpOWiFMT78dmQO9NB+e8C6hfM5F0Z/bpsyheN9c1SyVjhENxynrXSyT1/7jYmhjCdsuZGBwFlw5UfWv2tnD5ZPfB0Sw2RxKHdHrayQKDjUEw1wl4EAn4apY0fYfMDBfGnF2eVC9Imr5lJOwyC96T7+Zwi+VXxhn+XYpWy5lMvR2QNXG3CCIJ3U0/ewK9qJA== 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=0uwHN2oj69xTfuVrTwOmq6FYI2g192WyEZmoFWEMzZY=; b=RalCOem5pARSV742Z0+ucoWRK4B4trWSaGye4q+TGPYBXCCjKCYDheJ1SIx/53O8YcYWbj6/+au3gOfg4IBg1i4uk5QFAimOucGPFwVkm5w3AVHWleXxNzL3nrr75idNBP6RfjK97wqX8jfUOgfotKHbSX3jRHvOcQ5Y6uNbMJ/+dNkusJUoRyXvTJVdLpLEn3jvFWBDaxhWVz6PjbxWa2/PSEyOy3hDBnnnZrrYBlQCL9DziOnI0+wBEIwsEciM10+/TwRSI+S5+oKGWBatNwAfMQaGL2l+PYMSA2IS3bmXSzewTR03ceT17eCDCbmSaPAJ843/88X7m8cYlsqfkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0uwHN2oj69xTfuVrTwOmq6FYI2g192WyEZmoFWEMzZY=; b=laX9wxLOsGtXi4qZENnIVELthcgJvSpIS1nGVFbXz0j958e0aryr+EH6vyOGX2oIHcQR3i+yrNQdtivYR8YIhMHw9mWbEbNeiS8ybKCEUdEw0XlpPxt+EUmoDxMiS3PQoSsgMQqyhmJoZUTecDzqK8RhHXnGnen5QJ+jNAvIGM4= Received: from SN4PR0601CA0021.namprd06.prod.outlook.com (2603:10b6:803:2f::31) by PH0PR02MB7750.namprd02.prod.outlook.com (2603:10b6:510:5e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Mon, 23 May 2022 13:45:56 +0000 Received: from SN1NAM02FT0026.eop-nam02.prod.protection.outlook.com (2603:10b6:803:2f:cafe::fa) by SN4PR0601CA0021.outlook.office365.com (2603:10b6:803:2f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.22 via Frontend Transport; Mon, 23 May 2022 13:45:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0026.mail.protection.outlook.com (10.97.5.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5273.14 via Frontend Transport; Mon, 23 May 2022 13:45:56 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 23 May 2022 06:45:48 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 23 May 2022 06:45:48 -0700 Envelope-to: git@xilinx.com, mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Received: from [10.140.6.60] (port=57798 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nt8NX-000GwK-Kl; Mon, 23 May 2022 06:45:48 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , Subject: [PATCH v2 3/3] fpga: region: Add runtime PM support Date: Mon, 23 May 2022 19:15:17 +0530 Message-ID: <20220523134517.4056873-4-nava.manne@xilinx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220523134517.4056873-1-nava.manne@xilinx.com> References: <20220523134517.4056873-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5547734-ee85-4cec-0f5e-08da3cc29011 X-MS-TrafficTypeDiagnostic: PH0PR02MB7750:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6Q1jV34SDOJ0giSVHPWx4i3OXsga1IXmsUKWwMjWW2trlfUDe7KCkXzdRmMHsLR1sC2vPPxj1gkaASbZDUPJ7j6MiODVOAu2g71DRI2hwYYOzFTf0HyGwybvfrXbLo63T12wJmT+UE4PhuCt0VOsffvfB6TilzerAuQKgaHWeCxdBmEEYAwzqP2hWhl2lm47B2PG+KU2WbxFO8FHKjOo2u500sRNrelU1FsdcYnk3r+rSPKslwjRAImJaQ79yCTKxJuvlu8Ycj77/5GR135XTeUZ/RRWpVANWf3Req5FT9sQuNyxHIVWPjbadQ2M8SJvHqQjq/JzEZhWxEjIQIXdFh3PV4iZsoSQz2EFsxUZMDVVG3TxFALSJQO6Y6IqRTRKYn9WgLnPUAJh6IpJYOE16l2Zr/G0Sk9RpalCUkX7c5OpXv3txe4F5x0V/syyQZaacuBUrU9fFbJSwgOjm+OjY4O4RaqPfqjlb2F1d5vSTU/DLZJGNHSKOF3c6ru7lBg4mozANBDnsk4TkXQHZyPsCgIgLsJ5HTgrsFxXRPDvofKo3iuZJnBOnZlXR+5vZn1kJXDUut8c0eFptJLP93i6q/OXhvlERRSYj7AdxuOOylS3x3WnmObsVjw/gt7P3ESRYp72uEoJUMVMJeg7fsgtqGqjERRWovhLSP/3tBIW8XMlO6sEKGWl/9ru4ZmGFHfhw77Rd5mdMLWF6dTcNhV2LS1qg+HT0wF2FT4T7Jm4IHcsQjnSe8z56SMkI8w++uHcbeSJp2WeJ63h00zaCG/Hdg== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(70586007)(70206006)(8676002)(356005)(6666004)(921005)(7696005)(6636002)(110136005)(508600001)(316002)(36860700001)(47076005)(426003)(336012)(186003)(40460700003)(83380400001)(26005)(2616005)(7636003)(1076003)(5660300002)(82310400005)(9786002)(8936002)(7416002)(2906002)(36756003)(102446001)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2022 13:45:56.3924 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5547734-ee85-4cec-0f5e-08da3cc29011 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0026.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB7750 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org Add support to handle FPGA/PL power domain. With this patch, the PL power domain will be turned on before loading the bitstream into the targeted region and turned off while removing/unloading the bitstream from the targeted region using overlays. This can be achieved by adding the runtime PM support to the fpga regions. Signed-off-by: Nava kishore Manne --- Changes for v2: - Updated commit message. - Updated runtime PM handling logic to fix the PM ref count imbalance issues. drivers/fpga/of-fpga-region.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c index ae82532fc127..f14bb5916d97 100644 --- a/drivers/fpga/of-fpga-region.c +++ b/drivers/fpga/of-fpga-region.c @@ -15,6 +15,7 @@ #include #include #include +#include static const struct of_device_id fpga_region_of_match[] = { { .compatible = "fpga-region", }, @@ -301,10 +302,17 @@ static int of_fpga_region_notify_pre_apply(struct fpga_region *region, return -EINVAL; } + ret = pm_runtime_resume_and_get(dev->parent); + if (ret < 0) { + fpga_image_info_free(info); + return ret; + } + region->info = info; ret = fpga_region_program_fpga(region); if (ret) { /* error; reject overlay */ + pm_runtime_put_sync(dev->parent); fpga_image_info_free(info); region->info = NULL; } @@ -324,10 +332,13 @@ static int of_fpga_region_notify_pre_apply(struct fpga_region *region, static void of_fpga_region_notify_post_remove(struct fpga_region *region, struct of_overlay_notify_data *nd) { + struct device *dev = ®ion->dev; + fpga_bridges_disable(®ion->bridge_list); fpga_bridges_put(®ion->bridge_list); fpga_image_info_free(region->info); region->info = NULL; + pm_runtime_put_sync(dev->parent); } /** @@ -411,6 +422,8 @@ static int of_fpga_region_probe(struct platform_device *pdev) goto eprobe_mgr_put; } + pm_runtime_enable(&pdev->dev); + of_platform_populate(np, fpga_region_of_match, NULL, ®ion->dev); platform_set_drvdata(pdev, region); @@ -430,6 +443,7 @@ static int of_fpga_region_remove(struct platform_device *pdev) fpga_region_unregister(region); fpga_mgr_put(mgr); + pm_runtime_disable(region->dev.parent); return 0; }