Commit graph

66555 commits

Author SHA1 Message Date
Yinfang Wang
f6ee9362cd tests: subsys/debug: move coredump_backends to new ztest API
Move test coredump_backends to use new ztest API.

Signed-off-by: Yinfang Wang <yinfang.wang@intel.com>
2022-07-07 22:06:05 -04:00
Mahesh Mahadevan
2d54229f6c west.yml: Update NXP HAL to get the latest SDK
Update the NXP HAL SDK

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2022-07-07 14:45:07 -05:00
Carlo Caione
e3f3aba989 arch: Use a common place for z_irq_spurious
Every architecture must export the z_irq_spurious definition. Just unify
that in one single header file.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2022-07-07 15:24:39 -04:00
Andrei Emeltchenko
4d2bdf59db tests: ztest: Use ztest_test_fail() when needed
Instead of compare true to false use correctly defined function
ztest_test_fail().

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2022-07-07 15:07:02 -04:00
Andrei Emeltchenko
c866c586ab tests: ztest: Add testing Z_TEST_SKIP_IFNDEF() macro
Test new defined macro.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2022-07-07 15:07:02 -04:00
Andrei Emeltchenko
5b633db288 ztest: Add Z_TEST_SKIP_IFNDEF macro
Add macro Z_TEST_SKIP_IFNDEF which is used when you want to skip test
if configuration option is not enabled.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2022-07-07 15:07:02 -04:00
Adrian Bonislawski
ef2644d40d dma/cavs_hda: add missing hda link files to CMakeLists
This patch will allow to build hda link in&out files

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
2022-07-07 15:04:31 -04:00
Pieter De Gendt
90af62243e drivers: hwinfo: shell: Add missing reset cause strings
The hwinfo shell commands was missing human readable names for
* RESET_HARDWARE
* RESET_USER
* RESET_TEMPERATURE

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2022-07-07 17:59:19 +00:00
Adrian Bonislawski
b3beafcbac logging: cavs_hda: Allow format timestamp
LOG_BACKEND_CAVS_HDA supports LOG_BACKEND_FORMAT_TIMESTAMP

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
2022-07-07 17:58:56 +00:00
Carlo Caione
5a4affdcda gen_isr_tables.py: Move to scripts directory
There is no reason to have this script in a different place than all the
other python scripts. Move it.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2022-07-07 17:58:34 +00:00
Eduardo Montoya
ae65096fe7 manifest: openthread upmerge up to commit 7e7da0e2
Regular OpenThread upmerge.

Signed-off-by: Eduardo Montoya <eduardo.montoya@nordicsemi.no>
2022-07-07 17:58:02 +00:00
Daniel DeGrasse
8f6fef93d7 boards: mimxrt11xxx: update partition alignment for MCUBoot
update partition alignment for iMX RT1170 and RT1160 to enable storing
MCUBoot image in boot partition.

Fixes #45486

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-07-07 17:55:28 +00:00
Aaron Massey
3f201b18d1 MAINTAINERS: Add aaronemassey & yperess as collabs
Aaron and Yuval have been working on the ZTest API and tests. Anas (nashif)
requested they be added as ZTest collaborators.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2022-07-07 13:12:01 -04:00
Yuval Peress
10feb693f5 unittest: support ztest_new_api
Add support for the new Ztest API when using unittest.

Fixes #47420

Signed-off-by: Yuval Peress <peress@google.com>
2022-07-07 18:22:14 +02:00
YanBiao Hao
93df0e6d86 Bluetooth: Mesh: Removing the duplicated entry
Removing the duplicated entry net_transmit_status

Signed-off-by: YanBiao Hao <haoyanbiao@xiaomi.com>
2022-07-07 15:50:02 +00:00
YanBiao Hao
076843fae5 Bluetooth: Mesh: async cfg client api
support node reset status, TTL status, friend status,
network transmit status, GATT proxy status, beacon status

Signed-off-by: YanBiao Hao <haoyanbiao@xiaomi.com>
2022-07-07 15:50:02 +00:00
Pavel Vasilyev
4808f6f82a Bluetooth: Mesh: Don't open prov link after being provisioned
It is possible to open provisioning link again after being provisioned.
Though this has no immediate consequences, the node shall not open
provisioning after being provisioned.

Reset link.cb so that any following provisioning advs are dropped.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2022-07-07 15:47:59 +00:00
Benjamin Björnsson
e0cc66ab6f drivers: sensor: amg88xx: Add multi-instance support
Move driver to use DT_INST_FOREACH_STATUS_OKAY to add
multi-instance support.

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
2022-07-07 09:21:34 -05:00
Mulin Chao
5bb33e9a1d dts: power: Add npcx PSL DT node.
Add NPCX Power Switch Logic (PSL) DT node which controls the power rails
of SoC to get better power consumption.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2022-07-07 14:12:52 +00:00
Mulin Chao
851e357aa4 pinctrl: npcx: add pinctrl support for psl pads
This CL introduces how to configure PSL (Power Switch Logic) pads
properties such as input detection mode/polarity, pin-muxing and so
on via pinctrl mechanism. It includes:

1. Add two pinctrl properties and their enums for PSL input
   detection configuration.
    psl-in-mode:
      - "level"
      - "mode"
    psl-in-pole:
      - "low-falling"
      - "high-rising"

2. Add macro functions to get PSL input detection and pin-muxing
   configurations from 'pinmux', 'psl-offset' abd 'psl-polarity'
   properties.

Here is an example to configure PSL_IN2 as the PSL detection input and
its mode and polarity.

/* A falling edge detection type for PSL_IN2 */
&psl_in2_gp00 {
	psl-in-mode = "edge";
	psl-in-pol = "low-falling";
};

A device will be introduced later which uses this pinctrl node to
configure PSL input detection settings and how to turn off VCC1 power
rail by PSL_OUT.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2022-07-07 14:12:52 +00:00
Kumar Gala
c4cdba3833 samples: lwm2m_client: Convert to use DEVICE_DT_GET_ONE
Move to use DEVICE_DT_GET_ONE instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 08:27:52 -05:00
Kumar Gala
9ceeb3a0ae samples: lwm2m_client: Convert to use gpio_dt_spec
Move sample to use gpio_dt_spec for GPIO access.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 08:27:52 -05:00
Joep Buruma
91f659d70a samples: led_pwm: add overlay for rpi_pico board
Add an overlay for rpi_pico board to the led_pwm sample.
This board only supports fairly high pwm frequencies so
the blinking of the LED is not supported. Turning it on/off
and fading is.

Signed-off-by: Joep Buruma <burumaj50@gmail.com>
2022-07-07 15:17:26 +02:00
Joep Buruma
b876ad9d6f boards: arm: rpi_pico: add pwm bindings to devictree
Add bindings for pwm-leds to the rpi pico board. The default
pwm binding is connected to the onboard LED (P25).

Signed-off-by: Joep Buruma <burumaj50@gmail.com>
2022-07-07 15:17:26 +02:00
Joep Buruma
7e0fff24c7 drivers: pwm: add pwm driver for rpi_pico
Add pwm driver implementation for rpi pico family.
Adds myself as codeowner of drivers/pwm/*rpi_pico*

Signed-off-by: Joep Buruma <burumaj50@gmail.com>
2022-07-07 15:17:26 +02:00
Joep Buruma
2e3d446c6e dts: arm: rpi_pico: add dt bindings for pwm
Add devicetree bindings for pwm peripheral using pinctrl

Signed-off-by: Joep Buruma <burumaj50@gmail.com>
2022-07-07 15:17:26 +02:00
Martin Jäger
184d8d813d boards: riscv: esp32c3_devkit_m: enable USB serial
Enable the USB serial / JTAG interface so that it is compiled during
build tests.

Signed-off-by: Martin Jäger <martin@libre.solar>
2022-07-07 13:14:00 +00:00
Martin Jäger
d21907ccb8 dts: riscv: esp32c3: add usb_serial devicetree node
Devicetree configuration for ESP32-C3 USB serial / JTAG interface.

Signed-off-by: Martin Jäger <martin@libre.solar>
2022-07-07 13:14:00 +00:00
Martin Jäger
2ed42b3555 drivers: serial: esp32_usb: Add USB serial / JTAG interface
This peripheral combines a hardware-based USB CDC ACM serial interface
and a JTAG interface.

It is present in the ESP32-C3.

Signed-off-by: Martin Jäger <martin@libre.solar>
2022-07-07 13:14:00 +00:00
Kumar Gala
b9940d5988 tests: gpio_get_direction: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 15:13:36 +02:00
Xiao Song
0c6210c2e0 tests: net: icmpv6: move to new ztest API
Move tests/net/icmpv6/ to use new ztest API.

Signed-off-by: Xiao Song <songx.xiao@intel.com>
2022-07-07 15:13:08 +02:00
Kumar Gala
e5185edb62 tests: drivers: build_all: Remove mt9m114 from sensor
Remove mt9m114 from dtsi is a video driver and not a sensor.  The
sensor build_all test didn't actually build this driver and we have
coverage now from the video build_all test for it.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 15:12:29 +02:00
Kumar Gala
0a41c47277 tests: drivers: build_all: Add test for video drivers
Add a set of tests to cover building drivers that are in drivers/video/

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 15:12:29 +02:00
Kumar Gala
798c2ef0ee samples: boards: nrf: nrfx_prs: Remove DT_LABEL usage
As we work to phase out `label` property usage, remove DT_LABEL
from BUILD_ASSERT macro.  Just use SPIM_NODE and UARTE_NODE in
the assert message.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 08:12:11 -05:00
Kumar Gala
7c39210324 samples: boards: nrf: system_off: Convert to use DEVICE_DT_GET
Move to use DEVICE_DT_GET instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 08:12:11 -05:00
Kumar Gala
4cb17cca08 samples: boards: nrf: clock_skew: Convert to use DEVICE_DT_GET{_ONE}
Move to use DEVICE_DT_GET{_ONE} instead of device_get_binding as
we work on phasing out use of DTS 'label' property.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 08:12:11 -05:00
Kumar Gala
0efbba947a samples: boards: nrf: battery: Convert to use gpio_dt_spec
Move sample to use gpio_dt_spec for GPIO access.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 08:12:11 -05:00
Kevin Townsend
9e4af9801a tests: arch: arm: Disable l552ze in arm.swap.tz
Disabling nucleo_l552ze_q_ns from the test suite since there isn't
enough room to sign the image with the toolchain used in CI. This can
be reverted if changes are made to the nucleo_l552ze_q_ns platform to
enable enough room for the signing data.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2022-07-07 15:11:38 +02:00
Francois Ramu
209c75ca19 tests: drivers: gpio on nucleo_g071rb new pins
This commit changes the pin assignment for the gpio_basic_api
test case because A0 was conflicting with the testcase
tests/drivers/dac/dac_loopback.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2022-07-07 10:28:23 +00:00
Kumar Gala
465cc93bf0 samples: drivers: i2s: echo: Remove DT_LABEL usage
As we phase out usage of 'label' devicetree property, remove uses
of DT_LABEL.  Replace DT_LABEL with swN_spec.port->name.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:27:36 +00:00
Kumar Gala
0e00cccb7a samples: reel_board: mesh_badge: Convert to use gpio_dt_spec
Move sample to use gpio_dt_spec for GPIO access for SW0.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:27:16 +00:00
Jaroslaw Stelter
69913adc80 cmake: filter not supported C++ compilation flags
Compilation warnings appears for C++ files, that following
options are not valid:
-ffrestanding,
-Wno-format-zero-length
-Wno-main
-fgnu89-inline
-std-gnu99
Added checks to filter out unsupported flags.

Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
2022-07-07 10:26:22 +00:00
Carles Cufi
8e8cc7e490 tests: bluetooth: ctrl_isoal: Remove unnecessary test_main
With thew new ztest API, test_main() is not required anymore, so get rid
of it.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-07-07 10:47:23 +02:00
Carles Cufi
f096d944de ztest API migration: bluetooth/host_long_adv_recv
Migrate the tests at `bluetooth/host_long_adv_recv` to the new
ztest API.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-07-07 10:47:14 +02:00
Carles Cufi
c82c9f5d1e ztest API migration: bluetooth/uuid
Migrate the tests at `bluetooth/uuid` to the new ztest API.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-07-07 10:47:14 +02:00
Carles Cufi
5a0b1f2b07 ztest API migration: bluetooth/adv
Migrate the tests at `bluetooth/adv` to the new ztest API.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-07-07 10:47:14 +02:00
Kumar Gala
55df2bf08f tests: i2c_target_api: use DEVICE_DT_GET
Convert test to use DEVICE_DT_GET instead of device_get_binding
to help phase out use of DT_LABEL/DT_BUS_LABEL.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-07 10:20:39 +02:00
Erik Brockhoff
1433852ac5 bluetooth: tests: Fixup conf to make sure new LLCP is selected for EDTT
The choice of LLCP by selecting 'y' option of the proper CHOICE config
Turns out a couple of tests fail with refactored LLCP, disabled for now

Signed-off-by: Erik Brockhoff <erbr@oticon.com>
2022-07-07 10:18:29 +02:00
Yann Roth
c640392211 typo: fix LSM6DSL_SHIFT_MD2_CFG_INT2_WU
The register MD2_CFG contains INT2_WU and not INT1_WU

Signed-off-by: Yann Roth <yannroth@msn.com>
2022-07-07 10:16:35 +02:00
Freddie Yang
6185bf219c boards: update nrf51_ble400 configurations
nrf51_ble400 core board upgrades chip to nRF51822_QFAC

Signed-off-by: Freddie Yang <freddie.yang325@outlook.com>
2022-07-07 10:16:14 +02:00