0001 * ST Microelectronics STMPE Multi-Functional Device
0002
0003 STMPE is an MFD device which may expose the following inbuilt devices: gpio,
0004 keypad, touchscreen, adc, pwm, rotator.
0005
0006 Required properties:
0007 - compatible : "st,stmpe[610|801|811|1600|1601|2401|2403]"
0008 - reg : I2C/SPI address of the device
0009
0010 Optional properties:
0011 - interrupts : The interrupt outputs from the controller
0012 - interrupt-controller : Marks the device node as an interrupt controller
0013 - wakeup-source : Marks the input device as wakable
0014 - st,autosleep-timeout : Valid entries (ms); 4, 16, 32, 64, 128, 256, 512 and 1024
0015 - irq-gpio : If present, which GPIO to use for event IRQ
0016
0017 Optional properties for devices with touch and ADC (STMPE811|STMPE610):
0018 - st,sample-time : ADC conversion time in number of clock.
0019 0 -> 36 clocks 4 -> 80 clocks (recommended)
0020 1 -> 44 clocks 5 -> 96 clocks
0021 2 -> 56 clocks 6 -> 124 clocks
0022 3 -> 64 clocks
0023 - st,mod-12b : ADC Bit mode
0024 0 -> 10bit ADC 1 -> 12bit ADC
0025 - st,ref-sel : ADC reference source
0026 0 -> internal 1 -> external
0027 - st,adc-freq : ADC Clock speed
0028 0 -> 1.625 MHz 2 || 3 -> 6.5 MHz
0029 1 -> 3.25 MHz
0030
0031 Example:
0032
0033 stmpe1601: stmpe1601@40 {
0034 compatible = "st,stmpe1601";
0035 reg = <0x40>;
0036 interrupts = <26 0x4>;
0037 interrupt-parent = <&gpio6>;
0038 interrupt-controller;
0039
0040 wakeup-source;
0041 st,autosleep-timeout = <1024>;
0042 };