zephyr/drivers/counter/Kconfig.mcux_ctimer
Benjamin Perseghetti 9a420255ed drivers: counter: mcux_ctimer: migrate inputmux capture to mux subsystem
The mux subsystem rework converted the PWM and qdec INPUTMUX consumers
to mux-states and deleted the #inputmux-cells specifier space, but this
driver was left behind on inputmux-connections, so enabling capture now
fails at devicetree parse time (counter_capture on frdm_mcxa153).

Convert it the same way as pwm_mcux_ctimer: mux-states in the binding
and test overlay (same cells, renamed), a mux_state_apply() loop in the
driver with its error propagated out of init, select MUX in Kconfig,
and the missing Counter entry in the 4.5 migration guide.

Fixes #115616

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2026-08-12 19:25:43 -04:00

22 lines
640 B
Text

# MCUXpresso SDK CTIMER
# Copyright (c) 2021 Toby firth
# SPDX-License-Identifier: Apache-2.0
config COUNTER_MCUX_CTIMER
bool "MCUX CTIMER driver"
default y
depends on DT_HAS_NXP_LPC_CTIMER_ENABLED
select COUNTER_SUPPORTS_CAPTURE
select MUX if COUNTER_CAPTURE
select PINCTRL if COUNTER_CAPTURE
help
Enable support for MCUX CTIMER driver.
config COUNTER_MCUX_CTIMER_RESERVE_CHANNEL_FOR_SETTOP
bool "reserve a ctimer channel to set the top value"
default y
depends on COUNTER_MCUX_CTIMER
help
This reserves a CTimer channel to set the top value. Without
this the set top value can be set only to the max counter value.