blob: b3dd6b40e0de29a71cdd96627cca55a09215ea9d [file] [log] [blame]
Andrew Lunn14c7b3c2016-05-10 23:27:21 +02001Marvell 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
Andrew Lunn52638f72016-05-10 23:27:22 +020013The properties described here are those specific to Marvell devices.
14Additional required and optional properties can be found in dsa.txt.
15
Andrew Lunn14c7b3c2016-05-10 23:27:21 +020016Required properties:
Andrew Lunn1a3b39e2016-11-21 23:26:57 +010017- compatible : Should be one of "marvell,mv88e6085" or
18 "marvell,mv88e6190"
Andrew Lunn14c7b3c2016-05-10 23:27:21 +020019- reg : Address on the MII bus for the switch.
20
Andrew Lunn52638f72016-05-10 23:27:22 +020021Optional properties:
22
23- reset-gpios : Should be a gpio specifier for a reset line
Andrew Lunndc30c352016-10-16 19:56:49 +020024- interrupt-parent : Parent interrupt controller
25- interrupts : Interrupt from the switch
26- interrupt-controller : Indicates the switch is itself an interrupt
27 controller. This is used for the PHY interrupts.
28#interrupt-cells = <2> : Controller uses two cells, number and flag
29- mdio : container of PHY and devices on the switches MDIO
30 bus
Andrew Lunn14c7b3c2016-05-10 23:27:21 +020031Example:
32
33 mdio {
34 #address-cells = <1>;
35 #size-cells = <0>;
Andrew Lunndc30c352016-10-16 19:56:49 +020036 interrupt-parent = <&gpio0>;
37 interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
38 interrupt-controller;
39 #interrupt-cells = <2>;
Andrew Lunn14c7b3c2016-05-10 23:27:21 +020040
41 switch0: switch@0 {
42 compatible = "marvell,mv88e6085";
43 reg = <0>;
Andrew Lunn52638f72016-05-10 23:27:22 +020044 reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
Andrew Lunn14c7b3c2016-05-10 23:27:21 +020045 };
Andrew Lunndc30c352016-10-16 19:56:49 +020046 mdio {
47 #address-cells = <1>;
48 #size-cells = <0>;
49 switch1phy0: switch1phy0@0 {
50 reg = <0>;
51 interrupt-parent = <&switch0>;
52 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
53 };
54 };
Andrew Lunn14c7b3c2016-05-10 23:27:21 +020055 };