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