Skip to content

Commit d3bac98

Browse files
Siddharth-Vadapalli-at-TInmenon
authored andcommitted
arm64: dts: ti: j7200-main: Add CPSW5G nodes
TI's J7200 SoC has a 5 port Ethernet Switch instance with 4 external ports and 1 host port, referred to as CPSW5G. Add device-tree nodes for CPSW5G and disable it by default. Device-tree overlays will be used to enable it. Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Reviewed-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20230315062307.1612220-4-s-vadapalli@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 86e7de8 commit d3bac98

1 file changed

Lines changed: 88 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/k3-j7200-main.dtsi

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939
<0x4088 0x3>, <0x408c 0x3>; /* SERDES0 lane2/3 select */
4040
};
4141

42+
cpsw0_phy_gmii_sel: phy@4044 {
43+
compatible = "ti,j7200-cpsw5g-phy-gmii-sel";
44+
ti,qsgmii-main-ports = <1>;
45+
reg = <0x4044 0x10>;
46+
#phy-cells = <1>;
47+
};
48+
4249
usb_serdes_mux: mux-controller@4000 {
4350
compatible = "mmio-mux";
4451
#mux-control-cells = <1>;
@@ -304,6 +311,87 @@
304311
};
305312
};
306313

314+
cpsw0: ethernet@c000000 {
315+
compatible = "ti,j7200-cpswxg-nuss";
316+
#address-cells = <2>;
317+
#size-cells = <2>;
318+
reg = <0x00 0xc000000 0x00 0x200000>;
319+
reg-names = "cpsw_nuss";
320+
ranges = <0x00 0x00 0x00 0xc000000 0x00 0x200000>;
321+
clocks = <&k3_clks 19 33>;
322+
clock-names = "fck";
323+
power-domains = <&k3_pds 19 TI_SCI_PD_EXCLUSIVE>;
324+
325+
dmas = <&main_udmap 0xca00>,
326+
<&main_udmap 0xca01>,
327+
<&main_udmap 0xca02>,
328+
<&main_udmap 0xca03>,
329+
<&main_udmap 0xca04>,
330+
<&main_udmap 0xca05>,
331+
<&main_udmap 0xca06>,
332+
<&main_udmap 0xca07>,
333+
<&main_udmap 0x4a00>;
334+
dma-names = "tx0", "tx1", "tx2", "tx3",
335+
"tx4", "tx5", "tx6", "tx7",
336+
"rx";
337+
338+
status = "disabled";
339+
340+
ethernet-ports {
341+
#address-cells = <1>;
342+
#size-cells = <0>;
343+
cpsw0_port1: port@1 {
344+
reg = <1>;
345+
ti,mac-only;
346+
label = "port1";
347+
status = "disabled";
348+
};
349+
350+
cpsw0_port2: port@2 {
351+
reg = <2>;
352+
ti,mac-only;
353+
label = "port2";
354+
status = "disabled";
355+
};
356+
357+
cpsw0_port3: port@3 {
358+
reg = <3>;
359+
ti,mac-only;
360+
label = "port3";
361+
status = "disabled";
362+
};
363+
364+
cpsw0_port4: port@4 {
365+
reg = <4>;
366+
ti,mac-only;
367+
label = "port4";
368+
status = "disabled";
369+
};
370+
};
371+
372+
cpsw5g_mdio: mdio@f00 {
373+
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
374+
reg = <0x00 0xf00 0x00 0x100>;
375+
#address-cells = <1>;
376+
#size-cells = <0>;
377+
clocks = <&k3_clks 19 33>;
378+
clock-names = "fck";
379+
bus_freq = <1000000>;
380+
status = "disabled";
381+
};
382+
383+
cpts@3d000 {
384+
compatible = "ti,j721e-cpts";
385+
reg = <0x00 0x3d000 0x00 0x400>;
386+
clocks = <&k3_clks 19 16>;
387+
clock-names = "cpts";
388+
interrupts-extended = <&gic500 GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
389+
interrupt-names = "cpts";
390+
ti,cpts-ext-ts-inputs = <4>;
391+
ti,cpts-periodic-outputs = <2>;
392+
};
393+
};
394+
307395
main_pmx0: pinctrl@11c000 {
308396
compatible = "pinctrl-single";
309397
/* Proxy 0 addressing */

0 commit comments

Comments
 (0)