Commit graph

96323 commits

Author SHA1 Message Date
Michael Hope 0bb3f94101 juju: add a drone.io build script
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-01 17:02:27 +02:00
Michael Hope 35f9917215 fixup! west: add the hal_wch 2024-06-01 16:55:00 +02:00
Michael Hope 4ebf98143b drivers/console: add a QingKeV2 Debug console driver 2024-06-01 15:33:21 +02:00
Michael Hope eb7f183363 samples: blinky: mark as suitable for low flash, low RAM devices 2024-06-01 15:33:20 +02:00
Michael Hope abf487090e fixup! e98fcbb0bb457f8e3a63ea4275b8ae9bcae8ad8e 2024-06-01 15:33:20 +02:00
Michael Hope a5a4776e3d fixup! boards: add ch32v003evt 2024-06-01 15:33:20 +02:00
Michael Hope 021f9b1bfd fixup! boards: add ch32v003evt 2024-06-01 15:33:20 +02:00
Michael Hope 206eacc8aa fixup! drivers: add ch32v00x pinctrl support 2024-06-01 15:33:20 +02:00
Michael Hope 7428c469f6 fixup! drivers: add ch32v00x pinctrl support 2024-06-01 15:33:20 +02:00
Michael Hope 4f5f022e21 fixup! drivers: add ch32v00x pinctrl support 2024-06-01 15:33:19 +02:00
Michael Hope 43a614398c fixup! drivers: add ch32v00x pinctrl support 2024-06-01 15:33:19 +02:00
Michael Hope 199f31f571 fixup! drivers: add ch32v00x pinctrl support 2024-06-01 15:33:19 +02:00
Michael Hope 5a1e3a51b5 scripts/runners: hack: use the wlink specific commands to start the board 2024-05-29 20:55:58 +02:00
Michael Hope 3c78efeadd boards: add ch32v003evt 2024-05-29 20:55:58 +02:00
Michael Hope 102b6e182e drivers: add the ch32v00x USART driver 2024-05-29 20:55:57 +02:00
Michael Hope ecc66dbb34 drivers: add the ch32v00x PWM driver 2024-05-29 20:55:57 +02:00
Michael Hope a60e499994 drivers: add a GPIO driver 2024-05-29 20:55:57 +02:00
Michael Hope e3ff184ac2 drivers: add the PFIC interrupt controller 2024-05-29 20:55:57 +02:00
Michael Hope ee6c9f7d09 drivers: add the ch32v00x systick driver 2024-05-29 20:55:57 +02:00
Michael Hope f4dd89fffb drivers: add the ch32v00x clock controller 2024-05-29 20:55:57 +02:00
Michael Hope 1b2d2dd75f drivers: add ch32v00x pinctrl support 2024-05-29 20:55:57 +02:00
Michael Hope 35bc805ce6 soc: update the interrupt handling 2024-05-29 20:55:57 +02:00
Michael Hope 4f7ac0a058 soc: depend on the HAL 2024-05-29 20:55:57 +02:00
Michael Hope 079005060b modules: add the ch32v00x module support 2024-05-29 20:55:56 +02:00
Michael Hope 4bcca948a5 soc: add wch_ch32v003 stubs 2024-05-29 20:55:56 +02:00
Michael Hope 41c4bac186 dts: add the ch32v003 DTSI and bindings 2024-05-29 20:55:56 +02:00
Michael Hope 74f45945d2 west: add the hal_wch 2024-05-29 20:55:56 +02:00
Adrien Ricciardi 19f645edd4 tests: unit: crc: Add OpenPGP CRC-24 tests
Check CRC computation in a single step and in multiple steps.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
2024-05-29 10:51:21 -07:00
Adrien Ricciardi 863f6affef lib: crc: Add OpenPGP CRC-24
Implementation is based on the section 6.1 of the RFC 4880.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
2024-05-29 10:51:21 -07:00
Andrej Butok 62fa3f729c tests: mcuboot: add boot_request_upgrade() return value check
- Adds boot_request_upgrade() return value check.
- Avoid repeating resets if the upgrade request fails.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-05-29 10:50:00 -07:00
Trung Hieu Le 206897658a drivers: display: elcdif: Modify interrupt enablement
The elcdif interrupt is enabled in the write function and disabled in
the IRQ handler for each new frame update. Disabling the interrupt when
no new frame needs to be sent gives the CPU the possibility to enter
low-power mode. However, when the application's frame rate
matches the LCD refresh rate, this adds additional latency.

This commit provides a config to choose between following options:
- Toggle the CUR_FRAME_DONE_IRQ_EN in the write function and in IRQ
handler for each new frame when the power mangement is a concern.
- Activate the CUR_FRAME_DONE_IRQ_EN once at the init function when
low latency is required.

Signed-off-by: Trung Hieu Le <trunghieu.le@nxp.com>
2024-05-29 10:49:48 -07:00
Guennadi Liakhovetski 024bd41efb llext: xtensa: add support for the xt-clang toolchain
To build LLEXT images using the xt-clang toolchain from Cadence
linker flags have to be set similar to other toolchains. Add the
missing cmake files.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2024-05-29 10:49:40 -07:00
Wilfried Chauveau 5d5c13feae samples: tfm: Remove old 'tfm' tag & update relevant boards
The 'tfm' tag was removed from the samples in in
7c80473e0a but it remained in use in other
parts of the project.
This change brings back consistency through out the project.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
2024-05-29 10:49:31 -07:00
Andrej Butok 16470adf83 boards: frdm_mcxn947: Fix MCUBoot support.
- Set MCUBoot "upgrade only" method,
  as the program size is 128B (>32B).
- Set slot sizes to the same value,
  required by the MCUBoot "upgrade only" method.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-05-29 10:49:15 -07:00
Bjarki Arge Andreasen 282ba58814 doc: release-notes-3.7: Document removal of old gsm modules
The GSM_PPP device driver and its direct dependencies, UART_MUX
and GSM_MUX have been removed. The net/gsm_modem sample has been
removed and the net/cloud/tagoio and net/mgmt/updatehub samples
have been updated to align with this change.

This commit documents all above.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen 79640aea09 drivers: console: remove uart_mux and gsm_mux
Remove the deprecated uart_mux and gsm_mux modules and all of
their configurations/dependencies across zephyr.

Optimally uart_mux and gsm_mux would be removed in their own
respective PRs, but the two modules are directly coupled, so
to preserve bisectability, they must be removed together.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen e79428cda8 drivers: modem: remove gsm_ppp.c device driver
Remove the deprecated gsm_ppp.c device driver and associated
dts compatible.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen 40a44c2118 drivers: modem: modem_cellular: Remove support for gsm_ppp
The new modem_cellular driver had support for the deprecated
generic zephyr,gsm-ppp dts compatible for backwards compatibility.

zephyr,gsm-ppp is being removed, and as such, modem_cellular.c
no longer needs to support it.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen b0a9ae266b drivers: net: ppp: Remove integration with GSM_MUX
The gsm_ppp driver is deprecated, and will be removed, along with
its dependencies UART_MUX and GSM_MUX.

This commit removes the integration with GSM_MUX from ppp.c, making
it solely dependent on the chosen node zephyr,ppp-uart.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen 7e764610b1 drivers: modem: modem_iface_uart: Remove gsm_mux integration
gsm_mux and uart_mux are deprecated and will be removed.
Remove integration with gsm_mux and uart_mux from modem_shell.c

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen a36545b72b drivers: modem: modem_shell: Remove integration with gsm_mux
gsm_mux and uart_mux are deprecated and will be removed.
Remove integration with gsm_mux and uart_mux from modem_shell.c

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen 06c2762124 samples: net: cloud: tagoio: Remove GSM modem overlay
The gsm modem driver is deprecated and will be removed. Remove
the build overlay and dependency on the gsm modem from the
tagoio sample.

The new cellular modem driver and subsystem use the native
networking stack and the pm subsystem, so just like ethernet,
enabling the cellular modem is up to the board configuration.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen 2cb559c521 samples: mgmt: updatehub: Remove GSM modem overlay
The gsm modem driver is deprecated and will be removed. Remove
the build overlay and dependency on the gsm modem from the
updatehub sample.

The new cellular modem driver and subsystem use the native
networking stack and the pm subsystem, so just like ethernet,
enabling the cellular modem is up to the board configuration.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen 18a865355a tests: build_all: modem: remove gsm_ppp from test suite
The deprecated gsm_ppp modem driver will be removed. Remove
gsm_ppp modem driver from build_all test suite.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Bjarki Arge Andreasen c8050e2a83 samples: net: Remove deprecated gsm_modem sample
The gsm_modem driver is deprecated, and will be removed. Remove
the gsm modem sample which depends on the deprecated driver.

Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
2024-05-29 10:49:08 -07:00
Reto Schneider f9dce2d87f drivers: hwinfo: Fix typo
Fixing than vs then.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2024-05-29 10:49:01 -07:00
Johan Carlsson bc2aba157b drivers: uart_mcux_flexcomm: remove incorrect dma_slot.
a change in the dma driver exposed that the dma_slot was incorrectly
set in the uart driver. this change is needed for async uart on lpc55
to work.

Signed-off-by: Johan Carlsson <johan.carlsson@teenage.engineering>
2024-05-29 10:48:44 -07:00
Jukka Rissanen 48aaa1ff40 tests: net: ieee802154: Remove extra newlines from prints
As the logger will add newlines to printed strings, do not
add them in the tests.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-29 10:48:34 -07:00
Jukka Rissanen 99693bee5f net: socket: Change the protocol field for AF_PACKET sockets
In order to be compatible with Linux AF_PACKET socket calls, the
protocol field needs to be in network byte order.
So for example, if user wants to receive all packets, then the
protocol field needs to be set as "htons(ETH_P_ALL)".
See Linux manual page at
https://www.man7.org/linux/man-pages/man7/packet.7.html
for details.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-29 10:48:34 -07:00
Nathan Olff b58e242a52 sys: ignore ineffective bitwise and from clang-tidy
When running clang-tidy, an 'ineffective bitwise and operation' (type
misc-redundant-expression) was detected on Z_CBPRINTF_IS_PCHAR macro.

As this behavior is expected, we are adding comment to ignore this macro
for the specific misc-redundant-expression check of clang-tidy

Signed-off-by: Nathan Olff <nathan@kickmaker.net>
2024-05-29 10:48:27 -07:00