From patchwork Tue May 22 09:08:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Douglas X-Patchwork-Id: 918090 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=cadence.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=cadence.com header.i=@cadence.com header.b="iKeYixGZ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40qqYf49QMz9s5w for ; Tue, 22 May 2018 19:08:06 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751287AbeEVJID (ORCPT ); Tue, 22 May 2018 05:08:03 -0400 Received: from mail-sn1nam01on0065.outbound.protection.outlook.com ([104.47.32.65]:63072 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751002AbeEVJIC (ORCPT ); Tue, 22 May 2018 05:08:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ne7ozN9rdMMNuFJ+zT+IfYcWPCNVgg/DAirOzYC1uOo=; b=iKeYixGZAz5MjVAFTZCEgBp37qaUnh7MfQGge8v8x2uXs4Na27FY2uWX4PQkHwcorEGfeYJ2CblfG4TjK1GLYecnUEy0+sYTyJJu3gjfHPO4PAxcE454bL04jYPWPjKWEw9572KNlPq/iWAKNvziQTkUTspw2rO2R6dfzh+cVfM= Received: from SN6PR07MB4512.namprd07.prod.outlook.com (52.135.94.11) by SN6PR07MB4863.namprd07.prod.outlook.com (52.135.75.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.776.11; Tue, 22 May 2018 09:08:01 +0000 Received: from SN6PR07MB4512.namprd07.prod.outlook.com ([fe80::b8bd:affc:423a:3607]) by SN6PR07MB4512.namprd07.prod.outlook.com ([fe80::b8bd:affc:423a:3607%13]) with mapi id 15.20.0776.015; Tue, 22 May 2018 09:08:01 +0000 From: Alan Douglas To: "bhelgaas@google.com" , "kishon@ti.com" , "lorenzo.pieralisi@arm.com" , "linux-pci@vger.kernel.org" CC: "cyrille.pitchen@free-electrons.com" , "linux-pci@vger.kernel.org" , "devicetree@vger.kernel.org" , "nsekhar@ti.com" Subject: [PATCH 3/4] dt-bindings: PCI: cadence: Add DT bindings for optional PHYs Thread-Topic: [PATCH 3/4] dt-bindings: PCI: cadence: Add DT bindings for optional PHYs Thread-Index: AdPxrF80M7UTNw7QSsG+MRf0oNkJdA== Date: Tue, 22 May 2018 09:08:01 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYWRvdWdsYXNcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5ZTM1Ylxtc2dzXG1zZy1hNGEwMGE4Yi01ZDlmLTExZTgtODZlNi1hNDRjYzhlYzVlY2RcYW1lLXRlc3RcYTRhMDBhOGQtNWQ5Zi0xMWU4LTg2ZTYtYTQ0Y2M4ZWM1ZWNkYm9keS50eHQiIHN6PSIxOTM4IiB0PSIxMzE3MTQ1MzY4ODgwOTE1MTkiIGg9ImF4QTM0cGhHNEhtQ0FNTjZ2dTEyMlJHZWJ1UT0iIGlkPSIiIGJsPSIwIiBibz0iMSIvPjwvbWV0YT4= authentication-results: spf=none (sender IP is ) smtp.mailfrom=adouglas@cadence.com; x-originating-ip: [185.217.253.59] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; SN6PR07MB4863; 7:Ii2KGH+GMVwc6rNHlMYChsDO17TzzcL2opEn6pTahuI9RTHqBjqZtDDx7jGEFxIkmhCzGYDJx2Llmgd9EZh7RnrYINeYNnTvA47Q8xeGHTIOabQz1ve8CAkg4YI1vF0PePfkhWFUsV+dg9fYrH4ICtBFIAbHpWKLuopBtr7+6SsRqztFd1n8jm9DOmFUMVy69hlKrP437K0+3CpZ2kb5L7xkVm5+a5UfH1qa/ZeMOZeZMxSnC7pCF7dWMYFBRi8r; 20:Uw7fTwxl+ue6459yCYq7hLkk4zxjnjaDmmeym8NaIc5QccoXv2HiEQcDYZduRFAI5zs69g9S+SeS25pUA9oqr2CHXMrU22h6GsTrAy9kxwEDp0fzs+0D3CJhR3RrWTBjmLZCjJsfZC/itHkyShM3M0IxcAO4/I5PP+uRe2pk2rW62kOcsq7lUwEXcE8A37UaK0tq0najkIHwnnrdB2hHAB4YrL+wpzrMAANHt2HTbsaz9HGUT0I57X5mVLf0taFG x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4863; x-ms-traffictypediagnostic: SN6PR07MB4863: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(72806322054110); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:SN6PR07MB4863; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4863; x-forefront-prvs: 0680FADD48 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(366004)(346002)(376002)(39380400002)(39860400002)(396003)(189003)(36092001)(199004)(305945005)(68736007)(3846002)(6116002)(186003)(14454004)(33656002)(7696005)(59450400001)(55016002)(26005)(9686003)(99286004)(6506007)(102836004)(97736004)(53936002)(7736002)(25786009)(66066001)(486006)(74316002)(81166006)(54906003)(110136005)(478600001)(8676002)(8936002)(81156014)(3280700002)(2906002)(316002)(3660700001)(106356001)(105586002)(4326008)(2900100001)(2201001)(5660300001)(575784001)(5250100002)(6436002)(2501003)(86362001)(476003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4863; H:SN6PR07MB4512.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cadence.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: I7ZNhOB8WjZ45PNM9AbLvqOvLwgRkaTLvWnlx0RM+HAwCShewqdaVxIcvQABnC4GPJhdO3i+uXt0YeNpy83RSfWNUt+ut8JvDNJ3FfzsjwjFopTTsR9e7pOx1m5lDIaGd3EF3HOxWZrQNI18U3HSCmUo4P6hjH9qxMj5oMgGLSTIik1nUwkOFLXla6LK/O9H15ggs6xfLjdrxieHjHXNYA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 68b4a4dc-8b0e-46a0-7ada-08d5bfc3851e X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68b4a4dc-8b0e-46a0-7ada-08d5bfc3851e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2018 09:08:01.4438 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4863 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Alan Douglas Update DT documentation to include optional PHYs for cadence PCIe host and endpoint controllers. Signed-off-by: Alan Douglas --- Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.txt | 4 ++++ Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.txt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.txt b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.txt index 9a305237..e40c635 100644 --- a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.txt +++ b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.txt @@ -9,6 +9,8 @@ Required properties: Optional properties: - max-functions: Maximum number of functions that can be configured (default 1). +- phys: From PHY bindings: List of Generic PHY phandles. +- phy-names: List of names to identify the PHY. Example: @@ -19,4 +21,6 @@ pcie@fc000000 { reg-names = "reg", "mem"; cdns,max-outbound-regions = <16>; max-functions = /bits/ 8 <8>; + phys = <&ep_phy0 &ep_phy1>; + phy-names = "pcie-lane0","pcie-lane1"; }; diff --git a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.txt b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.txt index 20a33f3..c0ca4c1 100644 --- a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.txt +++ b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.txt @@ -24,6 +24,8 @@ Optional properties: translations (default 32) - vendor-id: The PCI vendor ID (16 bits, default is design dependent) - device-id: The PCI device ID (16 bits, default is design dependent) +- phys: From PHY bindings: List of Generic PHY phandles. +- phy-names: List of names to identify the PHY. Example: