Commit Graph
18102 Commits
Author SHA1 Message Date
GUI c19fe2c823 [dm][regulator] Update Regulator (#11674)
* [dm][regulator] update regulator

Replace the regulator framework spinlock with a mutex
because regulator operations may sleep.
Move always-on policy into the regulator core,
keep an initial enable reference for always-on supplies,
prevent the last disable from turning them off,
and let fixed/GPIO providers report and control their actual hardware state.

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [dm][regulator] add PWM regulator support

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* style: format code with clang-format

* style: format complete changed files with clang-format

---------

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-07 21:29:33 +08:00
GUI 19e9be8779 [dm][ufs] fixup the ufs supported (#11646)
* [dm][block] add 4K support for EFI partion

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* [dm][ufs] fixup the linkup flow

Signed-off-by: GuEe-GUI <2991707448@qq.com>

* style: format code with clang-format

* style: format complete changed files with clang-format

* drivers: address UFS review feedback

---------

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-07 16:54:29 +08:00
GuEe-GUI abc2c59e57 style: format code with clang-format 2026-08-07 09:26:42 +08:00
GuEe-GUI 871d9f5922 [dm][graphic] update graphic
1. Add FB_ACTIVATE_* cmd
2. Fixup the vsync
3. Update the graphic test

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-07 09:26:42 +08:00
GuEe-GUI 621a074a41 style: format code with clang-format 2026-08-07 09:25:45 +08:00
GuEe-GUI 83b703c6b6 [dm][ata] support DW AHCI
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-07 09:25:45 +08:00
GuEe-GUI 955fb76bb0 [dm][ivshmem] Add Inter-VM shared memory for virtualization
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 18:19:52 +08:00
angryproton 2f7a2299f6 [fix][dfs] 增加文件系统操作的类型检查,防止类型不匹配导致数据结构不一致引发的异常 2026-08-06 11:18:51 +08:00
GuEe-GUI 395dff4e2e [dm][misc] make RT_BITS_PER_LONG custom mode
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 11:14:28 +08:00
GuEe-GUI 96cf830d89 [dm][thermal] update the thermal cooling
1. Fixup the cooling control flow.
2. Replace the spinlock to mutex.
3. Fixup the PWM args for PWM-FAN.
4. Add GPIO-FAN

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 11:09:50 +08:00
GuEe-GUI 73614c8684 [dm][nvmem] fixup the DT parse for bits
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 11:09:43 +08:00
GuEe-GUI 69dfbf86fd [dm][nvme] replace the CPU physical address to DMA address
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 10:51:46 +08:00
GuEe-GUI c3e1dd7946 [dm][ethernet] add MACB and DWMAC ethernet support
They support PTP, too.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 09:43:10 +08:00
GuEe-GUI 84da9b9393 [dm][phy] improve PHY v2 support and add RTL8211F driver
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 09:43:10 +08:00
GuEe-GUI fae3992d14 [dm][ethernet] Add ethernet for DM
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-06 09:43:10 +08:00
rcitach 71fd997662 RA6W1基础BSP内容 2026-08-05 14:52:20 +08:00
CYFS cbf75f07a8 [tools]:Adjust clang-format parameters 2026-08-04 11:30:38 +08:00
GuEe-GUI 9915dc66c1 ipc: fix recursive data queue locking on SMP
rt_data_queue_pop() holds the data queue spinlock while updating the ring
state, then calls rt_data_queue_len(). The length function tries to acquire
the same non-recursive spinlock again, causing an SMP deadlock when a pop
leaves the queue non-empty.

Add a private _data_queue_len_nolock() helper for callers which already hold
the queue lock. Keep the public rt_data_queue_len() protected by one spinlock
acquisition.

This does not change the public API, ABI, queue state transitions, low-water
mark wakeups, or event callback behavior.

Tested on a four-core Spacemit K1 with cyclic HDMI playback and by building the
SMP QEMU Virt64 RISC-V BSP with generic audio, Intel HDA and VirtIO Sound.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-03 09:43:57 +08:00
GuEe-GUI fe751c1521 [dm][core] Add rt_bus_probe_device API
Add rt_bus_probe_device() to retry driver matching for a registered
but unbound device. Use it when an OFW-created platform device
is requested again, while preserving native-bus ownership
for I2C, SPI, and other non-platform devices.
Also instantiate eligible child platform devices after a parent node is registered.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-08-03 09:36:21 +08:00
Bernard Xiong 2b01936f11 components/dfs: unify vnode lock names 2026-07-31 15:13:53 +08:00
GuEe-GUI 36f52133ec [dm][i2c] port to the pinctrl for EP
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-07-29 11:11:10 +08:00
CYFS 1edc46af3e [ci][issue] Add issue automation workflows#11661 2026-07-28 13:14:17 +08:00
GuEe-GUI a7b0182817 [dm][tee] support Trusted Execution Environment (TEE)
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-07-27 17:53:20 +08:00
Old-Ding b26ae7d8d9 bsp: Use raw regex strings in upgrade tools
Python warns about invalid escape sequences in the heap update regex patterns. Mark the patterns as raw strings so the regex values stay unchanged without relying on invalid Python escapes.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-27 17:52:19 +08:00
Rbb666 359075f7c3 [ci] Remove obsolete post CI status workflow 2026-07-27 16:44:28 +08:00
CYFS f03284c4e8 [ci] Restrict MemBrowse workflows to the main repository 2026-07-27 16:41:03 +08:00
CYFS3 b1cd917f9a bsp: rename Libraries directories to lowercase 2026-07-27 13:17:02 +08:00
CYFS 69ba028d3b [ci]add titan dual-core projects 2026-07-27 13:15:58 +08:00
CYFS 17712f5e5f bsp: support RA8P1 Titan dual-core projects 2026-07-27 13:15:58 +08:00
CYFS 03ecbdd823 bsp: fix RA8P1 Titan Keil startup 2026-07-27 13:15:58 +08:00
angryproton f19da943aa [fix][dfs] 修正 elmfat mkfs 中 f_mount 的错误传参 2026-07-23 11:57:10 +08:00
Rbb666 e01b14c818 Revert "[clang-format] Improve declaration alignment and spacing"
This reverts commit c49320d57d.
2026-07-23 11:10:42 +08:00
GuEe-GUI f975c7c4ca [dm][rpmsg] port the default RX handler for NS
Application traffic should be bound via a higher layer later.
And debug.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-07-23 09:27:29 +08:00
yi chen 4fbdf331d1 lwp: copy timeout into kernel space in sys_select()
sys_select() passed the raw user-space timeout pointer straight
through to select(), unlike readfds/writefds/exceptfds which are
all validated with lwp_user_accessable() and copied into kernel
memory first. A malicious or buggy user thread could pass a
timeout pointing at unmapped or otherwise invalid memory, which
select() would then dereference directly (timeout->tv_sec /
timeout->tv_usec) without any check, from kernel context.

Validate and copy it into a kernel-local struct timeval the same
way the fd_set arguments already are, before it reaches select().

Fixes #10298

Signed-off-by: yi chen <94xhn1@gmail.com>
2026-07-22 21:50:12 +08:00
coyaSONG 69b66ad411 [documentation][finsh] Clarify variable export support
Signed-off-by: coyaSONG <66289470+coyaSONG@users.noreply.github.com>
2026-07-22 21:38:49 +08:00
mnikapl954 8e68826dc3 [drivers][adc] Fix misleading doxygen for rt_adc_voltage 2026-07-22 20:57:55 +08:00
mnikapl954 108a958a9d [drivers][dac] Fix wrong rt_dac_write arguments in doxygen example 2026-07-22 19:59:36 +08:00
Onlyou_tzZandOnlyoutzZ f08217a883 [bsp/n32]n32h760zil7-stb bsp修复完善,添加 n32h497zgl7-evb和n32h487zgl7-evb bsp (#11627)
1、修改n32\n32gxx_lxx\n32g4frml-stb中的GCC启动文件bl entry
2、修复完善n32h760zil7-stb bsp,支持GCC环境、支持更多外设
3、添加n32h487zgl7-evb初版BSP
4、添加n32h497zgl7-evb初版BSP
5、删除n32g452xx这个bsp

---------

Co-authored-by: OnlyoutzZ <OnlyoutzZ+github[bot]@noreply.github.com>
2026-07-22 17:06:34 +08:00
CYFS 622c55248c bsp: raspberry-pico: fix SDK sub-build invocation 2026-07-22 13:47:46 +08:00
CYFS 5fca863334 [ci] Fix ESP32-C3 MemBrowse dependency setup 2026-07-22 13:32:41 +08:00
CYFS bb85278748 [bsp] Fix HC32 and HT32 variant builds 2026-07-22 13:32:41 +08:00
CYFS 55cf9cd3fa [bsp] Place SConscript outputs under build directories 2026-07-22 13:32:41 +08:00
蒙蒙plus 7e45148977 [mutex] 跨线程 rt_thread_delete 被删线程持有的mutex也一并释放
- 增加单元测试

Clarified mutex release conditions and added exception handling for closed owner threads.
2026-07-22 09:45:59 +08:00
CYFS c49320d57d [clang-format] Improve declaration alignment and spacing 2026-07-22 09:28:29 +08:00
Just Chenandmoment-NEW 9657b3ce10 [bsp][drives]fix(spi_config):修复H7的SPI6配置缺失问题 (#11633)
* [bsp][drives]fix(spi_config):修复H7的SPI6配置缺失问题

* style: format code with clang-format [skip ci]

* [bsp][stm32]refactor:(spi_config):去除尚不支持的DMA相关配置

* [bsp][stm32]refactor(spi_config):格式化SPI_CONFIG.H

---------

Co-authored-by: moment-NEW <moment-NEW+github[bot]@noreply.github.com>
2026-07-21 11:58:33 +08:00
CYFS 1fa451feea [bsp][nxp]:keep imxrt1180 mini bsp#11629 2026-07-20 17:34:08 +08:00
CYFS 25212f3745 fix: name anonymous Kconfig choices 2026-07-20 13:05:46 +08:00
CYFS 0e0f403cc1 bsp: fix GD32VW55x lwIP mem ownership 2026-07-20 12:01:32 +08:00
GuEe-GUI c22b3931b6 [pic][gicv3-its] fixup cleanup path removes list node after freeing it
Link: https://github.com/RT-Thread/rt-thread/issues/11604

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-07-20 11:36:37 +08:00
Old-Ding df959080fc bsp: zynqmp-r5: Fix IGMP multicast range check
Reject IPv4 addresses outside 224.0.0.0/4 before updating the multicast MAC hash. The previous condition used AND, so it could never reject a non-multicast first octet.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-20 10:21:31 +08:00