-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: nxp: Add kw45b41z-evk board support
NXP KW45 EVK board support Signed-off-by: Sumit Batra <[email protected]>
- Loading branch information
1 parent
98f2f58
commit 99a0b77
Showing
11 changed files
with
300 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_INIT_PRIORITY | ||
int "Board initialization priority" | ||
default 45 | ||
help | ||
Board initialization priority. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# KW45B41Z-EVK board | ||
|
||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if BOARD_KW45B41Z_EVK | ||
|
||
config BT_DIS_MANUF | ||
default "NXP" | ||
|
||
endif # BOARD_KW45B41Z_EVK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_KW45B41Z_EVK | ||
select SOC_KW45B41Z83 | ||
select SOC_PART_NUMBER_KW45B41Z83AFTA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
board_runner_args(jlink "--device=kw45b41z83" "--reset-after-load") | ||
|
||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
board: | ||
name: kw45b41z_evk | ||
vendor: nxp | ||
socs: | ||
- name: kw45b41z83 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright 2025 NXP | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <nxp/mcx/MCXW716CMFTA-pinctrl.h> | ||
|
||
&pinctrl { | ||
pinmux_lpuart0: pinmux_lpuart0 { | ||
group0 { | ||
pinmux = <LPUART0_RX_PTA16>, <LPUART0_TX_PTA17>; | ||
drive-strength = "low"; | ||
slew-rate = "fast"; | ||
}; | ||
}; | ||
|
||
pinmux_lpuart1: pinmux_lpuart1 { | ||
group0 { | ||
pinmux = <LPUART1_RX_PTC2>, <LPUART1_TX_PTC3>; | ||
drive-strength = "low"; | ||
slew-rate = "fast"; | ||
}; | ||
}; | ||
|
||
pinmux_tpm0: pinmux_tpm0 { | ||
group0 { | ||
pinmux = <TPM0_CH0_PTA21>, | ||
<TPM0_CH1_PTA20>, | ||
<TPM0_CH2_PTA19>; | ||
drive-strength = "low"; | ||
slew-rate = "fast"; | ||
}; | ||
}; | ||
|
||
pinmux_lpi2c1: pinmux_lpi2c1 { | ||
group0 { | ||
pinmux = <LPI2C1_SCL_PTC0>, | ||
<LPI2C1_SDA_PTC1>; | ||
drive-strength = "low"; | ||
slew-rate = "fast"; | ||
bias-pull-up; | ||
}; | ||
}; | ||
|
||
pinmux_lpspi1: pinmux_lpspi1 { | ||
group0 { | ||
pinmux = <LPSPI1_SIN_PTB1>, | ||
<LPSPI1_SOUT_PTB3>; | ||
slew-rate = "fast"; | ||
drive-strength = "low"; | ||
}; | ||
}; | ||
|
||
pinmux_flexcan: pinmux_flexcan { | ||
group0 { | ||
pinmux = <CAN0_RX_PTC5>, <CAN0_TX_PTC4>; | ||
slew-rate = "slow"; | ||
drive-strength = "low"; | ||
}; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
/* | ||
* Copyright 2025 NXP | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <nxp/nxp_mcxw71.dtsi> | ||
#include "kw45b41z_evk-pinctrl.dtsi" | ||
|
||
/ { | ||
model = "NXP KW45B41Z83-EVK board"; | ||
compatible = "nxp,kw45"; | ||
|
||
aliases { | ||
led0 = &blue_led; | ||
blue-pwm-led = &blue_pwm_led; | ||
green-pwm-led = &green_pwm_led; | ||
red-pwm-led = &red_pwm_led; | ||
}; | ||
|
||
chosen { | ||
zephyr,flash = &flash; | ||
zephyr,flash-controller = &fmu; | ||
zephyr,code-partition = &slot0_partition; | ||
zephyr,sram = &stcm0; | ||
zephyr,console = &lpuart1; | ||
zephyr,shell-uart = &lpuart1; | ||
zephyr,uart-pipe = &lpuart0; | ||
zephyr,canbus = &flexcan0; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
blue_led: led { | ||
gpios = <&gpiob 0 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
pwmleds { | ||
compatible = "pwm-leds"; | ||
blue_pwm_led: pwm_led_0 { | ||
pwms = <&tpm0 1 PWM_USEC(200) PWM_POLARITY_NORMAL>; | ||
}; | ||
green_pwm_led: pwm_led_1 { | ||
pwms = <&tpm0 2 PWM_USEC(200) PWM_POLARITY_NORMAL>; | ||
}; | ||
red_pwm_led: pwm_led_2 { | ||
pwms = <&tpm0 0 PWM_USEC(200) PWM_POLARITY_NORMAL>; | ||
}; | ||
}; | ||
}; | ||
|
||
&vref { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiob { | ||
status = "okay"; | ||
}; | ||
|
||
&lpuart0 { | ||
current-speed = <115200>; | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_lpuart0>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
&lpuart1 { | ||
current-speed = <115200>; | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_lpuart1>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
&lpi2c1 { | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_lpi2c1>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
&lpspi1 { | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_lpspi1>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
&flexcan0 { | ||
status = "okay"; | ||
bitrate = <125000>; | ||
pinctrl-0 = <&pinmux_flexcan>; | ||
pinctrl-names = "default"; | ||
|
||
can-transceiver { | ||
max-bitrate = <420000000>; | ||
}; | ||
}; | ||
|
||
&flash { | ||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
boot_partition: partition@0 { | ||
reg = <0x0 DT_SIZE_K(64)>; | ||
}; | ||
|
||
slot0_partition: partition@10000 { | ||
reg = <0x10000 DT_SIZE_K(416)>; | ||
}; | ||
|
||
slot1_partition: partition@78000 { | ||
reg = <0x78000 DT_SIZE_K(416)>; | ||
}; | ||
|
||
storage_partition: partition@e0000 { | ||
reg = <0xe0000 DT_SIZE_K(128)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&fmu { | ||
status = "okay"; | ||
}; | ||
|
||
&tpm0 { | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_tpm0>; | ||
pinctrl-names = "default"; | ||
}; | ||
|
||
&lptmr0 { | ||
status = "okay"; | ||
}; | ||
|
||
&flexcan0 { | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_flexcan>; | ||
pinctrl-names = "default"; | ||
|
||
can-transceiver { | ||
max-bitrate = <5000000>; | ||
}; | ||
}; | ||
|
||
&nbu { | ||
status = "okay"; | ||
wakeup-source; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: kw45b41z_evk | ||
name: NXP KW45B41Z-EVK | ||
type: mcu | ||
arch: arm | ||
ram: 64 | ||
flash: 1024 | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
- xtools | ||
supported: | ||
- can | ||
- gpio | ||
- spi | ||
- watchdog | ||
- i2c | ||
vendor: nxp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright 2025 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_ARM_MPU=y | ||
CONFIG_TRUSTED_EXECUTION_SECURE=y | ||
CONFIG_PINCTRL=y | ||
CONFIG_SERIAL=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_GPIO=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/drivers/spi/spi_loopback/boards/kw45b41z_evk.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&lpspi1 { | ||
slow@0 { | ||
compatible = "test-spi-loopback-slow"; | ||
reg = <0>; | ||
spi-max-frequency = <500000>; | ||
}; | ||
fast@0 { | ||
compatible = "test-spi-loopback-fast"; | ||
reg = <0>; | ||
spi-max-frequency = <16000000>; | ||
}; | ||
}; |