Commit graph

92442 commits

Author SHA1 Message Date
Andrzej Puzdrowski
e64fc33e05 linker: Set ROM offset for MCUboot with NRF54L
Due to number of IRQs the ROM offset, that contains MCUboot,
needs to be moved to address that is aligned with 2048 byte
long vector table.
This comes from Cortex-M requirement where vector table needs
to be placed at offset equal to lowest power of two number
that will fit vector table.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2024-03-14 09:46:39 +00:00
Mateusz Michalek
040a3423f7 dts: arm: add uart-mcumgr choosen for 54L15
setting uart20 as default uart-mcumgr

Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
2024-03-14 09:46:39 +00:00
Mateusz Michalek
5d99bf198f dts: arm: nrf54l: Add nodes required by MCUboot
The commit adds partitons on rram0.

Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
2024-03-14 09:46:39 +00:00
Morten Priess
85b503e23b Bluetooth: controller: ISO Sync Receiver vendor data path fixes
Add checks for vendor specific data path in ULL and HCI driver, to
enable use of vendor data path for BIS reception.

Signed-off-by: Morten Priess <mtpr@oticon.com>
2024-03-14 10:26:34 +01:00
Morten Priess
14191f11fd Bluetooth: controller: Fix ISO Broadcast control subevent channel
- Calculate broadcaster channel for control subevent
- Calculate sync receiver channel for control subevent
- Fix broadcast CSTF only set in first subevent
- Remove ctrl_chan_use from LLL, as there is no longer a reason for
  storing it.

Signed-off-by: Morten Priess <mtpr@oticon.com>
2024-03-14 10:26:09 +01:00
Vinayak Kariappa Chettimada
7845c0e3d6 Bluetooth: Controller: Ticker low latency with lazy skip
Update the legacy low latency variant of the ticker
implementation to skip to next periodic interval when
ticks to expire is behind the current tick. This makes
the low latency variant of the implementation consistent
with the default ticker implementation.

Also, cleanup conditional compiles in the implementation.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-03-14 10:25:41 +01:00
Daniel DeGrasse
fcbf03a2dc soc: nxp: imxrt: correct FCB offset for iMXRT1011 SOC to 0x400
Unlike the remainder of the RT10xx series, the RT1011 SOC requires that
the flash configuration block be placed at an offset of 0x400 bytes,
instead of the start of the flash.

Fixes #70090

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-14 09:33:43 +01:00
Tom Chang
87f77ca35f drivers: espi: npcx: fix warning when using ESPI_OOB_RX_ASYNC macro
This CL prevents unused warnings when CONFIG_ESPI_OOB_CHANNEL_RX_ASYNC
is used.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
2024-03-14 09:33:01 +01:00
Tim Lin
ebbc96534c ITE: drivers/i2c: Change GPIO output type to open-drain in recovery mode
If I2C recovery mode uses GPIO push-pull to drive(3.3v), it will result
leakage in a pull-up voltage of 1.8V on the power rail, leading to
damage to 1.8V devices, including SoC, sensors.
Therefore, the recovery mode should be changed to GPIO open-drain type
to avoid this.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2024-03-14 09:31:50 +01:00
Jonathan Rico
584f653de2 Bluetooth: conn: Don't deadlock on BT_RECV_WORKQ_SYS
My recent change overlooked this configuration, which is not tested in CI
currently.

If someone had enabled it, they would've just gotten an unfixable assert.

The correct test would be checking if the current thread is the system wq,
but I think the compiler can't know that and can't remove the "dead" code.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2024-03-14 10:21:23 +02:00
Jonathan Rico
074a541fb0 tests: Bluetooth: add minimal coverage for BT_RECV_WORKQ_SYS
Run the l2cap stress test so we have some minimal runtime coverage of that
config.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2024-03-14 10:21:23 +02:00
Hake Huang
f1186d29d0 boards: lpcxpresso54114 : fix board.cmake config error
board config missing CONFIG_ which will cause west build
can not create correct debuger inform

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-03-13 22:39:22 +00:00
Mahesh Mahadevan
870806cbc0 doc: frdm_mcxn947: Add documentation for FRDM-MCXN947
Add documentation for FRDM-MCXN947

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
8fa1c6d9c6 west.yml: Get changes for MCXN947 support
Get HAL updates for MCXN947 support

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
eaea4ec43e boards: frdm_mcxn947: Add support for frdm_mcxn947 board
Add support for frdm_mcxn947 board

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>`
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
f93e37e84b soc: mcxn947: Add support for NXP MCXN947
Add initial support for NXP MCXN947 SoC

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
739b9bc5e9 dts: mcxn94x: Add initial support for NXP MCXN94X
Add initial support for NXP MCXN94X

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Declan Snyder
5254fcbd0a drivers: gpio_mcux: Add support for GPIO ICR
Add support for devices that use the kinetis
GPIO/PORT scheme but with the slight modification
that the interrupt control bits are in the GPIO
peripheral instead of the PORT peripheral.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
205a8fed79 drivers: pinctrl: Add support for more ports
MCX has more port modules which requires updating
the pinctrl driver

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
879fe74dcd dts: pinctrl: Add input buffer for kinetis pinctrl
Some versions that use the kinetis pinctrl use the
input buffer

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
61d1a711fc drivers: uart: Use the register define instead of enum define
The enum define is not implemented with the same name on all SoC's.
Use the register define instead.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
bb9386473b dts: nxp_lpuart: Interrupts is no longer a required property
Some NXP SoC's have a FlexComm interface which manages
interrupts.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
742a8e85d8 drivers: clock: Enable PORT & LP Flexcomm in NXP syscon driver
1. Add support to enable PORT control clocks
2. Add support for LP Flexcomm
3. MCX family has a different Clock API for USDHC.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
301ebf83f3 drivers: uart: Use the NXP Flexcomm driver to interrupt handling
The Low Power Flexcomm driver manages the interrupt handling
and provides an API to register interrupt callbacks.
Register the NXP LPUART interrupt handler.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
72fd8d14da drivers: mfd: Add NXP LP Flexcomm driver
1. This driver allows to configure the Low Power Flexcomm
   interface as a UART, SPI or I2C device.
2. Manages the interrupts and dispatches it to the
   appropriate device driver.
3. A Flexcomm interface can be configured to be used as
   I2C and UART device. However a SPI device cannot be used
   concurrently with I2C or UART. Add checks for this feature.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Mahesh Mahadevan
8c2b55d97d dts: nxp: Add binding for NXP Flexcomm device
This binding is for the NXP FlexComm Interface. The
driver will setup an interface for use as a UART, SPI
or I2C device.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2024-03-13 22:38:46 +00:00
Laurentiu Mihalcea
f82cacbab8 dts: xtensa: nxp_imx8: add EDMA0 node
Add node for NXP's i.MX8QM/i.MX8QXP AUDIO EDMA0 IP.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
2024-03-13 22:37:04 +00:00
Daniel DeGrasse
685b3d2d3d boards: nxp: rd_rw612_bga: set CONFIG_TRUSTED_EXECUTION_SECURE
RD RW612 BGA board is built targeting secure mode execution. If
CONFIG_TRUSTED_EXECUTION_SECURE is not set, base address declarations in
CMSIS header files will be incorrect, causing a variety of issues. Fix
this.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-13 18:33:29 -04:00
Ryan Erickson
2ca67b56fb samples: net: cellular_modem: add mg100 support
Add support for mg100 gateway.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-03-13 13:05:51 -05:00
Ryan Erickson
ebd74fe332 samples: net: cellular_modem: add pinnacle 100 support
Add support for Pinnacle 100 DVK.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-03-13 13:05:51 -05:00
Ryan Erickson
cf628c6779 samples: net: cellular_modem: fix kconfig warning for logging
Logging needs to be on for CONFIG_MODEM_MODULES_LOG_LEVEL_DBG to work.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-03-13 13:05:51 -05:00
Ryan Erickson
06c62e4c17 modem: modem_cellular: fixes for hl7800
Add connect match for dialing PPP connection.
Ensure PDP authentication is disabled.
Request manufacturer, firmware version, and IMSI from the modem.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-03-13 13:05:51 -05:00
Ryan Erickson
971b3e2826 boards: pinnacle_100_dvk: add hl7800 node label
Add HL7800 modem node label.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-03-13 13:05:51 -05:00
Ryan Erickson
2d2e35b766 boards: mg100: add hl7800 node label
Add HL7800 modem node label.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2024-03-13 13:05:51 -05:00
Théo Battrel
4a55bc00f0 Bluetooth: Shell: Add support for EAD
Add new commands to manage the Encrypted Advertising Data feature.

Overview of those new commands:

- `bt encrypted-ad set-keys`: set key materials (session key and
  initialisation vector) used for encrypted and decryption of EAD;
- `bt encrypted-ad add-ad`: store a given advertising data structure;
- `bt encrypted-ad add-ead`: encrypt the given advertising data
  structres and store the generated AD structure;
- `bt encrypted-ad commit-ad`: set the AD of the selected advertiser
  with the stored AD;
- `bt encrypted-ad clear-ad`: remove all stored AD;
- `bt encrypted-ad decrypt-scan`: decrypt data using the previously set
  key materials when receiving AD with type `0x31`.

The documentation of the Bluetooth Shell has been updated to include
those new commands.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2024-03-13 18:51:03 +02:00
Jonathan Rico
f3f42d363b Bluetooth: shell: add bsim runner script
Spawns n instances of the bt-shell in separate xterm windows.

Assumes in-tree build of the shell, can optionally specify another .exe
image.

Also add snippet for that use-case (`-S xterm-native-shell`).

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2024-03-13 18:47:50 +02:00
Alberto Escolar Piedras
e1b7b450c8 doc/develop api_lifecycle: Mention adding the arch review label
For breaking API changes, let's mention explicity the PR should
be labelled with the "Architecture Review" label, as that is
the one we base the automation on.
As otherwise it is not clear enough for developers that they
should add it, and without it (and the automation surrounding it),
it is too easy for a PR to be merged by mistake.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-13 16:45:38 +00:00
Declan Snyder
f519087b21 boards: nxp: Add RD_RW612_BGA board
Add rd_rw612_bga board target.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-13 16:45:13 +00:00
Declan Snyder
5f53afca0a soc: nxp: Add RW SOC Family
Add SOC definition for NXP RW Family

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-13 16:45:13 +00:00
Declan Snyder
52c4aeb7cb dts: nxp: Add RW6XX Devicetree
Add SOC devicetree for RW6XX

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-03-13 16:45:13 +00:00
Declan Snyder
17ab3d5deb drivers: gpio: mcux_lpc: Support MCI_IO_MUX
Support MCI_IO_MUX pinctrl in LPC GPIO driver

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Co-authored-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-13 16:45:13 +00:00
Declan Snyder
6f4cf5c73c drivers: pinctrl: Add RW pinctrl driver
Add pinctrl driver for NXP RW6XX chip.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
Co-authored-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-13 16:45:13 +00:00
Kanak Shilledar
24a12802a5 MAINTAINERS: list soc and board files in RISCV Arch
added files for VisionFive 2 board and JH7110 SoC under the
RISCV Arch area.

Signed-off-by: Kanak Shilledar <kanakshilledar111@protonmail.com>
2024-03-13 11:39:51 -05:00
Pratik Farkase
5e346f553d boards: starfive: add visionfive2 board
these list of patches add support the Starfive Visionfive2
SBC based on the JH7110 SoC. Board identifier is `visionfive2`.

Signed-off-by: Kanak Shilledar <kanakshilledar111@protonmail.com>
Signed-off-by: Pratik Farkase <pratik.farkase@wsisweden.com>
2024-03-13 11:39:51 -05:00
Pratik Farkase
2b4ce8b3bb soc: starfive: jh71xx: add jh7110 soc support
These list of files add Kconfig support for
Starfive JH7110 SOC support.

Signed-off-by: Pratik Farkase <pratik.farkase@wsisweden.com>
2024-03-13 11:39:51 -05:00
Pratik Farkase
7679b8e6b4 dts: riscv: starfive: add DT includes for JH7110 SOC
These list of files add basic support for StarFive
JH7110 SOC Device Tree includes for VisionFive2
board.

Signed-off-by: Pratik Farkase <pratik.farkase@wsisweden.com>
2024-03-13 11:39:51 -05:00
Glenn Andrews
2f691ad8de Driver Input: FT5336 reports touch pressed on no touches
See https://github.com/zephyrproject-rtos/zephyr/discussions/69997

The driver thinks that when there are zero touches, the screen is
pressed. This changes it so zero touches mean the screen is not
pressed.

Also, multi-touch is now considered a single touch, and the
TOUCH_ID is checked so that only valid touches are registered.

Signed-off-by: Glenn Andrews <glenn.andrews.42@gmail.com>
2024-03-13 11:39:19 -05:00
Seppo Takalo
8a38ff7161 net: lwm2m: Handle empty URI
On some content-types, it might be impossible to
send strings with size of zero.
Therefore empty URI should also allow cases
where strlen() is zero.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-03-13 11:37:54 -05:00
Eve Redero
4809491b26 boards: st: st25dv_mb1283_disco: add mb1283 board
ST25DV discovery kit, including an LCD color screen.
ST25 support not included.

Signed-off-by: Eve Redero <eve.redero@gmail.com>
2024-03-13 09:50:26 -05:00
Lucas Denefle
08aa504e66 modem: modem_cellular: increase imsi size
Fixes an issue introduced with `080d51bb`

Signed-off-by: Lucas Denefle <lucas.denefle@converge.io>
2024-03-13 09:46:38 -05:00