Commit Graph

68291 Commits

Author SHA1 Message Date
Ryan Erickson 3c3a857f79 modem: hl7800 fix runtime log level control
mdm_hl7800_log_filter_set uses LOG_MODULE_NAME which
is undefined.
log_source_id_get() will fail to get the correct source id.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
2022-08-12 16:18:27 +02:00
Robert Lubos 814b0202d0 MAINTAINERS: Add an entry for uoscore-uedhoc module
Add an entry for uoscore-uedhoc module to the MAINTAINERS.yml file and
assign myslef and StefanHri as maintainers.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos 208cbffbf7 test: Add uoscore tests
Add unit tests for OSCORE library.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos ab024565f0 modules: mbedtls: Update Kconfig defaults for OSCORE/EDHOC
Set proper Kconfig defaults for mbed TLS if OSCORE/EDHOC is enabled.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos 633e7e4533 modules: Add uoscore-uedhoc repository
Introduce uoscore-uedhoc repository, providing OSCORE and EDHOC
libraries as a new Zephyr module.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos c7327f5f70 modules: mbedtls: Add mbed TLS entropy source based on Zephyr entropy
Add entropy source for mbed TLS based on Zephyr entropy driver.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos 1c1bb51730 modules: mbedtls: Add separate configs for EC algorithms
Instead of relying on selected ciphesuite to enable mbed TLS EC configs,
add separate config entries to enable them. This allows to use EC
functionality w/o TLS/DTLS enabled.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos fc81f67e9a modules: mbedtls: Add Kconfig entry for PSA API
Add Kconfig option to enable PSA API in mbed TLS.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Robert Lubos d288e24c6c modules: mbedtls: Workaround for incorrect inclusion in mbedtls
psa_crypto_cipher.c includes an internal header with <>, causing
complication errors in Zephyr (header not found).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-12 16:17:59 +02:00
Stephanos Ioannidis 5a7bd7fac3 ci: twister: Include module test results in report
This commit modifies the twister workflow to include the module test
results in the unit test report.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-08-12 08:44:18 -05:00
Dominik Ermel 7aa386e288 tests: drivers: flash: Rework and cleanup flash area definitions
Simplify and reduce the definitions.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2022-08-12 14:19:18 +01:00
Kun Li 80a9b7aefc tests: fcb_init: move testcases to new API
move fcb_init testcases to new API.

Signed-off-by: Kun Li <kun1x.li@intel.com>
2022-08-12 14:18:05 +01:00
Matthias Hauser c5155b2dbf Bluetooth: writing appearance to settings
avoid saving appearance in flash if it did not change

Signed-off-by: Matthias Hauser <Matthias.Hauser@we-online.de>
2022-08-12 14:17:44 +01:00
Kumar Gala 19801debc5 peci: ite_it8xxx2: Move interrupt select to driver Kconfig
The driver really should select PECI_INTERRUPT_DRIVEN instead
of doing it in the SoC Kconfig.defconfig.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-12 14:16:59 +01:00
Kumar Gala 89f356a0ff peci: ite_it8xxx2: Rename compatiable to match other compatiables
All the of the ITE it8xxx2 devicetree compatiables are of the form
ite,it8xxx2-<DEV>.  However the PECI device was ite,peci-it8xxx2,
rename the compatiable to match the pattern used everywhere else.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-12 14:16:59 +01:00
Kumar Gala 465b7615a9 drivers: w1: Move to using select in Kconfig for I2C bus
Move to using select I2C' instead of 'depends on'
(see commit df81fef944 for more
 details)

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-12 14:15:53 +01:00
Zhao Shuai 48dfd9c7e6 tests: subsys: fs: fat_fs_api to new ztest API
Move test fat_fs_api to use new ztest API.

Signed-off-by: Zhao Shuai <shuai1x.zhao@intel.com>
2022-08-12 14:15:26 +01:00
Henrik Brix Andersen c11326300f drivers: can: remove option for configuring CAN-FD max DLC
Remove the Kconfig option for configuring the maximum value of the CAN-FD
Data Length Code in order to ensure standard compliance.

Allowing users to configure the max DLC allows the user to save a number of
bytes per CAN frame in RAM, but it also renders the Zephyr CAN-FD
implementation non-compliant with the CAN-FD standard.

There are no guarantees that a Zephyr CAN-FD node will not receive a CAN
frame with a DLC higher than the Kconfig limit, which opens up for all
sorts of bugs when trying to handle received CAN-FD frames.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-08-12 14:15:10 +01:00
Henrik Brix Andersen c3c1bc1ae5 drivers: can: utils: change can_utils_filter_match() return type to bool
Change the return type for can_utils_filter_match() to bool and add
documentation.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-08-12 14:14:52 +01:00
Yinfang Wang 8a8ead3f90 tests: subsys: fs: move fcb to new ztest API
Move fcb to new ztest API.

Signed-off-by: Yinfang Wang <yinfang.wang@intel.com>
2022-08-12 14:14:26 +01:00
Gerard Marull-Paretas cd521b4d2d boards: arm: gd32e507v_start: initial support
Add initial support for the GD32E507V-START board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-08-12 14:13:49 +01:00
Gerard Marull-Paretas ffc90592f8 soc: arm: gigadevice: add initial support for gd32e50x series
Add initial support for GD32E50X series (only GD32507X for now).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-08-12 14:13:49 +01:00
Gerard Marull-Paretas 13a071ea74 dts: arm: gigadevice: initial support for gd32e507x
Add initial support for GD32E507X, part of the GD32E50X series.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-08-12 14:13:49 +01:00
Gerard Marull-Paretas 05b26df660 modules: hal_gigadevice: add support for CMP, TMU and SHRTIMER
The CMP, TMU and SHRTIMER modules were not compiled. Add them now that
GD32E50X series support is being added (this SoC has such units).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-08-12 14:13:49 +01:00
Gerard Marull-Paretas 184fb42957 modules: hal_gigadevice: add support for gd32e50x
Add some compile definitions necessary for the gd32e50x HAL and select
default crystal clock.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-08-12 14:13:49 +01:00
Gerard Marull-Paretas df6a01d13d manifest: update hal_gigadevice
Update hal_gigadevice to pull support for GD32E50X series.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-08-12 14:13:49 +01:00
Francois Ramu dd8cb23213 tests: drivers: gpio basic pass testcase when test pin_get is not defined
When the CONFIG_GPIO_GET_CONFIG is set, even if the driver does not
provide the pin_get_config function, it is supposed to return -ENOSYS
error code (see zephyr/include/zephyr/drivers/gpio.h)
The testcase should accept this code and PASS.
(ENOTSUP is not the right value to check).

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-08-12 14:13:37 +01:00
Francois Ramu cb196fe02b drivers: gpio: stm32F1x serie does not provide the pin get config
The stm32F1x serie does not provide the pin_get_config function,
Even if the CONFIG_GPIO_GET_CONFIG is set, the -ENOSYS error code
is returned by the z_impl_gpio_pin_get_config().

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-08-12 14:13:37 +01:00
Francois Ramu 99f8579c0b drivers: gpio: stm32 driver uses a structure to hold the pin configuration
Define a pin structure to carry the pin configuration elements
such as push/pull, opendrain, input/output, high/low.
This structure will give the gpio_flags_t to the gpio_stm32_get_config.
Only the stm32F1x serie does not provide the pin config get function.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-08-12 14:13:37 +01:00
Francois Ramu bb299b1194 drivers: gpio stm32 driver also get the pin state
In the stm32 gpio driver, the gpio_stm32_get_config function
also returns the pin state HIGH or LOW) to match gpio_pin_get_config
This is valid with CONFIG_GPIO_GET_CONFIG.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-08-12 14:13:37 +01:00
Alex Tsamakos 85cde3f467 boards: actinius_icarus_som: rename sim-select to actinius-sim-select
This renames the `sim-select` binding to `actinius-sim-select`.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos e433be22d4 boards: actinius_icarus_bee: rename sim-select to actinius-sim-select
This renames the `sim-select` binding to `actinius-sim-select`.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Gerard Marull-Paretas 018eeb72ab boards: arm: actinius_icarus: split non-common pinctrl entries
actinius_icarus_common-pinctrl.dtsi contained entries for uart0 that are
not common for all revisions.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 736255d134 boards: actinius_icarus: add support for hardware version v2.0
Add support for the new hardware version of the Icarus IoT Board.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos a9b27cd904 boards: actinius_icarus_bee: change bootloader/mcuboot LED to blue
Change the DT properties related to the bootloader/mcuboot
to set the LED to blue.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 4f695040b6 boards: actinius_icarus: change bootloader/mcuboot LED to blue
Change the DT properties related to the bootloader/mcuboot
to set the LED to blue.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 4eb914219d boards: actinius_icarus_*: align def RAM plan with that of the nRF9160DK
Align the default RAM allocation to be according to that of the
nRF9160DK by reducing the reserved SRAM for the modem lib.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 7b4bf6b734 boards: actinius_icarus_bee: fix accelerometer INT pins
Update the DT with the correct order of the INT1 and INT2 pins
of the accelerometer.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 83d7a688bb boards: actinius_icarus_som: fix accelerometer INT pins
Update the DT with the correct order of the INT1 and INT2 pins
of the accelerometer.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 4646d4c22b boards: actinius_icarus_som: fix incorrect `sim-select` gpio
Fix the pin number of the `sim-select` gpio to the correct one
for the Icarus SoM.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 5449f7f307 boards: actinius_icarus_bee: fix incorrect `sim-select` gpio
Fix the pin number of the `sim-select` gpio to the correct one
for the Icarus Bee.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos b6037ec29c boards: actinius_icarus_*: fix `sim-select` binding docs about enum use
Change the documentation of the `sim-select` DT binding to explain
the proper use of the configuration property using enum values.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 4bceb13614 boards: actinius_icarus_*: board.c: fix pin initialization
Revert back to using `GPIO_OUTPUT_*` instead of `GPIO_OUTPUT_INIT_*`
as the later does not including enabling the GPIO output.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Alex Tsamakos 21c0a9f151 boards: actinius_icarus_*: only include `board.c` in non-secure targets
Refrain from including `board.c` in secure targets as a workaround for
SPM having the GPIO driver disabled.

Signed-off-by: Alex Tsamakos <alex@actinius.com>
2022-08-12 14:13:22 +01:00
Kumar Gala 78745b2de9 flash: nios2_qspi: Convert driver to be devicetree based
Do simple conversion of driver to have driver enabled by devicetree
in Kconfig and struct device created based on basic devicetree
data.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-12 08:11:42 -04:00
Kumar Gala 8d2cbc639c flash: nios2_qspi: Add dts binding and nodes for NIOS2 QSPI flash
Add dts bindings for the NIOS2 QSPI controller and flash device and
add nodes to the dts files for these devices as well.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-12 08:11:42 -04:00
Anas Nashif 61103d415a intel_adsp: clk: add braces around if/for
add missing curly braces around if/for statements.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-08-12 08:08:32 -04:00
Torsten Rasmussen 5fa4156462 doc: sysbuild documentation guide
This is this initial sysbuild guide on what sysbuild is and how to build
a sample using sysbuild.

It provides an architectural overview of sysbuild.
Descriptions on how to use `west build` or `cmake` + `ninja` to build
projects with the sysbuild infrastructure.

Flashing is described through the use of `west flash`.

Extending sysbuild with additional Zephyr based applications are
described, and reference to CMake documentation for including non-Zephyr
based applications are provided.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-08-12 13:56:55 +02:00
Torsten Rasmussen 3e379c0ee6 doc: extend application sphinx extension to support west arguments
This commit allows documentation examples that uses `west` to specify
`west` arguments.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2022-08-12 13:56:55 +02:00
Henrik Brix Andersen 4f9821708d tests: canbus: isotp: conformance: convert to new ztest API
Convert the CAN bus ISO-TP conformance test suite to use the new ztest API.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-08-12 13:23:00 +02:00