* [PATCH v2] net: ethoc: document OF bindings
@ 2014-02-18 22:46 ` Max Filippov
0 siblings, 0 replies; 3+ messages in thread
From: Max Filippov @ 2014-02-18 22:46 UTC (permalink / raw)
To: netdev, devicetree, linux-kernel
Cc: David S. Miller, Grant Likely, Rob Herring, Sergei Shtylyov,
Florian Fainelli, Max Filippov
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
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>;
+ };
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] net: ethoc: document OF bindings
@ 2014-02-18 22:46 ` Max Filippov
0 siblings, 0 replies; 3+ messages in thread
From: Max Filippov @ 2014-02-18 22:46 UTC (permalink / raw)
To: netdev-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: David S. Miller, Grant Likely, Rob Herring, Sergei Shtylyov,
Florian Fainelli, Max Filippov
Signed-off-by: Max Filippov <jcmvbkbc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
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>;
+ };
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] net: ethoc: document OF bindings
2014-02-18 22:46 ` Max Filippov
(?)
@ 2014-02-19 21:36 ` David Miller
-1 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2014-02-19 21:36 UTC (permalink / raw)
To: jcmvbkbc
Cc: netdev, devicetree, linux-kernel, grant.likely, robherring2,
sergei.shtylyov, f.fainelli
From: Max Filippov <jcmvbkbc@gmail.com>
Date: Wed, 19 Feb 2014 02:46:50 +0400
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-19 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-18 22:46 [PATCH v2] net: ethoc: document OF bindings Max Filippov
2014-02-18 22:46 ` Max Filippov
2014-02-19 21:36 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.