net: dsa: mv88e6xxx: Implement interrupt support.
[linux-2.6/btrfs-unstable.git] / Documentation / devicetree / bindings / net / dsa / marvell.txt
blob32025eb4b31bc80020533b88d038378b30ae342f
1 Marvell DSA Switch Device Tree Bindings
2 ---------------------------------------
4 WARNING: This binding is currently unstable. Do not program it into a
5 FLASH never to be changed again. Once this binding is stable, this
6 warning will be removed.
8 If you need a stable binding, use the old dsa.txt binding.
10 Marvell Switches are MDIO devices. The following properties should be
11 placed as a child node of an mdio device.
13 The properties described here are those specific to Marvell devices.
14 Additional required and optional properties can be found in dsa.txt.
16 Required properties:
17 - compatible           : Should be one of "marvell,mv88e6085",
18 - reg                  : Address on the MII bus for the switch.
20 Optional properties:
22 - reset-gpios           : Should be a gpio specifier for a reset line
23 - interrupt-parent      : Parent interrupt controller
24 - interrupts            : Interrupt from the switch
25 - interrupt-controller  : Indicates the switch is itself an interrupt
26                           controller. This is used for the PHY interrupts.
27 #interrupt-cells = <2>  : Controller uses two cells, number and flag
28 - mdio                  : container of PHY and devices on the switches MDIO
29                           bus
30 Example:
32        mdio {
33                #address-cells = <1>;
34                #size-cells = <0>;
35                interrupt-parent = <&gpio0>;
36                interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
37                interrupt-controller;
38                #interrupt-cells = <2>;
40                switch0: switch@0 {
41                        compatible = "marvell,mv88e6085";
42                        reg = <0>;
43                        reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
44                };
45                mdio {
46                        #address-cells = <1>;
47                        #size-cells = <0>;
48                        switch1phy0: switch1phy0@0 {
49                                reg = <0>;
50                                interrupt-parent = <&switch0>;
51                                interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
52                        };
53                };
54        };