Commit graph

102 commits

Author SHA1 Message Date
Zhaoxiang Jin
979d90bb95 boards: nxp/frdm_mcxn947: Support vref for NXP frdm_mcxn947
Support vref for NXP frdm_mcxn947

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2024-05-15 17:28:38 +02:00
Daniel DeGrasse
f0af6aa8b2 boards: nxp: frdm_mcxn947: add support for USDHC0
Add support for USDHC0 controller on FRDM_MCXN947 board. This support
was verified using the `tests/subsys/sd/sdmmc` and
`tests/subsys/sd/sdio` testcases. Note that this board does not ship
with the SD header (J12) populated by default, so the user must populate
one.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-14 20:23:28 -04:00
Phi Bang Nguyen
ba1565b46d drivers: video: csi: Rename sensor to source
The CSI can connect to either a camera sensor (as on i.MX RT10xx) or
a MIPI CSI-2 receiver (as on i.MX RT11xx). To be generic, change the
naming from sensor to source.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-05-14 20:23:15 -04:00
Declan Snyder
595ee908ba samples: dac: Enable RW612 DAC
Enable RW612 RD board for the DAC sample

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-05-14 18:23:22 -04:00
Declan Snyder
14ef7d2d21 tests: adc: Test RW612 ADC
Enable RW612 RD board to test ADC

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-05-14 18:23:22 -04:00
Declan Snyder
00a205ffba boards: nxp: rd_rw612_bga: Enable GAU DAC/ADC
Enable the GAU analog converters on the RD_RW612_BGA board.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-05-14 18:23:22 -04:00
Daniel DeGrasse
9b2ae5d02b boards: nxp: mimxrt1050: enable PXP and apply optimized LVGL settings
Enable PXP on RT1050 EVK, and apply LVGL settings optimized for PXP
support. These settings will enable PXP rotation to function as expected
when using LVGL with the RT1050.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-14 18:22:28 -04:00
Phi Bang Nguyen
97b0ad699e boards: nxp: mixmxrt1170_evk: Separate i2c6 from csi pin muxing
Pin muxing for i2c6 and csi should be separated as i2c is initialized
before csi. Otherwise, i2c6 bus device will not be ready when the
camera sensor on this bus initializes.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-05-14 18:19:32 -04:00
Trung Hieu Le
dffa4e2cb7 boards: nxp: rt1170_evk: Enable XMCD as bootheader by default
Configure to use XMCD as the bootheader by default instead of DCD. As
XMCD gives a better SDRAM memory access speed.
As an example, the Pixel Processing Pipeline is 13 ms faster with XMCD
compared to DCD as the bootheader.

Signed-off-by: Trung Hieu Le <trunghieu.le@nxp.com>
2024-05-14 15:54:20 +02:00
Trung Hieu Le
3cb5e4ed54 boards: nxp: rt1170_evk: Add XMCD bootheader
Currently, only DCD bootheader was supported to configure the SDRAM.

On IMX RT1170, XMCD can be used as an alternative boot header to DCD.
XMCD is more advanced than DCD and enhances SDRAM access speed.
This is benefit for SDRAM access application.

Signed-off-by: Trung Hieu Le <trunghieu.le@nxp.com>
2024-05-14 15:54:20 +02:00
Jiafei Pan
153255f15b board: mimx93_evk_a55: disable gpio expander by default
This commit is to fix some GPIO test case build issue:
https://github.com/zephyrproject-rtos/zephyr/issues/72619

In fact, the issue is introduce by expander GPIO PR:
https://github.com/zephyrproject-rtos/zephyr/pull/69330
It is used to add GPIO expander support,  in this PR, dts node layout is:
lpi2c {
	MFD driver {
		gpio driver {
		}
	}
}
The initial idea is to disable all these node by default in order to keep
a minimal default image, but expander GPIO PR only disabled lpi2c and MFD
driver node, but enabled gpio driver node, so gpio driver will report
building error as it depends on expander and i2c which are disabled, so
this fix is to disable gpio node.  If we want to use expander gpio, we
need to enable i2c, expander and gpio nodes simultaneously.

Some GPIO test cases have been enabled on i.mx93 EVK board by enabling
onchip GPIO controller in the overlay, for example:
tests/drivers/gpio/gpio_basic_api/boards/imx93_evk_mimx9352_a55.overlay

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-05-13 14:22:30 +02:00
Hake Huang
16d709e54f test: pwm: add mimxrt1060_evk support for pwm
add missing board and overlay support

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-05-10 18:07:55 -04:00
Luis Ubieda
3dc91dda7d boards: nxp: Fix usage of DT_CHOSEN() macro to get chosen Zephyr Flash
Used multiple places in the tree. The idea is to determine if this node
corresponds to a specific node (e.g: flexspi) so that specific
configurations can get done. Without the fix, the macro expansions were
defaulting to false.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-05-10 18:05:03 -04:00
Daniel DeGrasse
7374678d51 boards: nxp: vmu_rt1170: fix SD card pin control setup
Fix SD card pinctrl setup for the VMU RT1170 board. The following
changes were made:
- use the "cd-gpios" property over detecting the card using the
  USDHC card detect register. This should be more reliable.
- bias the clk pin high. This matches setup for the RT1170 EVK SD
  pinctrl.
- remove the drive strength setting for SD pins to align with the
  pinctrl settings for low speed SD mode (50 MHz) on the RT1170 EVK.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-10 11:50:03 +02:00
Chekhov Ma
bb0743def2 board: mimx93_evk_a55: enable mfd_adp5585 and adp5585_gpio driver.
Enable ADP5585 as GPIO expander on i.MX93 EVK.
- Add dts node for ADP5585 under lpi2c2.
- Add gpio-hog for EXP_SEL signal.
- Disable lpi2c2 and adp5585 node by default

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
2024-05-08 16:09:08 -04:00
Andrej Butok
5468569dab boards: nxp: frdm_mcxn947: Add pyocd runner support
The Pyocd support added with
the NXP.MCXN947_DFP.17.0.0.pack CMSIS Pack.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-05-08 15:57:46 -04:00
Daniel DeGrasse
f63baf6044 boards: nxp: rd_rw612_bga: add support for IS66 PSRAM
Add support for IS66WVQ8M quadspi PSRAM on the RW612 BGA board, and
update board pin control to enable muxing PSRAM pins on the FlexSPI.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-05-07 15:06:25 -05:00
Andrej Butok
31aadda646 boards: nxp: Switch the rest from Swap-Scratch to Swap-Move
Switch the default MCUBoot FW Update mode from Swap & Scratch
to more preferable Swap & Move for the rest of NXP boards.
Delete the scratch partition. Save RAM & ROM.
Slot 0 has one additional sector, for use with
the swap move algorithm.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-04-26 19:47:45 +01:00
David Leach
9b0ccc8d24 west.yml: Update NXP HAL MCUX-SDK to add MKE1XZ9 support
Add MKE1XZ9 and some additional HAL cleanup patches.
Update bumped the chip version for RW610.

Signed-off-by: David Leach <david.leach@nxp.com>
2024-04-26 09:30:11 +02:00
Mateusz Holenko
6784ed8202 boards: nxp: Add compatible for RD_RW612_BGA
Add `compatible` entry for the rd_rw612_bga target.

Signed-off-by: Mateusz Hołenko <mholenko@antmicro.com>
2024-04-25 09:46:39 -04:00
Benjamin Lemouzy
21e111c469 boards: mimxrt1050_evk: doc: add SWD related jumpers for rev B1
Add jumpers used for SWD on rev B1 boards.

Signed-off-by: Benjamin Lemouzy <blemouzy@centralp.fr>
2024-04-25 15:10:37 +02:00
Mahesh Mahadevan
496802178a boards: frdm_mcxn947: Add clock setup for FlexSPI
The MEMC driver in memc_mcux_flexspi.c is initialized
before the FlexSPI driver (flash_mcux_flexspi_nor.c)
and hangs during FlexSPI init. Initialize the FlexSPI
clock to 50MHz before the speed is set to the optimum
speed by the FlexSPI driver.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-04-25 09:55:59 +00:00
Emilio Benavente
4c47df19df boards: nxp: frdm_mcxn947: updated board support for CTimer
Updated the frdm_mcxn947 with support for the
CTimer counter.

Signed-off-by: William Tang <william.tang@nxp.com>
Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-04-23 21:25:38 +00:00
Laurentiu Mihalcea
799a456c25 nxp: imx8ulp: add audio-related nodes
Add DTS nodes for the IPs used in audio processing.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-23 15:36:01 +02:00
Jamie McCrae
191b3cbe10 boards: Fix doc build warnings
Fixes warnings when building documentation due to additional SoC
names being part of the Kconfig symbols which they should not be

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-22 03:48:57 -07:00
Jiafei Pan
34629d255a board: ls1046ardb: fix defconfig overlay
This patch is to fix issue #71473.

The commit 0be0d2175b revert some change
introduced by hwmv2 which allows defconfig can be overlay, so revert
back defconfig to be full configure files which includes all items used
by the board variants.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-04-19 12:01:02 +02:00
Manuel Argüelles
5d2670ac1f drivers: pwm: mcux_ftm: allow to select clock source
FTM internal counter can be clocked by one of three clock sources
independent of the module bus clock. This patch introduces a DT property
to perform the clock selection from DT.

DT sources are updated to keep the current clock selection for all boards,
with exception of ucans32k1sic board which is migrated to use system
clock by default, as this seems to be a better choice for most cases.
Some PWM LED samples require slower clock so overlays are added for
those cases.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2024-04-19 10:08:53 +02:00
Declan Snyder
537d5c310c dts: nxp: Convert ENET DT default to new binding.
Convert all of the NXP SOCs with ENET to use the new
binding scheme, which is used by the new driver.

Convert any boards using this SOC to the new scheme as well,
and remove from the documentation the bit about the experimental
nature of the new driver and the overlay that shall no longer exist.

Some of the boards I do not have the hardware of, so apologies
if something breaks, as I have no way to know. All the boards
were made sure to at least build.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-04-18 11:18:31 +02:00
Declan Snyder
ac58f3abe6 drivers: nxp_enet: Generate MAC using eth.h
The MAC address macros are ridiculous in this driver.
Rewrite to be simpler and use eth.h common function.
Also, clarify the mac address generation on the DT overlays.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-04-18 11:18:31 +02:00
Emilio Benavente
8adb7c17ca boards: nxp: frdm_mcxn947: PWM Support
Updated frdm_mcxn947 to add FlexPWM Support,
including updating the docs file.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-04-12 16:53:03 -04:00
Laurentiu Mihalcea
94d156c9c8 nxp: imx8ulp: enable serial interface
Enable serial interface on i.MX8ULP.

This also includes a SHA update for hal_nxp which
pulls in the following commits relevant to Zephyr:

* 3366f234ed47 build: hal_nxp: add TPM counter support
* 6544455fcf46 Compile in PXP driver if LVGL is set to use
PXP.
* 31463a848bcd devices: MIMX8UD7: add definition for
LPUART_RX_TX_IRQS

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-12 16:52:38 -04:00
Daniel DeGrasse
a70ba00fd3 boards: nxp: rd_rw612_bga add support for USBOTG
Add support for USBOTG on RW612 BGA board. This support was tested with
the USB console sample, as well as the USB DFU sample.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-04-11 09:09:00 +02:00
Laurentiu Mihalcea
dbc700125c boards: nxp: imx8qm_mek: add adsp suffix to board defconfig
Board name contains the `adsp` suffix and so should the
defconfig. Otherwise, the build system won't be able to
fetch the board configurations.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-11 09:07:37 +02:00
David Leach
00b46686b1 drivers: lpc55s36: Remove deprecated CSS driver
CSS was deprecated from the mcu-sdk. Removing driver from lpc55s36
to clear build error.

This is a temporary patch to remove the build error.

Fixes #69961

Signed-off-by: David Leach <david.leach@nxp.com>
2024-04-10 14:11:34 -04:00
Torsten Rasmussen
abca917055 boards: board dts and defconfig file adjustments
Adjustments of dts and defconfig files to adjust for the MERGE removal.

The revert of MERGE requires specific dts and defconfig files for boards
which relied on the MERGE feature.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Jamie McCrae
006ea0f6fb boards: Split merged board file configuration up
Splits configuration up that was merged as part of hwmv2 due to
the merged configuration feature being reverted

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-04-09 23:35:54 +02:00
Laurentiu Mihalcea
399c2cba65 nxp: imx8ulp: enable pinctrl
This commit enables pinctrl on i.MX8ULP. This includes:
	1) Adding `pinctrl_soc.h` header file.
	2) Adding DTS node for IOMUXC1, which is one of the
	IPs responsible for managing the 8ULP pads.
	3) Adding .dtsi with pin definitions. For now, only
	the LPUART7 pads are added to this file because this
	is going to be the only consummer for now.
	4) Modifying the `pinctrl_imx.c` driver to work for 8ULP.
	5) Enabling the `CONFIG_HAS_MCUX_IOMUXC`, which is a
	dependency of `CONFIG_PINCTRL_IMX`.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-09 11:06:14 +02:00
Benjamin Perseghetti
2581228977 boards: nxp: vmu_rt1170: dts use gpio-keys
Fix vmu_rt1170 board input tests by adding gpio-keys to dts.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2024-04-06 16:07:50 +03:00
Daniel DeGrasse
b530202871 boards: nxp: rd_rw612_bga: add support for LCDIC
Enable support for LCDIC on rd_rw612_bga. This support also enables
acceleration features such as DMA for LVGL, to improve performance

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-04-04 23:59:37 +03:00
Daniel DeGrasse
049b2d8620 boards: nxp: rd_rw612_bga: add support for arduino header
Add arduino header support for rd_rw612_bga, so this board can be used
with arduino shields

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-04-04 23:59:37 +03:00
Emilio Benavente
dc1ad210cb boards: nxp: frdm_mcxn947: Enabled Watchdog
Enabled the watchdog for
frdm_mcxn947 board.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-04-04 23:58:01 +03:00
Daniel DeGrasse
cbcbe7f43d boards: nxp: frdm_mcxn947: add pinctrl for LPUART2
Add pinctrl and board enablement for LPUART2, which is broken out to
P4_2 and P4_3 on the FRDM board.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-04-04 19:27:28 +02:00
Henrik Brix Andersen
36f4ef70a9 drivers: can: transceiver: gpio: automatically select GPIO
Automatically select CONFIG_GPIO when the GPIO-controlled CAN transceiver
driver is enabled. Update board configurations to benefit from this.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-04-03 21:12:32 +01:00
Daniel Baluta
cffea52fa8 boards: nxp: Rename mimxrt685_evk to mimxrt685_evk_mimxrt685s_cm33
In preparation for adding AMP support for i.MX RT6xx family we need
to rename existing cm33 support files to more specific names.

e.g mimxrt685_evk.dts -> mimxrt685_evk_mimxrt685s_cm33.dts

This will allow us to later add support for Cadence DSP found on i.MX
RT6xx series.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2024-04-03 15:41:16 +01:00
Daniel Baluta
68a7057513 soc: nxp: imxrt: Prepare imxrt6xx soc for AMP support
imxrt6xx are dual core devices featuring an ARM Cortex-M33
core and an Cadence Xtensa HIFI4 Audio DSP.

Currently only m33 core is supported. In order to support
the Cadence DSP we need first to do some code-reorganization
for m33.

We start by moving all cm33 related code to its own directory
and introduce the cpuclusters property in soc.yml file.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2024-04-03 15:41:16 +01:00
Benjamin Perseghetti
c032c6305d boards: nxp: vmu_rt1170: Fix dts binding issues
Fixs USDHC by setting PWR and CD gpio's correctly.
Adds missing button from the GPS module.

Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
2024-04-03 10:34:09 +02:00
Pieter De Gendt
b9e4850aa2 boards: arm: mimx8mp_evk: Enable spi support
Set spi as supported to allow loopback testing.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-04-02 21:03:47 -04:00
Declan Snyder
293cf9150c boards: frdm_mcxn947: Enable ENET QOS
Enable ENET QOS on FRDM MCXN947 board

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-04-02 21:02:25 -04:00
Mahesh Mahadevan
0a0b902b71 boards: frdm_mcxn947: Add support for I2C
Add support for I2C

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-04-02 21:00:24 -04:00
Laurentiu Mihalcea
01a6fd5f4a boards: nxp: imx8qm_mek: add pinctrl for SAI1 node
Add pinctrl for SAI1 node. This means:
	1) Adding definitions for the pads used by SAI1.
	2) Creating a pin group and referencing it in
	the SAI1 node via the `pinctrl-0` property.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-02 14:31:15 +01:00