Commit eae316eb authored by Declan Snyder's avatar Declan Snyder Committed by Henrik Brix Andersen
Browse files

dts: bindings: Rename nxp,kinetis-lptmr compat



Rename nxp,kinetis-lptmr compat to nxp,lptmr.
Because of concerns over breaking downstream users,
keep support for the old compatible temporarily and
make it clear it should be changed.

Signed-off-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent 75165050
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -6,6 +6,17 @@
config COUNTER_MCUX_LPTMR
	bool "MCUX LPTMR driver"
	default y
	depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
	depends on DT_HAS_NXP_LPTMR_ENABLED || \
		   COUNTER_MCUX_KINETIS_LPTMR
	help
	  Enable support for the MCUX Low Power Timer (LPTMR).

config COUNTER_MCUX_KINETIS_LPTMR
	bool "Deprecated DT compatible"
	default y
	depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED
	select DEPRECATED
	help
	  The compatible string "nxp,kinetis-lptmr" should
	  be swiched to "nxp,lptmr" in DT. The former will
	  be removed eventually.
+5 −0
Original line number Diff line number Diff line
@@ -4,7 +4,12 @@
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/devicetree.h>
#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 <zephyr/drivers/counter.h>
#include <zephyr/irq.h>
+8 −0
Original line number Diff line number Diff line
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0

description: Deprecated compatible for NXP LPTMR

compatible: "nxp,kinetis-lptmr"

include: nxp,lptmr.yaml
+2 −2
Original line number Diff line number Diff line
# Copyright (c) 2020 Vestas Wind Systems A/S
# SPDX-License-Identifier: Apache-2.0

description: Kinetis LPTMR
description: NXP LPTMR

compatible: "nxp,kinetis-lptmr"
compatible: "nxp,lptmr"

include: rtc.yaml