About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / gpio / gpio-sx150x.txt


Based on kernel version 4.9. Page generated on 2016-12-21 14:29 EST.

1	SEMTECH SX150x GPIO expander bindings
2	
3	
4	Required 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	
25	The GPIO expander can optionally be used as an interrupt controller, in
26	which case it uses the default two cell specifier as described in
27	Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
28	
29	Example:
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		};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog