From patchwork Fri Feb 1 22:08:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jolly Shah X-Patchwork-Id: 10793803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F302514E1 for ; Fri, 1 Feb 2019 22:09:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E21A432E9E for ; Fri, 1 Feb 2019 22:09:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5CA332F11; Fri, 1 Feb 2019 22:09:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4FF4932E9E for ; Fri, 1 Feb 2019 22:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Jf4LhwBwRQq9DZimmfNkzUDaTo7QqHIL35URnijxE1o=; b=fM3wZx/LPVZ3R7 YboXyNOx6ItD1rwD1o0v8u4JCy3blW7DiHzwxaE8c3Mf8aj9eNH9nys5cMEn7zUU1NvolsJTzWKmy V+Esey9LRkB/G15rBmOVGDtrOi7VBV6myzz74xtlE550RNajluCAC7DBkgKS7k250tLxFc4JI6mmI 9PYH0XYXf3cZATvf2Gaa0JTUWhnP5pn1AEloXtanpKLN5Z6nCDdZHXmAIEXo9+o5E7Qmo4XmN6y+o b6HTZQzU4qFeIpk9kX2bXq00jYpt2zPzskOnpL7bUwPy8GPUHXQvFNwciBM7L+adBF7V81+xaq3Gr KBsmcvX+QWDJE4Hqgw4w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gph08-000197-Cm; Fri, 01 Feb 2019 22:09:32 +0000 Received: from mail-co1nam03on0603.outbound.protection.outlook.com ([2a01:111:f400:fe48::603] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpgzv-0000xm-3L for linux-arm-kernel@lists.infradead.org; Fri, 01 Feb 2019 22:09:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7rv08A0eLwyaLrv3WAXSTZ9hcVX+PCe9xJNqFuJaFzk=; b=y4y5Zheb9lvTRXujjEnAWxDmN9yOG04Tal+7UAsW/g9WGhwSzD41oP9QgL3uiEFsAXp24TiyFR2XnixAkfMF0qa/XUkrRZjblp9VBmiKSun7tFyUqm6zG/Msw6+yOXetSsjJjTwlCHiD3rxcX1Q1CUeaPh0U2u1T4TvNUXzOvaY= Received: from DM6PR02CA0010.namprd02.prod.outlook.com (2603:10b6:5:1c::23) by BYAPR02MB5016.namprd02.prod.outlook.com (2603:10b6:a03:71::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.21; Fri, 1 Feb 2019 22:09:15 +0000 Received: from BL2NAM02FT058.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::200) by DM6PR02CA0010.outlook.office365.com (2603:10b6:5:1c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.17 via Frontend Transport; Fri, 1 Feb 2019 22:09:15 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT058.mail.protection.outlook.com (10.152.76.176) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.10 via Frontend Transport; Fri, 1 Feb 2019 22:09:14 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1gpgzq-0007Tt-Bv; Fri, 01 Feb 2019 14:09:14 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1gpgzl-0000P8-8b; Fri, 01 Feb 2019 14:09:09 -0800 Received: from xsj-pvapsmtp01 (mailman.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id x11M8w7Q027117; Fri, 1 Feb 2019 14:08:58 -0800 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1gpgza-0000LK-Ht; Fri, 01 Feb 2019 14:08:58 -0800 From: Jolly Shah To: , , , , , , , , , Subject: [PATCH v4 0/3] drivers: soc: xilinx: Add support for ZynqMP power domain driver Date: Fri, 1 Feb 2019 14:08:47 -0800 Message-ID: <1549058930-18644-1-git-send-email-jollys@xilinx.com> X-Mailer: git-send-email 2.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(376002)(136003)(2980300002)(189003)(199004)(72206003)(8936002)(39060400002)(478600001)(305945005)(16586007)(110136005)(4326008)(316002)(7696005)(7416002)(106002)(51416003)(107886003)(48376002)(14444005)(81156014)(36386004)(50226002)(77096007)(8676002)(81166006)(186003)(26005)(50466002)(2201001)(426003)(126002)(6666004)(2906002)(356004)(486006)(44832011)(9786002)(336012)(47776003)(54906003)(63266004)(106466001)(2616005)(476003)(36756003)(107986001)(921003)(1121003)(2101003)(83996005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR02MB5016; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT058; 1:Hxp28AZYhmsRyXppU9HaFPhpt1AL+TGAP+0DXKeQWBQBohN5OpTa9O6VHDQOz8IvyuqTyZn5Fx6NTpZmq2isiRLdWWh7coV1zifEqYC979GBI640MJKJe8aZK89O3eRgifn6JQFl+sZ/OKXCX9xj6lOhFtrTnwDXs9snKzO3WDM= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eae3b530-d734-4808-8bdb-08d68891e744 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4608076)(4709027)(2017052603328)(7153060); SRVR:BYAPR02MB5016; X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB5016; 3:QZTSWWqXVT2vTTWTRSZVmxXBpg+3wujce9cpV9ri1FlRgIKru1gItvL8ZHFcgIh5XPX5ULKd+prM83rB5YtAT1nx7VusBRTIhRnSOtN9gk7L3rJI/7n1XCAuNAiglrXHYzi6TCwB4V0epSFEFA6xJzhWG8IgrRPs+ZZfnFUlhZjWgH57zwJi2Y7UYv8J7aRD/YA0T7qJ5cYiwtD68d3UrEvoPil2pTuuHg+1LfWFJsqAy3E85iwf3Vb81Sz7aBJFHUfLa+5DpUIQ3dEV20Meq9q+/4N6faC2oSn2cYQCDj0FFR0/lslqgIgWvOiLq4r5ub4zyUtChyY7VlA+oQjBS86BrKIWj5UBl5jF1Le2mlTnppgnRqOvLINimC8980s2; 25:wR+Fhg2zZKanauYyq/41BZ9M3oFhy12TvTfIJ2Fbi4l0PRF92VuzVEGxrrb73UPeQfC4bq6CZcJMrqpidJYWw/A9DRnpLf/RavdTztfyr8CJAAR1r4DE8ASJJnk+hX0kFOTewouumaXpQg19DqbYjTcC042jWJlzD5q1EVpjl7dl31/kW+0JN7ryloz3fyNmJFdRyKbWWKiMR+iCkJIateAnZcxS578KZDoC4J+KFzV92QZpMS/Cazbf9q879fCEDNRVPlajSZ1+3WL/3konrrWTzkWUoJLZP88Jri0pm2eW/XiJhM33dB10k7soHmNVldKtl3kHDCts2yPH2djrVQ== X-MS-TrafficTypeDiagnostic: BYAPR02MB5016: X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB5016; 31:tOwynl7X7FAqoyTHUdvwZRNNRML1AOla7nAfB9ehy2QQ3mHAUotUZxxWZ7YH+S+Y/g8bWDsC5d8eOsnbRKgriNt5vk8D0hxzGCv2l/jh68iLqYqHwAJNBU/6kKxn1ngyOyqueaDLNNtWiPuJD4KV2EDE70fpeOPS8mL6lQAYs2s5gifsm4G030+durqWSJLDJx6P7TT4noAuvwlFW8DCEthsF+N6dWH/i3ZLpJNT3SA=; 20:KwsVz3HPei6B0wfTKJ5nRsBnUvtmYAKCxzVMoR6XRJnxhmAFE8JiwP2PGRAbGVCIQrXB8Vz8rz7J3OCGVUZYA2VmmlziL7WWFt5pLQtDoG5X+jqMaJACVKJ4fGZmpEiFvQ1kTZYDzRdXgVfgUmcaUZGzSvBfOCA5G9dCWIJBzaVjXvDXF2gsZFKwOpsbbVvWk2bjVTeo8HhjT/2UNWfxbzXlnnxcE/VqTXNG+LYbD6js12OJijn35RwxQi+tNLmDainIwaBIqA/CB/4kvEVN/v0gBGviNGwQkb2NwCf8ICck1hMfztrjR9eaJ1mJf+ve3lt98SvES3QTGSXN2LPGra6Yk0r1TY2LK3btttq/HzUPT/58tb1E04RfDXsfjsS9OpcqgY5F2SdqQ1c3+tu9cKJitgsctqTb1MTHsq/UAikNAe4nOyUAJqwuxVIyenqSjxeKNRElFJY433xe40xiw11Cu54zMg6XWJYDVR09vlLutxqzgdTxTNkiR22s3i3l X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Microsoft-Exchange-Diagnostics: 1; BYAPR02MB5016; 4:k3Hb0DwnqYHwSyVlyEPZJrZ8F3nx6NwoUdd7eb9z6tT6E/4OKEuHHKszvU2v8peZXWsNi0ud3yFEAgClPAQYWGQSfyQxOtspzo9G7rIesFIc27tzHhUNIPF0w1JuXtSov9rt3gvrpUmeg+4sEflYEcG/9lY5vqvNUw5ehuwhApDGxeMyFrlkosSZNHbbS6kRve3GMPyflMMMsln2+i43zgLfTYlA/guKSUytTOi0B3IcmyDbiXemK9bikW+QYznpCe43ROm4zTnXIv8+kJH5RM0w4zxnorLvhJS7v/TkARE0CHDBOnbc8/y3//eHLpIg X-Forefront-PRVS: 09352FD734 X-Microsoft-Exchange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xCUraDYMg4Cg53P3d04pLvlkRtkmREYC2A/lU/n8jFbfJO3R8yhDsCZHPRIZx5JcqlGk4UxK3e36DQ2tKUg==; 5:Unz0rKKU9VyeaLIHTu0tTDLXSPUxJ+nCfKKcW0Mcj4tiTix0/jxCHAgRzzOOcr2enz5uNVLu6fhHwvClVhbWF7895y+hh65YZ7sd4GEoylBbOwsLjAoQnoa8tzGi6N4v9lGHD0okaqeUWalvX0w3ljGhbEypFXTSL9DA06+ixHegKWB+dPhdhH5WCxV/MHrue/JKpZfbRFS9yUWaffLNmQ==; 7:AKu8KhHtGn+RMZswQIHBag1fRkpNnmm2XifGisUBxVA6w8kU+4vAqZtsm1b/Z71bwaZc4iVP4GbA0MgCSoYFvAPiY/+F5Ju+D9crRRb8/EkC+6gB+/9YHPGZAgFwLGnMeJEDoNbJabjWQA517bUjvg== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2019 22:09:14.9416 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eae3b530-d734-4808-8bdb-08d68891e744 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5016 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190201_140919_144821_9E7E8DB8 X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, rajanv@xilinx.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jolly Shah Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The zynqmp power domain driver communicates the usage requirements for logical power domains / devices to the platform FW. FW is responsible for choosing appropriate power states, taking Linux' usage information into account. v4: - Added reviewed tag for dt bindings - Remove local device list for each domain and use list maintained in core genpd structure - Remove hardcoded pd-id to node ID mapping. Instead use argument passed in peripheral node as node ID. Firmware would validate node ID when APIs requested from genpd ops. v3: - Changed binding to have FW node as a power controller as suggested by Rob - Updated FW driver to register it as mfd child devices from firmware probe - Move bindings location as suggested v2: - Rebased on top of latest firmware driver patch series - Updated driver name from zynqmp-genpd to zynqmp-power-controller - Updated device tree bindings to move power controller node under firmware node Jolly Shah (1): drivers: soc: xilinx: Add ZynqMP power domain driver Rajan Vaja (2): dt-bindings: power: Add ZynqMP power domain bindings firmware: xilinx: Add APIs to control node status/power .../bindings/power/xlnx,zynqmp-genpd.txt | 34 +++ drivers/firmware/xilinx/Kconfig | 1 + drivers/firmware/xilinx/zynqmp.c | 73 +++++ drivers/soc/xilinx/Kconfig | 9 + drivers/soc/xilinx/Makefile | 1 + drivers/soc/xilinx/zynqmp_pm_domains.c | 321 +++++++++++++++++++++ include/dt-bindings/power/xlnx-zynqmp-power.h | 39 +++ include/linux/firmware/xlnx-zynqmp.h | 26 ++ 8 files changed, 504 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/xlnx,zynqmp-genpd.txt create mode 100644 drivers/soc/xilinx/zynqmp_pm_domains.c create mode 100644 include/dt-bindings/power/xlnx-zynqmp-power.h