OSDN Git Service

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 5dca7d1..cacc25e 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 5671669..eb6f08c 100644 (file)
        model = "Stingray Combo SVK (BCM958742K)";
 };
 
+&gphy0 {
+       enet-phy-lane-swap;
+};
+
 &uart2 {
        status = "okay";
 };
index 6ebe399..5084b03 100644 (file)
@@ -38,3 +38,7 @@
        compatible = "brcm,bcm958742t", "brcm,stingray";
        model = "Stingray SST100 (BCM958742T)";
 };
+
+&gphy0 {
+       enet-phy-lane-swap;
+};
index 19ad887..1c6cc2d 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>,