xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/stmpe.txt (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1* ST Microelectronics STMPE Multi-Functional Device
2
3STMPE is an MFD device which may expose the following inbuilt devices: gpio,
4keypad, touchscreen, adc, pwm, rotator.
5
6Required properties:
7 - compatible			: "st,stmpe[610|801|811|1600|1601|2401|2403]"
8 - reg				: I2C/SPI address of the device
9
10Optional properties:
11 - interrupts			: The interrupt outputs from the controller
12 - interrupt-controller		: Marks the device node as an interrupt controller
13 - wakeup-source		: Marks the input device as wakable
14 - st,autosleep-timeout		: Valid entries (ms); 4, 16, 32, 64, 128, 256, 512 and 1024
15 - irq-gpio			: If present, which GPIO to use for event IRQ
16
17Optional properties for devices with touch and ADC (STMPE811|STMPE610):
18 - st,sample-time		: ADC conversion time in number of clock.
19					0 -> 36 clocks		4 -> 80 clocks (recommended)
20					1 -> 44 clocks		5 -> 96 clocks
21					2 -> 56 clocks		6 -> 124 clocks
22					3 -> 64 clocks
23 - st,mod-12b			: ADC Bit mode
24					0 -> 10bit ADC		1 -> 12bit ADC
25 - st,ref-sel			: ADC reference source
26					0 -> internal		1 -> external
27 - st,adc-freq			: ADC Clock speed
28					0 -> 1.625 MHz		2 || 3 -> 6.5 MHz
29					1 -> 3.25 MHz
30
31Example:
32
33	stmpe1601: stmpe1601@40 {
34		compatible = "st,stmpe1601";
35		reg = <0x40>;
36		interrupts = <26 0x4>;
37		interrupt-parent = <&gpio6>;
38		interrupt-controller;
39
40		wakeup-source;
41		st,autosleep-timeout = <1024>;
42	};
43