zephyr/dts
Fabio Baltieri 1dd2307b3f input: gpio_qdec: add optical encoder support
Change the gpio_qdec driver to support optical encoders.

Add a property to use for defining an arbitrary number of GPIOs for the
sensing devices (typically infrared LEDs, but could also be the
biasing for the phototransistor), and one for adding a delay between
turning those on and reading the pin status.

The infrared LEDs typically consume a non negligible amount of power, so
there's also a new idle-poll-time-us property that enables two possible
modes of operation:

- if idle-poll-time-us is zero (default) the LEDs are enabled all the
  time and the driver enters polling mode using the GPIO interrupt as
  with mechanical encoders. This is usable for mains powered devices and
  has the lowest overhead on the CPU.

- if idle-poll-time-us is non zero, then the driver polls the encoder
  all the time, turning on the LEDs just before reading the state and
  shutting them off immediately after, but when the encoder is idle it
  switches the polling rate to idle-poll-time-us to save power, and only
  polls at sample-time-us when some movement is detected.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-23 09:45:57 -05:00
..
arc/synopsys drivers: spi: dw: define max-xfer-size 2024-01-20 13:11:42 +01:00
arm drivers: spi: dw: define max-xfer-size 2024-01-20 13:11:42 +01:00
arm64 soc: imx93: enable rgpio driver 2024-01-16 20:50:11 -05:00
bindings input: gpio_qdec: add optical encoder support 2024-01-23 09:45:57 -05:00
common dts/arm: stm32: Add clocks nodes on stm32wb,l4 and stm32f4 series 2021-04-27 11:53:37 +02:00
nios2/intel dts: nios2: intel: nios2-qemu: add jtag interrupt 2023-01-27 14:24:43 -05:00
posix dts: posix: Add DTS support for POSIX architecture 2019-05-28 21:14:19 -04:00
riscv dts: riscv: sifive: fu540: add missing ngpios property 2024-01-19 15:13:53 +00:00
sparc/gaisler dts/sparc/gaisler: add SoC and board compatible strings 2023-05-02 10:53:27 +02:00
x86/intel dts: x86: intel: alder_lake: Added UARTs DMA instances 2024-01-11 15:41:42 -06:00
xtensa soc: esp32: refactor esp32_net 2024-01-13 00:22:24 +00:00
binding-template.yaml doc: devicetree: overhaul bindings guide 2021-04-22 15:32:10 +02:00
Kconfig dts: drop HAS_DTS 2023-10-20 12:18:17 -07:00