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: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
75165050f7
commit
eae316ebc9
4 changed files with 27 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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
dts/bindings/counter/nxp,kinetis-lptmr.yaml
Normal file
8
dts/bindings/counter/nxp,kinetis-lptmr.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Deprecated compatible for NXP LPTMR
|
||||
|
||||
compatible: "nxp,kinetis-lptmr"
|
||||
|
||||
include: nxp,lptmr.yaml
|
|
@ -1,9 +1,9 @@
|
|||
# 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue