mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
81cdab7981
This adds the devicetree bindings for the STMPE ADC. This also corrects a typo in st,sample-time it is rather "6 -> 124 clocks" according to the datasheet and not 144. We need to use the naming stmpe_adc in devicetree because this is given by the mfd device. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
* ST Microelectronics STMPE Multi-Functional Device
|
|
|
|
STMPE is an MFD device which may expose the following inbuilt devices: gpio,
|
|
keypad, touchscreen, adc, pwm, rotator.
|
|
|
|
Required properties:
|
|
- compatible : "st,stmpe[610|801|811|1600|1601|2401|2403]"
|
|
- reg : I2C/SPI address of the device
|
|
|
|
Optional properties:
|
|
- interrupts : The interrupt outputs from the controller
|
|
- interrupt-controller : Marks the device node as an interrupt controller
|
|
- wakeup-source : Marks the input device as wakable
|
|
- st,autosleep-timeout : Valid entries (ms); 4, 16, 32, 64, 128, 256, 512 and 1024
|
|
- irq-gpio : If present, which GPIO to use for event IRQ
|
|
|
|
Optional properties for devices with touch and ADC (STMPE811|STMPE610):
|
|
- st,sample-time : ADC conversion time in number of clock.
|
|
0 -> 36 clocks 4 -> 80 clocks (recommended)
|
|
1 -> 44 clocks 5 -> 96 clocks
|
|
2 -> 56 clocks 6 -> 124 clocks
|
|
3 -> 64 clocks
|
|
- st,mod-12b : ADC Bit mode
|
|
0 -> 10bit ADC 1 -> 12bit ADC
|
|
- st,ref-sel : ADC reference source
|
|
0 -> internal 1 -> external
|
|
- st,adc-freq : ADC Clock speed
|
|
0 -> 1.625 MHz 2 || 3 -> 6.5 MHz
|
|
1 -> 3.25 MHz
|
|
|
|
Example:
|
|
|
|
stmpe1601: stmpe1601@40 {
|
|
compatible = "st,stmpe1601";
|
|
reg = <0x40>;
|
|
interrupts = <26 0x4>;
|
|
interrupt-parent = <&gpio6>;
|
|
interrupt-controller;
|
|
|
|
wakeup-source;
|
|
st,autosleep-timeout = <1024>;
|
|
};
|