Skip to content

Commit ba86a6e

Browse files
grygoriySdavem330
authored andcommitted
arm64: dts: ti: k3-am65-mcu: add cpsw nuss node
Add DT node for the TI AM65x SoC Gigabit Ethernet two ports Switch subsystem (CPSW NUSS). Signed-off-by: Grygorii Strashko <[email protected]> Tested-by: Murali Karicheri <[email protected]> Tested-by: Peter Ujfalusi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 93a7653 commit ba86a6e

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,53 @@
187187
#size-cells = <0>;
188188
};
189189
};
190+
191+
mcu_cpsw: ethernet@46000000 {
192+
compatible = "ti,am654-cpsw-nuss";
193+
#address-cells = <2>;
194+
#size-cells = <2>;
195+
reg = <0x0 0x46000000 0x0 0x200000>;
196+
reg-names = "cpsw_nuss";
197+
ranges = <0x0 0x0 0x0 0x46000000 0x0 0x200000>;
198+
dma-coherent;
199+
clocks = <&k3_clks 5 10>;
200+
clock-names = "fck";
201+
power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
202+
203+
dmas = <&mcu_udmap 0xf000>,
204+
<&mcu_udmap 0xf001>,
205+
<&mcu_udmap 0xf002>,
206+
<&mcu_udmap 0xf003>,
207+
<&mcu_udmap 0xf004>,
208+
<&mcu_udmap 0xf005>,
209+
<&mcu_udmap 0xf006>,
210+
<&mcu_udmap 0xf007>,
211+
<&mcu_udmap 0x7000>;
212+
dma-names = "tx0", "tx1", "tx2", "tx3",
213+
"tx4", "tx5", "tx6", "tx7",
214+
"rx";
215+
216+
ethernet-ports {
217+
#address-cells = <1>;
218+
#size-cells = <0>;
219+
220+
cpsw_port1: port@1 {
221+
reg = <1>;
222+
ti,mac-only;
223+
label = "port1";
224+
ti,syscon-efuse = <&mcu_conf 0x200>;
225+
phys = <&phy_gmii_sel 1>;
226+
};
227+
};
228+
229+
davinci_mdio: mdio@f00 {
230+
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
231+
reg = <0x0 0xf00 0x0 0x100>;
232+
#address-cells = <1>;
233+
#size-cells = <0>;
234+
clocks = <&k3_clks 5 10>;
235+
clock-names = "fck";
236+
bus_freq = <1000000>;
237+
};
238+
};
190239
};

arch/arm64/boot/dts/ti/k3-am65.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
i2c3 = &main_i2c1;
3131
i2c4 = &main_i2c2;
3232
i2c5 = &main_i2c3;
33+
ethernet0 = &cpsw_port1;
3334
};
3435

3536
chosen { };

0 commit comments

Comments
 (0)