Skip to content

Commit 2952d32

Browse files
mwalleclaudiubeznea
authored andcommitted
ARM: dts: lan966x: add switch node
Add the switch node and its 8 children ports. All are disabled by default. Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Tested-by: Horatiu Vultur <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nicolas Ferre <[email protected]>
1 parent 4d2a870 commit 2952d32

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

arch/arm/boot/dts/lan966x.dtsi

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,68 @@
8484
#size-cells = <1>;
8585
ranges;
8686

87+
switch: switch@e0000000 {
88+
compatible = "microchip,lan966x-switch";
89+
reg = <0xe0000000 0x0100000>,
90+
<0xe2000000 0x0800000>;
91+
reg-names = "cpu", "gcb";
92+
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
93+
<GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
94+
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
95+
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
96+
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
97+
interrupt-names = "xtr", "fdma", "ana", "ptp",
98+
"ptp-ext";
99+
resets = <&reset 0>;
100+
reset-names = "switch";
101+
status = "disabled";
102+
103+
ethernet-ports {
104+
#address-cells = <1>;
105+
#size-cells = <0>;
106+
107+
port0: port@0 {
108+
reg = <0>;
109+
status = "disabled";
110+
};
111+
112+
port1: port@1 {
113+
reg = <1>;
114+
status = "disabled";
115+
};
116+
117+
port2: port@2 {
118+
reg = <2>;
119+
status = "disabled";
120+
};
121+
122+
port3: port@3 {
123+
reg = <3>;
124+
status = "disabled";
125+
};
126+
127+
port4: port@4 {
128+
reg = <4>;
129+
status = "disabled";
130+
};
131+
132+
port5: port@5 {
133+
reg = <5>;
134+
status = "disabled";
135+
};
136+
137+
port6: port@6 {
138+
reg = <6>;
139+
status = "disabled";
140+
};
141+
142+
port7: port@7 {
143+
reg = <7>;
144+
status = "disabled";
145+
};
146+
};
147+
};
148+
87149
flx0: flexcom@e0040000 {
88150
compatible = "atmel,sama5d2-flexcom";
89151
reg = <0xe0040000 0x100>;

0 commit comments

Comments
 (0)