Commit graph

89328 commits

Author SHA1 Message Date
Bartosz Bilas fcb9f41259 boards: xtensa: add Kincony KC868-A32 module suppport
Add support for the KC868-A32 ESP32 home automation relay module.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2024-01-08 14:21:30 +01:00
Tomasz Gorochowik b64915e616 docs: Fix rzt2m starterkit docs formatting
Add additional new lines before bullet points. Otherwise they are not
rendered as bullets.

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
2024-01-08 14:18:58 +01:00
Aleksandr Khromykh b4dc12b42b tests: Bluetooth: Mesh: optimize proxy beacon test
Emitting network beacons in parallel to proxy functionality
causes collisions. The commit disables network beacons and
allows the test scenario to be more precise.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2024-01-08 14:17:04 +01:00
Bartosz Bilas 7213e8e1f5 drivers: regulator: max20335: allow current limit operations only for BUCKs
LDOs don't have such possibility so add the extra checks.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
2024-01-08 14:16:55 +01:00
Bryan Zhu 6f84f34647 tests: counter: counter_basic_api: Add support for ambiq_counter device
Update counter test to test ambiq_counter devices

Signed-off-by: Bryan Zhu <bzhu@ambiq.com>
2024-01-08 14:16:13 +01:00
Bryan Zhu 6a64bf6b4f drivers: counter: counter_ambiq_timer: Enable interrupt in set_alarm
Alarm interrupt is disabled in cancel_alarm, we should re-enable it
in set_alarm, at meanwhile, should reset the compare register in
cancel_alarm to avoid the contention condition in
cancel_alarm & set_alarm in short time.
This change fixes the test case failure at
zephyr\tests\drivers\counter\counter_basic_api.

Signed-off-by: Bryan Zhu <bzhu@ambiq.com>
2024-01-08 14:16:13 +01:00
Nikodem Kastelik c8d22cf13a manifest: hal_nordic: update revision to have nrfx 3.3.0 release
New hal_nordic revision contains nrfx 3.3.0 which adds support
for nRF54H20 EngA and nRF54L15 EngA devices.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2024-01-08 13:10:26 +01:00
Jai Arora 5c34726ab1 posix: patch to implement get_pid function
patch to implement get_pid function

Signed-off-by: Jai Arora <infolinesoni@gmail.com>
2024-01-08 12:44:45 +01:00
Jai Arora a7c1a5f9d6 posix: Adds test case for clock_getcpuclockid function
Adds ZTEST for clock_getcpuclockid function

Signed-off-by: Jai Arora <infolinesoni@gmail.com>
2024-01-08 12:44:45 +01:00
Jai Arora a3573a9e30 posix: implement clock_getcpuclockid function
Implements clock_getcpuclockid function

Fixes #59954

Signed-off-by: Jai Arora <infolinesoni@gmail.com>
2024-01-08 12:44:45 +01:00
Hudson C. Dalpra 410684c7b0 drivers: w1: add zephyr-gpio driver
The zephyr-gpio w1 driver introduced in this commit implements
all routines for the w1 api on top of the zephyr gpio driver.
W1 bit read, write, and reset operations are executed by
bit-banging the selected gpio.

Signed-off-by: Hudson C. Dalpra <hudson@bduncanltd.com>
2024-01-08 12:43:52 +01:00
Yong Cong Sin 8f6be9661e tests: build_all: plic: add test for PLIC_SHELL build
Add a build-only test for the `PLIC_SHELL` configuration.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:52 +01:00
Yong Cong Sin dd7193e491 drivers: intc: plic: simplify the handling of the irq_count array
Store the compile-time computed length of the `irq_count` into
a variable so that we have less to do in runtime.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:52 +01:00
Yong Cong Sin 310c4539e9 drivers: intc: plic: fix compilation warning
Change the index variable type to `int` from `size_t` to compile
across 32bit and 64bit platforms without generating warnings.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:52 +01:00
Yong Cong Sin 7fac758bdb boards: riscv: add RISCV32 Virtual board made with Renode
The RISCV32 Virtual board is a virtual platform made with
Renode as an alternative to QEMU. Contrary to QEMU, the
peripherals of this platform can be easily configured by
editing the `riscv32_virtual.repl` script and the devicetree
files accordingly, this allows certain hardware configurations
that only exist in proprietary boards/SoCs to be tested in
upstream CI.

Added another entry for this board to the excluded platform in
`kernel.timer.timer` test.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:10 +01:00
Yong Cong Sin c328a38a94 soc: riscv: add support for Renode Virt RISCV32 SoC
Add a beef-ed up version of Renode's `riscv_virt` SoC

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:10 +01:00
Yong Cong Sin d0a3a50fbe dts: riscv: add a SoC dtsi for Renode RISC-V Virt SoC
RISCV32 simulation dtsi for Renode.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:10 +01:00
Yong Cong Sin 2f515d26f2 dts: bindings: vendor-prefixes: add renode prefix
Add renode binding prefix.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-08 12:35:10 +01:00
Steffen Jahnke a5c8fbf0d9 maintainers: Added Panasonic boards to the MAINTAINERS.yml file
Added maintainer for the pan17*_evb evaluation boards.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2024-01-08 12:35:03 +01:00
Steffen Jahnke 37520006f3 boards: arm: add PAN1783A-PA evaluation board
The PAN1783A-PA evaluation board is a development tool for the
nRF5340 from Nordic Semiconductor and the third evaluation
board variant for the PAN1783 Module. The power amplifier (PA)
version includes FEM support.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2024-01-08 12:35:03 +01:00
Bjarki Arge Andreasen 95c5f9b6f3 soc: arm: stm32f4 increase IDLE stack in case of PM
When Power Management is enabled (CONFIG_PM=y),
the CONFIG_IDLE_STACK_SIZE of 320 is not enough :
Increase its size to 512.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-01-08 12:34:30 +01:00
Bjarki Arge Andreasen 01e94e0766 soc: arm: stm32: Fix invalid Kconfig PM entry in defconfig file
The defconfig.series file for the stm32f4 incorrectly redefines
the PM Kconfig in order to select two dependencies, COUNTER and
COUNTER_RTC_STM32_SUBSECONDS, instead of setting a default for
them if PM is included.

This commit fixes the error described above.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-01-08 12:34:30 +01:00
TOKITA Hiroshi 4b889e9e01 boards: riscv: stamp_c3: Update sys_timer configuration
The esp32c3 systimer has been fixed in PR #53453, but stamp_c3 was
not included, so we will update it to catch up with this fix

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-01-08 12:34:23 +01:00
Dawid Niedzwiecki 164e4b6fa3 clock_control: stm32f4: add PLLR division factor
Some STM32F4xx chips have an R division factor in PLL. Add possibility
to configure that.

Even though the output from the R division is not used, it can be
increased to reduce power consumption.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2024-01-08 12:33:36 +01:00
Alexander Kozhinov 2307228442 boards: arm: nucleo_h745zi_q: nucleo_h745zi_q_m7.dts
Change div-q to fulfill FDCAN clock requirements

Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
2024-01-08 12:33:24 +01:00
Chamira Perera 0d4b46f51c drivers: ethernet: stm32: Enabling HW checksum offloading for STM32H7.
This change adds support for enabling ethernet MAC hardware checksum
offloading for STM32H7 based devices.

In Section 58.5.9 of the STM32H7 reference manual it mentions that
the STM32H7 ethernet MAC supports a Checksum Offload Module (COE).

I have tested the changes on my end where I enabled
CONFIG_ETH_STM32_HW_CHECKSUM and ensured that an application that
runs Zephyr on the STM32H7 can interoperate with a device with a
completely different implementation. Also, I deliberately made
the software not populate the IPv4 and UDP header checksum fields
in their respective headers and the COE was able to populate the
IPv4 and UDP header checksums.

Given that CONFIG_ETH_STM32_HW_CHECKSUM is not enabled by default
application developers have the option to either enable it or
disable it.

Signed-off-by: Chamira Perera <chamira.perera@audinate.com>
2024-01-08 12:33:17 +01:00
Abderrahmane Jarmouni 54539b2590 board: arm: nucleo-l4r5zi: flashing
Add the possibility to flash nucleo-l4r5zi board using west
STM32CubeProgrammer runner.

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
2024-01-08 12:33:09 +01:00
Francois Ramu 974bb50044 boards: arm: stm32h573i_dk is connected to a 512Mbit octoflash
Corrects the size of the external octoFlash connected to the
mcu of the stm32h573i disco kit from STMicroelectonics

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-01-08 11:49:54 +01:00
Alexander Kozhinov d6ebf1efa8 drivers: clock_control: clock_stm32_ll_h7.c
Reduce code-complexity of stm32_clock_control_init() function, which is
used and exists for both M4/M7 cores.
Replace dublicated code by proper preprocessor guarding.
This change shall reduce code-errors and copy-paste errors since same
functional code is present only once now.
Identify even more common code

Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
2024-01-08 11:49:04 +01:00
Dawid Niedzwiecki 1c0302d2fc drivers: gpio: stm32: fix init power state
Set suspended as initial power state, only when the
CONFIG_PM_DEVICE_RUNTIME config is enabled.

The initial state was incorrect, when CONFIG_PM_DEVICE=y and
CONFIG_PM_DEVICE_RUNTIME=n. In that case, the power state was SUSPENDED,
but the device was actually enabled.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2024-01-08 11:48:58 +01:00
Jakub Zymelka ade49f081d modules: hal_nordic: nrfx: update API version to 3.2.0
Updated API version enables multi-instance GPIOTE driver.
Additionally obsolete symbol that was used to specify
API version in the past was removed.
Affected drivers have been adjusted and appropriate changes
in affected files have been made.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2024-01-08 11:19:37 +01:00
Jakub Zymelka c546c8b96b boards: arm: set gpiote status to okay as default
After adding new GPIOTE instances, there is a need
to enable the instance for individual boards.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2024-01-08 11:19:37 +01:00
Jakub Zymelka dfbcc8911a dts: arm: add new gpiote instances definition
Added GPIOTE0, GPIOTE1 instances for legacy devices,
GPIOTE20, GPIOTE30 for Moonlight and GPIOTE130,
GPIOTE131 instances for Haltium.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2024-01-08 11:19:37 +01:00
Jakub Zymelka 7441ff0e7e boards: arm: nrf5340_audio_dk_cpunet_reset: switch to HAL
Change the GPIOTE driver to HAL to prevent instantiation
issues with a multi-instance GPIOTE driver.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2024-01-08 11:19:37 +01:00
Francois Ramu fff24fee14 drivers: usb: stm32U5 usb device controller
Like the stm32H5, stm32u5 usb device has an independent
power supply, but control bit is PWR_SVMCR_USV.
The control bit for the stm32H5 is PWR_USBSCR_USB33SV (no change)

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-01-08 10:58:42 +01:00
Fabio Baltieri 79e10f0d0f doc: input: add a dedicated GPIO keyboard documentation
This driver supports few different hardware configurations, add a
document page showing some of them next to some schematics snippets

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-08 10:23:53 +01:00
Fabio Baltieri bba517fa14 input: tweak actual-key-mask description
Tweak the actual-key-mask description, apply some leftover feedback from
the prevoius PR.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-08 10:23:53 +01:00
Mathieu Choplain 991a85361e llext: use generic attributes instead of GCC's
Replace the GCC-syntax attributes used for LL_EXTENSION_SYMBOL
with the toolchain-independent versions provided in toolchain.h

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-01-08 10:10:28 +01:00
Mathieu Choplain 5993192ec1 llext: fix incorrect elf64_sym structure
The elf64_sym structure was defined as having the members order
as the elf32_sym structure, which is incorrect.

Use the correct layout as defined by the ELF specification
(see https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.symtab.html)

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2024-01-08 10:10:28 +01:00
Peter Mitsis 8d40d3ba30 tests: latency_measure: Update sample output
Updates the sample output in the latency_measure benchmark's
README file to cover events.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-01-08 10:10:21 +01:00
Peter Mitsis a8914c56d2 tests: latency_measure: Add events
Adds events to the latency_measure benchmark.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-01-08 10:10:21 +01:00
Bjarki Arge Andreasen de855162a7 doc: emul: Adjust reference to emulated RTC docs
Add reference to section in RTC peripheral documentation which
covers the emulated RTC.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-01-08 10:10:13 +01:00
Bjarki Arge Andreasen 5f4545d9dd doc: peripherals: Add emulated RTC doc to docs
Adds documentation of emulated RTC behavior.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-01-08 10:10:13 +01:00
Henrik Brix Andersen 7940c728ab doc: hardware: peripherals: can: add CAN shell documentation
Add documentation for the CAN shell module.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-01-08 10:09:53 +01:00
Marcin Jelinski 5752a8f3be samples: ipc: multi_endpoint: Fix synchronisation of data receiving
The incorrect semaphore was used for the ipc1 instance to synchronise
the data receiving.
This commit fixes it.

Signed-off-by: Marcin Jelinski <marcin.jelinski@nordicsemi.no>
2024-01-08 10:09:22 +01:00
Maciej Baczmanski d0283f9b15 net: openthread: add missing cmake option
Added `OT_PLATFORM_POWER_CALIBRATION` and set to always off
as in Zephyr power calibration is handled by Radio Driver.

Signed-off-by: Maciej Baczmanski <maciej.baczmanski@nordicsemi.no>
2024-01-08 10:09:13 +01:00
Yves Vandervennet 929d551b02 boards: mimxrt685_evk: enable linkserver support
- board.cmake is augmented for LinkServer (now the default runner
  for this board)
- the board's doc file is updated as well

Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
2024-01-08 10:08:38 +01:00
Yves Vandervennet 71b846fab6 boards: frdm_k64f: enable linkserver support
- board.cmake is augmented for LinkServer (now the default runner
   for this board)
 - the board's doc file is updated as well

Signed-off-by: Yves Vandervennet <yves.vandervennet@nxp.com>
2024-01-08 10:08:29 +01:00
Bryan Zhu a417392f76 timer: ambiq_stimer: Correct set_timeout's delta clock calculation
In sys_clock_set_timeout(), input "ticks" is used to compute next
timeout point, Ambiq's STimer API used to sets next timeout has input
parameter as ui32Delta, which inside the API is using
"this value to add to the STimer counter and load into the comparator
register" according to its spec, thus the this delta clock is
almost equivalent to input "ticks"'s concept, and is not related to
last_count, it should be computed directly from input "ticks".
This correction fixes the test case failure at
zephyr\tests\kernel\tickless\tickless_concept.

Signed-off-by: Bryan Zhu <bzhu@ambiq.com>
2024-01-08 10:07:46 +01:00
Jamie McCrae 46b0d036e2 doc: release: 3.6: Add note on deprecating Kconfig
Adds a note that CONFIG_BOOTLOADER_SRAM_SIZE has been deprecated

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-01-08 10:06:24 +01:00