From d5a15b5311e66df76341d1a2e2ed5c4f63f34507 Mon Sep 17 00:00:00 2001 From: Allen Zhang Date: Wed, 29 Oct 2025 15:44:30 +0800 Subject: [PATCH 1/2] boards: mcxw23: Use SYSTICK as the default kernel timer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SYSTICK is used as the default kernel timer. The FRO 1M clock source for OSTIMER is trimmed to ± 15% accuracy over the entire voltage and temperature. The FRO 1M is not accurate enough on the silicon. Signed-off-by: Allen Zhang --- boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi | 8 ++++---- boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi b/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi index e7065d363b254..5a9f1d6edfe70 100644 --- a/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi +++ b/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi @@ -177,11 +177,11 @@ }; /* - * MCXW23 FRDM board uses OS timer as the kernel timer - * In case we need to switch to SYSTICK timer, then - * replace &os_timer with &systick + * MCXW23 FRDM board uses SYSTICK timer as the kernel timer. + * In case we need to switch to OS timer, then + * replace &systick with &os_timer */ -&os_timer { +&systick { status = "okay"; }; diff --git a/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi b/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi index 7cdc1103826a0..0561021781139 100644 --- a/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi +++ b/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi @@ -157,11 +157,11 @@ }; /* - * MCXW23 EVK board uses OS timer as the kernel timer - * In case we need to switch to SYSTICK timer, then - * replace &os_timer with &systick + * MCXW23 EVK board uses SYSTICK timer as the kernel timer. + * In case we need to switch to OS timer, then + * replace &systick with &os_timer */ -&os_timer { +&systick { status = "okay"; }; From 2c571c2b8cacc2a4af5c3903e373f6712ea9d1f0 Mon Sep 17 00:00:00 2001 From: Allen Zhang Date: Wed, 29 Oct 2025 16:28:05 +0800 Subject: [PATCH 2/2] boards: mcxw23: Fix the compliance check issues Fixed the indentation issue in dtsi files Signed-off-by: Allen Zhang --- .../nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi | 66 +++++++++---------- boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi | 50 +++++++------- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi b/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi index 5a9f1d6edfe70..205594e59d760 100644 --- a/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi +++ b/boards/nxp/frdm_mcxw23/frdm_mcxw23_common.dtsi @@ -20,7 +20,7 @@ zephyr,flash-controller = &iap; }; - aliases{ + aliases { led0 = &red_led; led1 = &green_led; led2 = &blue_led; @@ -82,17 +82,17 @@ gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = /* Not a GPIO*/ /* AN */ - /* Not a GPIO*/ /* RST */ - <2 0 &gpio0 8 0>, /* CS */ - <3 0 &gpio0 10 0>, /* SCK */ - <4 0 &gpio0 7 0>, /* MISO */ - <5 0 &gpio0 6 0>, /* MOSI */ - <6 0 &gpio0 15 0>, /* PWM */ - <7 0 &gpio0 16 0>, /* INT */ - <8 0 &gpio0 3 0>, /* RX */ - <9 0 &gpio0 2 0>, /* TX */ - <10 0 &gpio0 14 0>, /* SCL */ - <11 0 &gpio0 13 0>; /* SDA */ + /* Not a GPIO*/ /* RST */ + <2 0 &gpio0 8 0>, /* CS */ + <3 0 &gpio0 10 0>, /* SCK */ + <4 0 &gpio0 7 0>, /* MISO */ + <5 0 &gpio0 6 0>, /* MOSI */ + <6 0 &gpio0 15 0>, /* PWM */ + <7 0 &gpio0 16 0>, /* INT */ + <8 0 &gpio0 3 0>, /* RX */ + <9 0 &gpio0 2 0>, /* TX */ + <10 0 &gpio0 14 0>, /* SCL */ + <11 0 &gpio0 13 0>; /* SDA */ }; arduino_header: arduino-connector { @@ -101,27 +101,27 @@ gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , /* D8 is not connected */ - , - , - , - , - , - , - ; + , + , + , + , + , + , + , + , + , + , + , + , + , + , /* D8 is not connected */ + , + , + , + , + , + , + ; }; }; diff --git a/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi b/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi index 0561021781139..c21e8e277696c 100644 --- a/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi +++ b/boards/nxp/mcxw23_evk/mcxw23_evk_common.dtsi @@ -20,7 +20,7 @@ zephyr,flash-controller = &iap; }; - aliases{ + aliases { led0 = &red_led; sw0 = &btn_wk; sw1 = &btn_usr; @@ -70,15 +70,15 @@ gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = /* Not a GPIO*/ /* AN */ - /* Not a GPIO*/ /* RST */ - <2 0 &gpio0 0 0>, /* CS */ - <3 0 &gpio0 4 0>, /* SCK */ - <4 0 &gpio0 3 0>, /* MISO */ - <5 0 &gpio0 2 0>, /* MOSI */ - <8 0 &gpio0 2 0>, /* RX */ - <9 0 &gpio0 3 0>, /* TX */ - <10 0 &gpio0 3 0>, /* SCL */ - <11 0 &gpio0 2 0>; /* SDA */ + /* Not a GPIO*/ /* RST */ + <2 0 &gpio0 0 0>, /* CS */ + <3 0 &gpio0 4 0>, /* SCK */ + <4 0 &gpio0 3 0>, /* MISO */ + <5 0 &gpio0 2 0>, /* MOSI */ + <8 0 &gpio0 2 0>, /* RX */ + <9 0 &gpio0 3 0>, /* TX */ + <10 0 &gpio0 3 0>, /* SCL */ + <11 0 &gpio0 2 0>; /* SDA */ }; arduino_header: arduino-connector { @@ -87,21 +87,21 @@ gpio-map-mask = <0xffffffff 0xffffffc0>; gpio-map-pass-thru = <0 0x3f>; gpio-map = , - , - , /* D2 is not connected */ - , /* D3 is not connected */ - , /* D4 is not connected */ - , /* D5 is not connected */ - , /* D6 is not connected */ - , /* D7 is not connected */ - , /* D8 is not connected */ - , /* D9 is not connected */ - , - , - , - , - , - ; + , + , /* D2 is not connected */ + , /* D3 is not connected */ + , /* D4 is not connected */ + , /* D5 is not connected */ + , /* D6 is not connected */ + , /* D7 is not connected */ + , /* D8 is not connected */ + , /* D9 is not connected */ + , + , + , + , + , + ; }; };