Merge tag 'omap-for-v4.14/fixes-not-urgent-dt-signed' of git://git.kernel.org/pub...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / dsa / b53.txt
1 Broadcom BCM53xx Ethernet switches
2 ==================================
3
4 Required properties:
5
6 - compatible: For external switch chips, compatible string must be exactly one
7   of: "brcm,bcm5325"
8       "brcm,bcm53115"
9       "brcm,bcm53125"
10       "brcm,bcm53128"
11       "brcm,bcm5365"
12       "brcm,bcm5395"
13       "brcm,bcm5397"
14       "brcm,bcm5398"
15
16   For the BCM11360 SoC, must be:
17       "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab" string
18
19   For the BCM5310x SoCs with an integrated switch, must be one of:
20       "brcm,bcm53010-srab"
21       "brcm,bcm53011-srab"
22       "brcm,bcm53012-srab"
23       "brcm,bcm53018-srab"
24       "brcm,bcm53019-srab" and the mandatory "brcm,bcm5301x-srab" string
25
26   For the BCM585xx/586XX/88312 SoCs with an integrated switch, must be one of:
27       "brcm,bcm58522-srab"
28       "brcm,bcm58523-srab"
29       "brcm,bcm58525-srab"
30       "brcm,bcm58622-srab"
31       "brcm,bcm58623-srab"
32       "brcm,bcm58625-srab"
33       "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string
34
35   For the BCM63xx/33xx SoCs with an integrated switch, must be one of:
36       "brcm,bcm3384-switch"
37       "brcm,bcm6328-switch"
38       "brcm,bcm6368-switch" and the mandatory "brcm,bcm63xx-switch"
39
40 See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional
41 required and optional properties.
42
43 Examples:
44
45 Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
46
47         eth0: ethernet@10001000 {
48                 compatible = "brcm,unimac";
49                 reg = <0x10001000 0x1000>;
50
51                 fixed-link {
52                         speed = <1000>;
53                         duplex-full;
54                 };
55         };
56
57         mdio0: mdio@10000000 {
58                 compatible = "brcm,unimac-mdio";
59                 #address-cells = <1>;
60                 #size-cells = <0>;
61
62                 switch0: ethernet-switch@30 {
63                         compatible = "brcm,bcm53125";
64                         #address-cells = <1>;
65                         #size-cells = <0>;
66
67                         ports {
68                                 port0@0 {
69                                         reg = <0>;
70                                         label = "lan1";
71                                 };
72
73                                 port1@1 {
74                                         reg = <1>;
75                                         label = "lan2";
76                                 };
77
78                                 port5@5 {
79                                         reg = <5>;
80                                         label = "cable-modem";
81                                         fixed-link {
82                                                 speed = <1000>;
83                                                 duplex-full;
84                                         };
85                                         phy-mode = "rgmii-txid";
86                                 };
87
88                                 port8@8 {
89                                         reg = <8>;
90                                         label = "cpu";
91                                         fixed-link {
92                                                 speed = <1000>;
93                                                 duplex-full;
94                                         };
95                                         phy-mode = "rgmii-txid";
96                                         ethernet = <&eth0>;
97                                 };
98                         };
99                 };
100         };