Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7208113ybi; Thu, 1 Aug 2019 04:54:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVIFgzg9s1xyDkylwYRdli4MI/F/Fs8WSX5toWaOzgH4VTan4H+3bCpvxgBt15D4q9Mpmw X-Received: by 2002:a17:902:4623:: with SMTP id o32mr123496326pld.112.1564660469232; Thu, 01 Aug 2019 04:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564660469; cv=none; d=google.com; s=arc-20160816; b=k77N+sLAA0gv1z9xQl774/FTvrR/1L24FIs3A6Uoo8tyl60AQkwGcWwzngYHIzX1SV CZQbcpP6WYTVV9HHaSh4sWnobEGx7pAe/WCziWH7NFYbKnkB0shUgm2rDcBtA75/Gf5C 7W3ZPHN35g6u0iUDDkCVbbi9W/E0MH8P6yowgsadAw88JPW/mQ+2tn+Nm48kBBjUGMmf J1q37HfnMeJxxnUn6kzXI/59EfmZn0uG52vCXpcUohtFFr+TC33Xq8YjGT8E2iQHIlOV i7XpJ6WPiyFkDSPMW10rl588iRvwSU6bBKiQ6EjBspGsocOqwkVXyJmvVi2ah4whNulr qx3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=eDpgH0M0v0xc18+j1q9SosLcnSSW+fE66F8PjrB7WXU=; b=OtFNSCb0wefrX5/x/cEUCoCPAnaJyeFCDSQkwGT7Sr/1vd605X72vZ1wxfb740ce4q oW8lrn9xW00R56FTSgmJAvRZLq6AwASNYWHdhkbYbZ5il3lsBXINFlSgTkxEuF3uIuNd nOaQbZQbr4zcQiJiwx0p2L+p8PA/VAwUAEtf8E0IHgKWc4kni05qDBqCsxo3CXMehfrT kD84kPc/Iac0L3WdHrJdkIvrub7+DskLMZu6ANuX51vWsd735L56JWvpBZR7r1kZZVJI squzMKuSB7T+sS59KckqMn9BuR07wzOjAAdTGdQWkyZPJ8PXvT0EmIPlbMcbU0wBxkNF swAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23si20143558pfo.186.2019.08.01.04.54.14; Thu, 01 Aug 2019 04:54:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731151AbfHALxB (ORCPT + 99 others); Thu, 1 Aug 2019 07:53:01 -0400 Received: from inva021.nxp.com ([92.121.34.21]:53776 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730968AbfHALw6 (ORCPT ); Thu, 1 Aug 2019 07:52:58 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 7683320023B; Thu, 1 Aug 2019 13:52:56 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 69B8B200099; Thu, 1 Aug 2019 13:52:56 +0200 (CEST) Received: from fsr-ub1664-016.ea.freescale.net (fsr-ub1664-016.ea.freescale.net [10.171.71.216]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 03F7B205E3; Thu, 1 Aug 2019 13:52:55 +0200 (CEST) From: Claudiu Manoil To: "David S . Miller" Cc: andrew@lunn.ch, Rob Herring , Li Yang , alexandru.marginean@nxp.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v5 4/5] dt-bindings: net: fsl: enetc: Add bindings for the central MDIO PCIe endpoint Date: Thu, 1 Aug 2019 14:52:52 +0300 Message-Id: <1564660373-4607-5-git-send-email-claudiu.manoil@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564660373-4607-1-git-send-email-claudiu.manoil@nxp.com> References: <1564660373-4607-1-git-send-email-claudiu.manoil@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The on-chip PCIe root complex that integrates the ENETC ethernet controllers also integrates a PCIe endpoint for the MDIO controller providing for centralized control of the ENETC mdio bus. Add bindings for this "central" MDIO Integrated PCIe Endpoint. Signed-off-by: Claudiu Manoil Reviewed-by: Andrew Lunn --- v1 - none v2 - none v3 - fixed spelling (commit message mostly) v4 - none v4 - none .../devicetree/bindings/net/fsl-enetc.txt | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/fsl-enetc.txt b/Documentation/devicetree/bindings/net/fsl-enetc.txt index 25fc687419db..b7034ccbc1bd 100644 --- a/Documentation/devicetree/bindings/net/fsl-enetc.txt +++ b/Documentation/devicetree/bindings/net/fsl-enetc.txt @@ -11,7 +11,9 @@ Required properties: to parent node bindings. - compatible : Should be "fsl,enetc". -1) The ENETC external port is connected to a MDIO configurable phy: +1. The ENETC external port is connected to a MDIO configurable phy + +1.1. Using the local ENETC Port MDIO interface In this case, the ENETC node should include a "mdio" sub-node that in turn should contain the "ethernet-phy" node describing the @@ -47,8 +49,42 @@ Example: }; }; -2) The ENETC port is an internal port or has a fixed-link external -connection: +1.2. Using the central MDIO PCIe endpoint device + +In this case, the mdio node should be defined as another PCIe +endpoint node, at the same level with the ENETC port nodes. + +Required properties: + +- reg : Specifies PCIe Device Number and Function + Number of the ENETC endpoint device, according + to parent node bindings. +- compatible : Should be "fsl,enetc-mdio". + +The remaining required mdio bus properties are standard, their bindings +already defined in Documentation/devicetree/bindings/net/mdio.txt. + +Example: + + ethernet@0,0 { + compatible = "fsl,enetc"; + reg = <0x000000 0 0 0 0>; + phy-handle = <&sgmii_phy0>; + phy-connection-type = "sgmii"; + }; + + mdio@0,3 { + compatible = "fsl,enetc-mdio"; + reg = <0x000300 0 0 0 0>; + #address-cells = <1>; + #size-cells = <0>; + sgmii_phy0: ethernet-phy@2 { + reg = <0x2>; + }; + }; + +2. The ENETC port is an internal port or has a fixed-link external +connection In this case, the ENETC port node defines a fixed link connection, as specified by Documentation/devicetree/bindings/net/fixed-link.txt. -- 2.17.1