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