• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SEMTECH SX150x GPIO expander bindings
2
3
4Required properties:
5
6- compatible: should be "semtech,sx1506q",
7			"semtech,sx1508q",
8			"semtech,sx1509q",
9			"semtech,sx1502q".
10
11- reg: The I2C slave address for this device.
12
13- interrupt-parent: phandle of the parent interrupt controller.
14
15- interrupts: Interrupt specifier for the controllers interrupt.
16
17- #gpio-cells: Should be 2. The first cell is the GPIO number and the
18		second cell is used to specify optional parameters:
19		bit 0: polarity (0: normal, 1: inverted)
20
21- gpio-controller: Marks the device as a GPIO controller.
22
23- interrupt-controller: Marks the device as a interrupt controller.
24
25The GPIO expander can optionally be used as an interrupt controller, in
26which case it uses the default two cell specifier as described in
27Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
28
29Example:
30
31	i2c_gpio_expander@20{
32		#gpio-cells = <2>;
33		#interrupt-cells = <2>;
34		compatible = "semtech,sx1506q";
35		reg = <0x20>;
36		interrupt-parent = <&gpio_1>;
37		interrupts = <16 0>;
38
39		gpio-controller;
40		interrupt-controller;
41	};
42