Commit Graph

293 Commits

Author SHA1 Message Date
Andrej Butok
34f3786851 boards: nxp: fix mcuboot slots per automatic max sectors
Fixed mcuboot slots, needed after MCUBoot added the default
auto calculation max sectors (CONFIG_BOOT_MAX_IMG_SECTORS_AUTO).
Fixed a possible firmware update error.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-09-20 13:14:59 +02:00
Andrej Butok
726ac5cc06 boards: nxp: frdm_ke17z: Fix MCUBoot build.
Fixed MCUboot sample build for frdm_ke17z and frdm_ke17z512.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-09-20 11:05:35 +02:00
Michal Smola
9e8a8db9dc boards: frdm_mcxc242: Add pwm support
frdm_mcxc242 has tpm ip for pwm generation, but it is not enabled.
Configure and enable it. Add pwmleds definition and disable it,
as leds and pwmleds are mutually exclusive.
Update board documentation.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-19 18:27:11 +01:00
Neil Chen
16bd2e8e7d boards: frdm_mcxc444: add frdm_mcxc444 support
add frdm_mcxc444 support

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2024-09-19 18:17:19 +01:00
Lucien Zhao
ccd8464075 boards: nxp: mimxrt1180_evk: add lpadc1 support
add lpadc1 ch0a/ch1a channel in pinctrl
set lpadc1 status ok

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2024-09-19 18:16:04 +01:00
Andrej Butok
e6dc31c6e8 boards: nxp: Fix the MX25UM51245G flash DTS write block size
- Fixed the MX25UM51245G flash DTS write block size from 16 to a value
used by the flash_mcux_flexspi_mx25um51345g driver.
- Fixed flash partitions.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-09-19 03:27:39 -04:00
Reto Schneider
7b8beeab28 boards: nxp: mimxrt595_evk: Fix unit and first address mismatch
This fixes the following warning:

> unit address and first address in 'reg' (0x1a0000000000000000) don't
> match for /soc/peripheral@50000000/i3c@36000/wm8904@1a

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-18 19:56:26 +01:00
Reto Schneider
a52da052e8 boards: nxp: mimxrt685_evk: Fix unit and first address mismatch
This fixes the following warning:

> unit address and first address in 'reg' (0x1a0000000000000000) don't
> match for /soc/peripheral@50000000/i3c@36000/wm8904@1a

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-18 19:56:26 +01:00
Laurentiu Mihalcea
01418564bc boards: nxp: imx95_evk: add M7 DDR board variant
Add DDR variant of the i.MX95 EVK board (M7 core). Using this
variant, one can run Zephyr from DDR instead of ITCM/DTCM
as it's the case for the M7 "base" board.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-09-18 09:57:03 +02:00
Reto Schneider
0067081461 boards: nxp: imx8mp: Fix unit and first address mismatch
This fixes the following warning:

> devicetree error: unit address and first address in 'reg' (0x1) don't
> match for /soc/enet@30be0000/mdio/phy@0

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-17 20:06:30 -04:00
Reto Schneider
17efac3b48 boards: nxp: frdm_kw41z: Fix unit and first address mismatch
This fixes the following warnings:

> devicetree error: unit address and first address in 'reg' (0x70000)
> don't match for
> /soc/flash-controller@40020000/flash@0/partitions/partition@700000

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-17 20:06:30 -04:00
Reto Schneider
a23e2e2ed5 boards: nxp: frdm_mcxn236: Fix unit and first address mismatch
This fixes the following warning:

> unit address and first address in 'reg' (0x88000) don't match for
> <snip>/flash-controller@43000/flash@0/partitions/partition@80000

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-17 20:06:30 -04:00
Reto Schneider
06aa38e690 boards: nxp: usb_kw24d512: Fix unit and first address mismatch
This fixes the following warning:

> unit address and first address in 'reg' (0x70000) don't match for
> /soc/flash-controller@40020000/flash@0/partitions/partition@700000

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-17 20:06:30 -04:00
Reto Schneider
d35293c137 boards: nxp: imx8mp_evk: Fix unit and first address mismatch
This fixes the following warning:

> unit address and first address in 'reg' (0x1) don't match for
> /soc/enet@30be0000/mdio/phy@0

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-17 20:06:30 -04:00
Reto Schneider
b15c5d7e8b boards: nxp: imx93_evk: Fix unit and first address mismatch
This fixes the following warning:

> unit address and first address in 'reg' (0x2) don't match for
> /enet@42890000/mdio/phy@0

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-09-17 20:06:30 -04:00
Chekhov Ma
19949a0ccf boards: imx93_evk: enable flexcan driver
Add pinctrl for flexcan2
Add EXP_SEL gpio hog for board mux selection during boot.
Add TJA1057 CAN PHY driver.
Update supported features in board document

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2024-09-17 17:44:14 +01:00
Paul He
4278d0a8d6 boards: nxp: mimxrt1050: add LinkServer runner support for qspi board
override the default flash driver with MIMXRT1050_SFDP_QSPI.cfx to support
LinkServer runner for qspi board.

Signed-off-by: Paul He <pawpawhe@gmail.com>
2024-09-17 09:45:01 +02:00
Benjamin Cabé
9a16b93868 samples: hello_world: use zephyr:code-sample directive
Adds missing code-sample directive to the Hello World sample in
preparation for upcoming changes to the Zephyr documentation that will
be leveraging the provided description and metadata.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-16 10:05:18 +02:00
Benjamin Cabé
df294e34e1 doc: sphinx-lint: fix bad usage of "default role"
Fixes bad usage of single backticks in lieu of double backticks for
rendering inline literals, or simple '*' for italics.

When appropriate, a better construct than double backticks has been
selected (ex. :file:, :kconfig:option:, :c:func:, ...), or proper :ref:
have been used if the original intention was to have a link.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-13 11:42:51 -05:00
Benjamin Cabé
0eea948480 samples: boards: nxp: use zephyr:code-sample directive
Adds missing code-sample directive to all the NXP samples in
preparation for upcoming changes to the Zephyr documentation that will
be leveraging the provided description and metadata.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-13 13:43:09 +02:00
Yangbo Lu
42b7a9708a boards: nxp: imx95_evk: remove redundant CONFIG_PINCTRL in defconfig
Removed redundant CONFIG_PINCTRL in defconfig which was
selected by driver.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2024-09-13 13:42:13 +02:00
Yangbo Lu
4ea483a173 boards: nxp: imx95_evk: improve doc
Improved doc with using exact board name and some fix-up.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2024-09-13 13:42:13 +02:00
Yangbo Lu
e9a41edc8b boards: nxp: imx95_evk: remove empty cmake files
Removed empty cmake files.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2024-09-13 13:42:13 +02:00
Tu Nguyen Van
9fdf074a29 boards: nxp: s32z2xxdc2: add Lpi2c support for s32z2xxdc
Enable Lpi2c support on s32z2xxdc boards

Signed-off-by: Tu Nguyen Van <tu.nguyenvan@nxp.com>
2024-09-12 14:50:15 +02:00
Jiafei Pan
133a5c921d samples: shell_module: add imx93 board support
Add kernel reboot support, so can use shell to verify reboot function.
uart:~$ kernel reboot cold
Known issue is imx93 currently can only support cold reboot and doen't
support warm reboot.

Updated board document.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-09-12 10:03:52 +02:00
Chekhov Ma
2e9507c3a6 boards: imx93_evk_mimx9352_a55: enable pcal6524 gpio expander
Enable pcal6524 gpio expander on i.MX 93 EVK

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2024-09-11 09:38:04 +02:00
Hou Zhiqiang
f45b483dbe boards: nxp: imx95_evk: add SMP variant support
There are 6 Cortex-A55 cores on i.MX95 EVK, this SMP variant will release
all the 6 cores to run Zephyr.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2024-09-11 09:34:04 +02:00
Hou Zhiqiang
24f6b072d3 boards: nxp: add imx95_evk A55 support
Added basic board support for imx95_evk A55.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2024-09-11 09:34:04 +02:00
Yangbo Lu
e91044b1f4 boards: nxp: add imx95_evk M7 support
The IMX95LPD5EVK-19 board is a platform designed to show the most
commonly used features of the i.MX 95 automotive applications
processor. It is an entry-level development board, which helps
developers to get familiar with the processor before investing a
large amount of resources in more specific designs.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-09-11 09:34:04 +02:00
Andrej Butok
7ff43f227c boards: nxp: Add uart-mcumgr for nxp boards
Adds "chosen,uart-mcumgr" for nxp boards that support
the secondary bootloader partitioning.
Fixes the subsys\mgmt\mcumgr\smp_svr sample.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-09-11 09:31:48 +02:00
Michal Smola
707844ca56 boards: frdm_mcxc242: Add i2c support
frmd_mcxc242 supports i2c, but it is not enabled.
Enable i2c and configure it to read accelerometer sensor on the board.
Update board documentation. Test it using sample.sensor.accel_polling.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-11 09:29:31 +02:00
Neil Chen
74bb5b334d boards: frdm_mcxa156: add frdm_mcxa156 board
add frdm_mcxa156 board support

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2024-09-10 12:39:18 -04:00
Benjamin Cabé
25fa25a5a9 doc: :zephyr-app: should point to existing in-tree folders
As there is no check (yet!) in the directive, many
.. zephyr-app-commands:: in the documentation are pointing to
non-existing sample applications, which is problematic for users who
typically expect to just copy-paste the commands and have them work.

This commit fixes all offending references to point to existing samples,
or converts them to simple ":app:" instead of ":zephyr-app:" when the
intent wasn't to refer to in-tree samples.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-09 13:53:47 -04:00
Mahesh Mahadevan
f34c78535f samples: adc_dt: Add overlay for the QSPI variant of FRDM-MCXN947
Add overlay for the QSPI variant of FRDM-MCXN947

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-09-06 18:01:43 -04:00
Mahesh Mahadevan
bc5c075953 samples: dac: Add overlay for FRDM MCXN947 qspi variant
- Add overlay for the FRDM MCXN947 qspi variant
- Fix the overlay file name for the default variant

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-09-06 18:01:43 -04:00
Mahesh Mahadevan
d5ae219799 test: frdm_mcxn947_mcxn947: Add config and overlay for QSPI variant
Add config and overlay files for the QSPI variant of the
NXP FRDM-MCXN947 board

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-09-06 18:01:43 -04:00
Mahesh Mahadevan
99131b92ff boards: frdm_mcxn947: Enable CACHE64 FlexSPI cache
1. Enable CACHE64 block used by FlexSPI.
2. LPCAC cache is already enabled by SystemInit which
   is called earlier
3. Configure the FlexSPI clock when running in XIP mode
   as we cannot rely on the driver setting this up as it
   may not be enabled.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-09-06 18:01:43 -04:00
Mahesh Mahadevan
b32a86ad8d boards: frdm_mcxn947: Add a variant for executing from QSPI
1. The boards always boots from internal flash. However it does
have an external QSPI that can be used to store Zephyr.
Add a variant to support running Zephyr from QSPI Flash.
Running Zephyr from QSPI requires a bootloader like MCUboot
to be pogrammed to internal flash.
2. Create a common dts file to add features that are enabled for
CPU 0 that is included by both vairants i.e internal flash (default)
and QSPI variant.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-09-06 18:01:43 -04:00
Michal Smola
33407bfcd6 boards: frdm_mcxc242: Add basic support for board
Add basic support for NXP frdm_mcxc242 board.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-05 17:01:33 -04:00
Lucien Zhao
c5dd2c2a84 samples: sensor: mcux_acmp: add case support for RT1180-EVK
Use gpio_ad_01_acmp1_in2 as ACMP1_IN2, test case can be captured
in J45-13.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2024-09-04 21:27:28 +02:00
Jiafei Pan
eb4d1ef170 board: imx93_evk: fix document introduced by hwmv2
Fixed board name according to hwmv2 update, and also updated the demo
log.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-09-04 09:52:50 +02:00
Marcin Wierzbicki
a235230393 boards: nxp: twr_ke18f: add vref-mv value
Add vref value of 3300mV.

Signed-off-by: Marcin Wierzbicki <marcin.wierzbicki@accenture.com>
2024-08-30 11:47:07 -04:00
Marcin Wierzbicki
da0d3726e2 boards: nxp: frdm_ke17z and frdm_ke17z512: add vref-mv value
Add vref value of 3300mV.

Signed-off-by: Marcin Wierzbicki <marcin.wierzbicki@accenture.com>
2024-08-30 11:47:07 -04:00
Marcin Wierzbicki
0c93ac89c5 board: ucans32k1sic: Enable ADC on UCANS32K1SIC evb
Enable ADC on the UCANS32K1SIC

Signed-off-by: Marcin Wierzbicki <marcin.wierzbicki@accenture.com>
2024-08-30 11:47:07 -04:00
Ha Duong Quang
77968d4dd8 boards: s32z2xxdc2: add support for adc
Add devicetree of adc instances for s32z270.

Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
2024-08-29 18:04:36 +02:00
Emilio Benavente
be0a147b73 boards: nxp: mimxrt1064: enabled pit driver
Enabled the PIT Counter Driver for the
mimxrt1064.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-08-29 18:02:43 +02:00
Hake Huang
446282cd22 boards: mimxrt595_evk,mimxrt685_evk: Instantiate WM8904
Add Flexcomm signal sharing configuration for the mimxrt595s/cm33 and
mimxrt685s/cm33 SoCs. Properly instantiate the I3C peripheral for
interfacing with the WM8904's control port. Modify pinctrl DTs of
mimxrt595_evk/mimxrt595s/cm33 and mimxrt685_evk/mimxrt685s/cm33.
Instantiate the WM8904 codec for said boards.

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2024-08-29 15:53:26 +02:00
Vit Stanicek
b8466e0c95 boards: mimxrt685_evk/mimxrt685s/cm33: Enable DMIC
Enable DMIC clock in soc.c - attach to chip's audio PLL. Add pinmux
definitions for the DMIC peripheral. Add nodes to SoC's device tree for
the DMIC peripheral and its audio channels. Configure the DMIC
peripheral in board's device tree to enable audio capture.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2024-08-29 15:53:26 +02:00
Anke Xiao
594bf682e1 boards: nxp: update pinctrl dtsi for ke17z
Add flexio pwm pinctrl configuration to support flexio pwm

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
2024-08-28 06:50:50 -04:00
Andrej Butok
7af6396a0d boards: nxp: frdm_mcxn947: fix sysbuild mcuboot
Adds the default MCUboot operating mode when building using sysbuild.
Fix mcuboot sysbuild for frdm_mcxn947.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-08-28 06:49:14 -04:00