1Microchip KSZ Series Ethernet switches 2================================== 3 4Required properties: 5 6- compatible: For external switch chips, compatible string must be exactly one 7 of the following: 8 - "microchip,ksz9477" 9 - "microchip,ksz9897" 10 11See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional 12required and optional properties. 13 14Examples: 15 16Ethernet switch connected via SPI to the host, CPU port wired to eth0: 17 18 eth0: ethernet@10001000 { 19 fixed-link { 20 speed = <1000>; 21 full-duplex; 22 }; 23 }; 24 25 spi1: spi@f8008000 { 26 pinctrl-0 = <&pinctrl_spi_ksz>; 27 cs-gpios = <&pioC 25 0>; 28 id = <1>; 29 30 ksz9477: ksz9477@0 { 31 compatible = "microchip,ksz9477"; 32 reg = <0>; 33 34 spi-max-frequency = <44000000>; 35 spi-cpha; 36 spi-cpol; 37 38 ports { 39 #address-cells = <1>; 40 #size-cells = <0>; 41 port@0 { 42 reg = <0>; 43 label = "lan1"; 44 }; 45 port@1 { 46 reg = <1>; 47 label = "lan2"; 48 }; 49 port@2 { 50 reg = <2>; 51 label = "lan3"; 52 }; 53 port@3 { 54 reg = <3>; 55 label = "lan4"; 56 }; 57 port@4 { 58 reg = <4>; 59 label = "lan5"; 60 }; 61 port@5 { 62 reg = <5>; 63 label = "cpu"; 64 ethernet = <ð0>; 65 fixed-link { 66 speed = <1000>; 67 full-duplex; 68 }; 69 }; 70 }; 71 }; 72 }; 73