arm: dts: mt2701: Add ethernet device node
authorSean Wang <sean.wang@mediatek.com>
Tue, 1 Aug 2017 07:03:29 +0000 (15:03 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 1 Aug 2017 13:52:10 +0000 (15:52 +0200)
Add ethernet device node for MT2701

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt2701.dtsi

index f1efdc63656a52bb271aa3d8ac554aede0e74d68..0619b86afaeeb73247bf155316574cd5c5a72ae1 100644 (file)
                #clock-cells = <1>;
        };
 
+       eth: ethernet@1b100000 {
+               compatible = "mediatek,mt2701-eth", "syscon";
+               reg = <0 0x1b100000 0 0x20000>;
+               interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>,
+                            <GIC_SPI 199 IRQ_TYPE_LEVEL_LOW>,
+                            <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>;
+               clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
+                        <&ethsys CLK_ETHSYS_ESW>,
+                        <&ethsys CLK_ETHSYS_GP1>,
+                        <&ethsys CLK_ETHSYS_GP2>,
+                        <&apmixedsys CLK_APMIXED_TRGPLL>;
+               clock-names = "ethif", "esw", "gp1", "gp2", "trgpll";
+               resets = <&ethsys MT2701_ETHSYS_FE_RST>,
+                        <&ethsys MT2701_ETHSYS_GMAC_RST>,
+                        <&ethsys MT2701_ETHSYS_PPE_RST>;
+               reset-names = "fe", "gmac", "ppe";
+               power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
+               mediatek,ethsys = <&ethsys>;
+               mediatek,pctl = <&syscfg_pctl_a>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+       };
+
        bdpsys: syscon@1c000000 {
                compatible = "mediatek,mt2701-bdpsys", "syscon";
                reg = <0 0x1c000000 0 0x1000>;