Skip to content

Commit b2ea7f8

Browse files
sredavem330
authored andcommitted
ARM: dts: imx6q-b650v3: Add switch port configuration
This adds support for the Marvell switch and names the network ports according to the labels, that can be found next to the connectors. The switch is connected to the host system using a PCI based network card. The PCI bus configuration has been written using the following information: root@b650v3# lspci -tv -[0000:00]---00.0-[01]----00.0 Intel Corporation I210 Gigabit Network Connection root@b650v3# lspci -nn 00:00.0 PCI bridge [0604]: Synopsys, Inc. Device [16c3:abcd] (rev 01) 01:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03) Signed-off-by: Sebastian Reichel <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e6b22e4 commit b2ea7f8

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

arch/arm/boot/dts/imx6q-b650v3.dts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,55 @@
111111
fsl,tx-cal-45-dp-ohms = <55>;
112112
fsl,tx-d-cal = <100>;
113113
};
114+
115+
&pci_root {
116+
/* Intel Corporation I210 Gigabit Network Connection */
117+
switch_nic: ethernet@3,0 {
118+
compatible = "pci8086,1533";
119+
reg = <0x00010000 0 0 0 0>;
120+
};
121+
};
122+
123+
&switch_ports {
124+
port@0 {
125+
reg = <0>;
126+
label = "enacq";
127+
phy-handle = <&switchphy0>;
128+
};
129+
130+
port@1 {
131+
reg = <1>;
132+
label = "eneport1";
133+
phy-handle = <&switchphy1>;
134+
};
135+
136+
port@2 {
137+
reg = <2>;
138+
label = "enix";
139+
phy-handle = <&switchphy2>;
140+
};
141+
142+
port@3 {
143+
reg = <3>;
144+
label = "enid";
145+
phy-handle = <&switchphy3>;
146+
};
147+
148+
port@4 {
149+
reg = <4>;
150+
label = "cpu";
151+
ethernet = <&switch_nic>;
152+
phy-handle = <&switchphy4>;
153+
};
154+
155+
port@5 {
156+
reg = <5>;
157+
label = "enembc";
158+
159+
/* connected to Ethernet MAC of AT91RM9200 in MII mode */
160+
fixed-link {
161+
speed = <100>;
162+
full-duplex;
163+
};
164+
};
165+
};

0 commit comments

Comments
 (0)