Florian Fainelli | 967dd82 | 2016-06-09 18:23:53 -0700 | [diff] [blame^] | 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 BCM63xx/33xx SoCs with an integrated switch, must be one of: |
| 24 | "brcm,bcm3384-switch" |
| 25 | "brcm,bcm6328-switch" |
| 26 | "brcm,bcm6368-switch" and the mandatory "brcm,bcm63xx-switch" |
| 27 | |
| 28 | See Documentation/devicetree/bindings/dsa/dsa.txt for a list of additional |
| 29 | required and optional properties. |
| 30 | |
| 31 | Examples: |
| 32 | |
| 33 | Ethernet switch connected via MDIO to the host, CPU port wired to eth0: |
| 34 | |
| 35 | eth0: ethernet@10001000 { |
| 36 | compatible = "brcm,unimac"; |
| 37 | reg = <0x10001000 0x1000>; |
| 38 | |
| 39 | fixed-link { |
| 40 | speed = <1000>; |
| 41 | duplex-full; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | mdio0: mdio@10000000 { |
| 46 | compatible = "brcm,unimac-mdio"; |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
| 49 | |
| 50 | switch0: ethernet-switch@30 { |
| 51 | compatible = "brcm,bcm53125"; |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | |
| 55 | ports { |
| 56 | port0@0 { |
| 57 | reg = <0>; |
| 58 | label = "lan1"; |
| 59 | }; |
| 60 | |
| 61 | port1@1 { |
| 62 | reg = <1>; |
| 63 | label = "lan2"; |
| 64 | }; |
| 65 | |
| 66 | port5@5 { |
| 67 | reg = <5>; |
| 68 | label = "cable-modem"; |
| 69 | fixed-link { |
| 70 | speed = <1000>; |
| 71 | duplex-full; |
| 72 | }; |
| 73 | phy-mode = "rgmii-txid"; |
| 74 | }; |
| 75 | |
| 76 | port8@8 { |
| 77 | reg = <8>; |
| 78 | label = "cpu"; |
| 79 | fixed-link { |
| 80 | speed = <1000>; |
| 81 | duplex-full; |
| 82 | }; |
| 83 | phy-mode = "rgmii-txid"; |
| 84 | ethernet = <ð0>; |
| 85 | }; |
| 86 | }; |
| 87 | }; |
| 88 | }; |