Commit graph

9866 commits

Author SHA1 Message Date
Hou Zhiqiang
2afc6f0210 boards: imx93_evk: ca55: correct board name in yaml
Correct the board name.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
2024-07-04 18:00:17 -04:00
Derek Snell
a610b923df boards: nxp: mimxrt1160_evk: enable LPI2C5 inputs
Enable inputs in pinctrl config.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2024-07-04 13:27:03 +02:00
Derek Snell
78fd771640 boards: nxp: mimxrt1160_evk: fix LPI2C pinmux
Fixes typos in pinctrl pinmux nodes

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2024-07-04 13:27:03 +02:00
Henrik Brix Andersen
ec601b89df doc: update documentation to use the --shield west build command arg
Update zephyr-app-commands to generate "west build --shield ..." for west
invocations using shields while still generating "cmake .. -DSHIELD=..."
if the tool is set to "cmake".

Updated the various shield documentation pages to recommend using
"--shields" over "-DSHIELD" to match the results of the corresponding
zephyr-app-commands code snippets.

Add proper support to zephyr-app-commands for specifying multiple shields
(using a comma-separated list) and fix a few invocations to use this.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-07-04 13:25:00 +02:00
Hakan Jansson
f371ea4b97 boards: infineon: cyw920829m2evk_02: update documentation
Update documentation, mainly to clarify use of onboard KitProg3 debug
adapter and Infineon custom OpenOCD.

Signed-off-by: Hakan Jansson <hakan.jansson@infineon.com>
2024-07-01 16:07:42 -04:00
Benjamin Cabé
5a07cf4e0d doc: esp32: fix rendering of MCUboot note
Use proper syntax to ensure rendering of the
CONFIG_BOOTLOADER_MCUBOOT snippet is correct.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-07-01 18:12:43 +02:00
Alex Fabre
9b9d455f02 boards: st: fix sysbuild multi image flash
Problem:

When flashing a multi-image project with STLink through sysbuild,
the flash utility is told to erase the whole flash between each
single image flash.

Resulting in a partial flash where only the last image is effectively
stored on flash...

Correction:

A `west flash` must not implicitly perform a mass erase on its own.

If a flash erase is required, the option has to be passed manually.

The problem is discussed in the following issue:
zephyrproject-rtos/zephyr#69582

Due to CI tests errors, the correction is not applied on
eval board `b_u585i_iot02a`.

See following issue:
zephyrproject-rtos/zephyr#75164

Signed-off-by: Alex Fabre <alex.fabre@rtone.fr>
2024-07-01 09:06:50 -04:00
Jiafei Pan
d5a91a24de dts: pinctrl: unify pinctrl binding for imx8mp/n/m
Currently imx8mm/n use pinctrl binding of nxp,imx8m-pinctrl.yaml which
is used for imx8mq series platforms, but imx8mm/n have different pinctrl
hardware module with imx8mq, so change imx8mm/n to use binding of
nxp,imx8mp-pinctrl.yaml as imx8mm, imx8mn and imx8mp have the same
pinctrl hardware module.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-07-01 09:05:02 -04:00
Henrik Brix Andersen
951a0daa55 boards: nxp: lpcxpresso55xxx: list USB device as supported
List USB device and USB device "next" as supported on the NXP
LPCXpresso55S16 (which uses dedicated USB RAM) and LPCXpresso55S36 (which
does not use dedicated USB RAM).

This allows testing these two implementations during CI runs.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2024-07-01 09:03:48 -04:00
Abderrahmane Jarmouni
41ab2d4aca doc: stm32h747i_disco: minor fix
minor doc fix.

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
2024-07-01 09:03:26 -04:00
Derek Snell
c4ebcfe684 boards: nxp: mimxrt1170_evk: doc: remove LinkServer west debug limitation
`west debug` is no longer an issue with LinkServer runner.

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2024-06-28 08:51:49 +02:00
Alex Fabre
648f6dcac4 boards: st: add adc1 peripheral for nucleo_h533re
This nucleo board inherit from the root `h5` dts some special nodes:
- `vbat` on adc1 channel 2
- `vref` on adc1 channel 17
- `die_temp` on adc1 channel 16

The issue is discussed here:
https://github.com/zephyrproject-rtos/zephyr/issues/72914

Signed-off-by: Alex Fabre <alex.fabre@rtone.fr>
2024-06-27 08:49:49 -04:00
Alex Fabre
12bb405783 doc: st: fix nucleo_h533re documentation
1. Changing default ADC sens line for ch0 on PA0
- `adc1` was documented to be sensing ch14 on PB1.
- This seems impossible because of a conflict between ch14
and UART2.
- `adc1` node is not defined in the board's DTS.

2. Set SPI1 NSS pin to PA4
- hardware NSS signal was documented to output on PC9.
- PC9 cannot be assigned as HW NSS for SPI1.
- HW NSS on SPI1 is by default on PA4, and remapeable to PA15.

3. Update number of UART lines available
- There are a total of 7 U(S)ARTs available on this board.

Signed-off-by: Alex Fabre <alex.fabre@rtone.fr>
2024-06-27 08:49:49 -04:00
Patryk Koscik
a2dd9a4ea5 boards: sifive: hifive1: fix spi0 region address
Fixes the incorrect `spi0` node region for `hifive1@B` target.

Signed-off-by: Patryk Koscik <pkoscik@antmicro.com>
2024-06-27 08:51:18 +02:00
Conor Paxton
ba3456c064 boards: microchip: skip flash based CI tests for PolarFire SoC
Microchip's PolarFire SoC has a system controller that utilizes an
external spi flash for performing "auto update" of the FPGA design. This
is not a feauture fully integrated into Zephyr as of yet, so in an
effort to not constantly fail the CI, add flash tag to the ignore list.

Signed-off-by: Conor Paxton <conor.paxton@microchip.com>
2024-06-27 08:27:54 +02:00
Tom Burdick
058253b4b6 icm42688: Follow st's devicetree bindings
Fix the devicetree bindings to actually be used as the default
configuration, following the example set by various ST sensor devices.

This requires sadly dropping enums and using #defines for various
options as well as repeating many numbers, but presumably is the way to
do it given the precedent set by ST with sensors like the lsm6dso.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2024-06-26 14:13:21 -04:00
The Thanh. Nguyen
f93f801c65 driver: serial: Add serial driver support for Renesas RA8 devices
Add implementation of sci_b_uart for Renesas RA device

Signed-off-by: The Thanh. Nguyen <the.nguyen.yf@renesas.com>
2024-06-26 13:36:14 -04:00
Duy Nguyen
ee4613a3a6 boards: arm: Add initial support for EKRA8M1
Add support for the EK RA8M1 board
This board is using Renesas RA8M1 MCU.

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2024-06-26 13:36:14 -04:00
Jordan Yates
243eb36b18 everywhere: reindent .overlay files with tabs
`checkpatch.pl` requires that dts sources are indented with tabs,
fix all the spaces that slipped in while checkpatch wasn't watching.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-26 15:59:44 +02:00
Johann Fischer
e3151de7fa boards: nxp: add test feature 'usbd'
Commit b6b43c3ed7
("drivers: udc: implement udc_mcux_ehci and udc_mcux_ip3511")
introduced MCUX shim driver using UDC driver API. Add test feature
'usbd' to a few supported boards to allow Twister to select these boards
for testing during CI runs.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-06-26 15:46:38 +02:00
Simon Frank
2ca7e41b26 drivers/sensor: lis2mdl: use common SPI duplex option
Driver used a custom SPI duplex option. Replaced with the common one
found in spi-device.yaml.

Signed-off-by: Simon Frank <simon.frank@lohmega.com>
2024-06-26 09:01:13 -04:00
Sercan Erat
03ac4c80c0 boards: rak: rak11720: Add missing flag and fix wrong spi pins
Update dts file to use the new HCI api of apollo3 blue.
Fixing wrongly define spi cs pins for rak11720.

Signed-off-by: Sercan Erat <sercanerat@gmail.com>
2024-06-25 19:15:02 -04:00
Aaron Ye
a7db1eab6c boards: ambiq: enable twister on apollo4x evb
This commit enables the twister on apollo4p_evb and apollo4p_blue_kxr_evb.

Signed-off-by: Aaron Ye <aye@ambiq.com>
2024-06-25 06:07:08 -04:00
Aaron Ye
ae37cc415a boards: ambiq: apollo4p_evb: add missing flash node
This commit adds the missing flash controller node in apollo4p_evb.

Signed-off-by: Aaron Ye <aye@ambiq.com>
2024-06-25 06:07:08 -04:00
Lingao Meng
302422ad9d everywhere: replace double words
import os
import re

common_words = set([
    'about', 'after', 'all', 'also', 'an', 'and',
     'any', 'are', 'as', 'at',
    'be', 'because', 'but', 'by', 'can', 'come',
    'could', 'day', 'do', 'even',
    'first', 'for', 'get', 'give', 'go', 'has',
    'have', 'he', 'her',
    'him', 'his', 'how', 'I', 'in', 'into', 'it',
    'its', 'just',
    'know', 'like', 'look', 'make', 'man', 'many',
    'me', 'more', 'my', 'new',
    'no', 'not', 'now', 'of', 'one', 'only', 'or',
    'other', 'our', 'out',
    'over', 'people', 'say', 'see', 'she', 'so',
    'some', 'take', 'tell', 'than',
    'their', 'them', 'then', 'there', 'these',
    'they', 'think',
    'this', 'time', 'two', 'up', 'use', 'very',
    'want', 'was', 'way',
    'we', 'well', 'what', 'when', 'which', 'who',
    'will', 'with', 'would',
    'year', 'you', 'your'
])

valid_extensions = set([
    'c', 'h', 'yaml', 'cmake', 'conf', 'txt', 'overlay',
    'rst', 'dtsi',
    'Kconfig', 'dts', 'defconfig', 'yml', 'ld', 'sh', 'py',
    'soc', 'cfg'
])

def filter_repeated_words(text):
    # Split the text into lines
    lines = text.split('\n')

    # Combine lines into a single string with unique separator
    combined_text = '/*sep*/'.join(lines)

    # Replace repeated words within a line
    def replace_within_line(match):
        return match.group(1)

    # Regex for matching repeated words within a line
    within_line_pattern =
	re.compile(r'\b(' +
		'|'.join(map(re.escape, common_words)) +
		r')\b\s+\b\1\b')
    combined_text = within_line_pattern.
		sub(replace_within_line, combined_text)

    # Replace repeated words across line boundaries
    def replace_across_lines(match):
        return match.group(1) + match.group(2)

    # Regex for matching repeated words across line boundaries
    across_lines_pattern = re.
		compile(r'\b(' + '|'.join(
			map(re.escape, common_words)) +
			r')\b(\s*[*\/\n\s]*)\b\1\b')
    combined_text = across_lines_pattern.
		sub(replace_across_lines, combined_text)

    # Split the text back into lines
    filtered_text = combined_text.split('/*sep*/')

    return '\n'.join(filtered_text)

def process_file(file_path):
    with open(file_path, 'r', encoding='utf-8') as file:
        text = file.read()

    new_text = filter_repeated_words(text)

    with open(file_path, 'w', encoding='utf-8') as file:
        file.write(new_text)

def process_directory(directory_path):
    for root, dirs, files in os.walk(directory_path):
        dirs[:] = [d for d in dirs if not d.startswith('.')]
        for file in files:
            # Filter out hidden files
            if file.startswith('.'):
                continue
            file_extension = file.split('.')[-1]
            if
	file_extension in valid_extensions:  # 只处理指定后缀的文件
                file_path = os.path.join(root, file)
                print(f"Processed file: {file_path}")
                process_file(file_path)

directory_to_process = "/home/mi/works/github/zephyrproject/zephyr"
process_directory(directory_to_process)

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2024-06-25 06:05:35 -04:00
Luis Ubieda
f21e6278dc boards: croxel_cx1825: fix: Remove arduino support claims
This board is not compatible with the Arduino pinout. Therefore,
this patch removes all Arduino references to avoid confusion and CI
failures.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-06-24 22:25:45 -04:00
Henrik Brix Andersen
adccdd9fa6 boards: nxp: lpcxpresso551s16: enable usbphy1
Enable the USB1 High Speed PHY on the NXP LPCXpresso55S16 development
board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2024-06-24 14:49:45 -04:00
Francois Ramu
ead5c84547 boards: arm: stm32h573 disco kit can flash on external NOR
Configure the external NOR flash memory to be executable.
Change the board.cmake to add the external loader for
flashing (version that do not mass-erase the external flash).
The address of the external flash is not needed
when flashing a hex file.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-06-24 12:45:34 -04:00
Lyle Zhu
ab4a9d2018 boards: mimxrt1040_evk: enable Bluetooth
Add pinmux pinmux_lpuart3_flowcontrol
and pinmux_lpuart3_sleep for HCI-UART.

Add a node m2_hci_uart for HCI_UART.

And add chosen `zephyr,bt-hci =
&bt_hci_uart;`

Update section `Supported Features`,
section `Connections and IOs` and
section `Serial Port` for this feature.

Add section `Fetch Binary Blobs` to
guide how to fetch binary blobs for
BT modules.

add section `Bluetooth Module` for
hardware rework.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-06-24 12:44:49 -04:00
Ioannis Karachalios
edd779dbed boards: renesas: dts: Various fixes
This commit should deal with fixing
various issues on the board's dts
overlay files:

1. PSRAM node was not enabled when
   display buffers were stored in
   psram and thus, raising linker
    error (overflow memory section).

2. Remove MIPI DBI read operations
   for the MIPI DBI driver. This is
   because not all drivers support
   read and most of the cases it does
   not have any practical usage.
   In addition, this might trigger
   conflicts with SPI sensors.
   If needed, users should explicitly
   enable read operations by defining
   an SPI device taking into consideration
   conflicts with SPI devices connected
   to the SPI bus.

3. Remove enabling the DMA driver.
   It should be enabled by default.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-06-24 12:43:12 -04:00
Sebastian Głąb
b99cf9f691 boards: nordic: nrf54h20dk: Counter and i2c are supported by cpuppr
Extend Twister configuration for nrf54h20dk/nrf54h20/cpuppr.
Add counter and i2c to the list of supported peripherals.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2024-06-24 12:41:47 -04:00
Jiafei Pan
60b62be6fb board: imx8mp_a53: enlarge networking stack size
This patch is to fix issue #74594

The issue is caused by default stack size 1500 bytes of NET_RX_STACK_SIZE
is to small for ARM64 platform, then the stack of net_rx thread is overflow
and break the net_mgmt thread's stack, as a result net_mgmt thread is
crashed.

So this patch will enlarge all the stack size of net stack threads.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2024-06-24 14:26:43 +02:00
Nazar Palamar
f343a1a677 cy8cproto_062_4343w: board: fix polarity for LED_0
Update polarity for LED_0 from GPIO_ACTIVE_HIGH to
GPIO_ACTIVE_LOW.

Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
2024-06-24 09:46:01 +02:00
Jordan Yates
07870934e3 everywhere: replace double words
Treewide search and replace on a range of double word combinations:
    * `the the`
    * `to to`
    * `if if`
    * `that that`
    * `on on`
    * `is is`
    * `from from`

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-22 05:40:22 -04:00
Jordan Yates
cc37eac6bd dts: cleanup leading spaces
Cleanup leading spaces found via the following regexes:
  r" compatible ="
  r"^  "
in:
  zephyr/**/*.dts
  zephyr/**/*.dtsi

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-21 08:46:12 -04:00
Maureen Helm
fe382e57d9 boards: adi: Improve twister vendor filter coverage
Some of the new max32 family boards were missing the vendor name in
their board yamls and not being tested by `twister --vendor adi`.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-06-21 08:44:04 -04:00
TOKITA Hiroshi
2b976609b3 boards: raspberrypi: rpi_5: Correct hyperlink target
Added `_` to handle the hyperlink target correctly.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-06-21 10:11:53 +02:00
Glenn Andrews
4a4d506510 Board: disco_l475_iot1: Fix PWM assignment
Most people would expect green_pwm_1 to go to LD1 on the dev board.
However it is routed to CN1 pin 2, since routing it to LD1 would
interfere with SPI SCK on the Arduino connector. This PR adds a
comment to tell users that LD1 won't light up as expected and to
fix the comments stating which PWM goes to which pin.

Also updated the documentation to note this.

Signed-off-by: Glenn Andrews <glenn.andrews.42@gmail.com>
2024-06-21 10:08:36 +02:00
Maureen Helm
e1c51f9a72 boards: adi: Fix input subsys tests and samples for max32 boards
Input subystem tests and samples were failing to build on these max32
boards because the zephyr,code property was missing on gpio-keys child
nodes. The devicetree binding doesn't specify the property as required,
but the driver implements a build assert when the property isn't
defined.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-06-20 17:08:08 -04:00
Benjamin Cabé
a8573a985c doc: fix incorrect bullet lists
ReStructuredText bullet lists should be preceded by an empty
line

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-06-20 14:07:32 -04:00
Benjamin Cabé
b4b623c26c doc: use proper pygment for .conf code-blocks
config file snippets should use "cfg" pygment to get proper highlighting
This commit updates all occurences where "kconfig" or other languages
were used.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-06-20 14:07:32 -04:00
Pieter De Gendt
99366dd2be linker: Add ROM_SECTIONS location
Currently iterable sections as per the documentation are added with
zephyr_linker_sources(SECTIONS ...) after bss/noinit.
This commit allows putting sections after common-rom.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-06-20 12:08:58 -04:00
Luc BEAUFILS
c4c5408677 board: phytec: fix typos
Some Phytec board documentation had typos. This commit fixes them.

Signed-off-by: Luc BEAUFILS <luc.beaufils@savoirfairelinux.com>
2024-06-20 12:48:02 +02:00
Francois Ramu
29b1e2a7d5 boards: st: nucleo_h743/h753 use the FDCAN clock at 80MHz on pll2q
When using the FDCAN1, use the PLL2q clock source at 80MHz on the
nucleo_h743zi or nucleo_753zi boards, now that sysclck is 480MHz.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-06-20 08:59:11 +02:00
Jordan Yates
912026f65b boards: mps2_an385: add NVS support
Add support for NVS on the board by default. Using the simulated flash
driver is required as this board has no flash controller. Support is
desired as this is the ARM board used by coverage testing.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-06-19 13:43:45 -04:00
Henrik Brix Andersen
fbc0318809 boards: st: stm32h735g_disco: enable USB device support
Enable USB device support on the stm32h735g_disco board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2024-06-19 13:24:49 -04:00
Ioannis Damigos
082e2b706a da1469x: Move enabling PM from board to SoC level
Move enabling PM from board to SoC level

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2024-06-18 14:36:38 -04:00
Daniel DeGrasse
470dc3d53c boards: nxp: mimxrt1050_evk: fix reference to A0 silicon on EVK
RT1050 EVK rev A boards (with rev A silicon) are not well supported by
Zephyr. Update the documentation page to remove the reference to A0
silicon, as the page describes details specific to the RT1050 EVKB with
rev B silicon.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-18 14:34:47 -04:00
Daniel DeGrasse
e3794fd0f2 boards: nxp: imxrt10xx: update debugging section to use common snippets
Update iMXRT10xx board debug sections to use common snippets, which
describe debug configuration settings shared between all these boards.
This should help avoid documentation falling out of date in the future.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-06-18 14:34:47 -04:00
Yong Cong Sin
19e4cb8f89 libc: cleanup deprecated heap-related Kconfigs
The following heap-related Kconfigs shared by the picolibc &
minimal libc have been deprecated for more than 2 releases,
remove them and update the Kconfigs accordingly:

- `CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE`
- `CONFIG_MINIMAL_LIBC_REALLOCARRAY`

Cleanup the handling to support the deprecated malloc arena
size configuration values.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-06-18 14:33:58 -04:00