Skip to content

Commit 41bc0dd

Browse files
committed
Merge branch 'net-dsa-microchip-add-KSZ9893-switch-support'
Tristram Ha says: ==================== net: dsa: microchip: add KSZ9893 switch support This series of patches is to modify the KSZ9477 DSA driver to support running KSZ9893 switch. The KSZ9893 switch is similar to KSZ9477 except the ingress tail tag has 1 byte instead of 2 bytes. The XMII register that governs the MAC communication also has different register definitions. v1 - Put KSZ9893 tagging in separate patch - Remove other switch support ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents d5fa9c5 + 8c29beb commit 41bc0dd

File tree

8 files changed

+316
-15
lines changed

8 files changed

+316
-15
lines changed

Documentation/devicetree/bindings/net/dsa/ksz.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Required properties:
77
of the following:
88
- "microchip,ksz9477"
99
- "microchip,ksz9897"
10+
- "microchip,ksz9896"
11+
- "microchip,ksz9567"
12+
- "microchip,ksz8565"
13+
- "microchip,ksz9893"
14+
- "microchip,ksz9563"
1015

1116
Optional properties:
1217

@@ -73,4 +78,42 @@ Ethernet switch connected via SPI to the host, CPU port wired to eth0:
7378
};
7479
};
7580
};
81+
ksz8565: ksz8565@0 {
82+
compatible = "microchip,ksz8565";
83+
reg = <0>;
84+
85+
spi-max-frequency = <44000000>;
86+
spi-cpha;
87+
spi-cpol;
88+
89+
ports {
90+
#address-cells = <1>;
91+
#size-cells = <0>;
92+
port@0 {
93+
reg = <0>;
94+
label = "lan1";
95+
};
96+
port@1 {
97+
reg = <1>;
98+
label = "lan2";
99+
};
100+
port@2 {
101+
reg = <2>;
102+
label = "lan3";
103+
};
104+
port@3 {
105+
reg = <3>;
106+
label = "lan4";
107+
};
108+
port@6 {
109+
reg = <6>;
110+
label = "cpu";
111+
ethernet = <&eth0>;
112+
fixed-link {
113+
speed = <1000>;
114+
full-duplex;
115+
};
116+
};
117+
};
118+
};
76119
};

0 commit comments

Comments
 (0)