summaryrefslogtreecommitdiff
path: root/doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-05 16:07:35 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:36 -0600
commit7b9cf8403136e8aa229009050bc4f7ef0f6fdf2e (patch)
tree5ecde9cdf79589314f0cfc5114ba11978eaea24b /doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt
parentef48f6dd305e9b8ab8873599acfe26df0e625606 (diff)
dts: sunxi: Bring in Ethernet device tree bindings
Since we will use these bindings on sunxi, bring them in from Linux 4.0-rc1. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt')
-rw-r--r--doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt b/doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt
new file mode 100644
index 0000000000..ea4d752389
--- /dev/null
+++ b/doc/device-tree-bindings/net/allwinner,sun7i-a20-gmac.txt
@@ -0,0 +1,27 @@
+* Allwinner GMAC ethernet controller
+
+This device is a platform glue layer for stmmac.
+Please see stmmac.txt for the other unchanged properties.
+
+Required properties:
+ - compatible: Should be "allwinner,sun7i-a20-gmac"
+ - clocks: Should contain the GMAC main clock, and tx clock
+ The tx clock type should be "allwinner,sun7i-a20-gmac-clk"
+ - clock-names: Should contain the clock names "stmmaceth",
+ and "allwinner_gmac_tx"
+
+Optional properties:
+- phy-supply: phandle to a regulator if the PHY needs one
+
+Examples:
+
+ gmac: ethernet@01c50000 {
+ compatible = "allwinner,sun7i-a20-gmac";
+ reg = <0x01c50000 0x10000>,
+ <0x01c20164 0x4>;
+ interrupts = <0 85 1>;
+ interrupt-names = "macirq";
+ clocks = <&ahb_gates 49>, <&gmac_tx>;
+ clock-names = "stmmaceth", "allwinner_gmac_tx";
+ phy-mode = "mii";
+ };