1 From b79b0519fb67c22cbed341c5e9dca5ad0aa4d15c Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 2 Mar 2016 07:18:52 +0100
4 Subject: [PATCH 48/81] net-next: mediatek: document MediaTek SoC ethernet
7 This adds the binding documentation for the MediaTek Ethernet
10 Signed-off-by: John Crispin <blogic@openwrt.org>
11 Acked-by: Rob Herring <robh@kernel.org>
12 Cc: devicetree@vger.kernel.org
14 .../devicetree/bindings/net/mediatek-net.txt | 77 ++++++++++++++++++++
15 1 file changed, 77 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/net/mediatek-net.txt
19 +++ b/Documentation/devicetree/bindings/net/mediatek-net.txt
21 +MediaTek Frame Engine Ethernet controller
22 +=========================================
24 +The frame engine ethernet controller can be found on MediaTek SoCs. These SoCs
25 +have dual GMAC each represented by a child node..
27 +* Ethernet controller node
30 +- compatible: Should be "mediatek,mt7623-eth"
31 +- reg: Address and length of the register set for the device
32 +- interrupts: Should contain the frame engines interrupt
33 +- clocks: the clock used by the core
34 +- clock-names: the names of the clock listed in the clocks property. These are
35 + "ethif", "esw", "gp2", "gp1"
36 +- power-domains: phandle to the power domain that the ethernet is part of
37 +- resets: Should contain a phandle to the ethsys reset signal
38 +- reset-names: Should contain the reset signal name "eth"
39 +- mediatek,ethsys: phandle to the syscon node that handles the port setup
40 +- mediatek,pctl: phandle to the syscon node that handles the ports slew rate
44 +- interrupt-parent: Should be the phandle for the interrupt controller
45 + that services interrupts for this device
51 +- compatible: Should be "mediatek,eth-mac"
52 +- reg: The number of the MAC
53 +- phy-handle: see ethernet.txt file in the same directory.
57 +eth: ethernet@1b100000 {
58 + compatible = "mediatek,mt7623-eth";
59 + reg = <0 0x1b100000 0 0x20000>;
60 + clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
61 + <ðsys CLK_ETHSYS_ESW>,
62 + <ðsys CLK_ETHSYS_GP2>,
63 + <ðsys CLK_ETHSYS_GP1>;
64 + clock-names = "ethif", "esw", "gp2", "gp1";
65 + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>;
66 + power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
67 + resets = <ðsys MT2701_ETHSYS_ETH_RST>;
68 + reset-names = "eth";
69 + mediatek,ethsys = <ðsys>;
70 + mediatek,pctl = <&syscfg_pctl_a>;
71 + #address-cells = <1>;
75 + compatible = "mediatek,eth-mac";
77 + phy-handle = <&phy0>;
81 + compatible = "mediatek,eth-mac";
83 + phy-handle = <&phy1>;
87 + phy0: ethernet-phy@0 {
92 + phy1: ethernet-phy@1 {