From patchwork Mon Oct 1 20:56:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10622747 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 A641B15A6 for ; Mon, 1 Oct 2018 20:57:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 964662836F for ; Mon, 1 Oct 2018 20:57:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AC862847D; Mon, 1 Oct 2018 20:57:01 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 282DA2836F for ; Mon, 1 Oct 2018 20:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726391AbeJBDgV (ORCPT ); Mon, 1 Oct 2018 23:36:21 -0400 Received: from mail-eopbgr40072.outbound.protection.outlook.com ([40.107.4.72]:43648 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725948AbeJBDgU (ORCPT ); Mon, 1 Oct 2018 23:36:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zT1w3qVAWK1IiPIQgnoR2UogdxeNNuDJdr7aQb1f//k=; b=p62NqU/oUjkppj0tIv9GX7j+Fds50s2QzAyt3+Ht8zr9v9WF6mgeuWQmhNn8xlLglEwfeIPcbSA4M34JNZfJdhzOql8zC60d/fJrod1Rgc6tdI77RTYAqQF0TecxSeO4exeE2AqG7RMBcyM4FpRsqrJNiWHetuEBiPO6HKPK4Ew= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by VI1PR04MB4303.eurprd04.prod.outlook.com (2603:10a6:803:3f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Mon, 1 Oct 2018 20:56:34 +0000 From: Leonard Crestez To: Lucas Stach , Lorenzo Pieralisi , Shawn Guo Cc: Fabio Estevam , Stefan Agner , Marek Vasut , Ulf Hansson , dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de Subject: [PATCH 0/3] ARM: dts: imx6sx: Add DISPLAY power domain support Date: Mon, 1 Oct 2018 23:56:15 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: HE1P190CA0058.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::47) To VI1PR04MB4303.eurprd04.prod.outlook.com (2603:10a6:803:3f::30) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4dae2a30-6572-4fe0-9dea-08d627e06005 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4303; X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4303;3:hBfdAAd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5IpCWeWbHVCS/nFqgj7d0GDd68Eb9u1LzPlDCNogIDD+AuGxuJ7hKB9xSoi5rXhZ+hwoOh2m6p5ckiOTdpDvXBXx7XcgV1LydfZGAVCMmmIgveCPEaTc27ZGVTdMjYzjcfbNoKOMljtN8T2Bc4QMw6XYo7SkO04DKtqC2BmEBUyCbyHR7c2Ti/UxG/1WkkCTIZrWAuQjYWRNqhMRHiKZC8YtrVZVQ4NfJ0MBIzivHrIhvNfibQZqBoM8wRtV+ou9mpaQjJP4tG1XT6J0s6jpCa6TVZwXeGDgCN08CBLdDSjPCUxe0/FnEog4b6oyecYI+2ry81mmiPkekDfX;4:LCGfwM0xekxjAjnc017/iDmZz+SVpzzPgClvRiqDcFsOm93wLtuDFk0/j98qsqLWdFiZ8fPwT+oWmMeINZ85Ji+M3aaKLvO25j6blQhqluw2mSZ+IyQ2JSOyB/v/FukuEzVWV3kaiHIaI1ebcTjXQ5CMtFEuYCFHF83fMDZYNH8MgHrXBZJrNp2Mu6ZSbVU3tUK2Gbwo9VFQf5HRgMkfC5Kyfney4PwOz2vyTeVv0MgdK39+yjLAC3ubV8l2WtVUi5qmnJ3v6XPnxsHdwGTdbsCqG1eqy464KyqOlYpuHpM/+LAjcnkJu7Y/60OAGSD2B4+gW6kZVVIt+NzcqRSnfQHmSaxtgQWNYaUle7UUa4o= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(269456686620040)(17755550239193); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(201708071742011)(7699051);SRVR:VI1PR04MB4303;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4303; X-Forefront-PRVS: 0812095267 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39860400002)(136003)(366004)(376002)(346002)(396003)(199004)(189003)(5660300001)(6506007)(386003)(316002)(3846002)(16586007)(6512007)(36756003)(6116002)(53936002)(54906003)(110136005)(86362001)(52116002)(51416003)(6486002)(44832011)(476003)(2616005)(6666003)(956004)(2906002)(50226002)(68736007)(8936002)(81156014)(81166006)(8676002)(486006)(97736004)(105586002)(106356001)(478600001)(25786009)(966005)(48376002)(4326008)(16526019)(186003)(69590400006)(26005)(7416002)(305945005)(6306002)(14444005)(7736002)(47776003)(50466002)(66066001)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4303;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4303;23:OE3CRILcCC5XDNTQbAWGBE3xSZrJSeiNdFbcF1WqZGADm3SBDFR1WhawLjp+eJND1M9D2DSVg0iBQaP6vg5zRCXVQjz5xkJmEjDyp5qDds4T6F95xZbTle46WqMQOtqKL7VekNfoAinm958B7NTuXIBFYlRadijevyihAqsdHUZYhCFi7aiM4UUOGsqSyejpqwW33MDy7Uyt5aEs6c810alhxxBqsMwyUkEMBK4qOZZrJ+HqrlvUaVGYqcX/GpAHWo2xyxLJCZSbsaRxxxHL6IlKAb1rj3nyDvh77ktAc+jh8rj+mUMUxfVw/XKzgVAJY7VUJV7Xrp70F6qCufwQtbOsBhjWZEUW908ly3kJW31MAyrrKSZ4U/PuAG6CAzgdrAo1TL9JSx5jRz3ijPLFZXjt33A2CvAFEZ8zPyn0dAUqIbgJ80C4TNDiUx24wNbnoH0kw+4iVOTtPc13BfrKEdRhVrmb3jalYm037lt6743u7YtA1WETChWo1awokU6q2H1IXUY0VXaHtfp9fU0HH6tP63ZeL4TbAGndR+8B8z/MOfZ7D0XzjHyF022L32G4Uf1Wl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0WlBxSbdK7XKK7dY2tg5s= X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4303;6:arSNZyi+rDeCfsw/mkKGAI9VuARUeCqtx8cKLeRKICSfD201MPdP8iIbVz6d0ClUP22icNKoCh32lF9imXAlf1mgncvJeY5Z5672tDYB5Cfv0mPTEWq0w11gQNJ7Cq/s+6HnQqGQQl1hOWJN0sdwXul11rubwP9H3EJBUIaav+cIdWJsVJ9tR8ErbksJDwCwitJXztRFc1Wq3lOiBcHR2LWaMowpq5dSkA/9MMpdD3AX5xD+INbRmwdWKTSwtBHjf/h0s+6l02sknsBJtK/y8VrpK/82mk/IYHeq/HqY2c4aPwF1quMZ+6AGj0GIshHNOkH3Ch/G3YReryg7fTK4CPpCOOqzjj93UEumzrSD8CAVsJhEKzew/JCqMO183hWmhN8+GoMZyc+OP5f0XdmQls64EHMMtURu0utWuwDgY8VWx2kuYd/eBajtyqyUPLjmGpS4WxhW8wiC5FEuYIbbtQ==;5:2tIhCoBurzROA24ioeuENgKIzztS3j92gzxdl9naRb8QSc5HEKylLDFGPAPLJkoqr3Z8l1pF16wVXEDfKoXXcDvuq2+Ty7YmsUgOqnjEpBQZLJzEYSLK5GmVq6/7ctrvqBXewaynTxLwaPDJ1Pza0yBAENKfoOEhG7lK1OPPV+A=;7:vgNM3wwRP01USf8tTvqOo5TrlAMLsdzCCS/dwHq4CeOaw0pP1Gpt4yfYRS2JcnxnwJgX329Id6UFJ5G2o1Bykv5QaTR1r6PpPoDEbiEmBjtLolbEc3jjr9u7KKR4zXk/FMu7HXyR4BbN1g5SYo4x253C5DHHoWk4gIinNCA4tCsvcSIO60aGUUeDwFIUzeG48iMUNpp1njxCjbHyKdwTC5w0iH/VaI/52STQXVZULJK45VSJo7B6KE9ziaMPVNHa SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2018 20:56:34.1173 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4dae2a30-6572-4fe0-9dea-08d627e06005 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4303 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that mxsfb has functional runtime_pm support we can enable power gating for the DISPLAY power domain on imx6sx. Since pci-imx doesn't support runtime power gating this is still always-on unless PCI is disabled/unused. But it's reasonable for an imx board to not have PCI. The current pd_pcie is actually only for PCIE_PHY, the PCIE ip block is actually inside the DISPLAY domain. This is handled by adding the pcie node in both power domains, using multi-pd support. Series is against linux-next. The last patch needs runtime PM in all drivers or it will cause hangs. This means Shawn should hold back on it until the PCI and mxsfb dependencies get merged (both might take a long time). So you can just review that patch and I will resend it later, perhaps in another cycle. Link to mxsfb thread: https://lkml.org/lkml/2018/9/26/1185 Leonard Crestez (3): soc: imx: gpc: Increase GPC_CLK_MAX to 7 PCI: imx: Add multi-pd support ARM: dts: imx6sx: Add DISPLAY power domain support arch/arm/boot/dts/imx6sx.dtsi | 19 ++++++++++- drivers/pci/controller/dwc/pci-imx6.c | 48 +++++++++++++++++++++++++++ drivers/soc/imx/gpc.c | 2 +- 3 files changed, 67 insertions(+), 2 deletions(-)