]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/net/dsa/ksz.txt
Merge tag 'renesas-fixes4-for-v4.13' of https://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.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: "microchip,ksz9477"
8
9 See Documentation/devicetree/bindings/dsa/dsa.txt for a list of additional
10 required and optional properties.
11
12 Examples:
13
14 Ethernet switch connected via SPI to the host, CPU port wired to eth0:
15
16                              eth0: ethernet@10001000 {
17                                              fixed-link {
18                                                              speed = <1000>;
19                                                              full-duplex;
20                                              };
21                              };
22
23                              spi1: spi@f8008000 {
24                                              pinctrl-0 = <&pinctrl_spi_ksz>;
25                                              cs-gpios = <&pioC 25 0>;
26                                              id = <1>;
27                                              status = "okay";
28
29                                              ksz9477: ksz9477@0 {
30                                                              compatible = "microchip,ksz9477";
31                                                              reg = <0>;
32
33                                                              spi-max-frequency = <44000000>;
34                                                              spi-cpha;
35                                                              spi-cpol;
36
37                                                              status = "okay";
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 = <&eth0>;
65                                                                                              fixed-link {
66                                                                                                              speed = <1000>;
67                                                                                                              full-duplex;
68                                                                                              };
69                                                                              };
70                                                              };
71                                              };
72                              };