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