xref: /freebsd/sys/contrib/device-tree/Bindings/net/brcm,bcm7445-switch-v4.0.txt (revision 02e9120893770924227138ba49df1edb3896112a)
1* Broadcom Starfighter 2 integrated swich
2
3See dsa/brcm,bcm7445-switch-v4.0.yaml for the documentation.
4
5*Deprecated* binding required properties:
6
7- dsa,mii-bus: phandle to the MDIO bus controller, see dsa/dsa.txt
8- dsa,ethernet: phandle to the CPU network interface controller, see dsa/dsa.txt
9- #address-cells: must be 2, see dsa/dsa.txt
10
11Example using the old DSA DeviceTree binding:
12
13switch_top@f0b00000 {
14	compatible = "simple-bus";
15	#size-cells = <1>;
16	#address-cells = <1>;
17	ranges = <0 0xf0b00000 0x40804>;
18
19	ethernet_switch@0 {
20		compatible = "brcm,bcm7445-switch-v4.0";
21		#size-cells = <0>;
22		#address-cells = <2>;
23		reg = <0x0 0x40000
24			0x40000 0x110
25			0x40340 0x30
26			0x40380 0x30
27			0x40400 0x34
28			0x40600 0x208>;
29		interrupts = <0 0x18 0
30				0 0x19 0>;
31		brcm,num-gphy = <1>;
32		brcm,num-rgmii-ports = <2>;
33		brcm,fcb-pause-override;
34		brcm,acb-packets-inflight;
35
36		...
37		switch@0 {
38			reg = <0 0>;
39			#size-cells = <0>;
40			#address-cells = <1>;
41
42			port@0 {
43				label = "gphy";
44				reg = <0>;
45				brcm,use-bcm-hdr;
46			};
47			...
48		};
49	};
50};
51