diff --git a/drivers/counter/Kconfig.mcux_lptmr b/drivers/counter/Kconfig.mcux_lptmr index 3ecaef7395c..11f387eef3c 100644 --- a/drivers/counter/Kconfig.mcux_lptmr +++ b/drivers/counter/Kconfig.mcux_lptmr @@ -6,17 +6,6 @@ config COUNTER_MCUX_LPTMR bool "MCUX LPTMR driver" default y - depends on DT_HAS_NXP_LPTMR_ENABLED || \ - COUNTER_MCUX_KINETIS_LPTMR + depends on DT_HAS_NXP_LPTMR_ENABLED help Enable support for the MCUX Low Power Timer (LPTMR). - -config COUNTER_MCUX_KINETIS_LPTMR - bool - default y - depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED - select DEPRECATED - help - The compatible string "nxp,kinetis-lptmr" should - be switched to "nxp,lptmr" in DT. The former will - be removed eventually. diff --git a/drivers/counter/counter_mcux_lptmr.c b/drivers/counter/counter_mcux_lptmr.c index de78cc896dc..3f55a8601d3 100644 --- a/drivers/counter/counter_mcux_lptmr.c +++ b/drivers/counter/counter_mcux_lptmr.c @@ -4,14 +4,10 @@ * SPDX-License-Identifier: Apache-2.0 */ +#define DT_DRV_COMPAT nxp_lptmr + #include #include -#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_lptmr) -#define DT_DRV_COMPAT nxp_kinetis_lptmr -#else -#define DT_DRV_COMPAT nxp_lptmr -#endif - #include #include #include diff --git a/drivers/timer/Kconfig.mcux_lptmr b/drivers/timer/Kconfig.mcux_lptmr index 884ea4dc917..0e68b22b399 100644 --- a/drivers/timer/Kconfig.mcux_lptmr +++ b/drivers/timer/Kconfig.mcux_lptmr @@ -6,21 +6,10 @@ config MCUX_LPTMR_TIMER bool "MCUX LPTMR timer" default n - depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED || \ - MCUX_KINETIS_LPTMR + depends on DT_HAS_NXP_LPTMR_ENABLED depends on !COUNTER_MCUX_LPTMR select SYSTEM_TIMER_HAS_DISABLE_SUPPORT help This module implements a kernel device driver for the NXP MCUX Low Power Timer (LPTMR) and provides the standard "system clock driver" interfaces. - -config MCUX_KINETIS_LPTMR - bool - default y - depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED - select DEPRECATED - help - The compatible string "nxp,kinetis-lptmr" should - be switched to "nxp,lptmr" in DT. The former will - be removed eventually. diff --git a/drivers/timer/mcux_lptmr_timer.c b/drivers/timer/mcux_lptmr_timer.c index 930058f4ea4..f83e4c39e26 100644 --- a/drivers/timer/mcux_lptmr_timer.c +++ b/drivers/timer/mcux_lptmr_timer.c @@ -4,15 +4,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include -#if DT_HAS_COMPAT_STATUS_OKAY(nxp_kinetis_lptmr) -#define DT_DRV_COMPAT nxp_kinetis_lptmr -#else #define DT_DRV_COMPAT nxp_lptmr -#endif #include #include +#include #include #include #include diff --git a/dts/bindings/counter/nxp,kinetis-lptmr.yaml b/dts/bindings/counter/nxp,kinetis-lptmr.yaml deleted file mode 100644 index 0188b103b1c..00000000000 --- a/dts/bindings/counter/nxp,kinetis-lptmr.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2024 NXP -# SPDX-License-Identifier: Apache-2.0 - -description: Deprecated compatible for NXP LPTMR - -compatible: "nxp,kinetis-lptmr" - -include: nxp,lptmr.yaml