Skip to content

Commit

Permalink
net: stmmac: ipq806x: document device tree bindings
Browse files Browse the repository at this point in the history
Add the device tree bindings documentation for the QCA IPQ806x
variant of the Synopsys DesignWare MAC.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mathieu Olivari authored and David S. Miller committed May 31, 2015
1 parent b1c1721 commit 95e130a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Documentation/devicetree/bindings/net/ipq806x-dwmac.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
* IPQ806x DWMAC Ethernet controller

The device inherits all the properties of the dwmac/stmmac devices
described in the file net/stmmac.txt with the following changes.

Required properties:

- compatible: should be "qcom,ipq806x-gmac" along with "snps,dwmac"
and any applicable more detailed version number
described in net/stmmac.txt

- qcom,nss-common: should contain a phandle to a syscon device mapping the
nss-common registers.

- qcom,qsgmii-csr: should contain a phandle to a syscon device mapping the
qsgmii-csr registers.

Example:

gmac: ethernet@37000000 {
device_type = "network";
compatible = "qcom,ipq806x-gmac";
reg = <0x37000000 0x200000>;
interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";

qcom,nss-common = <&nss_common>;
qcom,qsgmii-csr = <&qsgmii_csr>;

clocks = <&gcc GMAC_CORE1_CLK>;
clock-names = "stmmaceth";

resets = <&gcc GMAC_CORE1_RESET>;
reset-names = "stmmaceth";
};

0 comments on commit 95e130a

Please sign in to comment.