1c66ec88fSEmmanuel VadotBroadcom BCM53xx Ethernet switches 2c66ec88fSEmmanuel Vadot================================== 3c66ec88fSEmmanuel Vadot 4c66ec88fSEmmanuel VadotRequired properties: 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel Vadot- compatible: For external switch chips, compatible string must be exactly one 7c66ec88fSEmmanuel Vadot of: "brcm,bcm5325" 8c66ec88fSEmmanuel Vadot "brcm,bcm53115" 9c66ec88fSEmmanuel Vadot "brcm,bcm53125" 10c66ec88fSEmmanuel Vadot "brcm,bcm53128" 11c66ec88fSEmmanuel Vadot "brcm,bcm5365" 12c66ec88fSEmmanuel Vadot "brcm,bcm5395" 13c66ec88fSEmmanuel Vadot "brcm,bcm5389" 14c66ec88fSEmmanuel Vadot "brcm,bcm5397" 15c66ec88fSEmmanuel Vadot "brcm,bcm5398" 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadot For the BCM11360 SoC, must be: 18c66ec88fSEmmanuel Vadot "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab" string 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot For the BCM5310x SoCs with an integrated switch, must be one of: 21c66ec88fSEmmanuel Vadot "brcm,bcm53010-srab" 22c66ec88fSEmmanuel Vadot "brcm,bcm53011-srab" 23c66ec88fSEmmanuel Vadot "brcm,bcm53012-srab" 24c66ec88fSEmmanuel Vadot "brcm,bcm53018-srab" 25c66ec88fSEmmanuel Vadot "brcm,bcm53019-srab" and the mandatory "brcm,bcm5301x-srab" string 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot For the BCM5831X/BCM1140x SoCs with an integrated switch, must be one of: 28c66ec88fSEmmanuel Vadot "brcm,bcm11404-srab" 29c66ec88fSEmmanuel Vadot "brcm,bcm11407-srab" 30c66ec88fSEmmanuel Vadot "brcm,bcm11409-srab" 31c66ec88fSEmmanuel Vadot "brcm,bcm58310-srab" 32c66ec88fSEmmanuel Vadot "brcm,bcm58311-srab" 33c66ec88fSEmmanuel Vadot "brcm,bcm58313-srab" and the mandatory "brcm,omega-srab" string 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot For the BCM585xx/586XX/88312 SoCs with an integrated switch, must be one of: 36c66ec88fSEmmanuel Vadot "brcm,bcm58522-srab" 37c66ec88fSEmmanuel Vadot "brcm,bcm58523-srab" 38c66ec88fSEmmanuel Vadot "brcm,bcm58525-srab" 39c66ec88fSEmmanuel Vadot "brcm,bcm58622-srab" 40c66ec88fSEmmanuel Vadot "brcm,bcm58623-srab" 41c66ec88fSEmmanuel Vadot "brcm,bcm58625-srab" 42c66ec88fSEmmanuel Vadot "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot For the BCM63xx/33xx SoCs with an integrated switch, must be one of: 45c66ec88fSEmmanuel Vadot "brcm,bcm3384-switch" 46c66ec88fSEmmanuel Vadot "brcm,bcm6328-switch" 47c66ec88fSEmmanuel Vadot "brcm,bcm6368-switch" and the mandatory "brcm,bcm63xx-switch" 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel VadotRequired properties for BCM585xx/586xx/88312 SoCs: 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot - reg: a total of 3 register base addresses, the first one must be the 52c66ec88fSEmmanuel Vadot Switch Register Access block base, the second is the port 5/4 mux 53c66ec88fSEmmanuel Vadot configuration register and the third one is the SGMII configuration 54c66ec88fSEmmanuel Vadot and status register base address. 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot - interrupts: a total of 13 interrupts must be specified, in the following 57c66ec88fSEmmanuel Vadot order: port 0-5, 7-8 link status change, then the integrated PHY interrupt, 58c66ec88fSEmmanuel Vadot then the timestamping interrupt and the sleep timer interrupts for ports 59c66ec88fSEmmanuel Vadot 5,7,8. 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel VadotOptional properties for BCM585xx/586xx/88312 SoCs: 62c66ec88fSEmmanuel Vadot 63c66ec88fSEmmanuel Vadot - reg-names: a total of 3 names matching the 3 base register address, must 64c66ec88fSEmmanuel Vadot be in the following order: 65c66ec88fSEmmanuel Vadot "srab" 66c66ec88fSEmmanuel Vadot "mux_config" 67c66ec88fSEmmanuel Vadot "sgmii_config" 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadot - interrupt-names: a total of 13 names matching the 13 interrupts specified 70c66ec88fSEmmanuel Vadot must be in the following order: 71c66ec88fSEmmanuel Vadot "link_state_p0" 72c66ec88fSEmmanuel Vadot "link_state_p1" 73c66ec88fSEmmanuel Vadot "link_state_p2" 74c66ec88fSEmmanuel Vadot "link_state_p3" 75c66ec88fSEmmanuel Vadot "link_state_p4" 76c66ec88fSEmmanuel Vadot "link_state_p5" 77c66ec88fSEmmanuel Vadot "link_state_p7" 78c66ec88fSEmmanuel Vadot "link_state_p8" 79c66ec88fSEmmanuel Vadot "phy" 80c66ec88fSEmmanuel Vadot "ts" 81c66ec88fSEmmanuel Vadot "imp_sleep_timer_p5" 82c66ec88fSEmmanuel Vadot "imp_sleep_timer_p7" 83c66ec88fSEmmanuel Vadot "imp_sleep_timer_p8" 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel VadotSee Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional 86c66ec88fSEmmanuel Vadotrequired and optional properties. 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel VadotExamples: 89c66ec88fSEmmanuel Vadot 90c66ec88fSEmmanuel VadotEthernet switch connected via MDIO to the host, CPU port wired to eth0: 91c66ec88fSEmmanuel Vadot 92c66ec88fSEmmanuel Vadot eth0: ethernet@10001000 { 93c66ec88fSEmmanuel Vadot compatible = "brcm,unimac"; 94c66ec88fSEmmanuel Vadot reg = <0x10001000 0x1000>; 95c66ec88fSEmmanuel Vadot 96c66ec88fSEmmanuel Vadot fixed-link { 97c66ec88fSEmmanuel Vadot speed = <1000>; 98*6be33864SEmmanuel Vadot full-duplex; 99c66ec88fSEmmanuel Vadot }; 100c66ec88fSEmmanuel Vadot }; 101c66ec88fSEmmanuel Vadot 102c66ec88fSEmmanuel Vadot mdio0: mdio@10000000 { 103c66ec88fSEmmanuel Vadot compatible = "brcm,unimac-mdio"; 104c66ec88fSEmmanuel Vadot #address-cells = <1>; 105c66ec88fSEmmanuel Vadot #size-cells = <0>; 106c66ec88fSEmmanuel Vadot 107*6be33864SEmmanuel Vadot switch0: ethernet-switch@1e { 108c66ec88fSEmmanuel Vadot compatible = "brcm,bcm53125"; 109*6be33864SEmmanuel Vadot reg = <30>; 110c66ec88fSEmmanuel Vadot #address-cells = <1>; 111c66ec88fSEmmanuel Vadot #size-cells = <0>; 112c66ec88fSEmmanuel Vadot 113c66ec88fSEmmanuel Vadot ports { 114c66ec88fSEmmanuel Vadot #address-cells = <1>; 115c66ec88fSEmmanuel Vadot #size-cells = <0>; 116c66ec88fSEmmanuel Vadot 117c66ec88fSEmmanuel Vadot port0@0 { 118c66ec88fSEmmanuel Vadot reg = <0>; 119c66ec88fSEmmanuel Vadot label = "lan1"; 120c66ec88fSEmmanuel Vadot }; 121c66ec88fSEmmanuel Vadot 122c66ec88fSEmmanuel Vadot port1@1 { 123c66ec88fSEmmanuel Vadot reg = <1>; 124c66ec88fSEmmanuel Vadot label = "lan2"; 125c66ec88fSEmmanuel Vadot }; 126c66ec88fSEmmanuel Vadot 127c66ec88fSEmmanuel Vadot port5@5 { 128c66ec88fSEmmanuel Vadot reg = <5>; 129c66ec88fSEmmanuel Vadot label = "cable-modem"; 130c66ec88fSEmmanuel Vadot fixed-link { 131c66ec88fSEmmanuel Vadot speed = <1000>; 132*6be33864SEmmanuel Vadot full-duplex; 133c66ec88fSEmmanuel Vadot }; 134c66ec88fSEmmanuel Vadot phy-mode = "rgmii-txid"; 135c66ec88fSEmmanuel Vadot }; 136c66ec88fSEmmanuel Vadot 137c66ec88fSEmmanuel Vadot port8@8 { 138c66ec88fSEmmanuel Vadot reg = <8>; 139c66ec88fSEmmanuel Vadot label = "cpu"; 140c66ec88fSEmmanuel Vadot fixed-link { 141c66ec88fSEmmanuel Vadot speed = <1000>; 142*6be33864SEmmanuel Vadot full-duplex; 143c66ec88fSEmmanuel Vadot }; 144c66ec88fSEmmanuel Vadot phy-mode = "rgmii-txid"; 145c66ec88fSEmmanuel Vadot ethernet = <ð0>; 146c66ec88fSEmmanuel Vadot }; 147c66ec88fSEmmanuel Vadot }; 148c66ec88fSEmmanuel Vadot }; 149c66ec88fSEmmanuel Vadot }; 150