1Marvell DSA Switch Device Tree Bindings 2--------------------------------------- 3 4WARNING: This binding is currently unstable. Do not program it into a 5FLASH never to be changed again. Once this binding is stable, this 6warning will be removed. 7 8If you need a stable binding, use the old dsa.txt binding. 9 10Marvell Switches are MDIO devices. The following properties should be 11placed as a child node of an mdio device. 12 13The properties described here are those specific to Marvell devices. 14Additional required and optional properties can be found in dsa.txt. 15 16The compatibility string is used only to find an identification register, 17which is at a different MDIO base address in different switch families. 18- "marvell,mv88e6085" : Switch has base address 0x10. Use with models: 19 6085, 6095, 6097, 6123, 6131, 6141, 6161, 6165, 20 6171, 6172, 6175, 6176, 6185, 6240, 6320, 6321, 21 6341, 6350, 6351, 6352 22- "marvell,mv88e6190" : Switch has base address 0x00. Use with models: 23 6190, 6190X, 6191, 6290, 6390, 6390X 24 25Required properties: 26- compatible : Should be one of "marvell,mv88e6085" or 27 "marvell,mv88e6190" as indicated above 28- reg : Address on the MII bus for the switch. 29 30Optional properties: 31 32- reset-gpios : Should be a gpio specifier for a reset line 33- interrupts : Interrupt from the switch 34- interrupt-controller : Indicates the switch is itself an interrupt 35 controller. This is used for the PHY interrupts. 36#interrupt-cells = <2> : Controller uses two cells, number and flag 37- eeprom-length : Set to the length of an EEPROM connected to the 38 switch. Must be set if the switch can not detect 39 the presence and/or size of a connected EEPROM, 40 otherwise optional. 41- mdio : Container of PHY and devices on the switches MDIO 42 bus. 43- mdio? : Container of PHYs and devices on the external MDIO 44 bus. The node must contains a compatible string of 45 "marvell,mv88e6xxx-mdio-external" 46 47Example: 48 49 mdio { 50 #address-cells = <1>; 51 #size-cells = <0>; 52 interrupt-parent = <&gpio0>; 53 interrupts = <27 IRQ_TYPE_LEVEL_LOW>; 54 interrupt-controller; 55 #interrupt-cells = <2>; 56 57 switch0: switch@0 { 58 compatible = "marvell,mv88e6085"; 59 reg = <0>; 60 reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; 61 62 mdio { 63 #address-cells = <1>; 64 #size-cells = <0>; 65 switch1phy0: switch1phy0@0 { 66 reg = <0>; 67 interrupt-parent = <&switch0>; 68 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 69 }; 70 }; 71 }; 72 }; 73 74 mdio { 75 #address-cells = <1>; 76 #size-cells = <0>; 77 interrupt-parent = <&gpio0>; 78 interrupts = <27 IRQ_TYPE_LEVEL_LOW>; 79 interrupt-controller; 80 #interrupt-cells = <2>; 81 82 switch0: switch@0 { 83 compatible = "marvell,mv88e6390"; 84 reg = <0>; 85 reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; 86 87 mdio { 88 #address-cells = <1>; 89 #size-cells = <0>; 90 switch1phy0: switch1phy0@0 { 91 reg = <0>; 92 interrupt-parent = <&switch0>; 93 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 94 }; 95 }; 96 97 mdio1 { 98 compatible = "marvell,mv88e6xxx-mdio-external"; 99 #address-cells = <1>; 100 #size-cells = <0>; 101 switch1phy9: switch1phy0@9 { 102 reg = <9>; 103 }; 104 }; 105 }; 106 }; 107