Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4571656ybi; Tue, 30 Jul 2019 04:27:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVKYPoASYj6dfum9AVmu5l4KYHH/1uHal27PF1qs5c8kuzG/5EQcjCiiQdbV/h2mNfisEU X-Received: by 2002:a17:90a:37ac:: with SMTP id v41mr111586196pjb.6.1564486072867; Tue, 30 Jul 2019 04:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564486072; cv=none; d=google.com; s=arc-20160816; b=Qfogz3/E/EPKwr9Cvr8S5JZwoa1p6ebB7hBLxVdQUzm1JAldhu8Tbt9nNVL9OwNL4F r5CZ/9sZZcNy5KNaNnuiW31/4utFHZimc7X7y07aRhhi2Et+l6l0l4yv1jToVa+jvD/y d3RswsbqJ3xbYz8E/ELG88dTvjZ5e6fHZfmt+EK37oa5aWe5rFxrbC6vzFEtj2iezBEO gGKdPVetPJ3f28t7f3XxbpKpNTocMeRkQjzRNgltv8F83UAYeObmyJXu8AAbdRN+mEax oQ858gjECzJonYQ+LuVlVhNlx6TikQNc/dMlciHwN0t3E+MWs8/oILZE7HI7lO/vKJ/i z0kw== 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=qGF+6eSQXRtQbvumLohj7Uy0QorVqNtq7LRVuh4ABMY=; b=IGf+DmLhhM7JleLmnJzMJ77O1B+E1QbiRmlb6NIpXOhO2gMf1W3t1Y180krk5oVwkN bzhsn/AKGW0Et+LsC1Kr1ZlK0NsJ5ahuGggvtEvxECK9UmK7vlyegD17rc51W2SEnJD9 EvAEAxEeSUdfDunDLJ6FHfQ145GkiKdZwI6MVYJaTIY8BG+tnnY6vJhjgvybEnvmalEq bATUm2uepGPYSTjDnQMQsv+Pfr9Broj1cMHHcjwtyCAFgR5PTzU+0mgj22tJOrY2fkmJ LZdalocm1BzWRRP2oUSJJOW5sQQBix4f5UjXXbnef4vR3t3R4GnUFm2wCug5J2qHjoMw If+w== 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 x6si28287008pjn.10.2019.07.30.04.27.38; Tue, 30 Jul 2019 04:27:52 -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 S1727590AbfG3Jpl (ORCPT + 99 others); Tue, 30 Jul 2019 05:45:41 -0400 Received: from inva020.nxp.com ([92.121.34.13]:33986 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731878AbfG3JpY (ORCPT ); Tue, 30 Jul 2019 05:45:24 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EDE141A0629; Tue, 30 Jul 2019 11:45:22 +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 E06551A062D; Tue, 30 Jul 2019 11:45:22 +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 7A71A204D6; Tue, 30 Jul 2019 11:45:22 +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 v4 3/4] dt-bindings: net: fsl: enetc: Add bindings for the central MDIO PCIe endpoint Date: Tue, 30 Jul 2019 12:45:18 +0300 Message-Id: <1564479919-18835-4-git-send-email-claudiu.manoil@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564479919-18835-1-git-send-email-claudiu.manoil@nxp.com> References: <1564479919-18835-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 .../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