5154 Commits

Author SHA1 Message Date
CYFS
68da106253 [components][drivers]:fix wlan err 2026-02-04 22:13:54 +08:00
copilot-swe-agent[bot]
5e04105723 rename i2c mutex
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
2026-02-04 09:47:00 +08:00
wdfk-prog
06e829b1b3 docs(can): improve dev_can.h docs for batched RX example 2026-02-03 18:40:45 +08:00
wdfk-prog
2b95c3409c fix[dfs_v1]: prevent vnode ref underflow and double release on close/fd release 2026-02-02 13:33:32 +08:00
Damon
88c1e6c88a sdio: fix missing card status polling after CMD6 in eMMC DDR mode switch 2026-02-01 14:02:10 +08:00
Bernard Xiong
743b614875 [components][clock_time] Refactor time subsystem around clock_time (#11111)
* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue
2026-01-31 17:44:27 +08:00
sakumisu
f2a646cff4 fix(cherryusb): fix dwc2 host size check
Signed-off-by: sakumisu <1203593632@qq.com>
2026-01-29 14:23:39 +08:00
R b b666
3e2d924e9d [driver/usb]Update dwc2/usb_glue_infineon.c to add the missing header file. (#11158) 2026-01-28 10:54:30 +08:00
sakumisu
cdc50db570 update(cherryusb): update to v1.6.0
Signed-off-by: sakumisu <1203593632@qq.com>
2026-01-28 09:46:34 +08:00
wdfk-prog
5d1f199e9e feat(fal): add Kconfig options for device name length and block count 2026-01-26 17:24:39 +08:00
lhxj
7641ef6885 [drivers] Fix OFW bus conflict and prevent duplicate device creation
Problem:
When enumerating device tree nodes, platform bus and native buses (I2C/SPI)
may create duplicate devices for the same OFW node, causing cross-bus conflicts.
This triggers assertion failure '(dev->bus != new_bus)' in
rt_bus_reload_driver_device() during boot on minimal DM-enabled systems.

Root Cause:
1. Platform bus tries to reload devices that already belong to other buses
   by calling rt_bus_reload_driver_device(dev->bus, dev), which violates
   the API contract (requires dev->bus != new_bus).
2. Native buses (I2C/SPI) do not mark OFW nodes as occupied, so platform
   bus creates duplicate platform devices for I2C/SPI client nodes.

Solution:
1. components/drivers/core/platform_ofw.c: Return RT_EOK when np->dev exists,
   letting the native bus handle device lifecycle instead of cross-bus reload.
2. components/drivers/i2c/dev_i2c_bus.c: Mark i2c_client_np->dev during scan
   to prevent platform bus from duplicating I2C client devices.
3. components/drivers/spi/dev_spi_bus.c: Mark spi_dev_np->dev during scan
   to prevent platform bus from duplicating SPI devices.

Tested on Spacemit K1 RISC-V platform with minimal DM configuration.

Signed-off-by: lhxj <2743257167@qq.com>
2026-01-20 22:05:28 +08:00
wdfk-prog
d76eca1384 fix(Kconfig): Update the default value of FINSH_THREAD_PRIORITY to support different thread priorities 2026-01-19 09:47:48 +08:00
milo
3ca5cd53f5 [fix] fix normalization issue of mktime and timegm 2026-01-17 19:12:40 -05:00
AngryProton
f4566f14dc [drivers/blk] 解决块设备写入不对齐数据失败的问题 #11103 2026-01-12 17:14:59 +08:00
AngryProton
3d8114bcfe [FIX][fal]char设备类型补充缺失的入参,适配DFSv2框架 (#11112)
* [FIX][fal]补充缺失的入参,适配DFSv2框架

* [FIX][fal]正确声明入参的数据类型

* [chg]按审查建议修改变量类型和代码格式。
2026-01-06 17:12:55 +08:00
wdfk-prog
bd22f2fa6a fix(dfs): align fd API declarations with DFS_USING_POSIX 2026-01-06 16:44:35 +08:00
AngryProton
7384a8e035 [FIX]Locking for dfs_dentry_dump must be consistent with that of all other dentry functions. 2026-01-06 12:03:41 +08:00
Runcheng Lu
17d026c6cc [fix] drivers: spi: refactor SPI bit operations into independent configuration
- Add RT_USING_SPI_BITOPS as a separate configurable option
- Make RT_USING_SOFT_SPI depend on RT_USING_SPI_BITOPS
- Adjust build order in SConscript for proper com

Signed-off-by: Runcheng Lu <runcheng.lu@hpmicro.com>
2026-01-04 17:04:34 +08:00
Copilot
7c05661ae9 [virtio] Fix queue_sel ordering in virtio_queue_init and virtio_queue_destroy #11114 2026-01-04 16:55:19 +08:00
angryproton
df85c74265 [FIX][DFSv2][ELMFAT]解决dfs_elm_unlink在FF_VOLUMES为1时赋值drivers_fn引用未定义变量导致编译报错的问题 2025-12-27 10:46:50 +08:00
GUI
c6498b5f65 [sdio][dm] update for DM (#11078)
* [sdio][dm] import Kconfig for DM

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

* [sdio] fixup IRQ and mmcsd threads' stack size default

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

* [sdio][dm] Support DM mode

1. Support features read by DM.
2. Support regulator API in drivers.
3. Support send tuning option CMD.
4. Replace `switch_uhs_voltage` by `signal_voltage_switch`.

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

* [dm][sdhci] Cleanup the SDHCI

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

* [sdio][dm] add new SDIO/SDHCI drivers

1. SDHCI support on PCI bus
2. Synopsys DesignWare MMC Family(MMIO/PCI)

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

---------

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-26 21:04:42 +08:00
angryproton
ec0c2bbbd8 [FIX][DFSv2][ELMFAT]修复多线程环境下lseek返回值概率性被篡改的问题 2025-12-26 21:03:26 +08:00
AngryProton
916b212855 [FIX]Update vnode size after writing to tmpfs 2025-12-26 15:10:48 +08:00
GuEe-GUI
9370f81ad7 [dm][include] fixup loss' header
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-22 13:24:41 +08:00
GUI
43733268c1 [dm][firmware][scmi] support ARM-SCMI interface #11069 2025-12-19 21:20:17 +08:00
laidene
d09135f76b [components][libc][posix][libdl] Optimization: Redundant calculations in a for loop 2025-12-18 13:57:07 +08:00
GuEe-GUI
df990e91d3 [dm][power] add new drivers for power framework
1. GPIO poweroff/restart
2. Generic SYSCON regmap poweroff/reboot mode/reboot
3. Emulator battery(thermal)/charger
4. GPIO charger

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-17 10:29:05 +08:00
GuEe-GUI
b4d332706e [dm][power] add power reset and supply framework
1. Board level reset or poweroff
2. Power supply class

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-17 10:29:05 +08:00
GuEe-GUI
9a6d515e27 [dm][serial] add new serial driver for DM
1. 8250 serila family (OFW, PCI, DWC, early)
2. Virtual serial (by graphic and input)
3. HVC early serial
4. ARM PL011 serial

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-16 12:41:02 +08:00
GuEe-GUI
6394797471 [dm][serial] Fixup serial tty check
Just return if is not a tty device, don't assert

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-16 12:41:02 +08:00
GuEe-GUI
cb808f3a0e [dm][serial] replace rt_hw_atomic_add to rt_atomic_add, clean code
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-16 12:41:02 +08:00
GuEe-GUI
32bdc73a11 [dm][serial] make DM Kconfig import
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-16 12:41:02 +08:00
GuEe-GUI
e83a6e9baa [dm][scsi] Add parallel_io option for SCSI host
Some SCSI supported parallel_io = RT_TRUE, like UFS.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-16 11:39:41 +08:00
GuEe-GUI
4913211409 [dm][core] add common machine power interface
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-16 11:35:35 +08:00
GuEe-GUI
27eb7c4f72 [dm][graphic] add new drivers and logo
1. Generic GPIO based backlight driver
2. Generic PWM based backlight driver
3. Simple framebuffer support
4. Standard 224-color RT-Thread logo
5. Standard 224-color RT-Thread white logo

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-15 16:54:23 +08:00
GuEe-GUI
5abecc1fd0 [dm][graphic] support dm mode
1. Add backlight framework for graphic.
2. Add framebuffer and plane, power, EDID for graphic framework
3. Add boot logo render for graphic
4. Update lcd.h

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-15 16:54:23 +08:00
GuEe-GUI
b61f8b410b [finsh][cmd] add 'console' command to config console
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-15 12:51:30 +08:00
bernard
4f154d8207 [rust] Tidy core defaults and migrate docs to README 2025-12-15 12:50:49 +08:00
GuEe-GUI
cbf3f8c3b4 [dm][core] Update the OFW CLk init flow
The clock should init before common platform devices.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-13 16:35:32 +08:00
GUI
1b4111a99e [dm][pinctrl] Set pinctrl default auto in platform bus. (#11052)
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-13 16:33:05 +08:00
GUI
d8709ba9fb [dm][hwcache] support hwcache (#11049)
Some ARCH not has std cache ops, such as RISC-V

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-13 16:32:25 +08:00
GuEe-GUI
af0e513bef [dm][pmdomain] make DM Kconfig import
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-13 16:30:04 +08:00
lct1001
170069b292 components:libc:cplusplus:os/utest:Some comments have been initially added.
Some comments have been initially added as a bignner task.
components/libc/cplusplus/os/cxx_Semaphore.cpp
components/libc/cplusplus/os/cxx_Thread.cpp
components/libc/cplusplus/utest/tc_atomic.cpp
components/libc/cplusplus/utest/tc_smartptr.cpp
components/libc/cplusplus/utest/tc_thread.cpp

Signed-off-by:Liu Chengtao<2739960959@qq.com>
2025-12-12 14:00:36 +08:00
GuEe-GUI
6270b2f97c [dm][core] Set default CLK config for platform device probe
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-12 13:33:28 +08:00
GuEe-GUI
335a1242b0 [dm][clk] refactoring the CLK framework
The old CLK is can't link all hardware clock cell in system that the
API of layout such as 'set_parent' can't work as expected.

Some hareware clock cell need some flags to prevent some dangerous behaviors, eg:
When a clock cell is link to the PMU, the SoC will power-down if the cell is
disable.

The new CLK can do it, and make the CLK drivers implemented easier from
TRM/DataSheet.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-12 13:33:28 +08:00
Fan Yang
d6b173be4b fix:[components][drivers][sdio] fix the sequence of switching to emmc high-speed ddr mode #11037 2025-12-11 19:25:29 +08:00
GuEe-GUI
dd20176cba [dm][hwspinlock] support hwspinlock
Hardware spinlock modules provide hardware assistance for
synchronization and mutual exclusion between heterogeneous processors
and those not operating under a single, shared operating system.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2025-12-11 11:08:33 +08:00
Chuan
d76356b94e [utest][smp_call]:Add standardized documentation for SMP Call Smoke Test (#11014) 2025-12-11 11:06:57 +08:00
GUI
f39a86266a [drivers][ofw] Update OFW #11004
Fixup fdt address reg and cells parse.
Support only option name way for earlycon.
Find the console device when using "stdout-path".
2025-12-11 11:05:47 +08:00
Chuan
5f9984fa5e [utest][smp_call]:fix initialize current_mask in _wait_for_update 2025-12-10 17:05:10 +08:00