Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion boards/nxp/frdm_k22f/frdm_k22f.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2018 Prevas A/S
* Copyright 2024 NXP
* Copyright 2024-2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -29,6 +29,7 @@
magn0 = &fxos8700;
accel0 = &fxos8700;
mcuboot-button0 = &user_button_3;
rtc = &rtc;
};

chosen {
Expand Down Expand Up @@ -232,3 +233,7 @@ zephyr_uhc0: &usbh {

};
};

&rtc {
status = "okay";
};
6 changes: 6 additions & 0 deletions boards/nxp/frdm_k32l2b3/frdm_k32l2b3.dts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2025 Ishraq Ibne Ashraf <[email protected]>
* Copyright 2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -22,6 +23,7 @@
sw1 = &sw_3;
magn0 = &fxos8700;
accel0 = &fxos8700;
rtc = &rtc;
};

chosen {
Expand Down Expand Up @@ -119,3 +121,7 @@
reset-gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
};
};

&rtc {
status = "okay";
};
11 changes: 10 additions & 1 deletion boards/nxp/frdm_k64f/frdm_k64f.dts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright 2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

Expand All @@ -19,6 +23,7 @@
magn0 = &fxos8700;
accel0 = &fxos8700;
mcuboot-button0 = &user_button_2;
rtc = &rtc;
};

chosen {
Expand Down Expand Up @@ -298,3 +303,7 @@ zephyr_udc0: &usbotg {
&pit0 {
status = "okay";
};

&rtc {
status = "okay";
};
6 changes: 6 additions & 0 deletions boards/nxp/frdm_k82f/frdm_k82f.dts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019 SEAL AG
* Copyright 2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -28,6 +29,7 @@
magn0 = &fxos8700;
accel0 = &fxos8700;
mcuboot-button0 = &user_button_0;
rtc = &rtc;
};

chosen {
Expand Down Expand Up @@ -258,3 +260,7 @@ arduino_spi: &spi0 {
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";
};

&rtc {
status = "okay";
};
7 changes: 6 additions & 1 deletion boards/nxp/frdm_ke15z/frdm_ke15z.dts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2024 NXP
* Copyright 2024-2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -20,6 +20,7 @@
led2 = &red_led;
sw0 = &user_button_0;
sw1 = &user_button_1;
rtc = &rtc;
};

chosen {
Expand Down Expand Up @@ -103,3 +104,7 @@
&gpiod {
status = "okay";
};

&rtc {
status = "okay";
};
3 changes: 2 additions & 1 deletion boards/nxp/frdm_mcxc444/frdm_mcxc444.dts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2024 NXP
* Copyright 2024-2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -28,6 +28,7 @@
sw1 = &user_button_3;
accel0 = &fxls8974;
pwm-0 = &tpm0;
rtc = &rtc;
};

chosen {
Expand Down
1 change: 1 addition & 0 deletions boards/nxp/frdm_mcxw71/frdm_mcxw71.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
blue-pwm-led = &blue_pwm_led;
green-pwm-led = &green_pwm_led;
red-pwm-led = &red_pwm_led;
rtc = &rtc;
};

chosen {
Expand Down
5 changes: 5 additions & 0 deletions boards/nxp/frdm_mcxw72/frdm_mcxw72_mcxw727c_cpu0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
green-pwm-led = &green_pwm_led;
red-pwm-led = &red_pwm_led;
sw0 = &user_button_0;
rtc = &rtc;
};

chosen {
Expand Down Expand Up @@ -185,3 +186,7 @@
reg = <0x19>;
};
};

&rtc {
status = "okay";
};
1 change: 1 addition & 0 deletions drivers/rtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ zephyr_library_sources_ifdef(CONFIG_RTC_INFINEON_CAT1 rtc_ifx_cat1.c)
zephyr_library_sources_ifdef(CONFIG_RTC_MOTOROLA_MC146818 rtc_mc146818.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NUMAKER rtc_numaker.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NXP_IRTC rtc_nxp_irtc.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NXP_RTC rtc_nxp_rtc.c)
zephyr_library_sources_ifdef(CONFIG_RTC_PCF2123 rtc_pcf2123.c)
zephyr_library_sources_ifdef(CONFIG_RTC_PCF8523 rtc_pcf8523.c)
zephyr_library_sources_ifdef(CONFIG_RTC_PCF8563 rtc_pcf8563.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ source "drivers/rtc/Kconfig.ifx_cat1"
source "drivers/rtc/Kconfig.mc146818"
source "drivers/rtc/Kconfig.numaker"
source "drivers/rtc/Kconfig.nxp_irtc"
source "drivers/rtc/Kconfig.nxp_rtc"
source "drivers/rtc/Kconfig.pcf2123"
source "drivers/rtc/Kconfig.pcf8523"
source "drivers/rtc/Kconfig.pcf8563"
Expand Down
7 changes: 7 additions & 0 deletions drivers/rtc/Kconfig.nxp_rtc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

config RTC_NXP_RTC
bool "NXP Real Time Clock driver"
default y
depends on DT_HAS_NXP_RTC_ENABLED
Loading
Loading