1Broadcom BCM53xx Ethernet switches
2==================================
3
4Required 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 BCM5831X/BCM1140x SoCs with an integrated switch, must be one of:
28      "brcm,bcm11404-srab"
29      "brcm,bcm11407-srab"
30      "brcm,bcm11409-srab"
31      "brcm,bcm58310-srab"
32      "brcm,bcm58311-srab"
33      "brcm,bcm58313-srab" and the mandatory "brcm,omega-srab" string
34
35  For the BCM585xx/586XX/88312 SoCs with an integrated switch, must be one of:
36      "brcm,bcm58522-srab"
37      "brcm,bcm58523-srab"
38      "brcm,bcm58525-srab"
39      "brcm,bcm58622-srab"
40      "brcm,bcm58623-srab"
41      "brcm,bcm58625-srab"
42      "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string
43
44  For the BCM63xx/33xx SoCs with an integrated switch, must be one of:
45      "brcm,bcm3384-switch"
46      "brcm,bcm6328-switch"
47      "brcm,bcm6368-switch" and the mandatory "brcm,bcm63xx-switch"
48
49See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional
50required and optional properties.
51
52Examples:
53
54Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
55
56	eth0: ethernet@10001000 {
57		compatible = "brcm,unimac";
58		reg = <0x10001000 0x1000>;
59
60		fixed-link {
61			speed = <1000>;
62			duplex-full;
63		};
64	};
65
66	mdio0: mdio@10000000 {
67		compatible = "brcm,unimac-mdio";
68		#address-cells = <1>;
69		#size-cells = <0>;
70
71		switch0: ethernet-switch@30 {
72			compatible = "brcm,bcm53125";
73			#address-cells = <1>;
74			#size-cells = <0>;
75
76			ports {
77				port0@0 {
78					reg = <0>;
79					label = "lan1";
80				};
81
82				port1@1 {
83					reg = <1>;
84					label = "lan2";
85				};
86
87				port5@5 {
88					reg = <5>;
89					label = "cable-modem";
90					fixed-link {
91						speed = <1000>;
92						duplex-full;
93					};
94					phy-mode = "rgmii-txid";
95				};
96
97				port8@8 {
98					reg = <8>;
99					label = "cpu";
100					fixed-link {
101						speed = <1000>;
102						duplex-full;
103					};
104					phy-mode = "rgmii-txid";
105					ethernet = <&eth0>;
106				};
107			};
108		};
109	};
110