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