From patchwork Thu Jul 7 00:35:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 9217479 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 41E65607D9 for ; Thu, 7 Jul 2016 00:38:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32F2D28590 for ; Thu, 7 Jul 2016 00:38:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20F182858D; Thu, 7 Jul 2016 00:38:45 +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 8AA172858D for ; Thu, 7 Jul 2016 00:38:44 +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 1bKxJc-0001QG-Ci; Thu, 07 Jul 2016 00:37:16 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKxIH-0008GZ-3M for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2016 00:35:54 +0000 Received: by mail-pf0-x230.google.com with SMTP id h14so887745pfe.1 for ; Wed, 06 Jul 2016 17:35:32 -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=/Cz2Q1D/ZUjdLYIVjwOeYo2pTMpVMVTeMBG/dsnZH5U=; b=Tt7ejIa094Rj1SqvNzZEIIUEEqkVOsWndwwEcrtYijYrmIeuYeH/ZsOG7L5DE9bb45 96PfN/eFIFMbR3OL3j5E0JRWsSWQvhD5P+dPu6jy3FnTIR+27jPYCbHlP3EU/k8X+f9Y YolFBd+2POl7gNqwVqRdHoD7L2W0T/fDHR+YY= 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=/Cz2Q1D/ZUjdLYIVjwOeYo2pTMpVMVTeMBG/dsnZH5U=; b=ED5t7d/ySNspux6V635Ni5iB0+Z+3PO6SuE8ZquDagFV62w8p71N6s3r4kQnMJOGKq N4HXVf+T1dOd/wIe7Bc+NFOqFiXRsa8vp9LuPVozD2UAYnbqFkrmvtCC6MvFMIO8Uo7s tRh7M8iCMIjf2ycL+HagXi3gh3q2tUrcBXSo6qEeu7htZCgUa6TTrJq8hR8D8VY2QpHF POTuDx7vyqcHRoQvN9fMxyzQKLRKhnJ7xGu4u0oz+5I8vbuaVFLz5xdDLVLydRgHGm50 orsRMoUTX2UTeW/Iz7LH+duksJjD//Rjb4YHKU2xfo3ENjvqX6LWWwu7JYTsvKnQrOPA 8nUg== X-Gm-Message-State: ALyK8tIQNO1sL0kLtBAJfu94kZ12rEXYG0Cf17kPDA8eeUhJn+CkiUQw7G1zLi29XXWJgnzM X-Received: by 10.98.6.132 with SMTP id 126mr311937pfg.109.1467851732236; Wed, 06 Jul 2016 17:35:32 -0700 (PDT) Received: from isubrama-dev.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id p63sm6769956pfp.65.2016.07.06.17.35.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 17:35:31 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 10/11] Documentation: dtb: xgene: Add MDIO node Date: Wed, 6 Jul 2016 17:35:11 -0700 Message-Id: <1467851712-24780-11-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467851712-24780-1-git-send-email-isubramanian@apm.com> References: <1467851712-24780-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160706_173553_287392_6C537D3E X-CRM114-Status: GOOD ( 12.48 ) 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: matthias.bgg@gmail.com, andrew@lunn.ch, patches@apm.com, 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 Tested-by: Matthias Brugger --- .../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..0247e70 --- /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" + - #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@0x17020000 { + 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>; + }; + };