From patchwork Tue Feb 18 22:46:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 321699 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 3613C2C00C4 for ; Wed, 19 Feb 2014 10:04:33 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752711AbaBRXEL (ORCPT ); Tue, 18 Feb 2014 18:04:11 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:56946 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbaBRWrB (ORCPT ); Tue, 18 Feb 2014 17:47:01 -0500 Received: by mail-lb0-f179.google.com with SMTP id l4so12546182lbv.24 for ; Tue, 18 Feb 2014 14:47:00 -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=OxDYu712eEwu4sq4tfw7dNpyKn4kYXQPK36t5FU/BKo=; b=gA6EbJjJeU0U883Uaf5NifLvV19dTSYpWLfCLacH4VdekDc2FTzSbVo2YsMyiMytWa r4aPPVABJeSqdxHZr0e7SBbem4Xe4/MXd2U1O/EHY0RZ5WuCEAyoh7DiSAJYxQFvkk60 LRu9k6bGYVNShH5aKeM4yByxqAqR0IpCEf1BCViTHt/RpiD9EE6zj7fwp8G0IhSB+Anq WhPEwsStPApNTPuYbY8yvtRkHcux57x/puFjzqxXwI87NQ5TYE+7p7Cq2bnQgeYro+fq 1EgF12S9T0sTm+2UbAd8laDZ2r7P/g5/2wP2iO4ggfMgUMV8GTHROC/86pTerH3aBee0 Yjhw== X-Received: by 10.152.209.7 with SMTP id mi7mr3429418lac.42.1392763620263; Tue, 18 Feb 2014 14:47:00 -0800 (PST) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPSA id dm8sm34073703lad.7.2014.02.18.14.46.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Feb 2014 14:46:59 -0800 (PST) From: Max Filippov To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Grant Likely , Rob Herring , Sergei Shtylyov , Florian Fainelli , Max Filippov Subject: [PATCH v2] net: ethoc: document OF bindings Date: Wed, 19 Feb 2014 02:46:50 +0400 Message-Id: <1392763610-19197-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Max Filippov --- Changes v1->v2: - drop local-mac-address optional property description (described in the common ethernet.txt); - drop optional properties for MDIO bus frequency and MAC frequency (removed from the implementation); - add clocks property. .../devicetree/bindings/net/opencores-ethoc.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/opencores-ethoc.txt diff --git a/Documentation/devicetree/bindings/net/opencores-ethoc.txt b/Documentation/devicetree/bindings/net/opencores-ethoc.txt new file mode 100644 index 0000000..41e2675 --- /dev/null +++ b/Documentation/devicetree/bindings/net/opencores-ethoc.txt @@ -0,0 +1,22 @@ +* OpenCores MAC 10/100 Mbps + +Required properties: +- compatible: Should be "opencores,ethoc". +- reg: two memory regions (address and length), + first region is for the device registers and descriptor rings, + second is for the device packet memory. +- interrupts: interrupt for the device. + +Optional properties: +- clocks: phandle to refer to the clk used as per + Documentation/devicetree/bindings/clock/clock-bindings.txt + +Examples: + + enet0: ethoc@fd030000 { + compatible = "opencores,ethoc"; + reg = <0xfd030000 0x4000 0xfd800000 0x4000>; + interrupts = <1>; + local-mac-address = [00 50 c2 13 6f 00]; + clocks = <&osc>; + };