Commit graph

84 commits

Author SHA1 Message Date
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
Laurentiu Mihalcea 34410d5366 boards: nxp: imx8qxp_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
Laurentiu Mihalcea 02f18bc5f5 nxp: imx8ulp: enable clock control
Enable clock control for i.MX8ULP. This consists of:
	1) Adding a PCC node in the DTS
	2) Adding a header file containing the definitions
	of the clocks used by the peripherals to be enabled.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-02 14:30:27 +01:00
Iuliana Prodan 1f55be8b42 nxp: imx8: change CONFIG_SOC_<name> to match the value
Change, for audio DSP and M7 cores, SOC_<name> to match
the exact soc name.
Update the board files accordingly.

These configs are used in SOF and NXP_HAL, so change
sha for these modules.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2024-04-02 10:41:07 +03:00
Daniel DeGrasse 5f3d584a2f boards: nxp: frdm_mcxn947: use core argument to target CPU0
In future versions of Linkserver, specifying the core argument within
the device string will not be supported. Therefore, move the FRDM
MCXN947 board to specify the core directly instead of using the device
string.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-29 09:23:21 +01:00
Thomas Stranger ff13cb5adc boards: nxp: frdm_mcxn947: doc fixes
- fix schematic link pointing to different board
- fix link to the board_defconfig file
- remove the "Debug Firmware" link that was not referenced anywhere
- add a link to the board user manual
- minor additions to the debug with J-Link section

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2024-03-28 18:44:09 -04:00
Hou Zhiqiang 795044ec6d boards: nxp: imx8m: remove the UART RDC setup from guide
As the RDC setup has been added in SoC initialization code.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2024-03-28 16:01:30 -05:00
Daniel DeGrasse d5eb328544 boards: nxp: rd_rw612_bga: enable DMIC
Enable DMIC on RW612 BGA board. The DMIC is enabled for both onboard
MEMS microphones for this board, and the board is enabled with the DMIC
sample and test

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-28 09:44:25 +00:00
Zhaoxiang Jin e3937e99fc boards: frdm_mcxn947: Add support for dac
Add support for dac

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2024-03-28 09:42:38 +00:00
Laurentiu Mihalcea 9517639390 nxp: imx8ulp: change SOC name to MIMX8UD7
The SOC name `imx8ulp` has been just a placeholder until
support for the SOC's ADSP (since this is the only core
that's supported in Zephyr) could be added to the NXP HAL.
Now that the support has been added, to make use of it, the
SOC name `imx8ulp` has to be changed to `mimx8ud7`. As such,
this commit does the following:
	1) Introduces SOC part number configuration - needed
	by some HAL headers.
	2) Replaces all occurrences of `imx8ulp` (as the SOC
	name) with `mimx8ud7`.
	3) Enables `CONFIG_HAS_MCUX`.
	4) Aligns all `CONFIG_SOC_` configurations with the
	new SOC name.
	5) Updates SOF hash. This is needed to fix build issues
	caused by this name change. This is not done in a separate
	commit to preserve bisectability.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-03-28 09:41:15 +00:00
Henrik Brix Andersen dd0923d7ad boards: nxp: mr_canhubk3: add ssd1306 display devicetree node
Add devicetree node for the accompanying, ssd1306-based display board
connected to connector P4.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2024-03-26 21:30:29 -04:00
Henrik Brix Andersen 2faec62202 boards: nxp: mr_canhubk3: add devicetree nodes for CAN LEDs
Add devicetree nodes for the six red CAN LEDs present on the NXP
MR-CANHUBK344 board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-26 18:07:17 -05:00
Mahesh Mahadevan f4bad0a49c boards: frdm_mcxn947: Add support for SPI and DMA
Add support for SPI and DMA

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-26 16:39:18 -04:00
Daniel DeGrasse 35e15b522e boards: nxp: frdm_mcxn947: documentation fixes
Correct a few issues with the documentation that were causing rendering
issues, as well as the following changes:
- added blurb to debug section clarifying that the default debugger
  firmware supports LinkServer
- updated serial terminal output with board name given when building
  with HWMv2

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-26 12:00:55 -04:00
Daniel DeGrasse 5ffc76e626 boards: nxp: frdm_mcxn947: fix debug access to secure RAM and peripherals
By default, LinkServer's memory map for the MCXN947 does not define
memory regions for the SRAM or peripheral bus in secure mode. This
results in gdb failing to read from these memory regions unless
explicitly told ignore the debugger memory map via
"set mem inaccessible-by-default off".

To resolve this, define memory regions for SRAM and peripherals in
secure mode via the commandline arguments passed to LinkServer in
board.cmake.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-26 12:00:26 -04:00
Mahesh Mahadevan 517753e475 boards: frdm_mcxn947: Add support for the QSPI flash
Add support for the QSPI flash connected over FlexSPI

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-25 18:40:14 -04:00
Mayank Mahajan 0e94934c4b Add: Support for pyocd runner for mr_canhubk3 board
Modifying board.cmake file of mr_canhubk3 for pyocd support.

Signed-off-by: Mayank Mahajan <mayankmahajan.x@nxp.com>
2024-03-25 09:35:12 +01:00
Declan Snyder 739573ee8e boards: rd_rw612_bga: Enable HWINFO
Enable some reset causes in PMU node and indicate
in the yaml support for hwinfo.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-22 15:58:03 -05:00
Mahesh Mahadevan ee3db01d1a boards: frdm_mcxn947: Add MCUboot support
Add support for MCUboot running from internal flash.
Remove the MCUboot conditional check.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-22 14:25:31 +00:00