From patchwork Tue Apr 6 09:04:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 12184549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22895C433B4 for ; Tue, 6 Apr 2021 09:00:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6AB4361284 for ; Tue, 6 Apr 2021 09:00:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6AB4361284 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=sQKpoors/xFUBry0m3amxWpflTQimVsfZh3pqIHiTUM=; b=XYEIm505j4lsHrwqF77lI3pOxJ Gh27eH08Iam7t27WGgvY1fhzMxFgW/8D0RdYPUwUBdg8pPTXsMr0bR/bNoPwIvzz3W546ndM64a5N oajL0fQlNCSVVZOh6/pNL7tzDy2YDTCFleVX0S1/VuZgZdD66N04hH3vtHLm1+Z92ZhUPjJkJnx1Y ouUxCmVWtl9j/1JE6RckfAqqXfyTxXa1g5kcBzj6IVyKCniSPvtS2JfmE18D5sotN/fTtoioezQxS mKxzXENfhtYeZf/aZMkV/dMsY+IFIKt43YXhAOG1pEY2+OhflQk79qC0H6Epk8F/BFdsNAbSd9E4Y K/ArHOOg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lThXf-001v5X-FL; Tue, 06 Apr 2021 08:58:35 +0000 Received: from mail-eopbgr70048.outbound.protection.outlook.com ([40.107.7.48] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lThXb-001v4E-Bq for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 08:58:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kMqYBe3enOVTE65wdqkGXkxXVThr7D6+//0Ncp8/FjbKP8wwNBD/meHvHIe0oezeUI+e3Kcq15PWNXpPusQSqU8EyWvp4Yim4oTRka6csSkmmAvfDpgAu7xPYa2WZpKsCWmVY9GSsP//yP93pGuNl3BAUHnV1n6AWCUIIlco+eTTRVjSADbtRaUx+BTbOfcW6TU/THIgdTxFYvNls3TSX7DerUT6C1jD6DLj7PpyPj2aP5oWIx9/SbPCQzkWyUa666ceUJWYjQ8Gl3TbIPDB2v/a9jvznehjf0qvjXsqEJe8oLS2Daiu0VoOwa2CMTMLeBJqOgZilQL24Q53MEyPZw== 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-SenderADCheck; bh=hmGwXOt7x6JOVfmZskL+T29VygRihfeYT/BA2pD6rPA=; b=Rop1rZEZao60Kq4Flne/fEpNPfweC8ZRNqfDgrSEE4nXTpEjs8gjTH7832YXg6MZ4+oSvvNfgFwA5ClAkkIEftdzgzCSpOlB61ciM5fJIwZWjbnwVjjZmy++He/KBdrk0+TYHBan0wD2tgL0tLkH31PnBqsxkGaA3fWAat+aZuknS+Eq9vRWCUQOhp4oN36TEM1lxjMmPnsbyefDOTveZ4XzPWlbp0IEjDYrlKWZmk2Yb80kDWj+SYXQP7g70OMpbG8OL40KXu4tnFHOI/TV5lh/NUGdOk/sWHbSd6HCXvfG5EDznWxh4r5owBC13515A35NZwXZJmLDMRgVEv5k0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hmGwXOt7x6JOVfmZskL+T29VygRihfeYT/BA2pD6rPA=; b=egNZ8BNfh/a2vzg9mXzG0654r48xJdPc1uBxEZZDqdDspDADIepfxrRO46RdPvt1ljYZn46ZptcGaekyW2U/oIzbSEo4A5NPuEWsgMpwio97GshfkZLbPvB2A3xWS4lTVZUdebh4YlooqLbnoMDmzAHgAZP44qw5yO61Sl6iOUA= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) by HE1PR04MB3083.eurprd04.prod.outlook.com (2603:10a6:7:21::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Tue, 6 Apr 2021 08:58:25 +0000 Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::5df8:1a69:47c3:44fc]) by HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::5df8:1a69:47c3:44fc%3]) with mapi id 15.20.3999.032; Tue, 6 Apr 2021 08:58:24 +0000 From: Zhiqiang Hou To: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lorenzo.pieralisi@arm.com, robh+dt@kernel.org, bhelgaas@google.com, shawnguo@kernel.org, leoyang.li@nxp.com, gustavo.pimentel@synopsys.com Cc: minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, Hou Zhiqiang Subject: [PATCHv4 0/6] PCI: layerscape: Add power management support Date: Tue, 6 Apr 2021 17:04:43 +0800 Message-Id: <20210406090449.36352-1-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.73] X-ClientProxiedBy: HK2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:202:2e::13) To HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.73) by HK2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:202:2e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Tue, 6 Apr 2021 08:58:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4635149e-9e82-48cd-43f7-08d8f8da22bc X-MS-TrafficTypeDiagnostic: HE1PR04MB3083: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Nlsvse8u6Kk769NqMEWBNPvWovC5vRdEcCcB5dx6QAEOs5pFprGrLLQKFLAMi+l1SZyx2YqjoAmTJh4MsfvmWt77XoDbTHYGpQMuXy+qlyuIIRd1KovbzM2CcN6Th9jP/9pu/yME6l3g+v9NKXxx5Dx4P2sGNk5aD1IHYtn9CKFkw/NiX5N/7bYK4uQvdpeI8izaP8EJI45xP97xn/tk+iRIxvXxZPK9SdViczFB9ztmVLR8gSRjWzSdUU4YskfdxUqqjUNb1nS6FoXndgPFlV7+OjXK3EA9C2fNhNbAME36UWj0CmFveviP3K9vhrQrNpDYqua6TPqxZGg1xAdoRXjxTj6aj18izq/uqkb2+eVVg6GyY2VQt4Zlv238fUPSLCU/RuErX8Dkkp6ReMlRp94xcgV4C06Z81CIkZ0MCyYH9D+qNLQFo561m3VZxL4YM4ccwJUN1dnn4ZnAHtJs6J8ftX33UyPbY7MBxiReRMdIrP01NQaTTPxBYvJ//wRgGAYcKmHdlFqFz96wIU6PplRYG6M/rOdtThu0esi4HQXkdcEf5QBXs5kGL1Czz+8aukVZVCdyNtZD0felShhOfF45JkFZgXATWnE7yCrjeKGLlU/un7alnCQe1InnHyhCsIw5uZn6lt25+WbXbjn7JiXrKOaZZnLjkwxNXd+zjKw6QrFyf4xkMv7SAn2gFaeAv3xUJrrwOYTpH45pWblggvzEb5g/swxKd37osQXEQtOu5coKokWSfnUvXHXBajAC X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3371.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(376002)(39860400002)(346002)(136003)(66476007)(66556008)(478600001)(956004)(36756003)(66946007)(8936002)(4744005)(921005)(52116002)(16526019)(38350700001)(6512007)(5660300002)(6486002)(8676002)(86362001)(6506007)(316002)(1076003)(2906002)(6666004)(69590400012)(186003)(83380400001)(2616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8ns2xGIBnhn7/8bip/wUkykuHxQEiPCI4tkOoSVu5TZgOwCXNaUM/Pjq4VDWdlmFwb0VF7nq7K3h6gj57tHTFKlUqDVeB8RVXuNrfGo71DnPHwkPGF08uYcWnl2J79xFjrDlxDUByGQnkK4IvGNTozEJD7RagryUGBPpAUAOsoJ3TLSFKsK45UychECs5efAJtXdK0VtqHUX88qoKyJecsl87xWD0p90RzhzZujLIRu2Lek5pwk6HNMCtTdir+mJd4TdbeHEA81qvKS6yyxRuwmZsGbt4CnhEN56lVMqZ6mYNWO7dc+vGW9iCvHjFsC8vdT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4635149e-9e82-48cd-43f7-08d8f8da22bc X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2021 08:58:24.7044 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mLNNJuk79y2MilKNMe2ReMsT8pmfI+C5dgntybXLU9LZuSM4tRlcYkS18sCPUkcndR5l59LUGWBXuHLPwz2M5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3083 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_095831_530115_FCA6581B X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hou Zhiqiang This patch series is to add PCIe power management support for NXP Layerscape platforms. Hou Zhiqiang (6): PCI: layerscape: Change to use the DWC common link-up check function dt-bindings: pci: layerscape-pci: Add a optional property big-endian arm64: dts: layerscape: Add big-endian property for PCIe nodes dt-bindings: pci: layerscape-pci: Update the description of SCFG property arm64: dts: ls1043a: Add SCFG phandle for PCIe nodes PCI: layerscape: Add power management support .../bindings/pci/layerscape-pci.txt | 6 +- .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 + .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 + drivers/pci/controller/dwc/pci-layerscape.c | 450 ++++++++++++++---- drivers/pci/controller/dwc/pcie-designware.h | 1 + 6 files changed, 370 insertions(+), 97 deletions(-)