From patchwork Fri Sep 14 19:39:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jolly Shah X-Patchwork-Id: 10601169 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 8C6C014BD for ; Fri, 14 Sep 2018 19:41:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 750C32BCEE for ; Fri, 14 Sep 2018 19:41:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 694A12BCD1; Fri, 14 Sep 2018 19:41:54 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 8DEB32BCE5 for ; Fri, 14 Sep 2018 19:41:53 +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=syBvatL9na56CDWXydAvqfVm/pkbA2t+0I7brNQ98IQ=; b=eGqc/bRz3jMF48 xTsRweXWFuWMR6c0Plq0HHoHYs/VJOBzobb0Il1oaOWNAig77Tg5MSIPNqYrPTu4trP2r1nnyZ8Ur +1qfsn5/5gTf+IXylaukrZ51i+aivvweOox/toWYXrlp9lxkfQXhuRCzW4JFvx9G14TpN051i+Hir varYuZql9Uyp09JWJGKVJ8qlYPPMr92uyWoapiVL+N8/Ub4qraM1HTwUJUNE92gjyfxf12zF2rXlh 9b2phwQkgDokLmr9WEh3aa8CmH5nmKbyxfZYfXeLTpK4jQ/+y6M/s+4cb2Rgh15sgdlBTOh+ky0Or Gp78kEQw0owR6si48Hmw==; 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 1g0tyE-0005Gz-L3; Fri, 14 Sep 2018 19:41:38 +0000 Received: from mail-sn1nam04on0620.outbound.protection.outlook.com ([2a01:111:f400:fe4c::620] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0txD-0004DL-AJ for linux-arm-kernel@lists.infradead.org; Fri, 14 Sep 2018 19:40:37 +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=s1VHz+IFkZjuLtKIvJ89/fu8l1cntsR3ySRpTLC8EWk=; b=T+w+Eeam426BTzKrpYtZMpj/4YYhTs3UsgLrOCHSdf7ku4x+5GrRCxOPJhQ7f89s55ga+BlW9kyNzVUZ/OPW5g0NYD+llvKMpMoPR2+2WW6z0LdpDl696vMT47szC+sgjrNHu8eRCIdGN0IW+NO4IHik8m+n5Bk2/3QpzQFGQuc= Received: from BL0PR02CA0035.namprd02.prod.outlook.com (2603:10b6:207:3c::48) by SN6PR02MB5118.namprd02.prod.outlook.com (2603:10b6:805:68::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Fri, 14 Sep 2018 19:40:20 +0000 Received: from CY1NAM02FT062.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::207) by BL0PR02CA0035.outlook.office365.com (2603:10b6:207:3c::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.14 via Frontend Transport; Fri, 14 Sep 2018 19:40:20 +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 CY1NAM02FT062.mail.protection.outlook.com (10.152.75.60) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1143.14 via Frontend Transport; Fri, 14 Sep 2018 19:40:19 +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 1g0tww-0005SE-Kw; Fri, 14 Sep 2018 12:40:18 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1g0twr-0006TC-H5; Fri, 14 Sep 2018 12:40:13 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w8EJe2Pc012221; Fri, 14 Sep 2018 12:40:03 -0700 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g0twg-0006EA-2l; Fri, 14 Sep 2018 12:40:02 -0700 From: Jolly Shah To: , , , , , , , , , Subject: [PATCH v4 0/3] drivers: soc: xilinx: Add support for ZynqMP PM driver Date: Fri, 14 Sep 2018 12:39:47 -0700 Message-ID: <1536953990-12755-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)(1496009)(39860400002)(136003)(346002)(376002)(396003)(2980300002)(438002)(199004)(189003)(336012)(7696005)(63266004)(316002)(7416002)(51416003)(54906003)(2906002)(107886003)(106002)(186003)(36386004)(6666003)(5660300001)(16586007)(486006)(39060400002)(8676002)(2616005)(110136005)(126002)(50466002)(48376002)(44832011)(305945005)(106466001)(72206003)(356003)(4326008)(966005)(36756003)(476003)(426003)(8936002)(50226002)(9786002)(6306002)(47776003)(26005)(77096007)(81166006)(81156014)(2201001)(478600001)(107986001)(921003)(2101003)(1121003)(83996005); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR02MB5118; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT062; 1:N/+rTvdwRpdjMjLf4I9WZ64/kJ9Qq/6d2XIYdvy20cJD+mk95g6fbmfV/wpdGNqaRdX5lXd1bB9/JRTdRh/fFEthcIFLJhopTLc+Fcfn5dZu4VQEgBWoOLCAxB8yAu3m MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8382aa73-d2a4-463b-abca-08d61a79e797 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060); SRVR:SN6PR02MB5118; X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB5118; 3:5I2jn8um/KEnjV++Bgu+HuIKlvnteXpsxBzbevT0AGjBf/lwYW59JDZ8wC3AWS4F3Cmm5uowAwZr7cj3wa/T4n79qEJEkxx6vPG4hjMzXwWxsSC+j7SO1YE5EOvoQBg8IrWWk7rfhQa96cvalXdGq9EUZAlUIqBtNft3mNC0cBUzdh00NcL9WOjPQh57GfOkdppsZOAlkDuZUORe9Lm1byFZagG2Ud7TFylkAuV76fdxOHdA5Iy/nqXcfH3xyNS3kt2pdGXGULnryU49cn4yMYnbLs5PEgQ/Mkmkg8q76GnZ2XZ4qFSifhdtWeDFeXiYMEelwJwUQaRE3TroXkmY34VhsWQXAhUf6lEqPgo6bHc=; 25:bsea68S1mk5idDaeqiqBV0xoWuHKu5bCtbLbR7nJKqQRKOt3bVjZ1UgK13tv0WMK/zuNF/GZ5TtYssIUZdE3Co84GB27E1u5aY1OQhNvyacdnOzL9smoX2u60WECfW29+9ZnQ3+/OwPu2ewsbMKPBqOoHYcCSlMd3QMiUPjbB1hAMdRC3J+ENX6gLbk2sIbwyxlMpbOmcFMtnY+hlGcyKrssCl42/0xWwlBFKSRIDt7J006/dK7fWrOnOv5OinDSa+s/KxtNq5izYF5w0xdUCYQsEceWtUzV3Is2Eu4brMOVM3BiRURjvSs8Y81DWofj/b6eDgkw9cepvB5P4MVoJw== X-MS-TrafficTypeDiagnostic: SN6PR02MB5118: X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB5118; 31:wh8SvJEZWtGz6M1wlMRzffrxpI9nImjg7thEcfKYncyfNmEU7hKaXzMyc6My9h0H3Ss/Xlx/z28wtZk5djEEOwFdrcOPSriAqR09l/UPKusCZ/9cT5v6B3KimdjsV++gAkoZV07nUiep+6fyCuzQ0sBOIJ/A0arqs+PzEHVkTDLWV3Bx5TcoiSGbFXRN+198ihHGoS0rfE0osJdPu+FZva/bTA5rBn2u16tgDLO5RFg=; 20:nwwZRiZOWsJYltPqCxeu6rupaP3/C0qRs3p6EGCKa9Ve+JhO0yyFYbr3BloPFjBR/zZUqGlKKo/gIZuuJ59nsCuitfIVkjC3Nzc/0tMqqT5BB9XcwofioeD5mWNWCUrfJvc/SN2idaaZ43/jD4nIkCv7AvzRTB345rU2pKP2qryctm3aYTbTknY9HIXuGit8ZeTKMoAba5som3SjUR5OcU7q5VTAlMca8PN0iJsusWC0hAnjo02NbUGrtOWacMvLAI+/vgcGF0sB58IAwRRAr7zbHHQNVjyRTVD7epuciKuxjZzZix3g60Tga173NrLiHS2Emc1dSzO9juGYA7Po4fsMSlF/hcDz02vUV7QpAHGS7FgQftwX5yN6YV2T8DT/0531nQYHrwvWgWTdP64aMl0mTWO4cNdoEx9k4sei6+QYAgmx/wYx3Df7G6yZLsrTNVTDoWU0w+Ka5hK5HDrrjT0lQygZmFNBbYmI7haMy6b1EcOr7mScoT5lnZeGeg2v X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93004095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699050); SRVR:SN6PR02MB5118; BCL:0; PCL:0; RULEID:; SRVR:SN6PR02MB5118; X-Microsoft-Exchange-Diagnostics: 1; SN6PR02MB5118; 4:uWjAZ27Z62Z9LiQDJq/FfvkYRCLF4mDPhUFxb5STgtnx0+lM+z5YUFjAfnhNhaEgiNdXmL64TTXbZW/wNyHP4J21sEcR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EGuKFxwLC383gCpBwVychxiAZzspDJMY7u6eTDzZFYq0d9V0XRuwncVAY1Guym36PR51bHSk1xpMl1Xc+m7gNoIHv4orrcwCCt/e8YGfetlZJvCAbr+tW/a419O/Kq/mAUT9udTCduovjXknTkm1qj9pGzN7TrA966D4NZmrcNULkA2a2WRxYZMN+z6AvE/r58pGVPPLpTvMKE1hP8g9ImvDmkzVuk8GPOvW0CZou2AWD1EVmMAbAY5rkiNkN6PgBQ3SELMVTQxypDBiDgAsPPZS8Tl/cKsq0xdlufJgZpVZ6ntw==; 5:DWB5CkWHfKIhnOvqRsxfCJQiJrmfBZ99OZl+q/LOyWdSnK77E4malyLRBZy4DcBhDWXi5+XulBOEtms/F/V57ld7jGP40AVcAcd0G8YHfOAFMoafYmQ/oxBGRx8PF2CEyivcO9cQUZI+r9GYnhUBlPD+G2ustdUDBvueuphDZnI=; 7:nVw5/m4RsTmPysICjg2Ezjwynr06ii28WcqfkC/wN40B4BvPMF8AWxn9aJyfvdxvS7p67ps0R/o2uDFLk8srS0lVGZcmS4XpfYJyl4VtfLNrOmtuyJNDO7yk6ibNxXbaM4mFpp0ard+ah+eScPPfLezc22lZ7QGmq+7Ox92aFl3wD6o3NFkPFurjFEQnmJXYWI9skYCjraR3E60n/wGcElkMa1y8ikN3QM1gKWJ1ocFxfGa6qzG3vGpq+xwVLya3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2018 19:40:19.1314 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8382aa73-d2a4-463b-abca-08d61a79e797 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: SN6PR02MB5118 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180914_124035_516745_2D11217F X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. 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 Add ZynqMP PM driver. PM driver provides power management support for ZynqMP. This patch series is based on top of Xilinx firmware patch set: https://patchwork.kernel.org/cover/10598195/ v4: - Minor fixes to address v3 review comments v3: - Updated DT bindings as per v2 review comments v2: - Rebased on top of latest firmware driver patch series - Updated driver to use shared interrupt instead of mailbox Rajan Vaja (3): dt-bindings: soc: Add ZynqMP PM bindings firmware: xilinx: Implement ZynqMP power management APIs drivers: soc: xilinx: Add ZynqMP PM driver .../bindings/power/reset/xlnx,zynqmp-power.txt | 22 +++ drivers/firmware/xilinx/zynqmp.c | 29 ++++ drivers/soc/xilinx/Kconfig | 11 ++ drivers/soc/xilinx/Makefile | 1 + drivers/soc/xilinx/zynqmp_power.c | 178 +++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 20 +++ 6 files changed, 261 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.txt create mode 100644 drivers/soc/xilinx/zynqmp_power.c