Commit Graph

902 Commits

Author SHA1 Message Date
Manuel Argüelles cd046faf8a s32: s32k146: fix RTC clock source
Commit 1be7718c59 wrongly set the RTC
clock source to an external oscillator which is not present in the only
board using this SoC at the moment. Instead use the 32 KHz internal
oscillator which is enabled at PoR and always available.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2024-04-17 09:11:11 -05:00
Laurentiu Mihalcea 0afb4f2638 mcux: README: update patch list
We're pulling in the following patch from MCUX-SDK:

devices: MIMX8UD7: add soc layer definitions required for using EDMA rev2

so add it to the list of pulled patches.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-17 09:07:52 -05:00
Laurentiu Mihalcea 092795237a devices: MIMX8UD7: add soc layer definitions required for using EDMA rev2
Using the EDMA rev2 driver requires having a `fsl_edma_soc_rev2.h`
header file which contains information related to the EDMA instances
found on the SOC. As such, to make the driver usable add the aforementioned
header file.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-17 09:07:52 -05:00
Emilio Benavente 7d57fbd057 MCXN947: drivers: fsl_clock.c: Fix WWDT Sel Bug
The case statement for selecting the WDT1
clock sel is missing a possible case
that selects 1MHZ.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-04-11 09:43:57 -05:00
Laurentiu Mihalcea f6c7108caf mcux: README: update patch list
We're pulling in the following patch from MCUX-SDK:

devices: MIMX8UD7: add definition for LPUART_RX_TX_IRQS

so add it to the list of pulled patches.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-09 10:33:33 -05:00
Laurentiu Mihalcea 31463a848b devices: MIMX8UD7: add definition for LPUART_RX_TX_IRQS
Add definition for the `LPUART_RX_TX_IRQS` macro. This is
required by the `fsl_lpuart` driver to work. The definition
of the macro is just an array of `NotAvail_IRQn` because the
HIFI4 DSP doesn't receive interrupts from any of the LPUART
instances.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-09 10:33:33 -05:00
Daniel Berlin 6544455fcf Compile in PXP driver if LVGL is set to use PXP.
Signed-off-by: Daniel Berlin <dberlin@dberlin.org>
2024-04-08 12:13:05 -05:00
Jiafei Pan 3366f234ed build: hal_nxp: add TPM counter support
Add TPM counter support.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-04-08 11:27:29 -05:00
David Leach 4ab0e7bc9c mcux: hal_nxp: remove css_pkc and els_pkc
Remove css and els PKC

Signed-off-by: David Leach <david.leach@nxp.com>
2024-04-08 11:23:43 -05:00
Emilio Benavente 14160a1c14 devices: LPC55XXX: changed value of WAITEN Bit for PWM
Three LPC devices were using the NO WAIT EN BIT
macro definition when the devices had the WAIT
EN BIT for PWM on their individual device
header file.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-04-08 11:14:39 -05:00
Laurentiu Mihalcea 6b252c34ee mcux: hal_nxp: include HAL ESAI driver if Zephyr ESAI driver is enabled
If the Zephyr ESAI driver is enabled this also means we should
include the HAL ESAI driver since the former depends on the
latter.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-04-01 13:26:31 -05:00
Mahesh Mahadevan 874ed3b297 drivers: lpi2c: Fix the interaction with LPFlexcomm driver
There was an error in the init and deinit functions where the
LPFlexcomm registers was getting modified even if the flag
LPFLEXCOMM_INIT_NOT_USED_IN_DRIVER was set.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-04-01 10:19:40 -05:00
Iuliana Prodan 9d32c7382b mcux: hal_nxp: update configs for ADSP
CONFIG_SOC_MIMX8QM_ADSP and CONFIG_SOC_MIMX8QXP_ADSP
were renamed to match the soc name, so update here also.

While here, remove CONFIG_SOC_MIMX8QM_A53 since is not
defined and used anywhere.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2024-03-29 17:19:48 -05:00
Mahesh Mahadevan 21be1f4670 cmake: Add I2C driver support for MCXN947
Add the SDK I2C driver in the build for MCXN947

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-26 14:36:39 -05:00
Pieter De Gendt 8d899ef09b mcux: Add support for ecspi 2024-03-25 09:39:12 -05:00
Mahesh Mahadevan 384bb4f172 cmake: Add SoC DMA file for MCXN947
Add the SoC DMA cmake file for MCXN947

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-23 01:20:02 -05:00
Mahesh Mahadevan 1a360dbcd5 build: Add cache files to MCX build
Add the cache files needed for MCXN947 FlexSPI driver

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-21 13:24:36 -05:00
Declan Snyder c9f3dff6a4 mcux: RW OCOTP if HWINFO
need OCOTP driver to get device ID

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-21 10:49:04 -05:00
Declan Snyder b815c141bc mcux: Add GAU DAC and ADC driver builds
Add build support for GAU DAC and ADC

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-21 10:48:57 -05:00
Mahesh Mahadevan d05355b85b cmake: Add SPI and DMA support for MCXN947
Add the cmake files for the SPI and DMA drivers

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-21 10:48:12 -05:00
Laurentiu Mihalcea 141c1d11d7 mcux: README: update patch list
Update patch list to contain the patches that introduce
support for i.MX8ULP's HIFI4 DSP core.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-03-20 07:42:14 -05:00
Laurentiu Mihalcea 1fefb0f02a devices: MIMX8UD7: add cmake file for reset driver
The CMAKE file for driver_common expects each device to have
a `driver_reset.cmake` file. As such, add one for i.MX8ULP
so that the Zephyr build will work.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-03-20 07:42:14 -05:00
Laurentiu Mihalcea 18a7b065a2 devices: MIMX8UD7: fsl_device_registers.h: add support for HIFI4 DSP
Modify `fsl_device_registers.h` header file such that it includes
the appropriate headers required for the HIFI4 DSP core.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-03-20 07:42:14 -05:00
Laurentiu Mihalcea 6e08dbfcef devices: MIMX8UD7: add header and source files for HIFI4 DSP core
Add header and source files for 8ULP's HIFI4 DSP core.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-03-20 07:42:14 -05:00
Mahesh Mahadevan fca2c47e87 build: hal_nxp: Add support for MCX Flash
Add support for MCX flash

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-15 12:19:32 -05:00
Phi Bang Nguyen db6806f8a8 mcux: hal_nxp: Include mipi_csi2rx driver
Update cmake to include mipi_csi2rx driver from mcux-sdk repo

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2024-03-14 11:58:03 -05:00
Mahesh Mahadevan 3c4f74b405 devices: MCXN947: Update system file to remove SDK sepecific defines
__Vectors is not defined in non-SDK projects such as Zephyr which like
to call SystemInit function. This causes build failures as a result.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 11:31:28 -05:00
Mahesh Mahadevan 6e91ed8274 mcux-sdk: Add cmake file for MCXN947
These files are added till we switch the build framework
to use the all_lib_device.cmake build file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 11:31:28 -05:00
Mahesh Mahadevan 4663a409f3 pinctrl: Add support for MCXN947
ADd support for MCXN947

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 11:31:28 -05:00
Mahesh Mahadevan 66b2876580 make: Add support for MCXN947
Add support for MCXN947 SoC

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 11:31:28 -05:00
Declan Snyder 259bc153dd Add support for RW61X in MCUX-SDK
Enable support for the highly integrated NXP triradio solution "RW612",
designed for a broad array of applications, including, but not limited to:
connected smart home devices, gaming controllers,
enterprise and industrial automation, smart accessories,
and "smart energy".

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Co-authored-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-11 16:30:10 -05:00
Mikhail Siomin ac24626660 mcux: Enable inclusion of MCUX flexio and flexio_spi drivers
Enables inclusion of flexio and flexio_spi drivers from HAL

Signed-off-by: Mikhail Siomin <victorovich.01@mail.ru>
2024-03-11 13:39:56 -05:00
Emilio Benavente ef5060421f mcux: hal_nxp: updated cmake to reference new pit definition
Updated cmakefile to include pit driver using the
updated Kconfig definition.

signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-03-06 08:20:10 -06:00
David Leach c5a56361f3 README: Update patch list
Number of items are no longer needed

Signed-off-by: David Leach <david.leach@nxp.com>
2024-03-05 11:11:17 -06:00
David Leach 9a3f9b5665 mcux-sdk-middleware-usb: remove documents
Remove document PDF files.

Signed-off-by: David Leach <david.leach@nxp.com>
2024-03-05 11:11:17 -06:00
David Leach 9eecadb2ab mcux-sdk: drivers: Add local changes to the CAAM driver
Move used job descriptors in the CAAM driver from the stack to
noncacheable section.

This change has not been accepted by the SDK team and needs to
be maintained here.

Signed-off-by: David Leach <david.leach@nxp.com>
2024-03-05 11:11:17 -06:00
David Leach 61b9528194 mcux-sdk: Update to SDK 2.15.000
Update mcux-sdk to 2.15.000 + RW61x

Signed-off-by: David Leach <david.leach@nxp.com>
2024-03-05 11:11:17 -06:00
Mahesh Mahadevan b826fc8a18 hal_cmake: Delete duplicate entries
Delete duplicate entries

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-04 17:03:23 -06:00
Mahesh Mahadevan ec860a3ecd hal_cmake: Fix Typo
Fix a typo in the hal cmake file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-04 16:58:45 -06:00
Daniel DeGrasse f436a4529f imx: devices: align CONFIG_SOC name for IMX7D
Align usage of CONFIG_SOC_IMX7D to value of CONFIG_SOC in IMX HAL for
HWMv2

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-01 15:45:06 +01:00
Iuliana Prodan 48647d13ac mcux: hal_nxp: update path for scfw_api
With HWMv2, when trying to load the scfw_api for 8QM or
8QXP I get:
```
include could not find requested file:
    driver_scfw_api
```
So update the path for scfw_api based on MCUX_DEVICE_PATH.

For ADSP we don't have separate devices (i.e. MIMX8QX6_dsp
or MIMX8QM6_dsp), because will duplicate a lot of code.
For these we use the core devices (i.e. MIMX8QX6 or MIMX8QM6).

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2024-03-01 15:45:06 +01:00
Daniel DeGrasse 1b0e20c44f mcux: CMakeLists: update MCUX SOC variable logic for HWMv2
Update MCUX SOC variable name logic to use CONFIG_SOC to determine
the MCUX_DEVICE name, and append the core ID based on
CONFIG_MCUX_CORE_SUFFIX value

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-01 15:45:06 +01:00
Manuel Argüelles b92c645c94 s32: convert to hwmv2
SoC S32Z27 folder is renamed to S32Z270 to align with
changes to `CONFIG_SOC_S32Z270`.
Compatibility with hwmv1 is maintained until support is merged to
main.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
2024-03-01 15:45:06 +01:00
Jacob Siverskog d45b14c198 mcux: readme: update patch list
add a missing usb middleware fix.

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
2024-02-02 12:06:09 -06:00
Mahesh Mahadevan 99c0d3a147 middleware: usb: Fix build issues with the code from github
Submitted a PR to https://github.com/NXPmicro/mcux-sdk-middleware-usb
to fix this build issue

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-02-02 12:06:09 -06:00
Jacob Siverskog 5548c379e4 mcux-sdk-middleware-usb: fix ip control return value for ip3511
re-apply patch after sdk refresh.

without this kStatus_USB_Error was always returned for
kUSB_DeviceControlRun and kUSB_DeviceControlStop control types. let's
do it as for ehci/khci.

this change fixes the tests/subsys/usb/device/usb.device test for
lpcxpresso55s69_cpu0.

this is from https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-usb/pull/6

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
2024-02-02 12:06:09 -06:00
Jacob Siverskog 6d0587abf6 mcux-sdk-middleware-usb: update to sdk 2.14.0
this is taken from
git@github.com:nxp-mcuxpresso/mcux-sdk-middleware-usb.git, tag
MCUX_2.14.0.

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
2024-02-02 12:06:09 -06:00
Yves Vandervennet 7fe7d866f7 License: summary of contents
The software content register file (scr-hal.txt) provides information
about the NXP HAL. e.g. origin, license, location.

It is added for clarity.

Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
2024-02-02 11:49:09 -06:00
Tomas Galbicka 0463d6aa0d mcux: mailbox: Include mailbox if mbox is enabled
This commit includes NXP mailbox driver when Zephyr MBOX API is used.

This is required for the mbox driver wrapper around NXP mailbox.

Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
2024-02-02 07:28:05 -06:00
Declan Snyder b81cfaf885 Revert "mcux: hal_nxp: updated cmake to reference new pit definition"
This reverts commit 45f379b0cb.
2024-02-02 07:22:30 -06:00