Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528AbaA0EAF (ORCPT ); Sun, 26 Jan 2014 23:00:05 -0500 Received: from mail-la0-f47.google.com ([209.85.215.47]:60413 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753470AbaA0D7w (ORCPT ); Sun, 26 Jan 2014 22:59:52 -0500 From: Max Filippov To: linux-xtensa@linux-xtensa.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Chris Zankel , Marc Gauthier , "David S. Miller" , Grant Likely , Rob Herring , Max Filippov Subject: [PATCH 3/3] net: ethoc: document OF bindings Date: Mon, 27 Jan 2014 07:59:27 +0400 Message-Id: <1390795167-6677-4-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1390795167-6677-1-git-send-email-jcmvbkbc@gmail.com> References: <1390795167-6677-1-git-send-email-jcmvbkbc@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Max Filippov --- .../devicetree/bindings/net/opencores-ethoc.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 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..f7c6c94 --- /dev/null +++ b/Documentation/devicetree/bindings/net/opencores-ethoc.txt @@ -0,0 +1,25 @@ +* OpenCores MAC 10/100 Mbps + +Required properties: +- compatible: Should be "opencores,ethoc". +- reg: Address and length of the register set for the device and of its + descriptor memory. +- interrupts: Should contain ethoc interrupt. + +Optional properties: +- local-mac-address: 6 bytes, mac address +- clock-frequency: basic MAC frequency. +- mii-mgmt-clock-frequency: frequency of MII management bus. Together + with clock-frequency determines the value programmed into the CLKDIV + field of MIIMODER register. + +Examples: + + enet0: ethoc@fd030000 { + compatible = "opencores,ethoc"; + reg = <0xfd030000 0x4000 0xfd800000 0x4000>; + interrupts = <1>; + local-mac-address = [00 50 c2 13 6f 00]; + clock-frequency = <50000000>; + mii-mgmt-clock-frequency = <5000000>; + }; -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/