DM timer hardware supports capture feature.It can be used
to timestamp events (falling/rising edges) detected on input signal.
The timer IO pin can also be configured in PWM mode but this
driver supports simple independent capture functionality.
Dependency:
https://lore.kernel.org/all/f0d72eac-f842-4060-b197-ced20048b34b@linaro.org/
Gokul Praveen (3):
dt-bindings: counter: Add new ti,omap-dmtimer-cap compatible
counter: ti-dmtimer-cap : capture driver support for OMAP DM timer
Enable required config for OMAP DM timer capture driver on J784S4 SOC.
.../bindings/counter/ti,omap-dmtimer-cap.yaml | 34 ++
arch/arm64/configs/defconfig | 1 +
drivers/counter/Kconfig | 13 +
drivers/counter/Makefile | 1 +
drivers/counter/ti-dmtimer-cap.c | 455 ++++++++++++++++++
5 files changed, 504 insertions(+)
create mode 100644 Documentation/devicetree/bindings/counter/ti,omap-dmtimer-cap.yaml
create mode 100644 drivers/counter/ti-dmtimer-cap.c
--
2.34.1