Skip to contentSkip to conversation

net: ethoc: document OF bindings

PATCH Applied Max Filippov 2 participants 2 messages Feb 18, 2014 – Feb 19, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: ethoc: document OF bindings

---
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
Documentation/devicetree/bindings/net/opencores-ethoc.txt new file +22 -0
new file mode 100644
index 0000000..41e2675
@@ -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>;
+        };
Signature · 6 lines
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html