Skip to content

Commit dddc3c9

Browse files
Jon Masondavem330
authored andcommitted
arm64: dts: NS2: add AMAC ethernet support
Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dd5c5d0 commit dddc3c9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

arch/arm64/boot/dts/broadcom/ns2-svk.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
};
5757
};
5858

59+
&enet {
60+
status = "ok";
61+
};
62+
5963
&pci_phy0 {
6064
status = "ok";
6165
};
@@ -174,6 +178,7 @@
174178
&mdio_mux_iproc {
175179
mdio@10 {
176180
gphy0: eth-phy@10 {
181+
enet-phy-lane-swap;
177182
reg = <0x10>;
178183
};
179184
};

arch/arm64/boot/dts/broadcom/ns2.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@
191191

192192
#include "ns2-clock.dtsi"
193193

194+
enet: ethernet@61000000 {
195+
compatible = "brcm,ns2-amac";
196+
reg = <0x61000000 0x1000>,
197+
<0x61090000 0x1000>,
198+
<0x61030000 0x100>;
199+
reg-names = "amac_base", "idm_base", "nicpm_base";
200+
interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;
201+
phy-handle = <&gphy0>;
202+
phy-mode = "rgmii";
203+
status = "disabled";
204+
};
205+
194206
dma0: dma@61360000 {
195207
compatible = "arm,pl330", "arm,primecell";
196208
reg = <0x61360000 0x1000>;

0 commit comments

Comments
 (0)