Skip to content

Commit c8e7b03

Browse files
authored
Merge branch 'zephyrproject-rtos:main' into fix_double_set_random_addr
2 parents a7b7c06 + ef818fe commit c8e7b03

File tree

1,423 files changed

+36911
-11637
lines changed

Some content is hidden

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

1,423 files changed

+36911
-11637
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ indent_size = 8
8686
[COMMIT_EDITMSG]
8787
max_line_length = 75
8888

89+
# Patches
90+
[{*.patch,*.diff}]
91+
trim_trailing_whitespace = false
92+
8993
# Kconfig
9094
[Kconfig*]
9195
indent_style = tab

MAINTAINERS.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ Arduino Platforms:
337337
- boards/arduino/
338338
- boards/shields/arduino_*/
339339
- drivers/*/*modulino*
340+
- dts/vendor/arduino/
340341

341342
Base OS:
342343
status: maintained
@@ -855,8 +856,6 @@ CPU Frequency Scaling:
855856
- seankyer
856857
files:
857858
- include/zephyr/cpu_freq/
858-
- include/zephyr/cpu_load/
859-
- subsys/cpu_load/
860859
- subsys/cpu_freq/
861860
- dts/bindings/p_state/
862861
labels:
@@ -1275,6 +1274,7 @@ Documentation Infrastructure:
12751274
- martinjaeger
12761275
- str4t0m
12771276
files:
1277+
- boards/shields/canis_canpico/
12781278
- boards/shields/mcp2515/
12791279
- boards/shields/tcan4550evm/
12801280
- doc/connectivity/canbus/
@@ -3047,9 +3047,10 @@ JSON Web Token:
30473047
- libraries.encoding.jwt
30483048

30493049
Kconfig:
3050-
status: odd fixes
3051-
collaborators:
3050+
status: maintained
3051+
maintainers:
30523052
- tejlmand
3053+
collaborators:
30533054
- nashif
30543055
files:
30553056
- scripts/kconfig/
@@ -4882,10 +4883,13 @@ TI SimpleLink Platforms:
48824883
status: maintained
48834884
maintainers:
48844885
- vaishnavachath
4886+
collaborators:
4887+
- bogdanovs
48854888
files:
48864889
- boards/ti/cc*/
48874890
- boards/ti/msp*/
48884891
- drivers/*/*cc13*
4892+
- drivers/*/*cc23*
48894893
- drivers/*/*cc25*
48904894
- drivers/*/*cc26*
48914895
- drivers/*/*cc32*
@@ -6099,10 +6103,7 @@ West:
60996103
- thrift
61006104

61016105
"West project: trusted-firmware-a":
6102-
status: maintained
6103-
maintainers:
6104-
- povergoing
6105-
- sgrrzhf
6106+
status: odd fixes
61066107
collaborators:
61076108
- wearyzen
61086109
- ithinuel

arch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ config ARM64
5757
select ARCH_HAS_DEMAND_MAPPING
5858
select ARCH_SUPPORTS_EVICTION_TRACKING
5959
select EVICTION_TRACKING if DEMAND_PAGING
60+
select MEM_DOMAIN_HAS_THREAD_LIST if ARM_MPU
6061
help
6162
ARM64 (AArch64) architecture
6263

arch/arm/core/mpu/arm_mpu_regions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <zephyr/sys/slist.h>
88
#include <zephyr/arch/arm/mpu/arm_mpu.h>
99

10-
#include <zephyr/arch/arm/cortex_m/arm_mpu_mem_cfg.h>
10+
#include <zephyr/arch/arm/mpu/arm_mpu_mem_cfg.h>
1111

1212
static const struct arm_mpu_region mpu_regions[] = {
1313
#ifdef CONFIG_XIP

arch/arm64/core/cortex_r/arm_mpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,8 @@ static int configure_domain_partitions(struct k_mem_domain *domain)
760760
struct k_thread *thread;
761761
int ret;
762762

763-
SYS_DLIST_FOR_EACH_CONTAINER(&domain->mem_domain_q, thread,
764-
mem_domain_info.mem_domain_q_node) {
763+
SYS_DLIST_FOR_EACH_CONTAINER(&domain->thread_mem_domain_list, thread,
764+
mem_domain_info.thread_mem_domain_node) {
765765
ret = configure_dynamic_mpu_regions(thread);
766766
if (ret != 0) {
767767
return ret;

arch/riscv/core/pmp.c

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,35 @@ static inline void z_riscv_pmp_write_config(unsigned long *pmp_cfg, size_t pmp_c
168168
#endif
169169
}
170170

171-
static void dump_pmp_regs(const char *banner)
171+
/**
172+
* @brief Reads the PMP address CSRs (pmpaddrX) for all configured slots.
173+
*
174+
* This helper function abstracts the iterative logic required to read the
175+
* individual PMP address registers (pmpaddr0, pmpaddr1, ..., pmpaddrN)
176+
* up to the total number of PMP slots configured by CONFIG_PMP_SLOTS.
177+
*
178+
* @param pmp_addr Pointer to the array where the CSR contents will be stored.
179+
* @param pmp_addr_size The size of the pmp_addr array, measured in unsigned long entries.
180+
*/
181+
static inline void z_riscv_pmp_read_addr(unsigned long *pmp_addr, size_t pmp_addr_size)
172182
{
173-
unsigned long pmp_addr[CONFIG_PMP_SLOTS];
174-
unsigned long pmp_cfg[CONFIG_PMP_SLOTS / PMPCFG_STRIDE];
183+
__ASSERT(pmp_addr_size == (size_t)(CONFIG_PMP_SLOTS), "PMP address array size mismatch");
175184

176185
#define PMPADDR_READ(x) pmp_addr[x] = csr_read(pmpaddr##x)
177-
178186
FOR_EACH(PMPADDR_READ, (;), 0, 1, 2, 3, 4, 5, 6, 7);
187+
179188
#if CONFIG_PMP_SLOTS > 8
180189
FOR_EACH(PMPADDR_READ, (;), 8, 9, 10, 11, 12, 13, 14, 15);
181190
#endif
182-
183191
#undef PMPADDR_READ
192+
}
193+
194+
static void dump_pmp_regs(const char *banner)
195+
{
196+
unsigned long pmp_addr[CONFIG_PMP_SLOTS];
197+
unsigned long pmp_cfg[CONFIG_PMP_SLOTS / PMPCFG_STRIDE];
184198

199+
z_riscv_pmp_read_addr(pmp_addr, (size_t)(CONFIG_PMP_SLOTS));
185200
z_riscv_pmp_read_config(pmp_cfg, (size_t)(CONFIG_PMP_SLOTS / PMPCFG_STRIDE));
186201
print_pmp_entries(0, CONFIG_PMP_SLOTS, pmp_addr, pmp_cfg, banner);
187202
}

boards/01space/esp32c3_042_oled/doc/index.rst

Lines changed: 15 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Overview
44
********
55

6-
ESP32C3 0.42 OLED is a mini development board based on the `Espressif ESP32-C3`_
6+
ESP32-C3 0.42 OLED is a mini development board based on the `Espressif ESP32-C3`_
77
RISC-V WiFi/Bluetooth dual-mode chip.
88

99
For more details see the `01space ESP32C3 0.42 OLED`_ Github repo.
@@ -31,10 +31,8 @@ It features:
3131
The ESP32-C3 does not have native USB, it has an on-chip USB-serial converter
3232
instead.
3333

34-
Supported Features
35-
==================
36-
37-
.. zephyr:board-supported-hw::
34+
.. include:: ../../../espressif/common/soc-esp32c3-features.rst
35+
:start-after: espressif-soc-esp32c3-features
3836

3937
Connections and IOs
4038
===================
@@ -50,87 +48,28 @@ See the following image:
5048
It also features a 0.42 inch OLED display, driven by a SSD1306-compatible chip.
5149
It is connected over I2C: SDA on GPIO5, SCL on GPIO6.
5250

53-
Prerequisites
54-
=============
55-
56-
Espressif HAL requires WiFi and Bluetooth binary blobs. Run the command below to
57-
retrieve those files.
58-
59-
.. code-block:: console
60-
61-
west blobs fetch hal_espressif
62-
63-
.. note::
51+
System Requirements
52+
*******************
6453

65-
It is recommended running the command above after :file:`west update`.
54+
.. include:: ../../../espressif/common/system-requirements.rst
55+
:start-after: espressif-system-requirements
6656

6757
Programming and Debugging
6858
*************************
6959

7060
.. zephyr:board-supported-runners::
7161
72-
Standalone application
73-
======================
74-
75-
The board can be loaded using a single binary image, without 2nd stage bootloader.
76-
It is the default option when building the application without additional configuration.
77-
78-
.. note::
79-
80-
This mode does not provide any security features nor OTA updates.
81-
82-
Use the following command to build a sample hello_world application:
83-
84-
.. zephyr-app-commands::
85-
:zephyr-app: samples/hello_world
86-
:board: esp32c3_042_oled
87-
:goals: build
88-
89-
Sysbuild
90-
========
91-
92-
:ref:`sysbuild` makes it possible to build and flash all necessary images needed to
93-
bootstrap the board.
94-
95-
By default, the ESP32 sysbuild configuration creates bootloader (MCUboot) and
96-
application images.
97-
98-
To build the sample application using sysbuild, use this command:
99-
100-
.. zephyr-app-commands::
101-
:tool: west
102-
:zephyr-app: samples/hello_world
103-
:board: esp32c3_042_oled
104-
:goals: build
105-
:west-args: --sysbuild
106-
:compact:
107-
108-
Flashing
109-
========
110-
111-
For the :code:`Hello, world!` application, follow the instructions below.
112-
Assuming the board is connected to ``/dev/ttyACM0`` on Linux.
113-
114-
.. zephyr-app-commands::
115-
:zephyr-app: samples/hello_world
116-
:board: esp32c3_042_oled
117-
:goals: flash
118-
:flash-args: --esp-device /dev/ttyACM0
119-
120-
Since the Zephyr console is by default on the ``usb_serial`` device, we use
121-
the espressif monitor utility to connect to the console.
122-
123-
.. code-block:: console
124-
125-
$ west espressif monitor -p /dev/ttyACM0
62+
.. include:: ../../../espressif/common/building-flashing.rst
63+
:start-after: espressif-building-flashing
12664

127-
After the board has automatically reset and booted, you should see the following
128-
message in the monitor:
65+
.. include:: ../../../espressif/common/board-variants.rst
66+
:start-after: espressif-board-variants
12967

130-
.. code-block:: console
68+
Debugging
69+
=========
13170

132-
***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
133-
Hello World! esp32c3_042_oled
71+
.. include:: ../../../espressif/common/openocd-debugging.rst
72+
:start-after: espressif-openocd-debugging
13473

13574
References
13675
**********

boards/96boards/meerkat96/doc/index.rst

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _96b_meerkat96:
1+
.. zephyr:board:: 96b_meerkat96
22
33
96Boards Meerkat96
44
##################
@@ -35,10 +35,6 @@ Zephyr OS is ported to run on the Cortex®-M4 core.
3535
- 1x Blue Bluetooth LED
3636
- 1x Yellow WiFi LED
3737

38-
.. image:: img/96b_meerkat96.jpg
39-
:align: center
40-
:alt: 96Boards Meerkat96
41-
4238
More information about the board can be found at the
4339
`96Boards website`_.
4440

@@ -91,27 +87,7 @@ More information about the i.MX7 SoC can be found here:
9187
Supported Features
9288
==================
9389

94-
The Zephyr 96b_meerkat96 board configuration supports the following hardware
95-
features:
96-
97-
+-----------+------------+-------------------------------------+
98-
| Interface | Controller | Driver/Component |
99-
+===========+============+=====================================+
100-
| NVIC | on-chip | nested vector interrupt controller |
101-
+-----------+------------+-------------------------------------+
102-
| SYSTICK | on-chip | systick |
103-
+-----------+------------+-------------------------------------+
104-
| GPIO | on-chip | gpio |
105-
+-----------+------------+-------------------------------------+
106-
| UART | on-chip | serial port-polling; |
107-
| | | serial port-interrupt |
108-
+-----------+------------+-------------------------------------+
109-
110-
The default configuration can be found in the defconfig file:
111-
112-
:zephyr_file:`boards/96boards/meerkat96/96b_meerkat96_mcimx7d_m4_defconfig`
113-
114-
Other hardware features are not currently supported by the port.
90+
.. zephyr:board-supported-hw::
11591
11692
Connections and IOs
11793
===================

0 commit comments

Comments
 (0)