diff mbox series

[linux,dev-4.13,v1,1/2] dt-binding: net: document NPCM7xx EMC DT bindings

Message ID 1515062046-11944-2-git-send-email-tmaimon77@gmail.com
State Not Applicable, archived
Headers show
Series net: npcm: add NPCM7xx EMC | expand

Commit Message

Tomer Maimon Jan. 4, 2018, 10:34 a.m. UTC
Added device tree binding documentation for
Nuvoton NPCM7xx Ethernet MAC Controller (EMC).

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
 .../bindings/net/nuvoton,npcm7xx-emc.txt           | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt b/Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt
new file mode 100644
index 000000000000..812d8481a6fb
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt
@@ -0,0 +1,24 @@ 
+Nuvoton NPCM7XX 10/100 Ethernet MAC Controller (EMC)
+
+The NPCM750x provides two identical Ethernet MAC Controllers
+for WAN/LAN applications
+
+Required properties:
+- compatible      : "nuvoton,npcm750-emc" for Poleg NPCM750.
+- reg             : Offset and length of the register set for the device.
+- interrupts      : Contain the emc interrupts with flags for falling edge.
+					first interrupt dedicated to Txirq
+					second interrupt dedicated to Rxirq
+- clocks          : phandle of emc reference clock.
+- device_type	  : Should be "network"
+
+Example:
+
+emc0: eth@f0825000 {
+	device_type = "network";
+	compatible = "nuvoton,npcm750-emc";
+	reg = <0xf0825000 0x1000>;
+	interrupts = <0 16 4>, <0 15 4>;
+	clocks = <&clk NPCM7XX_CLK_EMC>;
+};
+