Commit graph

92442 commits

Author SHA1 Message Date
Kai Vehmanen
be881d4cf2 arch: xtensa: add isync to interrupt vector
On Intel ADSP platforms, additional "isync" is needed in interrupt
vector to synchronize icache when core is woken up from deeper
sleep state by an interrupt. This is only needed if DSP clock
gating is enabled.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2024-03-15 21:45:57 -04:00
Tim Lin
d89e8052da ITE: soc: it8xxx2: Add missing Kconfig file of it82302ax variant
Previous adjustments to hwmv2 lost this Kconfig file.

Test: west build -p always -b it82xx2_evb samples/hello_world
config BOARD_IT82XX2_EVB
   select SOC_IT82302_AX

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2024-03-15 18:27:26 -04:00
Benjamin Cabé
27f91456a4 doc: dts: fix link to reel board DTS file
fix broken link following hwmv2 migration

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
3ca384beb8 doc: boards: hwmv2: fix seagate faze dead link
fix a dead reference to faze/support/openocd.cfg

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
9518d1d80a doc: boards: hwmv2: fix teensy dead link
fix a dead reference to teensy40_defconfig file

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
36a9a9cee0 doc: guidelines: fix dead links
fix zephyr_file and zephyr_raw broken links

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
e6990302cb doc: hwmv2: boards: fix broken NXP links
fix bad links to some NXP board files (and make references actual "links")

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
b27ebd5b3d doc: boards: hwmv2: fix dead links to Broadcom files
Broadcom boards live in /boards/brcm, not /boards/broadcom
This commit fixes bad links accordingly.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
40d3ffa603 doc: fix double backticks in sphinx roles
fixed a few improperly formatted sphinx roles causing dead references.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
e7b6a08d8f doc: soc: hwmv2: fix altera dead links
fixing dead links to some Altera SoC files

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
975ca7888f doc: boards: hwmv2: fix dead links to Wurth Electronik DTS fils
Wurth Electronik boards live in /boards/we, not /boards/wurth_elektronik
This commit fixes bad links accordingly.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
62d79c899b doc: boards: hwmv2: fix dead links to u-blox DTS fils
U-Blox boards live in /boards/u-blox, not /boards/ublox
This commit fixes bad links accordingly.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
5edd2b37f5 doc: boards: silabs: fix bad links
fix minor typos causing dead links

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
9bf13638a1 doc: boards: hwmv2: fix dead links for Seeed
Seeed Studio boards live in boards/seeed so update file links accordingly.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
0f0f2422d8 doc: boards: hwmv2: fix dead link for rpi4b
fix typo in raspberrypi vendor name causing dead link

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
46ff3bd239 boards: hwmv2: doc: fix dead links for Nordic
fixes a few broken links to Nordic DTS files

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
12188e2362 boards: hwmv2: fix dead links for Laird Connect boards
typo in vendor name was causing dead links

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
1015ae3d4f doc: hwmv2: board_porting: fix broken links
DTS files for FRDM-K64F and Hexiwear K64 have moved.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
9da1390b55 asamples: drivers: ht16k33: fix product link
Update URL to product page to HTTPS & more recent version.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
e914c60ae1 boards: intel_adsp: fix dead link
Chromium OS disk format documentation has moved.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
fd265dba61 doc: samples: use https URL for adt7420 sample
http://www.analog.com/adt7420 does not exist anymore nor redirect to
https, so update the link to be https

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
72a36668db doc: boards: acn52832 remove 404 link
Aconno doesn't seem to be around anymore. Remove deadlink to product page.
Issue originally reported in #67099

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
c75b99e963 doc: boards: update links to DWM1001 web page
This board's docs are now to be found on Qorvo website, update links
accordingly.
Originally reported in #67099.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
8f09325e4a doc: boards: Update E73-TBB product page link
E73-TBB board now lives at cdebyte.com.
Fixes #67099.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
8190fb6257 boards: doc: fix dead link to Keyestudio CAN-BUS Shield page
Fix an HTTP 404 for the link to Keyestudio CAN-BUS Shield product page.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
910ec65b0d boards: Fix dead link in Laird Connectivity Sentrius BT610 Sensor page
Fix dead link to Sentrius™ BT610 Thermistor Coefficient Calculator page.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Benjamin Cabé
9395771d8b boards: doc: Fix dead links in Arduino Nicla Sense ME doc page
Updated 3 dead (404) links in the doc page for Arduino Nicla Sense ME.
Also uniformized indenting of sphinx links in the process.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-03-15 18:21:05 -04:00
Kai Vehmanen
010f39a409 soc: intel_adsp_cavs: store PS when power gating secondary core
When non-primary core is powered down and restart with sequence of:
 - PM state set to SOFT_OFF
 - once target core is idle, cut power with soc_adsp_halt_cpu()
 - power up core again with k_smp_cpu_resume()

The execution will continue from stored DSP core context, but
will hit an assert in z_smp_cpu_mobile() as the PS.INTLEVEL
is zero.

Fix this issue by storing and restoring PS register in this flow.

Link: https://github.com/zephyrproject-rtos/zephyr/issues/70181
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2024-03-15 18:16:51 -04:00
Declan Snyder
d1029da089 tests: spi_loopback: Support rd_rw612_bga
Add rd_rw612_bga to spi loopback test

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-15 18:07:45 -04:00
Declan Snyder
ba1ab8cc5e boards: rd_rw612_bga: Enable FC0 as SPI
Enable flexcomm0 as SPI on rd_rw612_bga

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-15 18:07:45 -04:00
Declan Snyder
fa6e894e1d soc: nxp: rw: Clock SPI Flexcomms
Clock flexcomms if used as SPI

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-15 18:07:45 -04:00
Jamie McCrae
774aa3605f boards: lairdconnect: bl5340_dvk: Fix file name
Fixes an wrong file name for a file that had been renamed as part
of the hwmv2 port

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-15 17:13:57 -04:00
Jiafei Pan
c2447d4230 boards: imx93_evk: add led1 alias
So that it can be used to run basic thread sample application.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-03-15 17:13:41 -04:00
Jiafei Pan
ee4131afc1 tests: gpio_basic_api: change imx93 evk board name
Updated according to hardware model v2 board name changes.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-03-15 17:13:41 -04:00
Alberto Escolar Piedras
e807b7e1c2 samples/basic/hash_map: Remove clarification sentence
This current sentence would need to be clarified a bit
further to be really correct:
It is only when building with the host C library that it
applies, but with native_sim we can build with other
libC's.
The twister tests definitions are testing only with
embedded C libraries,
and there is anyway no harm if somebody defines the heap
size even if using the host libC.
So as such it would seem better to just remove this
sentence.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 17:13:18 -04:00
Mahesh Mahadevan
3c68a20d75 boards: frdm_mcxn947: Move the GPIO button nodes to the common file
Move the GPIO button dts nodes to the common dts file so it
be selected by either cpu core.
Also fix an error in the GPIO setting for one of the switches.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-15 17:12:53 -04:00
Daniel DeGrasse
868f0cdfec boards: update lpcxpresso55s69_cpu0 name in build commands
Update lpcxpresso55s69_cpu0 (and ns target) names in build commands in
the board documentation. Also, correct the documentation for dual core
images on this part, as it was out of date.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-15 17:12:08 -04:00
Daniel DeGrasse
ec5df8a0e5 treewide: fix board identifier in overlays for lpcxpresso55s69
Fix board identifier in overlays for the lpcxpresso55s69_cpu0 target.
Board identifiers were renamed with the following command:

for file in $(find . -name "lpcxpresso55s69_cpu0.*"); do;
	mv $file ${file/_cpu0/_lpc55s69_cpu0};
done

Additionally, remove lpcxpresso55s69_ns overlay targets where they are
no longer needed (or rename them where they are)

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-15 17:12:08 -04:00
Daniel DeGrasse
8347abd001 drivers: counter: counter_nxp_mrt: include soc.h for MRT CMSIS defines
Include soc.h in nxp MRT driver, so that CMSIS register definitions will
be available in this file

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-15 17:12:08 -04:00
Ren Chen
765a4eb0b8 drivers: timer: it8xxx2: enhances the accuracy of hw cycle calculation
This commit enhances the accuracy of hardware cycle calculation before
setting the IT8xxx2 event timer. The next target cycle is calculated by
the last, elapsed, and expected timeout ticks. And then, the difference
in hardware cycles between the target cycle and the current cycle is set
into the event timer. This increased accuracy effectively resolves the
clock drift issue.

Tested with:
west build -p always -b it8xxx2_evb tests/kernel/timer/timer_api
     -T kernel.timer.tickless
west build -p always -b it8xxx2_evb tests/kernel/timer/timer_behavior
     -T kernel.timer.timer

Fixes #67474 #67833

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2024-03-15 17:11:33 -04:00
Flavio Ceolin
417747886c tests: sprintf: Avoid buffer overrun
fwrite parameters are "size_t size" and "size_t nmemb",
when writing a string we should set sizeof(char) and len(string).
The test is doing it wrongly and making the function read more
memory than it should.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-03-15 17:08:58 -04:00
Samy Francelet
4163ea0207 drivers: eswifi: Add option for maximum data size
Default MAX_DATA_SIZE might be too small depending
on application (e.g. handling the scan result with 12 APs detected)
Added config option for MAX_DATA_SIZE and warning for the user

Signed-off-by: Samy Francelet <samy.francelet@ik.me>
2024-03-15 15:16:27 -05:00
Alberto Escolar Piedras
cf362a018c nrf53_bsim: Enable CodedPhy support in DTS
The RADIO HW model supports coded phy now, let's enable it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 13:55:27 -05:00
Alberto Escolar Piedras
84df9f5e71 nrf52_bsim: Enable CodedPhy support in DTS
The RADIO HW model supports coded phy now, let's enable it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 13:55:27 -05:00
Alberto Escolar Piedras
4442477d93 Bluetooth: Controller: Add coded phy radio timings for nrf52_bsim
Add Coded Phy radio timings for the nrf52_bsim

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 13:55:27 -05:00
Alberto Escolar Piedras
b7787792f1 Bluetooth: Controller: Nordic HAL: Use HAL to configure Timer's CC
Use the HAL always when setting the TIMERs CC registers,
(also for coded Phy) to ensure things work properly for simulation.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 13:55:27 -05:00
Alberto Escolar Piedras
81ea7fc889 manifest: Update nRF hw models to latest
* Update the HW models module to
df94612a846b8b1da166d3e4e4273df54de02340

Including the following:
* df94612 GPIO: Add test API to be notified on output changes
* 0da9163 HW models: Use libUtil bs_create_folders_in_path
* c7798a4 CodedPhy: Several fixes and added documentation
* 534c8d4 RADIO: Move CCM decryption trigger to CRCEND
* bde13fc RADIO: Preliminary Coded Phy support
* ff2a79d RADIO: Refactored modulation selection
* f3823e5 RADIO: Fix in Tx packet end time
* d6ebdd9 RADIO: Refactored Address selection

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 13:55:27 -05:00
Alberto Escolar Piedras
f2d79470f3 Manifest: Update bsim to version v2.2
Which includes BLE coded phy support

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 13:55:27 -05:00
Jeppe Odgaard
20f747bb63 drivers: sensor: qdec_stm32: fix inverted polarity
Use the Polarity member instead of the ActivityInput.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2024-03-15 17:43:51 +01:00
Erwan Gouriou
94477c099c boards: st: nucleo_wba: Fix openocd configuration
Using Zephyr SDK 0.16.5, openocd can be used to debug WBA based boards.
Fix documentation and clean up board.cmake configuration for
nucleo_wba52cg from a local configuration which shouldn't have been
upstreamed

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-15 17:28:16 +01:00