From patchwork Tue Jul 26 00:12:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 9247295 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 B34FC607FD for ; Tue, 26 Jul 2016 00:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A33CC22380 for ; Tue, 26 Jul 2016 00:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9649C2787C; Tue, 26 Jul 2016 00:26:52 +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 512A022380 for ; Tue, 26 Jul 2016 00:26:52 +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 1bRq1b-0004gb-It; Tue, 26 Jul 2016 00:15:07 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bRq0Y-0004HW-LR for linux-arm-kernel@lists.infradead.org; Tue, 26 Jul 2016 00:14:05 +0000 Received: by mail-pa0-x22d.google.com with SMTP id iw10so65767987pac.2 for ; Mon, 25 Jul 2016 17:12:49 -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=JAZdHO0ws7B6y/UNKK7LXxAr4ID4H/k9LFKLs7gaF6s=; b=WPno/6DKfA9FSh+5iSkaGBQDz6DWEy3Od1uK52b+PuGcm1LD3xFpj5OD6lXXUaRfqx qC/BypzLFpKsM7uWU/LG7nEvxAA0s1ia6VB54YcdEsKVsrfhCpSTyRV/Na7c2g/mn5HU SfJ16SS7evVo/8xm1SSxsNew0jYyJ2NtztAPs= 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=JAZdHO0ws7B6y/UNKK7LXxAr4ID4H/k9LFKLs7gaF6s=; b=NHRBJ/ldB/Q07qrvGs4fTmwo2qL2JwaINg5WQ1HOR8s5M60I+1nTp9ml/pTcpA6oqo aSPoACnBXBQngt0zhmVDxh4Mkz9+U+3fJ9KI9e3ojwTRBYK+CwfNtnyRqiTkGxC3XUzc dxucbZMoy9tsVR4fJkZ5RuauC0xh84Kxn1iM3JTZHzLeJfF35kpL/vDvhu8STi2orUja IaaaZ48Wzt13n9Usrg/s7FKdqDieLHzEusHSfJnmpM/KTBGHddf06ShGuZeRnI6djz3r EgvEDldGNk2RmNa4E0Ji1lM30neCIsHtghHhF2HqcM1X4/ptrs5P5B/vbZyzUI0mqPAg iueQ== X-Gm-Message-State: AEkooutdxZ1/NVca2rwaFX5xYdzi/7H8uuR02AY8EzYGpYfJDJJikX/e/Pjh9x8H6AtDdNDn X-Received: by 10.66.134.20 with SMTP id pg20mr33828074pab.98.1469491968849; Mon, 25 Jul 2016 17:12:48 -0700 (PDT) Received: from isubrama-dev.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id x9sm3739538pfk.79.2016.07.25.17.12.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jul 2016 17:12:48 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH net-next v7 11/12] Documentation: dtb: xgene: Add MDIO node Date: Mon, 25 Jul 2016 17:12:46 -0700 Message-Id: <1469491967-28627-12-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469491967-28627-1-git-send-email-isubramanian@apm.com> References: <1469491967-28627-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160725_171403_027295_B75CD372 X-CRM114-Status: GOOD ( 12.40 ) 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 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..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>; + }; + };