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