arm64: dts: NS2: add AMAC ethernet support
authorJon Mason <jon.mason@broadcom.com>
Fri, 4 Nov 2016 05:11:02 +0000 (01:11 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2016 18:11:22 +0000 (13:11 -0500)
Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device
tree

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/broadcom/ns2-svk.dts
arch/arm64/boot/dts/broadcom/ns2.dtsi

index b09f3bc5c6c16fad4a3491dd094119002845bbef..c4d544244b19734d9341e0555c0607234c9b81f8 100644 (file)
        };
 };
 
+&enet {
+       status = "ok";
+};
+
 &pci_phy0 {
        status = "ok";
 };
 &mdio_mux_iproc {
        mdio@10 {
                gphy0: eth-phy@10 {
+                       enet-phy-lane-swap;
                        reg = <0x10>;
                };
        };
index d95dc408629ad5ab93a37fb01c1a5d2182b2aedf..773ed593da4d976b7d65374e71a0eab1f823a025 100644 (file)
 
                #include "ns2-clock.dtsi"
 
+               enet: ethernet@61000000 {
+                       compatible = "brcm,ns2-amac";
+                       reg = <0x61000000 0x1000>,
+                             <0x61090000 0x1000>,
+                             <0x61030000 0x100>;
+                       reg-names = "amac_base", "idm_base", "nicpm_base";
+                       interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;
+                       phy-handle = <&gphy0>;
+                       phy-mode = "rgmii";
+                       status = "disabled";
+               };
+
                dma0: dma@61360000 {
                        compatible = "arm,pl330", "arm,primecell";
                        reg = <0x61360000 0x1000>;