dts: bindings: renamed binding used for pit

Renamed pit binding from nxp,kinetis-pit
to nxp,pit

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
This commit is contained in:
Emilio Benavente 2024-02-01 16:12:06 -06:00 committed by David Leach
commit 04b240c830
13 changed files with 53 additions and 25 deletions

View file

@ -40,6 +40,34 @@ zcbor
Device Drivers and Devicetree Device Drivers and Devicetree
***************************** *****************************
* The :dtcompatible:`nxp,kinetis-pit` pit driver has changed it's compatible
to :dtcompatible:`nxp,pit` and has been updated to support multiple channels.
To configure the individual channels, you must add a child node with the
compatible :dtcompatible:`nxp,pit-channel` and configure as below.
The :kconfig:option:`CONFIG_COUNTER_MCUX_PIT` has also been renamed to
:kconfig:option:`CONFIG_COUNTER_NXP_PIT` with regards to the renaming
of the binding for the pit.
example:
.. code-block:: devicetree
/ {
pit0: pit@40037000 {
/* Other Pit DT Attributes */
compatible = "nxp,pit";
status = "disabled";
num-channels = <1>;
#address-cells = <1>;
#size-cells = <0>;
pit0_channel0: pit0_channel@0 {
compatible = "nxp,pit-channel";
reg = <0>;
status = "disabled";
};
};
Analog-to-Digital Converter (ADC) Analog-to-Digital Converter (ADC)
================================= =================================

View file

@ -33,7 +33,7 @@ zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_LPTMR counter_mcux_lpt
zephyr_library_sources_ifdef(CONFIG_COUNTER_MAXIM_DS3231 maxim_ds3231.c) zephyr_library_sources_ifdef(CONFIG_COUNTER_MAXIM_DS3231 maxim_ds3231.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_NATIVE_POSIX counter_native_posix.c) zephyr_library_sources_ifdef(CONFIG_COUNTER_NATIVE_POSIX counter_native_posix.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE counter_handlers.c) zephyr_library_sources_ifdef(CONFIG_USERSPACE counter_handlers.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_MCUX_PIT counter_mcux_pit.c) zephyr_library_sources_ifdef(CONFIG_COUNTER_NXP_PIT counter_nxp_pit.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_XLNX_AXI_TIMER counter_xlnx_axi_timer.c) zephyr_library_sources_ifdef(CONFIG_COUNTER_XLNX_AXI_TIMER counter_xlnx_axi_timer.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_TMR_ESP32 counter_esp32_tmr.c) zephyr_library_sources_ifdef(CONFIG_COUNTER_TMR_ESP32 counter_esp32_tmr.c)
zephyr_library_sources_ifdef(CONFIG_COUNTER_RTC_ESP32 counter_esp32_rtc.c) zephyr_library_sources_ifdef(CONFIG_COUNTER_RTC_ESP32 counter_esp32_rtc.c)

View file

@ -68,7 +68,7 @@ source "drivers/counter/Kconfig.maxim_ds3231"
source "drivers/counter/Kconfig.native_posix" source "drivers/counter/Kconfig.native_posix"
source "drivers/counter/Kconfig.mcux_pit" source "drivers/counter/Kconfig.nxp_pit"
source "drivers/counter/Kconfig.xlnx" source "drivers/counter/Kconfig.xlnx"

View file

@ -1,11 +0,0 @@
# MCUXpresso SDK Periodic Interrupt Timer (PIT)
# Copyright 2020 NXP
# SPDX-License-Identifier: Apache-2.0
config COUNTER_MCUX_PIT
bool "MCUX PIT driver"
default y
depends on DT_HAS_NXP_KINETIS_PIT_ENABLED
help
Enable support for the MCUX Periodic Interrupt Timer (PIT).

View file

@ -0,0 +1,11 @@
# MCUXpresso SDK Periodic Interrupt Timer (PIT)
# Copyright 2020 NXP
# SPDX-License-Identifier: Apache-2.0
config COUNTER_NXP_PIT
bool "NXP PIT driver"
default y
depends on DT_HAS_NXP_PIT_ENABLED
help
Enable support for the NXP Periodic Interrupt Timer (PIT).

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#define DT_DRV_COMPAT nxp_kinetis_pit #define DT_DRV_COMPAT nxp_pit
#include <zephyr/drivers/counter.h> #include <zephyr/drivers/counter.h>
#include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control.h>

View file

@ -527,7 +527,7 @@
}; };
pit0: pit@40037000 { pit0: pit@40037000 {
compatible = "nxp,kinetis-pit"; compatible = "nxp,pit";
reg = <0x40037000 0x1000>; reg = <0x40037000 0x1000>;
clocks = <&sim KINETIS_SIM_BUS_CLK 0x103c 23>; clocks = <&sim KINETIS_SIM_BUS_CLK 0x103c 23>;
interrupts = <48 0>, <49 0>, <50 0>, <51 0>; interrupts = <48 0>, <49 0>, <50 0>, <51 0>;

View file

@ -387,7 +387,7 @@
}; };
pit0: pit@40037000 { pit0: pit@40037000 {
compatible = "nxp,kinetis-pit"; compatible = "nxp,pit";
reg = <0x40037000 0x1000>; reg = <0x40037000 0x1000>;
clocks = <&sim KINETIS_SIM_BUS_CLK 0x103c 23>; clocks = <&sim KINETIS_SIM_BUS_CLK 0x103c 23>;
interrupts = <48 0>, <49 0>, <50 0>, <51 0>; interrupts = <48 0>, <49 0>, <50 0>, <51 0>;

View file

@ -89,7 +89,7 @@
}; };
pit0: pit@76150000 { pit0: pit@76150000 {
compatible = "nxp,kinetis-pit"; compatible = "nxp,pit";
reg = <0x76150000 0x10000>; reg = <0x76150000 0x10000>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
clocks = <&clock NXP_S32_P0_REG_INTF_CLK>; clocks = <&clock NXP_S32_P0_REG_INTF_CLK>;

View file

@ -89,7 +89,7 @@
}; };
pit0: pit@76950000 { pit0: pit@76950000 {
compatible = "nxp,kinetis-pit"; compatible = "nxp,pit";
reg = <0x76950000 0x10000>; reg = <0x76950000 0x10000>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
clocks = <&clock NXP_S32_P1_REG_INTF_CLK>; clocks = <&clock NXP_S32_P1_REG_INTF_CLK>;

View file

@ -1,11 +1,11 @@
# Copyright 2020,2023 NXP # Copyright 2020,2023-2024 NXP
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
description: NXP MCUX Periodic Interrupt Timer (PIT) description: NXP Periodic Interrupt Timer (PIT)
compatible: "nxp,kinetis-pit" compatible: "nxp,pit"
include: [rtc.yaml] include: base.yaml
properties: properties:
reg: reg:

View file

@ -84,8 +84,8 @@ static const struct device *const devices[] = {
#ifdef CONFIG_COUNTER_GECKO_STIMER #ifdef CONFIG_COUNTER_GECKO_STIMER
DEVS_FOR_DT_COMPAT(silabs_gecko_stimer) DEVS_FOR_DT_COMPAT(silabs_gecko_stimer)
#endif #endif
#ifdef CONFIG_COUNTER_MCUX_PIT #ifdef CONFIG_COUNTER_NXP_PIT
DEVS_FOR_DT_COMPAT(nxp_kinetis_pit) DEVS_FOR_DT_COMPAT(nxp_pit)
#endif #endif
#ifdef CONFIG_COUNTER_XLNX_AXI_TIMER #ifdef CONFIG_COUNTER_XLNX_AXI_TIMER
DEVS_FOR_DT_COMPAT(xlnx_xps_timer_1_00_a) DEVS_FOR_DT_COMPAT(xlnx_xps_timer_1_00_a)

View file

@ -193,7 +193,7 @@ manifest:
groups: groups:
- hal - hal
- name: hal_nxp - name: hal_nxp
revision: c5a56361f3e4968a4d1eaa6f91761550b7d81e70 revision: ef5060421fdba7bd86f98e50dc15db9a5c4c1b53
path: modules/hal/nxp path: modules/hal/nxp
groups: groups:
- hal - hal