Skip to content

Commit

Permalink
dt: bindings: i2c-mux-pca954x: Add documentation for interrupt contro…
Browse files Browse the repository at this point in the history
…ller

Various muxes can aggregate multiple irq lines and provide a control
register to determine the active line. Add bindings for interrupt
controller support.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Peter Rosin <peda@axentia.se>
  • Loading branch information
Phil Reid authored and Peter Rosin committed Feb 10, 2017
1 parent f8251f1 commit 9aedcc6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ Optional Properties:
- i2c-mux-idle-disconnect: Boolean; if defined, forces mux to disconnect all
children in idle state. This is necessary for example, if there are several
multiplexers on the bus and the devices behind them use same I2C addresses.

- interrupt-parent: Phandle for the interrupt controller that services
interrupts for this device.
- interrupts: Interrupt mapping for IRQ.
- interrupt-controller: Marks the device node as an interrupt controller.
- #interrupt-cells : Should be two.
- first cell is the pin number
- second cell is used to specify flags.
See also Documentation/devicetree/bindings/interrupt-controller/interrupts.txt

Example:

Expand All @@ -29,6 +36,11 @@ Example:
#size-cells = <0>;
reg = <0x74>;

interrupt-parent = <&ipic>;
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#interrupt-cells = <2>;

i2c@2 {
#address-cells = <1>;
#size-cells = <0>;
Expand Down

0 comments on commit 9aedcc6

Please sign in to comment.