This commit adds sample amp-talk to demonstrate the openamp communication
between DSP and CM core.
It also uses multiple openamp instances on primary core to communicate with
other CM core and also DSP core.
Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
This commit removes platform code that generated ephemeral key.
Now, OpenThread dedicated API is used to generate and validate an
ephemeral key.
Change related to
https://github.com/openthread/openthread/pull/12188
Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
1.Add test configuration for TPM PWM driver on frdm_mcxw71
platform to test center-aligned PWM modes.
2. Change to use tpm0 channel 0 because this pin is connected to J1‑8 to
make it convenient to observe the waveform using instruments.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add checks for -ENOTSUP return value in PWM capture test cases to
gracefully skip tests when capture types are not supported by the
driver. This prevents test failures on platforms where certain PWM
capture modes (e.g., center-aligned mode) are not available.
Apply the check in test_capture_timeout, test_continuous_capture,
and test_capture_busy test cases.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add support for center-aligned PWM mode in addition to the existing
edge-aligned mode. When center-aligned mode is configured, adjust
pulse and period cycles by dividing by 2 to maintain correct timing.
Add validation checks in PWM capture functionality to edge-aligned
mode only, as capture is not supported in center-aligned mode.
Assign the value directly to avoid re-calculating period_cycles
based on pwm_freq in TPM_SetupPwm, which could lead to precision loss.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add pwm-mode device tree property to allow configuration of TPM PWM
operation mode. Supports edge-aligned (0) and center-aligned (1) PWM
modes. Defaults to edge-aligned PWM if not specified.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Replace interrupt register checks with explicit capture_active flag
to track capture state. This provides more reliable state management
and fixes potential race conditions when checking if capture is active.
Also optimize TPM_SetupPwm call to only configure the specific channel
being set instead of all channels, improving efficiency.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
The driver uses spinlocks for synchronization (due to strict timing
requirements) which makes it defacto incompatible with almost all SPI
backend drivers, as most of them use `k_sem_take` internally.
This change reworks the driver in the following way to solve this
problem:
- Replace driver locks with `k_mutex`
- Run the `load` functions on the system workqueue to execute them on
a cooperative priority
- Use additional local spinlock in the `bitbang` driver variant to ensure
precise timing
Signed-off-by: Martin Stumpf <finomnis@gmail.com>
The ICE40 driver uses a CS hack that effectively 'steals' the CS pin
from the SPI driver during `load` by setting the CS pin id to 0.
This triggered the newly introduced assert during gpio_set.
This change introduces a hotfix for this where, instead of setting the
CS pin to 0, it sets the entire CS to 'hardware based'.
It is still a hack and should be reworked at some point.
Signed-off-by: Martin Stumpf <finomnis@gmail.com>
Update stm32h7s78_dk documentation to match ST's official
STM32H7S78-DK documentation, correcting/adding external memory
details (MX66UW1G45GXDI00 NOR flash, APS256XXN-OBRx PSRAM) and
other board specifications, such as max CPU frequency, timer count
and default system clock frequency.
Signed-off-by: Benjamin Klaric <benjamin.klaric01@gmail.com>
Removes 2 Kconfigs from a prj.conf file that were completely unused
and likely from many years ago
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
When in pre-kernel, kernel objects may not be in a usable state.
Therefore, guard k_mutex_lock()/k_mutex_unlock() usage with
!k_is_pre_kernel().
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
The EDAC sample README was using specific terminology (addr/mask) that
doesn't apply to all EDAC implementations. Update the documentation to
use the generic param1/param2 naming that matches the actual shell
command interface.
Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
The driver was using EDAC_NXP_ERROR_INJECT instead of the correct
CONFIG_EDAC_NXP_ERROR_INJECT Kconfig symbol for conditional compilation.
Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
Added missing section k_timer_observer to linker file generator, to fix
missing section definitions for IAR linker.
Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
Fix address resolution wait to not be infinite loop and
instead exit with a reasonable count down value.
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Fixes this function so that it returns the unit address of the
node, without having to rely on odd tricks to locate various parent
nodes and check that they have reg addresses and perform additions
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Fixes various issues with how these have been used:
- Reserved memory was wrongfully used to describe an RRAM area
for a CPU
- Reserved memory was wrongfully used to describe an SRAM area
for a CPU
- A partition described using reserved memory did not have the
required NVM erase size and write size parameters set for it
- RRAM partitions were not correctly setting ranges properties
- RRAM validation wrongly took the "base flash controller" into
considering because it was not using unit addresses
- RRAM partitions incorrect set up so that they collided with
one another for different cores
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
struct dns_header is packed therefore it fields need to be accessed with
respective helper macro to avoid warnings with clang.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
The enumeration was off by 1, fix to align with with the binding.
Also fix an incorrect file name in a comment.
Signed-off-by: Håkon Amundsen <haakon.amundsen@nordicsemi.no>
Move camera XCLK setup from DVP driver (POST_KERNEL) to esp_lcd_cam.c
(PRE_KERNEL_2) to ensure the image sensor receives clock before its
I2C initialization. This fixes a race condition where sensors like
ov2640 would fail to respond during probe because XCLK wasn't yet
configured.
Also adds timestamp to captured video buffers and removes a noisy
error log for set_selection when the source returns -ENOSYS.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
when pipe 1 or 2 is selected and parallel bus is chosen
HAL_DCMIPP_PARALLEL_SetConfig is failing, since it gets called twice
and driver is already in HAL_DCMIPP_STATE_READY state
Signed-off-by: Roman Pustobaiev <romanpustobayev@gmail.com>
for example:
l2cap_br_encrypt_change() calls l2cap_br_conn_pend(chan, hci_status) first,
which may trigger l2cap_br_chan_cleanup(chan). This clears chan->conn and
makes the channel invalid. The subsequent callback to
chan->ops->encrypt_change(chan, hci_status) then dereferences a NULL conn
in rfcomm_encrypt_change, causing a crash.
Signed-off-by: Zhijie Zhong <zhongzhijie1@xiaomi.com>
Wifi chip module may depend on SDHC(SDIO) module.
Currnetly, default init. priority is
CONFIG_WIFI_INIT_PRIORITY(80) & CONFIG_SDHC_INIT_PRIORITY(85).
It causes the issue.
Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
sys_sem semaphores can be used to synchronize kernel and userspace.
Current tests only check synchronization within each group. This
commit adds a test of sys_sem signalling between kernel and
userspace threads.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
When YAML binding files specify values in hexadecimal notation we want
generated documentation to preserve this notation since there is usually
a reason things were expressed in hexadecimal in the first place (e.g.
to match the way information is expressed in a device's datasheet).
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
When YAML binding files specify values in hexadecimal notation, this
information was previously lost during parsing as PyYAML converts hex to
regular integers.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Drop the leading article from the 'zephyr' vendor name in
vendor-prefixes.txt so vendor names sort more naturally in the Supported
Boards[1] lists.
[1]: https://docs.zephyrproject.org/latest/boards/index.html
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
This change introduces generating definitions corresponding to
`*-map` property, which was currently discarded.
For `*-map` properties are made able to be treated as a variation
of phandle-array, assign sequential cell names for each group of
specifiers (child_specifier_0, child_specifier_1, ...,
parent_specifier_0, ...).
The `*-map` data is like a two-dimensional array, so it is difficult to
handle with the existing APIs, so we will also provide new APIs.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Add a base binding for interrupt and io-channel nexus nodes.
This makes the implicit definitions explicit.
Replace existing individual map definitions with this.
This file does not define a specific `compatible` on its own,
So you should include this file before using it practically.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
They must be `array` type to match the existing `interrupt-map-mask`
and `interrupt-map-pass-thru`.
And also, updating descriptions.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>