GNU Linux-libre 4.9.290-gnu1
[releases.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,bcm5389"
14       "brcm,bcm5397"
15       "brcm,bcm5398"
16
17   For the BCM5310x SoCs with an integrated switch, must be one of:
18       "brcm,bcm53010-srab"
19       "brcm,bcm53011-srab"
20       "brcm,bcm53012-srab"
21       "brcm,bcm53018-srab"
22       "brcm,bcm53019-srab" and the mandatory "brcm,bcm5301x-srab" string
23
24   For the BCM585xx/586XX/88312 SoCs with an integrated switch, must be one of:
25       "brcm,bcm58522-srab"
26       "brcm,bcm58523-srab"
27       "brcm,bcm58525-srab"
28       "brcm,bcm58622-srab"
29       "brcm,bcm58623-srab"
30       "brcm,bcm58625-srab"
31       "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string
32
33   For the BCM63xx/33xx SoCs with an integrated switch, must be one of:
34       "brcm,bcm3384-switch"
35       "brcm,bcm6328-switch"
36       "brcm,bcm6368-switch" and the mandatory "brcm,bcm63xx-switch"
37
38 See Documentation/devicetree/bindings/dsa/dsa.txt for a list of additional
39 required and optional properties.
40
41 Examples:
42
43 Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
44
45         eth0: ethernet@10001000 {
46                 compatible = "brcm,unimac";
47                 reg = <0x10001000 0x1000>;
48
49                 fixed-link {
50                         speed = <1000>;
51                         duplex-full;
52                 };
53         };
54
55         mdio0: mdio@10000000 {
56                 compatible = "brcm,unimac-mdio";
57                 #address-cells = <1>;
58                 #size-cells = <0>;
59
60                 switch0: ethernet-switch@30 {
61                         compatible = "brcm,bcm53125";
62                         #address-cells = <1>;
63                         #size-cells = <0>;
64
65                         ports {
66                                 port0@0 {
67                                         reg = <0>;
68                                         label = "lan1";
69                                 };
70
71                                 port1@1 {
72                                         reg = <1>;
73                                         label = "lan2";
74                                 };
75
76                                 port5@5 {
77                                         reg = <5>;
78                                         label = "cable-modem";
79                                         fixed-link {
80                                                 speed = <1000>;
81                                                 duplex-full;
82                                         };
83                                         phy-mode = "rgmii-txid";
84                                 };
85
86                                 port8@8 {
87                                         reg = <8>;
88                                         label = "cpu";
89                                         fixed-link {
90                                                 speed = <1000>;
91                                                 duplex-full;
92                                         };
93                                         phy-mode = "rgmii-txid";
94                                         ethernet = <&eth0>;
95                                 };
96                         };
97                 };
98         };