diff options
author | Fabrice Gasnier <fabrice.gasnier@foss.st.com> | 2024-03-07 14:33:02 +0100 |
---|---|---|
committer | William Breathitt Gray <wbg@kernel.org> | 2024-04-02 13:10:34 -0400 |
commit | 29646ee33cc34b322578e923a121a3ba5eedc22b (patch) | |
tree | 005e9b272d70ddae5a092b2c523ffaa738b51d12 /drivers/cdx/controller/cdx_controller.c | |
parent | b73d03b3474212028f5b41675b0f30273c7ffa58 (diff) | |
download | linux-29646ee33cc34b322578e923a121a3ba5eedc22b.tar.gz linux-29646ee33cc34b322578e923a121a3ba5eedc22b.tar.bz2 linux-29646ee33cc34b322578e923a121a3ba5eedc22b.zip |
counter: stm32-timer-cnt: add checks on quadrature encoder capability
This is a precursor patch to support capture channels on all possible
channels and stm32 timer types. Original driver was intended to be used
only as quadrature encoder and simple counter on internal clock.
So, add a check on encoder capability, so the driver may be probed for
timer instances without encoder feature. This way, all timers may be used
as simple counter on internal clock, starting from here.
Encoder capability is retrieved by using the timer index (originally in
stm32-timer-trigger driver and dt-bindings). The need to keep backward
compatibility with existing device tree lead to parse aside trigger node.
Reviewed-by: William Breathitt Gray <william.gray@linaro.org>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20240307133306.383045-7-fabrice.gasnier@foss.st.com
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions