From patchwork Thu Jul 7 23:02:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 9219859 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 205896048B for ; Thu, 7 Jul 2016 23:05:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FCC32684F for ; Thu, 7 Jul 2016 23:05:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0475827BFF; Thu, 7 Jul 2016 23:05: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 80F2A27BF7 for ; Thu, 7 Jul 2016 23:05:21 +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 1bLIKx-00029v-Jh; Thu, 07 Jul 2016 23:04:03 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bLIKH-0001h5-Oe for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2016 23:03:23 +0000 Received: by mail-pa0-x232.google.com with SMTP id bz2so9804436pad.1 for ; Thu, 07 Jul 2016 16:03:04 -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=kgTNNmjNTF7ihrV9KABTyBoOhbc0JyaXtoWEScYnVKs2DyWWeSmmNdOTcn8x7qs4bH /DbFluOcFjUa7T/sgmjknBUm1Lc+Kt5HSgy+6pY7Fk+QRRzgS9giZKkGws/8hPn+osld 8REh0oiwPSYQdfgjtVIfLSnO+rQS54qAqEOuY= 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=Zo9PSrQzUeuf6WNip1CjDNmh0fnKi3IOfTJcWfeAcLEkLZgz+UeBSr8bpqzD5XJRYY Ep5hDGkrae6CD123nw3rj6of/xeOQziz7UQHCC/RkKxAbBAZVSf77jU7eykJm/nZuUmc R/GSbhc3D3G7HtHjTNWHDNNeB8iinqYFmKx4Mp3/ukDgimVgl5hrYh/TxmYxDUpDgME4 H3QT1NKyJRLawE+SERT5c7+OZ/qQ6Q9DdkiC3RDfuchBAr+dxe7n2UFsTv4J6RI2NAGb XvR+2MVIWYTAMwxNKsruFhGi4gTXBu18vumRyd7ykRx2bognQy0iXdsZqjXCAD53a3mE MoAw== X-Gm-Message-State: ALyK8tKVVFs1M9y/JRfC1+gLTpamEFWC8uy+EMbYkZd6aOO7LW/Y1Oc6aEvvNxJDsRY9fUcI X-Received: by 10.66.235.163 with SMTP id un3mr4405099pac.93.1467932584383; Thu, 07 Jul 2016 16:03:04 -0700 (PDT) Received: from isubrama-dev.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id r67sm4637090pfb.16.2016.07.07.16.03.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 16:03:03 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 10/11] Documentation: dtb: xgene: Add MDIO node Date: Thu, 7 Jul 2016 16:02:58 -0700 Message-Id: <1467932579-14320-11-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467932579-14320-1-git-send-email-isubramanian@apm.com> References: <1467932579-14320-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160707_160322_014834_D5AA6AA2 X-CRM114-Status: GOOD ( 12.63 ) 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: andrew@lunn.ch, patches@apm.com, linux@armlinux.org.uk, Iyappan Subramanian , matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org 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 Acked-by: Rob Herring --- .../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>; + }; + };