Add device-tree binding example of the ksz9477 switch managed in i2c mode. Cc: [email protected] Signed-off-by: Sergio Paracuellos <[email protected]> --- .../devicetree/bindings/net/dsa/ksz.txt | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/dsa/ksz.txt
b/Documentation/devicetree/bindings/net/dsa/ksz.txt
index 0f407fb371ce..9e715358cebb 100644
--- a/Documentation/devicetree/bindings/net/dsa/ksz.txt
+++ b/Documentation/devicetree/bindings/net/dsa/ksz.txt
@@ -74,3 +74,53 @@ Ethernet switch connected via SPI to the host, CPU port
wired to eth0:
};
};
};
+
+Ethernet switch connected via I2C to the host, CPU port wired to eth0:
+
+ eth0: ethernet@10001000 {
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+
+ i2c0: i2c@f8008000 {
+ ksz9897: ksz9897@0 {
+ compatible =
"microchip,ksz9897";
+ reg = <5f>;
+
+ ports {
+
#address-cells = <1>;
+
#size-cells = <0>;
+
port@0 {
+
reg = <0>;
+
label = "lan1";
+ };
+
port@1 {
+
reg = <1>;
+
label = "lan2";
+ };
+
port@2 {
+
reg = <2>;
+
label = "lan3";
+ };
+
port@3 {
+
reg = <3>;
+
label = "lan4";
+ };
+
port@4 {
+
reg = <4>;
+
label = "lan5";
+ };
+
port@6 {
+
reg = <6>;
+
label = "cpu";
+
ethernet = <ð0>;
+
fixed-link {
+
speed = <1000>;
+
full-duplex;
+
};
+ };
+ };
+ };
+ };
--
2.19.1
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
