Skip to content

Commit 2d33394

Browse files
kchudgardavem330
authored andcommitted
dtb: xgene: Add second SGMII based 1G interface node
- Added new SGMII node for port 1 - Added port-id field Signed-off-by: Keyur Chudgar <kchudgar@apm.com> Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c2bc6e1 commit 2d33394

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

arch/arm64/boot/dts/apm/apm-mustang.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
status = "ok";
4646
};
4747

48+
&sgenet1 {
49+
status = "ok";
50+
};
51+
4852
&xgenet {
4953
status = "ok";
5054
};

arch/arm64/boot/dts/apm/apm-storm.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@
186186
clock-output-names = "sge0clk";
187187
};
188188

189+
sge1clk: sge1clk@1f21c000 {
190+
compatible = "apm,xgene-device-clock";
191+
#clock-cells = <1>;
192+
clocks = <&socplldiv2 0>;
193+
reg = <0x0 0x1f21c000 0x0 0x1000>;
194+
reg-names = "csr-reg";
195+
csr-mask = <0xc>;
196+
clock-output-names = "sge1clk";
197+
};
198+
189199
xge0clk: xge0clk@1f61c000 {
190200
compatible = "apm,xgene-device-clock";
191201
#clock-cells = <1>;
@@ -635,6 +645,21 @@
635645
phy-connection-type = "sgmii";
636646
};
637647

648+
sgenet1: ethernet@1f210030 {
649+
compatible = "apm,xgene1-sgenet";
650+
status = "disabled";
651+
reg = <0x0 0x1f210030 0x0 0xd100>,
652+
<0x0 0x1f200000 0x0 0Xc300>,
653+
<0x0 0x1B000000 0x0 0X8000>;
654+
reg-names = "enet_csr", "ring_csr", "ring_cmd";
655+
interrupts = <0x0 0xAC 0x4>;
656+
port-id = <1>;
657+
dma-coherent;
658+
clocks = <&sge1clk 0>;
659+
local-mac-address = [00 00 00 00 00 00];
660+
phy-connection-type = "sgmii";
661+
};
662+
638663
xgenet: ethernet@1f610000 {
639664
compatible = "apm,xgene1-xgenet";
640665
status = "disabled";

0 commit comments

Comments
 (0)