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
16Required properties:
17- compatible	       : Should be one of "marvell,mv88e6085" or
18			 "marvell,mv88e6190"
19- reg                  : Address on the MII bus for the switch.
20
21Optional properties:
22
23- reset-gpios		: Should be a gpio specifier for a reset line
24- 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
31Example:
32
33       mdio {
34               #address-cells = <1>;
35               #size-cells = <0>;
36               interrupt-parent = <&gpio0>;
37               interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
38               interrupt-controller;
39               #interrupt-cells = <2>;
40
41               switch0: switch@0 {
42                       compatible = "marvell,mv88e6085";
43                       reg = <0>;
44		       reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
45               };
46               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               };
55       };
56