From patchwork Mon Nov 11 13:00:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Jensen X-Patchwork-Id: 290270 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EA0842C00B1 for ; Tue, 12 Nov 2013 00:01:05 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150Ab3KKNBF (ORCPT ); Mon, 11 Nov 2013 08:01:05 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:47692 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753139Ab3KKNBE (ORCPT ); Mon, 11 Nov 2013 08:01:04 -0500 Received: by mail-lb0-f172.google.com with SMTP id c11so3415216lbj.31 for ; Mon, 11 Nov 2013 05:01:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=xBYXRx1927Tri1shnfQPL3chiRpfbcLmBCZhDXdIBjQ=; b=Ft4nlvcpWx+xnws7pCu/hoGzvE10eldiAeUgQaGx0Sk1H3rqslSTan70Vfc84HJPNl 9mON1XiVIODHgHBQ7jhP7zo0GhzoP2xClNLCL3KPZ5/AJ/nb0wu+MUZZp97zAv7UVDqa KEQbKt5dSouAMCbxxm9GFXS+CpenkUoJc4sYRD3CCpY7s7kM0K7i1c4njrfaepinwLgc bXElD+58afBIrpEOZuNDhOEZNODY5981tjtsplz0nVVpF3eeaUCYLdezFzIbsRwu7N9t 9KvXjzlhCev4seRp5kDV+nsC56+pcurRU2lrVxIs0hhY0GvPIUb9iBVJaKGlqsXcRhU0 ud/w== X-Received: by 10.152.143.6 with SMTP id sa6mr22683144lab.20.1384174862627; Mon, 11 Nov 2013 05:01:02 -0800 (PST) Received: from Ildjarn.ath.cx (static-213-115-41-10.sme.bredbandsbolaget.se. [213.115.41.10]) by mx.google.com with ESMTPSA id z9sm7572667lae.6.2013.11.11.05.01.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 11 Nov 2013 05:01:01 -0800 (PST) From: Jonas Jensen To: devicetree@vger.kernel.org Cc: grant.likely@secretlab.ca, rob.herring@calxeda.com, linux-kernel@vger.kernel.org, Jonas Jensen Subject: [PATCH] Documentation: Add MDIO bus node to PHY binding document Date: Mon, 11 Nov 2013 14:00:25 +0100 Message-Id: <1384174825-14249-1-git-send-email-jonas.jensen@gmail.com> X-Mailer: git-send-email 1.8.2.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add MDIO bus node segment and update the example, allowing trivial bindings to break out boilerplate. Signed-off-by: Jonas Jensen --- Notes: Changes per reply from Grant [0] [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-November/208851.html Applies to next-20131111 Documentation/devicetree/bindings/net/phy.txt | 37 +++++++++++++++++++++------ 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/net/phy.txt b/Documentation/devicetree/bindings/net/phy.txt index 7cd18fb..4e58a5d 100644 --- a/Documentation/devicetree/bindings/net/phy.txt +++ b/Documentation/devicetree/bindings/net/phy.txt @@ -1,3 +1,13 @@ +MDIO Bus Nodes + +MDIO bus nodes describe an MDIO bus. It is a container for PHY nodes as +described below. + +Required properties: +- #address-cells = <1>; +- #size-cells = <0>; + + PHY nodes Required properties: @@ -23,13 +33,24 @@ Optional Properties: assume clause 22. The compatible list may also contain other elements. + Example: -ethernet-phy@0 { - compatible = "ethernet-phy-ieee802.3-c22"; - linux,phandle = <2452000>; - interrupt-parent = <40000>; - interrupts = <35 1>; - reg = <0>; - device_type = "ethernet-phy"; -}; +mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@0 { + device_type = "ethernet-phy"; + compatible = "...", "ethernet-phy-ieee802.3-c22"; + reg = <0>; + interrupts = <24 0>; + } + + ethernet-phy@1 { + device_type = "ethernet-phy"; + compatible = "..."; + reg = <1>; + interrupts = <35 1>; + } +}