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: 645658 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rlJZ042wFz9sds for ; Thu, 7 Jul 2016 10:35:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=apm.com header.i=@apm.com header.b=Tt7ejIa0; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933067AbcGGAff (ORCPT ); Wed, 6 Jul 2016 20:35:35 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35729 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933056AbcGGAfd (ORCPT ); Wed, 6 Jul 2016 20:35:33 -0400 Received: by mail-pf0-f174.google.com with SMTP id c2so876243pfa.2 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=ARZ4y5rgYYL7kKv395iMH13iFvHeSRH/bnZaGL1sYbmUNjb7PG2rYeZubFIYkaQj0q 4m7TNZwWieav6W+enCom4SAVwtsiK69hRNSui+j+RBptDOEI7JgIMN5y8bE7ELJTSZ0W 3D//rA5LNea6JfUYZDpkV+2B0SWQFkWF9shTIK7L1o6HHBNAFNGCIqTwOkar3xkA6QkI zgid63NmRpH8rq8BT1pgjpEDdECx+SntwaJ5fMeH2q1UCbC4Lxh8YQFd5F2wp46jl0eF z4xZMY+9l3ph6xavkdeWLBsgV+sssKUMLcxjeKjiDlcjZ35CNYjFq9mQGVZtAySquQl2 DP6g== X-Gm-Message-State: ALyK8tItGKxn9H/FeWJmWg0xVTPc0Wntcj37iqCf7C09YckDNAvNSpoYZQnoVE5IQnUCIKzA 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 Cc: linux-arm-kernel@lists.infradead.org, patches@apm.com, matthias.bgg@gmail.com, andrew@lunn.ch, Iyappan Subramanian 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> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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>; + }; + };