Replace instances of struct net_sockaddr with struct net_sockaddr_storage
for stack variables.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Storing a socket address should be done with the designated struct
net_sockaddr_storage type instead of the opaque struct net_sockaddr.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
The function `z_isr_install()` is used during the rtl87x2g SoC init,
necessitating `GEN_ISR_TABLES`.
Enabling this config also correctly causes the `arch.arm.irq_vector_table`
testcase to be filtered out (skipped). This is expected behavior as that
test is intended for configurations without `GEN_ISR_TABLES`.
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
Do not enable this driver class by default.
Whoever needs it should select it instead.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This avoids having to touch release notes and migration guides for EOL
releases when e.g. some references to boards or code samples need
updating. Note that release notes and migration guides for actively
maintained releases will still be built after this changes so they still
can be impacted by the aforementioned types of updates.
URLs for EOL release notes and migrations are still valid but they
redirect to the "releases/eol_releases" page.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Let's avoid using off_t in the interface between the embedded and the
host side of the FUSE driver.
off_t is a C library defined type and as such can have a different sizes
between the host C library and the embedded C library.
While at it, let's do also the same with size_t. Even though size_t is
meant to be defined in stddef.h which is provided by the compiler, it is
possible to override it in the embedded side.
We just replace them with a 64 bit type for each (signed and unsigned
respectively matching the signedness of off_t and size_t).
There was a bug in the queue type which had the read/write second
parameter as off_t while it should have been size_t, which is now fixed
to be uint64_t.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
A CoAP client should not be limited to a single destination address for all
requests.
Store the destination address for each request or use the existing socket
directly.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Store the destination in a dummy struct net_sockaddr_storage variable
instead of a struct net_sockaddr.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
WIth the rework of the vlan handeling, the iface init
will only be executed once per instance, so we don't need
that check anymore.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Align to use the same pattern.
Mostly intended to verify the changes in the checkpatch script.
Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
It's a pattern that exists in the codebase and makes for much more
readable multi-line `#if defined` statements.
Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
Update the return type of the ICMP callback handler to enum net_verdict.
This fixes an issue where currently all ICMP handler are passed the same
pkt. Handlers could have modified the passed packet resulting in undefined
behavior.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Basic support for GlobalTop PA6H GNSS module.
API added: set_fix_rate, get_fix_rate, set_enabled_systems,
and get_enabled_systems.
Signed-off-by: Hong Nguyen <hong.nguyen.k54@gmail.com>
Add an option for calling the MPCCONF service from RAM, by plugging in
the `__ramfunc` attribute via IronSide SE support package's glue layer.
Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
Integrate support for a minimal driver for IronSide SE IPC which is
thread-unsafe, uses busy waiting, and assumes that the IPC region
is uncached. The driver is included in the IronSide interface code
itself, and is enabled by defining IRONSIDE_SE_CALL_MINIMAL.
This is primarily intended to be used by MCUboot but can be used by
e.g. resource constrained single-threaded firmware.
Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
Add support to the UICR generator image for the new features
in the IronSide support package:
Split blob generation options like GEN_UICR_PERIPHCONF
into GEN_UICR_PERIPHCONF and GEN_UICR_GENERATE_PERIPHCONF to
allow configuring the blob address independently from generating
the blob itself.
Add support for generating a UICR MPCCONF blob by extracting a table of
entries from an image ELF file. The mechanism works mostly the same
as the UICR PERIPHCONF blob generation. When the UICR generator image
finds another image that has CONFIG_NRF_MPCCONF_SECTION=y, it will
extract the data from the section named 'mpcconf_entry' and include it
in build/uicr/zephyr.hex and either build/uicr/mpcconf.hex
or build/uicr/secondary_mpcconf.hex.
Add support to the UICR generator image for setting the
POLICY_MPCCONFSTAGE field via Kconfig. Setting this to INIT is
required to make use of the new ironside_se_mpcconf_write() API
added with IronSide SE v23.4.0+27, which is used to configure
global domain MPCs.
Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
Add `mpcconf_partition` and `secondary_mpcconf_partition` to the board's
default memory map.
Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
Update hal_nordic revision to pull in updated IronSide SE supporting
code.
Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
Use the more appropriate KERNEL_DEVICE priority as default for the NPU
instead of KERNEL_DEFAULT. While at it, also clean up the NPU-specific
Kconfig file by using an `if` block to gate symbols.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add support for reset extended operation to clear all volatile register
settings. Notably, ECC enable and block protection registers are not
reset by a soft reset.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Setting SCR_ST_BIT actually traps CNTPS access to EL3, opposite
to what the comment says. Remove to allow secure EL1 access.
Also initialize CNTPS_CVAL_EL1 to prevent spurious interrupts.
Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Co-authored-by: Sudan Landge <sudan.landge@arm.com>
sipeed vendor name had non-breaking spaces in it, which is probably not
desirable in such a low-level, very much text-only, file. Replaced with
normal whitespace characters.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This update configures the board to support the CYW55513
Murata 2FY connectivity module by enabling the required
Kconfig symbols and defining the HCI UART interface in
the Devicetree
Changes:
- dts: Enable the Infineon HCI UART node with hardware flow control.
- pinctrl: Configured UART pins (TX, RX) and hardware flow control
pins (RTS, CTS) specifically for the Bluetooth HCI interface
- defconfig: Adjusted CONFIG_MAIN_STACK_SIZE to provide sufficient
headroom for the Bluetooth HCI driver and event processing.
Signed-off-by: Merin George <merin.george@infineon.com>
This update configures the board to support the CYW55513 connectivity
module by enabling the required Kconfig symbols and defining the
HCI UART interface in the Devicetree
Changes:
- dts: Enable the Infineon HCI UART node with hardware flow control.
- pinctrl: Configured UART pins (TX, RX) and hardware flow control
pins (RTS, CTS) specifically for the Bluetooth HCI interface
- defconfig: Adjusted CONFIG_MAIN_STACK_SIZE to provide sufficient
headroom for the Bluetooth HCI driver and event processing.
- kconfig: make AIROC_WIFI6 selection conditional on WIFI to fix
dependency warnings in BLE-only builds.
Signed-off-by: Merin George <merin.george@infineon.com>
Updates the build system within the BT stack integration layer to
identify and include the Bluetooth controller firmware images for the
CYW55513 connectivity module.
Signed-off-by: Merin George <merin.george@infineon.com>
Introduces common Kconfig configurations for the CYW55513 connectivity
module, supporting both Murata 2FY and discrete implementations.
Additionally, updates the HCI driver to include a new vendor-specific
command required for updating the SCO route to PCM
Signed-off-by: Merin George <merin.george@infineon.com>
Update the Infineon PDL UART driver to support Zephyr's standard
UART hardware flow control configuration.
Flow control is now derived from uart_config.flow_control allowing
applications to enable RTS/CTS using the generic UART API and
devicetree settings
configure the RTS rx fifo trigger level when flow control is enabled
Signed-off-by: Merin George <merin.george@infineon.com>
Add default GPIO support for the Infineon CY8CKIT-041S MAX
evaluation kit, including default Kconfig configuration with
GPIO enabled.
Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
Adds board-specific configuration and Devicetree overlays to support
the blinky_pwm sample and pwm_gpio_loopback test on the CY8CKIT-041S-MAX
development board.
Changes:
- Added overlay for blinky_pwm sample enabling PWM output and pin
configurations.
- Added overlay for pwm_gpio_loopback test with loopback path defined
as PWM output on P2.0 and GPIO input on P2.1.
- Enabled GPIO driver required for loopback verification.
Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
Extends the PSOC 4100S MAX support by configuring TCPWM
hardware interrupts and indexes.
- Defined interrupts (mapping to IRQs 17-24) and priorities for all
eight TCPWM instances (tcpwm0_0 to tcpwm0_7) in psoc4100smax.dtsi.
- Add the 'index' property to TCPWM nodes to explicitly define
their hardware instance number
Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
CAF eSPI flash API sample code and documentation about EC region
TAF eSPI APIs sample code
Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
The EBUSY return condition was incorrect and e.g. sem_destroy was in some
cases reporting this error even if no thread was blocked by this semaphore.
This commit fixes that by checking the waitqueue instead of the semaphore
count.
Signed-off-by: Jakub Michalski <jmichalski@antmicro.com>
Update bindings to consume a NVMEM cell instead of raw addresses, and
update the driver to support obtaining calibration data using the NVMEM
subsystem. For backwards compatibility and reduced footprint, the old
mechanism (direct MMIO read) is retained; a Kconfig option is introduced
to allow selecting which mechanism is used.
The sensor binding and SoC DTSI is updated accordingly.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Update bindings to consume a NVMEM cell instead of raw addresses, and
update the driver to support obtaining calibration data using the NVMEM
subsystem. For backwards compatibility and reduced footprint, the old
mechanism (direct MMIO read) is retained; a Kconfig option is introduced
to allow selecting which mechanism is used.
The sensor binding and SoC DTSI is updated accordingly.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add NVM OTP regions in DTSI of all STM32 SoCs: one region containing
calibration & other similar data, and (sometimes) another that can be
programmed in the field.
The temperature sensor and VREFINT calibration parameters are also added as
NVMEM cells in anticipation of a driver rework.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>