Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3226318ybi; Mon, 29 Jul 2019 03:05:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBYFTLsIsn818rC2gF8RqFhH3rE+FstuBzPDRpvBtZV1cZZS9FkN5EasVY/RL66SzhaFLw X-Received: by 2002:a63:505a:: with SMTP id q26mr100782880pgl.18.1564394742617; Mon, 29 Jul 2019 03:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564394742; cv=none; d=google.com; s=arc-20160816; b=q4XhqCTTT/w4FrmtQXwdWMWN85NLaJ+DhDDrEbQDoC9+RddpaQ6MbS0s+E90wWuWYj UQH5XaiMg00uBwTMDFSAECaU/5PKP1B4uTFi0xL+aSMTueKR6TqvBNtmCbJL0uYVTs5w /n4yTOLI1rqaegb3Ztdpbazr1Kez05l2ifRrfUNBzZIeHKk5gjuswVrnSPElEYfNObwd GfGwfJzuRIsaS0SqrD2f+UpXLiavNNpuO/flOmWRb+LN+uedIL/a1dlN/YApeud+c9Kg iBDU6o+wvle83d3hadEiKq3fyU33KQy1c/HkpRtN/uxQ1RP64GMHKJi/RNSoOvh9DUqz ksOA== 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=4K9Ybb+G+r2NAUMmHTPFSEYKP6y+SZhLW2pdjqEZGuU=; b=EOrGoQslg1kKlPzqv8KKdjLDOHN+cpCaF77TJ/Has2WTXRLfx5N8TuNuN9qpl7LvGl hd7OtWgvXhWwXaYoLhBF2rZFVnyD6Ykn389Mzy2opCQVYW4ycJCFx+lB0uAx85iKRwtG Vfb7jS8AQTP6Xph+SuFFJTjUyzbgJdh7wY+UiKmUrcgmRXrXcngeUkwQGXbWFfbKgnLa cGPwN2/VmZ0V22MGQnCH/0/JP7+uZfyCUmIR7o51zh0TQMobDjVDp3OkRnzHkxk0loaT Grl7NioYPktPq5F8eBc3CKYuu5L1p9QrKuy0G+4ltR+vshqXJGQA61FieTEPx7+sH7h2 6Sow== 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 cu6si24578674pjb.102.2019.07.29.03.05.26; Mon, 29 Jul 2019 03:05:42 -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 S1728277AbfG2KEO (ORCPT + 99 others); Mon, 29 Jul 2019 06:04:14 -0400 Received: from inva020.nxp.com ([92.121.34.13]:48310 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728176AbfG2KDw (ORCPT ); Mon, 29 Jul 2019 06:03:52 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id AE8461A1473; Mon, 29 Jul 2019 12:03:50 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A17241A147E; Mon, 29 Jul 2019 12:03:50 +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 3B633205F3; Mon, 29 Jul 2019 12:03:50 +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 v3 3/4] dt-bindings: net: fsl: enetc: Add bindings for the central MDIO PCIe endpoint Date: Mon, 29 Jul 2019 13:03:46 +0300 Message-Id: <1564394627-3810-4-git-send-email-claudiu.manoil@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564394627-3810-1-git-send-email-claudiu.manoil@nxp.com> References: <1564394627-3810-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 --- v1 - none v2 - none v3 - fixed spelling (commit message mostly) .../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