Commit graph

75514 commits

Author SHA1 Message Date
Michael Hope 147b920d15 scripts/runners: hack: use the wlink specific commands to start the board 2023-02-26 19:30:59 +01:00
Michael Hope e1e85bc932 boards: add ch32v003evt 2023-02-26 19:30:59 +01:00
Michael Hope 6942fd84d4 drivers: add the ch32v00x USART driver 2023-02-26 19:29:45 +01:00
Michael Hope 70ba1b2358 drivers: add the ch32v00x PWM driver 2023-02-26 19:29:45 +01:00
Michael Hope b83e7ba7da drivers: add a GPIO driver 2023-02-26 19:29:45 +01:00
Michael Hope 9bedff2a56 drivers: add the PFIC interrupt controller 2023-02-26 19:29:45 +01:00
Michael Hope 58f04aad93 drivers: add the ch32v00x systick driver 2023-02-26 19:29:45 +01:00
Michael Hope 45f4fabc71 drivers: add the ch32v00x clock controller 2023-02-26 19:29:45 +01:00
Michael Hope c454459a32 drivers: add ch32v00x pinctrl support 2023-02-26 19:29:45 +01:00
Michael Hope b459af5a62 soc: update the interrupt handling 2023-02-26 19:29:45 +01:00
Michael Hope 419b57aa7a soc: add clock configuration 2023-02-26 17:05:45 +01:00
Michael Hope 040b272f1d soc: depend on the HAL 2023-02-26 17:05:02 +01:00
Michael Hope e2280a2bf4 modules: add the ch32v00x module support 2023-02-26 17:04:28 +01:00
Michael Hope 29094b2c6d soc: add wch_ch32v003 stubs 2023-02-26 17:04:22 +01:00
Michael Hope a7681e5ec3 dts: add the ch32v003 DTSI and bindings 2023-02-26 16:54:05 +01:00
Michael Hope 2c8e3201fc west: add the hal_wch 2023-02-26 16:43:42 +01:00
Marc Herbert eead89e7f2 soc: intel_adsp: cavstool.py: simplify asyncio.run() call
Fixes the following warning:

cavstool.py:706: DeprecationWarning: There is no current event loop
  asyncio.get_event_loop().run_until_complete(main())

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2023-02-26 09:18:24 -05:00
Martí Bolívar 2bf1ce9137 devicetree: fix DT_PROP_HAS_NAME doxygen example
The node identifier is missing a DT_NODELABEL() around the node label.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2023-02-26 09:17:54 -05:00
George Ruinelli b2512d2f53 arm: Add missing include
Add missing include to prevent `'EINVAL' undeclared` when
using `CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT=y`

Signed-off-by: George Ruinelli <caco3@ruinelli.ch>
2023-02-25 07:59:56 -05:00
Jordan Yates b83cf1f1ee drivers: serial: uart_rtt: fix multi-channel
Populate the `channel` index when constructing configuration structs for
secondary RTT channels. Originally missed in #27704.

Fixes #54955.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-02-25 06:55:58 -05:00
Emil Gydesen 0b0b8bff45 MAINTAINERS: Add larsgk to Bluetooth Audio
larsgk is collaborating on Bluetooth Audio.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-02-24 17:00:55 -05:00
Yuval Peress ebfd9aaba5 sensor: Implement driver and tests for akm09918c
Add the implementation for the akm09918c magnetometer driver.
Additionally, add the appropriate node to the TDK robokit1 device
tree. In order to prevent regressions, add the sensor to the sensor
build_all tests and specific tests using an emulator.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 17:00:14 -05:00
Yuval Peress 3c8c96151b boards: Fix defconfig for tdk_robotkit1
The TDK robokit1 was using the wrong SOC part number by default
which was causing a warning at boot time.

See https://invensense.wpenginepowered.com/wp-content/uploads/2022/09/C21362-TDK-RoboKit1-DK-PLOT.pdf

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 16:48:49 -05:00
Joshua Lilly bcc8466c41 lib: hashmap: Fix typo in hash_map_sc.h
Adds the STATIC to the definition of SYS_HASHMAP_SC_DEFINE_STATIC.

Signed-off-by: Joshua Lilly <jgl@fb.com>
2023-02-24 16:06:18 -05:00
Jonathan Rico f8e5e17246 drivers: led_strip: add WS2812 I2S-based driver
Add a driver implementation that uses the I2S peripheral.
Based off this blog post:
https://electronut.in/nrf52-i2s-ws2812/

Should help with #33505, #29877 and maybe #47780, as there is no garbage
data at the end of transmissions on nRF52832, and no gaps.

Signed-off-by: Jonathan Rico <jonathan@rico.live>
2023-02-24 10:12:47 -08:00
Sjors Hettinga c51cf4f08d net: websocket: Make sure the mbedtls_sha1 function is build in
In the header the websocket protocol needs a SHA1 hash. This is
implemented using the mbedtls_sha1 function. Select the option
MBEDTLS_MAC_SHA1_ENABLED from the Kconfig of websocket to ensure this
function is build in.

Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
2023-02-24 18:12:14 +01:00
Grant Ramsay 9e8caae66f MAINTAINERS: Split TI platforms into SimpleLink and Sitara
These platforms are significantly different.
Add vaishnavachath as a TI Sitara Platforms maintainer.
Add gramsay0 as a TI Sitara Platforms collaborator.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-02-24 18:11:56 +01:00
Grant Ramsay 090b13cf1e scripts: ci: check_compliance: Ignore undefined CONFIG_CMD_CACHE
CONFIG_CMD_CACHE is a U-Boot config, mentioned in docs.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-02-24 18:11:56 +01:00
Grant Ramsay f92dd6d357 drivers: serial: Name the NS16550 variant Kconfig choice
Naming this choice allows setting a default value in defconfig.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-02-24 18:11:56 +01:00
Grant Ramsay 6ca406d282 boards: arm64: Add PHYTEC phyCORE-AM62x A53 board support
PHYTEC phyCORE-AM62x is board is based on TI Sitara applications
processor, composed of a quad Cortex®-A53 cluster and a single
Cortex®-M4 core.

Zephyr OS is ported to run on the Cortex®-A53 core.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-02-24 18:11:56 +01:00
Grant Ramsay 7fd8b1f678 dts: arm64: Add TI AM6234 A53 device tree
Some register addresses change within the AM6X family.
AM62X is common to AM623X/AM625X processors.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-02-24 18:11:56 +01:00
Grant Ramsay 84f92c7bc3 soc: arm64: Add TI AM6234 SoC A53 support
Add minimal SoC support for the TI AM6X series Cortex-A53 Core.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-02-24 18:11:56 +01:00
Tomasz Moń 509c033c1d usb: device_next: new USB Mass Storage implementation
Introduce new USB Mass Storage Bulk-Only Transport implementation
written from scratch. Main goal behind new implementation was to
separate USB and SCSI parts as clearly as possible.

Limited set of SCSI disk commands is implemented in separate source code
file that is internal to USB device stack. While it should be possible
to use the SCSI implementation by other components there is currently no
other user besides USB MSC and therefore SCSI header is kept private.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2023-02-24 15:19:20 +01:00
Nicolas Pitre b2e204e9a6 tests: timer_behavior: fix a period drift logic error
An assertion statement was a bit too strict. Period drift may come about
not only from kernel ticks being large but also from time conversion being
inexact due to division truncation.

Fixes: #55136

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-02-24 08:29:28 -05:00
Johann Fischer c51744c6ee usb: device_next: use consistent nil descriptor name
Use a consistent nil_desc name for the descriptor that
terminates a class (function) descriptor.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-02-24 14:02:37 +01:00
Anas Nashif ebcbe9575f MAINTAINERS: add more tests/samples to corrosponding areas
Assign more files in tests/samples to areas in the MAINTAINERS file.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-02-24 06:44:17 -05:00
Anas Nashif c5fe80eaed MAINTAINERS: add doc files to various areas
Add documentation files to various areas.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-02-24 06:44:17 -05:00
Keith Packard 18b79a0876 samples/philosophers: Fix expected output in test configuration
This demo prints out STARVING, HOLDING, EATING, DROPPED, THINKING. The
HOLDING state was missing and the EATING state was placed in the wrong
sequence.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-02-24 12:34:26 +01:00
Keith Packard 94f680d391 samples/philosophers: Build status string with snprintk
Picolibc doesn't have any output buffering for printk, so the various
pieces of the status line would get interleaved between threads. Build the
whole line in memory using snprintk and then print it in a single printk
call.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-02-24 12:34:26 +01:00
Yuval Peress 0e003cdbee test: verify accel/gyro data for icm42688
Verify the conversion of register values in both accel and gyro to
sensor_value for the icm42688.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Yuval Peress e6514d4dc9 icm42688: Add test for data read and temperature regisers
Add tests that verify the behavior of the REG_INT_STATUS, REG_TEMP_DATA1,
and REG_TEMP_DATA0 registers

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Yuval Peress 591958752a icm42688: fix configure call
The icm42688 introduced a safe configure function to make the
configuration more atomic, but the main driver was never updated
to call it so the new config values were discarded.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Yuval Peress a3f59fd86f icm42688: Fix temperature calculation
Fix the calculation which was adding the 25 degree offset too late.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Yuval Peress 8ac822e69c emul: Cleanup emul directory
Avoid implementations in the subsys emul directory to keep the directory
focused on emulator subsystem instead of consumers. Consumers should be
implemented side-by-side to their drivers

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Yuval Peress a6326f1f7f bmi160: move emulator to driver directory
Allow the emulator to sit in the same directory as the driver
implementation. This will make working on the emulator much easier and
keep the emulator subsystem directory clean by allowing it to focus on
the actual subsystem and not the use cases of the subsystem.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Yuval Peress 2bb4de9a0b emul: Add emulator for icm426888
Add an implementation for the icm42688 emulator that supports reading
any registers.

Signed-off-by: Yuval Peress <peress@google.com>
2023-02-24 11:50:10 +01:00
Sjors Hettinga 0243599766 samples: echo_server: Add a full network stack overflow
Some features like IP fragmenting are default disabled to keep the network
stack compact for small devices.
In bigger applications as well as for the Maxwell Pro tests it required
to have the full functionality enabled. This can also work as example for
new projects.

Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
2023-02-24 11:49:54 +01:00
Krishna T 50c1f857e0 net: l2: wifi: Log packet errors
Log packet errors, this is handy for debugging.

Signed-off-by: Krishna T <krishna.t@nordicsemi.no>
2023-02-24 11:49:41 +01:00
Andries Kruithof 226c99b455 tests: bluetooth: add prefix to exposed API
In ull_llcp* some functions used in unittesting did not have
the llcp_ prefix
Although this is not a big issue since they are only used when
testing the module this commit adds the prefix so that we
have a more consistent naming

Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
2023-02-24 11:46:39 +01:00
Andries Kruithof e6ba1eed90 bluetooth: controller: update unittests for LLCP to use proper ZTEST API
Update unittests for the following areas/controll procedures
- API
- collision handling
- invalid PDUs
- unsupported procedures
- buffer allocation
- TX queue
- Data Length Update
- PHY update
- Encryption
- Ping
- Version
- Channel map update
- Min. used channels
- Connection update
- SCA
- Terminate connection
- CTE request
- CIS create
- CIS terminate

Also moved the internal API tests from the ull_llcp* files
to the proper unittest C-file

Unused files  are removed

Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
2023-02-24 11:46:39 +01:00