Skip to content

Commit 478212e

Browse files
authored
Merge branch 'zephyrproject-rtos:main' into fix_87850_littlefs_pico
2 parents 2737f39 + e72f35b commit 478212e

File tree

107 files changed

+4410
-548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+4410
-548
lines changed

.github/workflows/compliance.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ jobs:
7272
git log --pretty=oneline | head -n 10
7373
# Increase rename limit to allow for large PRs
7474
git config diff.renameLimit 10000
75-
./scripts/ci/check_compliance.py --annotate -e KconfigBasic -e SysbuildKconfigBasic -e ClangFormat \
76-
-c origin/${BASE_REF}..
75+
excludes="-e KconfigBasic -e SysbuildKconfigBasic -e ClangFormat"
76+
# The signed-off-by check for dependabot should be skipped
77+
if [ "${{ github.actor }}" == "dependabot[bot]" ]; then
78+
excludes="$excludes -e Identity"
79+
fi
80+
./scripts/ci/check_compliance.py --annotate $excludes -c origin/${BASE_REF}..
7781
7882
- name: upload-results
7983
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1

.github/workflows/twister-prep.yaml

Lines changed: 0 additions & 150 deletions
This file was deleted.

.github/workflows/twister.yaml

Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,102 @@ concurrency:
2424

2525
jobs:
2626
twister-build-prep:
27-
uses: ./.github/workflows/twister-prep.yaml
27+
if: github.repository_owner == 'zephyrproject-rtos'
28+
runs-on: ubuntu-24.04
29+
outputs:
30+
subset: ${{ steps.output-services.outputs.subset }}
31+
size: ${{ steps.output-services.outputs.size }}
32+
fullrun: ${{ steps.output-services.outputs.fullrun }}
33+
env:
34+
MATRIX_SIZE: 10
35+
PUSH_MATRIX_SIZE: 20
36+
WEEKLY_MATRIX_SIZE: 200
37+
BSIM_OUT_PATH: /opt/bsim/
38+
BSIM_COMPONENTS_PATH: /opt/bsim/components
39+
TESTS_PER_BUILDER: 900
40+
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
41+
BASE_REF: ${{ github.base_ref }}
42+
steps:
43+
- name: Checkout
44+
if: github.event_name == 'pull_request'
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46+
with:
47+
ref: ${{ github.event.pull_request.head.sha }}
48+
fetch-depth: 0
49+
path: zephyr
50+
persist-credentials: false
51+
52+
- name: Set up Python
53+
if: github.event_name == 'pull_request'
54+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
55+
with:
56+
python-version: 3.12
57+
cache: pip
58+
cache-dependency-path: scripts/requirements-actions.txt
59+
60+
- name: install-packages
61+
working-directory: zephyr
62+
if: github.event_name == 'pull_request'
63+
run: |
64+
pip install -r scripts/requirements-actions.txt --require-hashes
65+
66+
- name: Setup Zephyr project
67+
if: github.event_name == 'pull_request'
68+
uses: zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6
69+
with:
70+
app-path: zephyr
71+
toolchains: all
72+
73+
- name: Environment Setup
74+
working-directory: zephyr
75+
if: github.event_name == 'pull_request'
76+
run: |
77+
git config --global user.email "bot@zephyrproject.org"
78+
git config --global user.name "Zephyr Bot"
79+
rm -fr ".git/rebase-apply"
80+
rm -fr ".git/rebase-merge"
81+
git rebase origin/${BASE_REF}
82+
git clean -f -d
83+
git log --pretty=oneline | head -n 10
84+
85+
- name: Generate Test Plan with Twister
86+
working-directory: zephyr
87+
if: github.event_name == 'pull_request'
88+
id: test-plan
89+
run: |
90+
export ZEPHYR_BASE=${PWD}
91+
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
92+
python3 ./scripts/ci/test_plan.py -c origin/${BASE_REF}.. --no-detailed-test-id --pull-request -t $TESTS_PER_BUILDER
93+
if [ -s .testplan ]; then
94+
cat .testplan >> $GITHUB_ENV
95+
else
96+
echo "TWISTER_NODES=${MATRIX_SIZE}" >> $GITHUB_ENV
97+
fi
98+
rm -f testplan.json .testplan
99+
100+
- name: Determine matrix size
101+
id: output-services
102+
run: |
103+
if [ "${{github.event_name}}" = "push" ]; then
104+
subset="[$(seq -s',' 1 ${PUSH_MATRIX_SIZE})]"
105+
size=${MATRIX_SIZE}
106+
elif [ "${{github.event_name}}" = "pull_request" ]; then
107+
if [ -n "${TWISTER_NODES}" ]; then
108+
subset="[$(seq -s',' 1 ${TWISTER_NODES})]"
109+
else
110+
subset="[$(seq -s',' 1 ${MATRIX_SIZE})]"
111+
fi
112+
size=${TWISTER_NODES}
113+
elif [ "${{github.event_name}}" = "schedule" -a "${{github.repository}}" = "zephyrproject-rtos/zephyr" ]; then
114+
subset="[$(seq -s',' 1 ${WEEKLY_MATRIX_SIZE})]"
115+
size=${WEEKLY_MATRIX_SIZE}
116+
else
117+
size=0
118+
fi
119+
120+
echo "subset=${subset}" >> $GITHUB_OUTPUT
121+
echo "size=${size}" >> $GITHUB_OUTPUT
122+
echo "fullrun=${TWISTER_FULL}" >> $GITHUB_OUTPUT
28123
29124
twister-build:
30125
runs-on:

boards/arduino/uno_r4/arduino_uno_r4_minima.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@
6161
<20 0 &ioport1 1 0>, /* D14 */
6262
<21 0 &ioport1 0 0>; /* D15 */
6363
};
64+
65+
arduino_adc: analog-connector {
66+
compatible = "arduino,uno-adc";
67+
#io-channel-cells = <1>;
68+
io-channel-map = <0 &adc0 9>, /* A0 = P009 = CH09 */
69+
<1 &adc0 0>, /* A1 = P000 = CH00 */
70+
<2 &adc0 1>, /* A2 = P001 = CH01 */
71+
<3 &adc0 2>, /* A3 = P002 = CH02 */
72+
<4 &adc0 21>, /* A4 = P101 = CH21 */
73+
<5 &adc0 22>; /* A5 = P100 = CH22 */
74+
};
6475
};
6576

6677
&spi1 {

boards/arduino/uno_r4/arduino_uno_r4_wifi.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@
6161
<20 0 &ioport1 1 0>, /* D14 */
6262
<21 0 &ioport1 0 0>; /* D15 */
6363
};
64+
65+
arduino_adc: analog-connector {
66+
compatible = "arduino,uno-adc";
67+
#io-channel-cells = <1>;
68+
io-channel-map = <0 &adc0 9>, /* A0 = P009 = CH09 */
69+
<1 &adc0 0>, /* A1 = P000 = CH00 */
70+
<2 &adc0 1>, /* A2 = P001 = CH01 */
71+
<3 &adc0 2>, /* A3 = P002 = CH02 */
72+
<4 &adc0 21>, /* A4 = P101 = CH21 */
73+
<5 &adc0 22>; /* A5 = P100 = CH22 */
74+
};
6475
};
6576

6677
&spi0 {

boards/arm/mps2/board.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
2+
# Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
33

44
if(CONFIG_BOARD_MPS2_AN385)
55
set(SUPPORTED_EMU_PLATFORMS qemu armfvp)
@@ -48,6 +48,8 @@ elseif(CONFIG_BOARD_MPS2_AN521_CPU0 OR CONFIG_BOARD_MPS2_AN521_CPU0_NS OR CONFIG
4848
# TF-M (Secure) & Zephyr (Non Secure) image (when running
4949
# in-tree tests).
5050
set(QEMU_KERNEL_OPTION "-device;loader,file=${CMAKE_BINARY_DIR}/zephyr/tfm_merged.hex")
51+
52+
set(ARMFVP_FLAGS ${ARMFVP_FLAGS} -a ${APPLICATION_BINARY_DIR}/zephyr/tfm_merged.hex)
5153
elseif(CONFIG_OPENAMP)
5254
set(QEMU_EXTRA_FLAGS "-device;loader,file=${REMOTE_ZEPHYR_DIR}/zephyr.elf")
5355
elseif(CONFIG_BOARD_MPS2_AN521_CPU1)

boards/arm/mps3/Kconfig.defconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (c) 2018-2021 Linaro Limited
2-
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
2+
# Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
33
# SPDX-License-Identifier: Apache-2.0
44

55
if BOARD_MPS3_CORSTONE300_AN547 || BOARD_MPS3_CORSTONE300_AN552 || BOARD_MPS3_CORSTONE300_FVP || BOARD_MPS3_CORSTONE310_AN555 || BOARD_MPS3_CORSTONE310_FVP
@@ -19,4 +19,14 @@ config UART_INTERRUPT_DRIVEN
1919

2020
endif # SERIAL
2121

22+
if ROMSTART_RELOCATION_ROM && (BOARD_MPS3_CORSTONE310_AN555 || BOARD_MPS3_CORSTONE310_FVP)
23+
24+
config ROMSTART_REGION_ADDRESS
25+
default $(dt_nodelabel_reg_addr_hex,itcm)
26+
27+
config ROMSTART_REGION_SIZE
28+
default $(dt_nodelabel_reg_size_hex,itcm,0,k)
29+
30+
endif
31+
2232
endif

boards/arm/mps3/board.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (c) 2021 Linaro
2-
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
2+
# Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
33
# SPDX-License-Identifier: Apache-2.0
44

55
# The FVP variant must be used to enable Ethos-U55 NPU support, but QEMU also
@@ -37,6 +37,10 @@ elseif(CONFIG_BOARD_MPS3_CORSTONE310_FVP OR CONFIG_BOARD_MPS3_CORSTONE310_FVP_NS
3737
set(ARMFVP_FLAGS
3838
# default is '0x11000000' but should match cpu<i>.INITSVTOR which is 0.
3939
-C mps3_board.sse300.iotss3_systemcontrol.INITSVTOR_RST=0
40+
# default is 0x8, this change is needed since we split flash into itcm
41+
# and sram and it reduces the number of available mpu regions causing a
42+
# few MPU tests to fail.
43+
-C cpu0.MPU_S=16
4044
)
4145
endif()
4246
endif()
@@ -48,6 +52,8 @@ if (CONFIG_BUILD_WITH_TFM)
4852
# TF-M (Secure) & Zephyr (Non Secure) image (when running
4953
# in-tree tests).
5054
set(QEMU_KERNEL_OPTION "-device;loader,file=${CMAKE_BINARY_DIR}/zephyr/tfm_merged.hex")
55+
56+
set(ARMFVP_FLAGS ${ARMFVP_FLAGS} -a ${APPLICATION_BINARY_DIR}/zephyr/tfm_merged.hex)
5157
endif()
5258

5359
# FVP Parameters

boards/arm/mps3/mps3_corstone300_an547.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright (c) 2019-2021 Linaro Limited
3-
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
3+
# Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
44
#
55
# SPDX-License-Identifier: Apache-2.0
66
#
@@ -20,6 +20,7 @@ toolchain:
2020
supported:
2121
- gpio
2222
testing:
23+
default: true
2324
ignore_tags:
2425
- drivers
2526
- bluetooth

0 commit comments

Comments
 (0)