Merge tag 'docs-5.0-fixes' of git://git.lwn.net/linux
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / dsa / ksz.txt
1 Microchip KSZ Series Ethernet switches
2 ==================================
3
4 Required 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
11 Optional properties:
12
13 - reset-gpios           : Should be a gpio specifier for a reset line
14
15 See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional
16 required and optional properties.
17
18 Examples:
19
20 Ethernet switch connected via SPI to the host, CPU port wired to eth0:
21
22                              eth0: ethernet@10001000 {
23                                              fixed-link {
24                                                              speed = <1000>;
25                                                              full-duplex;
26                                              };
27                              };
28
29                              spi1: spi@f8008000 {
30                                              pinctrl-0 = <&pinctrl_spi_ksz>;
31                                              cs-gpios = <&pioC 25 0>;
32                                              id = <1>;
33
34                                              ksz9477: ksz9477@0 {
35                                                              compatible = "microchip,ksz9477";
36                                                              reg = <0>;
37
38                                                              spi-max-frequency = <44000000>;
39                                                              spi-cpha;
40                                                              spi-cpol;
41
42                                                              ports {
43                                                                              #address-cells = <1>;
44                                                                              #size-cells = <0>;
45                                                                              port@0 {
46                                                                                              reg = <0>;
47                                                                                              label = "lan1";
48                                                                              };
49                                                                              port@1 {
50                                                                                              reg = <1>;
51                                                                                              label = "lan2";
52                                                                              };
53                                                                              port@2 {
54                                                                                              reg = <2>;
55                                                                                              label = "lan3";
56                                                                              };
57                                                                              port@3 {
58                                                                                              reg = <3>;
59                                                                                              label = "lan4";
60                                                                              };
61                                                                              port@4 {
62                                                                                              reg = <4>;
63                                                                                              label = "lan5";
64                                                                              };
65                                                                              port@5 {
66                                                                                              reg = <5>;
67                                                                                              label = "cpu";
68                                                                                              ethernet = <&eth0>;
69                                                                                              fixed-link {
70                                                                                                              speed = <1000>;
71                                                                                                              full-duplex;
72                                                                                              };
73                                                                              };
74                                                              };
75                                              };
76                              };