From patchwork Wed Mar 13 09:15:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 10850853 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 AF88A1390 for ; Wed, 13 Mar 2019 10:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92178299EF for ; Wed, 13 Mar 2019 10:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82D2029AA4; Wed, 13 Mar 2019 10:03:33 +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=unavailable 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 22B8A299EF for ; Wed, 13 Mar 2019 10:03:33 +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=zLSzLnRXkhB4dJ0utYnkmbCiZMR+EUokoJdfvMVS1Pk=; b=kIriDYAsiu1tq4 2/kY0gW/mLOT7BJwnUXX99z6QikHzpOsOTdhcajfau4e+1Wf11uBmJprYpyVMLYhUu/mHLa6jHV7c YLh0DtM2T5brlAJuf1UIWad6a7ebJ833+s0XfcX23vmUSSfyp4AxfW+JBok5Sid3n/wbQfbv0GMHo LgaHBMPCBXlCrC3gxpVXAt1cZ5K3ogRewQx4UzANch6HHMcbV9Ip16hkRg9Rw1Lvyiq+2ydH194u/ ekiR159t3j/37rFnLtEIGLuwuyrYnT1J/m8yMrupeSlUgXD8bMmw5Wsfryd1YuIijifVuNDxVj64O X0ktdLZOL1QcBJqkkfgA==; 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 1h40jT-0004J2-PQ; Wed, 13 Mar 2019 10:03:31 +0000 Received: from mail-eopbgr80042.outbound.protection.outlook.com ([40.107.8.42] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h40dU-0001el-Us for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2019 09:57:33 +0000 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=+ACY8UKxThHLtfB2LecMNjUfa6IcTVkrwTsBY81hlqk=; b=dQbx5G+9tvFAXyv4rYZN0ntk3KGL2SHhURwMlT0OhO4uMcm/tkLcnrc7kSLvo9q8SKPcY0l1H8bAXTuGIb9uWrDVlU57AZqX4kRiEKRc8KQQaXHTr3sHVEqN1Ob1G17t48dRRhhDIBnS6L72APKMDMH+h4TQLO2pVM2n7gjL+7A= Received: from AM0PR0402MB3570.eurprd04.prod.outlook.com (52.133.46.11) by AM0PR0402MB3732.eurprd04.prod.outlook.com (52.133.38.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Wed, 13 Mar 2019 09:15:28 +0000 Received: from AM0PR0402MB3570.eurprd04.prod.outlook.com ([fe80::c9e:21a8:3eae:bdeb]) by AM0PR0402MB3570.eurprd04.prod.outlook.com ([fe80::c9e:21a8:3eae:bdeb%3]) with mapi id 15.20.1709.011; Wed, 13 Mar 2019 09:15:28 +0000 From: Richard Zhu To: "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "l.stach@pengutronix.de" , "andrew.smirnov@gmail.com" Subject: [RFC 1/2] dt-bindings: imx6q-pcie: Add support for i.MX8QM/QXP PCIe Thread-Topic: [RFC 1/2] dt-bindings: imx6q-pcie: Add support for i.MX8QM/QXP PCIe Thread-Index: AQHU2X1M51QS3U2KCE+Hs+Chb2Dsbg== Date: Wed, 13 Mar 2019 09:15:28 +0000 Message-ID: <1552467452-538-1-git-send-email-hongxing.zhu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR0302CA0004.apcprd03.prod.outlook.com (2603:1096:202::14) To AM0PR0402MB3570.eurprd04.prod.outlook.com (2603:10a6:208:1c::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=hongxing.zhu@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8756f89c-6403-442a-08f8-08d6a7946edc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR0402MB3732; x-ms-traffictypediagnostic: AM0PR0402MB3732: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR0402MB3732; 23:cChCSknjkp9p9LrVYjyIbNo9U1fZIq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QpPMFz2x91V?= =?iso-8859-1?q?FiX3AfmbOOLqAa3+MbfHuKjjCGWCbCRN/6CNe2lbrEoCloVPhRLSChEDkTrG?= =?iso-8859-1?q?35arpuVXs7e8Oqv7bm9CowMwlBAdVZQd11XASwluEMLY5D9HrDUpwypPGzoZ?= =?iso-8859-1?q?01SCvj2sfxSQ+XSzbr8AI+BwYym4WVdRp3ROKRCfD2Dz8WAg3j4/J4mdajBq?= =?iso-8859-1?q?r07+lFbMV3ba/WBN6U1LtTm/fJ1gtrImd5SWaStetPGq7A0ogReSMmn4+vB0?= =?iso-8859-1?q?BuxPDjfkYSL6KsfymiTLXB6jySym9C/+YQ2vQvTt0rTjOuolXIGDOeQaSH8V?= =?iso-8859-1?q?tx8dVNimYnbIUJRPkQkqXX?= x-microsoft-antispam-prvs: x-forefront-prvs: 09752BC779 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(39860400002)(376002)(366004)(346002)(199004)(189003)(5660300002)(52116002)(102836004)(110136005)(4326008)(81166006)(81156014)(2201001)(8936002)(316002)(54906003)(86362001)(53936002)(25786009)(6512007)(68736007)(6506007)(2501003)(3846002)(14454004)(6116002)(8676002)(386003)(478600001)(99286004)(97736004)(2616005)(26005)(6436002)(186003)(71190400001)(476003)(6486002)(71200400001)(2906002)(106356001)(14444005)(305945005)(36756003)(256004)(7736002)(66066001)(105586002)(486006)(50226002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3732; H:AM0PR0402MB3570.eurprd04.prod.outlook.com; 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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: X8FXy6o6Uq4IQIzORYkaE4KiYLOggAwt4JySoVpoLZGBniZ7D9ndklH0KbyYjA7TmNAy6AIktGxchteLmMvcdDupim3jvlY8gP3rUk9PyNls1z1HpVNyhkHt1E7fqJHxgX50iunouuKxFu4z6JuMgg7asu9o+X9TtGYCzXokSEjscs+OioGoSEtSsXMqbsECQcWRT3PcTtAvDTt/MjyWNJgMumK0Eck78o+8VU2xsKwUaMHdXOmUgowDVWU7WoeCuWDurfz8I73YPQb1H7fcDYHXk9jZ9pRH0IXIP/xy047d8FXcSMXng8GbNY/nIbC8jDr1O4STcwpfPopNB0eN0IUwjwAotL7RNettazrPHE9NabPifiFRiRQBxLQD0a/PmED8VJh8gawwCskkfHaYHxR57WQh4F0cVnpazO2GLio= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8756f89c-6403-442a-08f8-08d6a7946edc X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2019 09:15:28.1549 (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-Transport-CrossTenantHeadersStamped: AM0PR0402MB3732 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190313_025721_748140_E8492D58 X-CRM114-Status: GOOD ( 12.89 ) 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: "linux-pci@vger.kernel.org" , Richard Zhu , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" 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 codes needed to support i.MX8QM/QXP PCIe. - HSIO(High Speed IO) subsystem is new defined on i.MX8QM/QXP. The PCIe and SATA modules are contained in the HSIO subsystem. There are two PCIe, one SATA controllers and three mixed lane PHYs on i.MX8QM. There are three use cases of the HSIO subsystem on i.MX8QM. 1. PCIea 2 lanes and one SATA AHCI port. 2. PCIea 1 lane, PCIeb 1 lane and one SATA AHCI port. 3. PCIea 2 lanes, PCIeb 1 lane. i.MX8QXP only has PCIeb controller and one lane PHY. Use the hsio-cfg property to specify the different modes. - The HSIO address map as viewed from system level is as shown below. address [31:24] Local address Target Address Size 5F 0 HSIO 16MB 60-6F 40-4F HSIO 256MB 70-7F 80-8F HSIO 256MB The property local-addr is required to specify it. - Both external OSC and internal PLL can be used as PCIe reference clock, use the ext_osc property to distinguish them. - clock request GPIO for controlling the PCI reference clock request signal. And should be configure OD when L1SS maybe enabled later. - One more power domain HSIO_GPIO and clock PCIE_PER are required by i.MX8QM/QXP PCIe. Add these specific properties to enable i.MX8QM/QXP PCIe. Signed-off-by: Richard Zhu --- .../devicetree/bindings/pci/fsl,imx6q-pcie.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt index a7f5f5a..f7586c9 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt @@ -10,6 +10,8 @@ Required properties: - "fsl,imx6qp-pcie" - "fsl,imx7d-pcie" - "fsl,imx8mq-pcie" + - "fsl,imx8qm-pcie" + - "fsl,imx8qxp-pcie" - reg: base address and length of the PCIe controller - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property. @@ -38,6 +40,10 @@ Optional properties: The regulator will be enabled when initializing the PCIe host and disabled either as part of the init process or when shutting down the host. +- clkreq-gpio: Should specify the GPIO for controlling the PCI reference clock + request signal. +- ext_osc: External OSC is used as PCIe reference clock or not. 0: Internal + PLL. 1: External OSC. Additional required properties for imx6sx-pcie: - clock names: Must include the following additional entries: @@ -60,6 +66,21 @@ Additional required properties for imx8mq-pcie: - clock-names: Must include the following additional entries: - "pcie_aux" +Additional required properties for imx8qm/qxp pcie: +- power-domains: Must be set to a phandle pointing to PCIE, PCIE_PHY power and + HSIO_GPIO domains +- power-domain-names: Must be "pcie", "pcie_phy", "hsio_gpio" +- clock-names: Must include the following additional entries: + - "pcie_per" +- hsio-cfg: hsio configration mode when the pcie node is supported. + 1: pciea 2 lanes and one sata ahci port. + 2: pciea 1 lane, pcieb 1 lane and one sata ahci port. + 3: pciea 2 lanes, pcieb 1 lane. +- local-addr: the local address used in hsio module on i.MX8QM/QXP. + Example: + hsio-cfg = <2>; + local-addr = <0x80000000>; + Example: pcie@01000000 {