arm64: dts: Add DT node to enable BGMAC driver on Stingray
authorAbhishek Shah <abhishek.shah@broadcom.com>
Sat, 29 Jul 2017 04:42:26 +0000 (10:12 +0530)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 7 Aug 2017 17:29:53 +0000 (10:29 -0700)
This patch adds DT node to enable BGMAC driver on Stingray

Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Oza Oza <oza.oza@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi
arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts
arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts
arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi

index 5dca7d10253bb15bd1657f199889fb48cee76c02..cacc25e11513d75d37876df61447239f3b45eb52 100644 (file)
              <0x00000008 0x80000000 0x1 0x80000000>; /* 6G @ 34G */
 };
 
+&mdio_mux_iproc {
+       mdio@10 {
+               gphy0: eth-phy@10 {
+                       reg = <0x10>;
+               };
+       };
+};
+
 &uart1 {
        status = "okay";
 };
        };
 };
 
+&enet {
+       phy-mode = "rgmii-id";
+       phy-handle = <&gphy0>;
+       status = "okay";
+};
+
 &nand {
        status = "ok";
        nandcs@0 {
index 5671669ba34876588f6fae34fd5a711686d1d038..eb6f08cdbd796c3d764393f9e2e70db2129b0e28 100644 (file)
        model = "Stingray Combo SVK (BCM958742K)";
 };
 
+&gphy0 {
+       enet-phy-lane-swap;
+};
+
 &uart2 {
        status = "okay";
 };
index 6ebe399fda6a7fa01091e8d6b6cb78b2d6c122af..5084b037320fd9cb65133ca929517062a245af3b 100644 (file)
@@ -38,3 +38,7 @@
        compatible = "brcm,bcm958742t", "brcm,stingray";
        model = "Stingray SST100 (BCM958742T)";
 };
+
+&gphy0 {
+       enet-phy-lane-swap;
+};
index 19ad887a82dc80803c3cf0b8b51de56c6ffaf94d..1c6cc2d914d93498d75d4edc301f04bce5d0cf50 100644 (file)
                        iommus = <&smmu 0x6000 0x0000>;
                };
 
+               enet: ethernet@00340000{
+                       compatible = "brcm,amac";
+                       reg = <0x00340000 0x1000>;
+                       reg-names = "amac_base";
+                       dma-coherent;
+                       interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>;
+                       status= "disabled";
+               };
+
                nand: nand@00360000 {
                        compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
                        reg = <0x00360000 0x600>,