From patchwork Thu Jul 21 06:59:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 9241009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 04363602F0 for ; Thu, 21 Jul 2016 07:04:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE93727BFC for ; Thu, 21 Jul 2016 07:04:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D329727D85; Thu, 21 Jul 2016 07:04:22 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8003527BFC for ; Thu, 21 Jul 2016 07:04:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bQ80E-0001qX-Gx; Thu, 21 Jul 2016 07:02:38 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bQ7xI-000712-10 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2016 06:59:37 +0000 Received: by mail-pa0-x22b.google.com with SMTP id pp5so26118923pac.3 for ; Wed, 20 Jul 2016 23:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QN+kwyDX32c64hdpE2e/1SAiPQW5DEEPpxBHESYuLns=; b=mxl4ApS8850esUknUSbUBH466ep+6yPBV9Z9BT+zmWSeDRe8c4VHP+4CqkQMTl2EUz eAoQvSOngim8loXDi9h4vVnbInstuAjTtHvC6NrH4BQjG6Sjd/w5B/PhDqFPsvVGeczS DmnmddYi5nMv5g+Qeu+xfSr5IsPG0dJcrZFtQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QN+kwyDX32c64hdpE2e/1SAiPQW5DEEPpxBHESYuLns=; b=ftf1wT6g8dEjqpcKmMdjTXFLJHcdO5GPfUA48yD3voDtdi08qCxtZ2ZL2u7sHWhEGe +vNTC8+GB9Ny4Xz7mjy3SUBbsF3VZpAgHvtsIiy0+vLPWDJ/p4lxKkxAEPQUDYHbYsqy j0pRNUo5TMnh95acPcYpsxK6jDRkjYW5YDOxsBO+Rlzhx5eucOI317JPDI0HYwGWvxKo jvqCkT1ii77jHP8vr2rf0BIFxv+uozww5cxRDozplkMq/vBUnBtJVbbXstKS/vwmDBiZ 0sn0pnDghVxUpCbLANyEhqcfgSgopGbcyAUdmWQ/b1pGygQBlhHf3DstK37Ha8gwY3xL Qe4A== X-Gm-Message-State: ALyK8tLI2Rk/ETrhRVTGyBdn9QwsRIW0WZoILqwG4aqHGMA3q4X5Gk4soKGPj5WL3yrbCLFK X-Received: by 10.66.74.103 with SMTP id s7mr15450181pav.1.1469084357441; Wed, 20 Jul 2016 23:59:17 -0700 (PDT) Received: from isubrama-dev.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id yo10sm9278188pab.4.2016.07.20.23.59.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jul 2016 23:59:16 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 11/12] Documentation: dtb: xgene: Add MDIO node Date: Wed, 20 Jul 2016 23:59:29 -0700 Message-Id: <1469084370-16781-12-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469084370-16781-1-git-send-email-isubramanian@apm.com> References: <1469084370-16781-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160720_235936_297454_2827E06B X-CRM114-Status: GOOD ( 12.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patches@apm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, Iyappan Subramanian MIME-Version: 1.0 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 Signed-off-by: Iyappan Subramanian Tested-by: Fushen Chen Tested-by: Toan Le --- .../devicetree/bindings/net/apm-xgene-mdio.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/apm-xgene-mdio.txt diff --git a/Documentation/devicetree/bindings/net/apm-xgene-mdio.txt b/Documentation/devicetree/bindings/net/apm-xgene-mdio.txt new file mode 100644 index 0000000..78722d7 --- /dev/null +++ b/Documentation/devicetree/bindings/net/apm-xgene-mdio.txt @@ -0,0 +1,37 @@ +APM X-Gene SoC MDIO node + +MDIO node is defined to describe on-chip MDIO controller. + +Required properties: + - compatible: Must be "apm,xgene-mdio-rgmii" or "apm,xgene-mdio-xfi" + - #address-cells: Must be <1>. + - #size-cells: Must be <0>. + - reg: Address and length of the register set + - clocks: Reference to the clock entry + +For the phys on the mdio bus, there must be a node with the following fields: + - compatible: PHY identifier. Please refer ./phy.txt for the format. + - reg: The ID number for the phy. + +Example: + + mdio: mdio@17020000 { + compatible = "apm,xgene-mdio-rgmii"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x17020000 0x0 0xd100>; + clocks = <&menetclk 0>; + }; + + /* Board-specific peripheral configurations */ + &mdio { + menetphy: phy@3 { + reg = <0x3>; + }; + sgenet0phy: phy@4 { + reg = <0x4>; + }; + sgenet1phy: phy@5 { + reg = <0x5>; + }; + };