Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938776AbcJGPWa (ORCPT ); Fri, 7 Oct 2016 11:22:30 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35412 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935509AbcJGPWN (ORCPT ); Fri, 7 Oct 2016 11:22:13 -0400 From: Pantelis Antoniou To: Lee Jones Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , Wolfram Sang , David Woodhouse , Brian Norris , Florian Fainelli , Wim Van Sebroeck , Peter Rosin , Debjit Ghosh , Georgi Vlaev , Guenter Roeck , Maryam Seraj , Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-watchdog@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 10/10] net: mdio-sam: Add device tree documentation for SAM MDIO Date: Fri, 7 Oct 2016 18:18:38 +0300 Message-Id: <1475853518-22264-11-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475853518-22264-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1475853518-22264-1-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1632 Lines: 69 From: Georgi Vlaev Add device tree bindings document for the SAM MDIO block present in Juniper's SAM FPGA. Signed-off-by: Georgi Vlaev [Ported from Juniper kernel] Signed-off-by: Pantelis Antoniou --- Documentation/devicetree/bindings/net/mdio-sam.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mdio-sam.txt diff --git a/Documentation/devicetree/bindings/net/mdio-sam.txt b/Documentation/devicetree/bindings/net/mdio-sam.txt new file mode 100644 index 0000000..7d354e0 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mdio-sam.txt @@ -0,0 +1,48 @@ +Juniper SAM FPGA MFD MDIO bus properties. + +Required properties: +- compatible : "jnx,mdio-sam" +- reg : The start offset of the MDIO bus range +- #address-cells = <1>; +- #size-cells = <0>; + +Optional properties: + +Required properties for child nodes: +- #address-cells = <1>; +- #size-cells = <0>; +- reg : The MDIO bus offset within the MDIO range. + + +Example : + + sam@10 { + compatible = "jnx,sam"; + #address-cells = <1>; + #size-cells = <0>; + + mdio-sam@10 { + compatible = "jnx,mdio-sam"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x40000>; + + mdio0: mdio-sam@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + }; + + mdio1: mdio-sam@4000 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4000>; + }; + + mdio2: mdio-sam@8000 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x8000>; + }; + }; + }; -- 1.9.1