Commit Graph

161 Commits

Author SHA1 Message Date
Alin Jerpelea 75a2b5a5f7 drivers: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2026-04-21 01:13:35 +08:00
openvela-robot 7f0b1a0f57 Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.3-0806
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2026-04-20 22:05:38 +08:00
openvela-robot 77f5827c15 SMP: fix crash when switch to new task which is still running
Situation:

Assume we have 2 cpus, and busy run task0.

CPU0                                CPU1
task0 -> task1                      task2 -> task0
1. remove task0 form runninglist
2. take task1 as new tcb
3. add task0 to blocklist
4. clear spinlock
                                    4.1 remove task2 form runninglist
                                    4.2 take task0 as new tcb
                                    4.3 add task2 to blocklist
                                    4.4 use svc ISR swith to task0
                                    4.5 crash
5. use svc ISR swith to task1

Fix:
Move clear spinlock to the end of svc ISR

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:05:34 +08:00
openvela-robot 14b4b06836 samv7/common: add support for GPIO driver based encoder
This commit adds support for GPIO driver based encoder for SAMv7 boards.
This encoder do not use the microcontroller's dedicated driver but two
GPIO pins with interrupts. The position is calculated based on those
interrupts.

This can be used for boards that do not have pins routed to the dedicated
driver.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2026-04-20 22:05:30 +08:00
openvela-robot 6d7221bfe6 Revert "fs/romfs: remove err log to fix deadlock"
This reverts commit 952cc83df40fa4a37c4db395b743e79e2d6cd111.
don't need
Reason for revert: <INSERT REASONING HERE>
2026-04-20 22:05:26 +08:00
openvela-robot 5c538deab6 boards: sabre-6quad: Add CONFIG_NET_GUARDSIZE=4 to defconfigs
Summary:
- This commit adds CONFIG_NET_GUARDSIZE=4 to defconfigs

Impact:
- None

Testing:
- Tested with qemu-6.2

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2026-04-20 22:05:22 +08:00
openvela-robot 5bca8ac610 modify iob to support header padding and alignment features
Signed-off-by: luojun1 <luojun1@xiaomi.com>
2026-04-20 22:05:19 +08:00
openvela-robot c5b2eb15e9 xtensa/esp32s2: Add basic support to SPI 2026-04-20 22:05:15 +08:00
openvela-robot 1bc113b2f1 ota:support a zip file can mount
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 22:05:11 +08:00
openvela-robot c0244802d6 arch/arm/src/stm32f7: port ADC driver from arch/stm32
This change adds support for the following features:
  - injected channels (default: 0)
  - ADC resolution (default: 12bit)
  - ADC low-level operations
  - ADC external triggers
  - custom ADC interrupts
  - ADC sample time configuration
  - configurable ADC SCAN mode (default on if DMA)
  - configurable ADC DMA mode (default: one shot mode)
  - reset the ADC block only if all ADC instances are closed
2026-04-20 22:05:06 +08:00
openvela-robot 63451188f9 fs/fatfs: return OK when bops don't support ioctl
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:05:03 +08:00
openvela-robot 399f482f53 fcntl/O_CLOEXEC: add O_CLOEXEC map for hostfs
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:04:59 +08:00
openvela-robot 8cb3c7a90c driver/aw86225: fix start same repeatable patterns
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2026-04-20 22:04:56 +08:00
openvela-robot 170b19fc37 mm/mempool: support memory buffer pool
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:04:52 +08:00
openvela-robot 03bf26c55e Revert "iob related modification to support header padding and aligment feature"
This reverts commit 69254a22b343ae5a487232b784cedf536eb2a168.
2026-04-20 22:04:49 +08:00
openvela-robot 5421c18354 arch/arm/src/stm32f7: port PWM driver from arch/stm32
This change adds support for the following features:
  1. PWM complementary outputs
  2. interface for low-level PWM operations
  3. support for all PWM channel modes
  4. support for internal PWM channels (TIM1/TIM8)
  5. support for PWM channel polarity and IDLE state
  6. support for TRGO and BREAK
2026-04-20 22:04:45 +08:00
openvela-robot d165136a79 fs/directory: use file mode to manage directory
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:04:40 +08:00
openvela-robot db1e7d8590 Added support for the Lily Go TTGO T-Display ESP32 V1.1 board.
https://github.com/Xinyuan-LilyGO/TTGO-T-Display
2026-04-20 22:04:34 +08:00
openvela-robot 9672270889 rptun: call pm_wakelock_staytimeout() after send ACK
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:04:31 +08:00
openvela-robot f881a02d1e tls: fix conflicting types for 'up_tls_initialize' compilation problem
Signed-off-by: sheyunhu <sheyunhu@xiaomi.com>
2026-04-20 22:04:27 +08:00
openvela-robot 2aec7b7b68 libs/libc/string: add memmem
This function is the GNU extension.
2026-04-20 22:04:24 +08:00
openvela-robot a199f409ff Remove executable permission from source and build files. 2026-04-20 22:04:19 +08:00
openvela-robot 5474c6f689 update smart pa paramters of 20220803
add cs35l41b music/sco tune image of 20220803

Signed-off-by: genghuihui <genghuihui@xiaomi.com>
2026-04-20 22:04:16 +08:00
openvela-robot c5cdc49b1a drivers/rc: fix compile warning
In file included from /home/archer/code/nuttx/n4/incubator-nuttx/drivers/rc/lirc_dev.c:29:
drivers/rc/lirc_dev.c: In function 'lirc_raw_event':
drivers/rc/lirc_dev.c:959:14: warning: format '%u' expects argument of type 'unsigned int',
                              but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
  959 |       rcinfo("delivering %uus %d to lirc\n", ev.duration, ev.pulse ? 1 : 0);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~
      |                                                |
      |                                                uint32_t {aka long unsigned int}
drivers/rc/lirc_dev.c:959:27: note: format string is defined here
  959 |       rcinfo("delivering %uus %d to lirc\n", ev.duration, ev.pulse ? 1 : 0);
      |                          ~^
      |                           |
      |                           unsigned int
      |                          %lu

Signed-off-by: chao.an <anchao@xiaomi.com>
2026-04-20 22:04:09 +08:00
openvela-robot f9df27de0b fs/procfs: add mempool info to proc/mempool
server> cat /proc/mempool
                   total    bsize    nused    nfree   nifree  nwaiter
       hello:        400       20       17        3        0        0

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:04:06 +08:00
openvela-robot 9aa0d41ca1 LPC17_40 CAN driver SocketCAN support 2026-04-20 22:04:03 +08:00
openvela-robot cbc1636f5c rptun: do rptun_pm_action() at rptun_dev_start()
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:03:59 +08:00
openvela-robot 2b6d78f8f6 drivers/battery: Handle the early changed event correctly
since it may happen before battery_xxx_register sometime

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:03:55 +08:00
openvela-robot bea2698578 iob related modification to support header padding and aligment feature
Signed-off-by: luojun1 <luojun1@xiaomi.com>
2026-04-20 22:03:51 +08:00
openvela-robot 15944c2318 driver/sensor: support access remote sensor by rpmsg
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:03:44 +08:00
openvela-robot ddf50db53c wireless/bluetooth:add ioctl btsnoop
Signed-off-by: chengkai <chengkai@xiaomi.com>
2026-04-20 22:03:40 +08:00
openvela-robot e833069e0f NXP S32K1XX: fix LPI2C reset 2026-04-20 22:03:37 +08:00
openvela-robot df7d8005fa update IPv6 NIC parameters unconditionally when ICMPv6 RA is received
Signed-off-by: luojun1 <luojun1@xiaomi.com>
2026-04-20 22:03:34 +08:00
openvela-robot 9620b0c7ac stm32wb/nimble: workaround for unsupported HCI command 2026-04-20 22:03:29 +08:00
openvela-robot 94770c573a mm/mempool: support memory buffer pool
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:03:26 +08:00
openvela-robot 865af944ac boards/stm32wl5/flash: silent compiler warnings
If not all partitions are defined in Kconfig, compiler may show -Wundef
warnings for each: "#if CONFIG_ > 0". Fixed by defaulting values to 0
if they are undefined.

Some variables may be unused if filesystems are not enabled in Kconfig.
These variables are marked as UNUSED() to silent compiler warnings.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2026-04-20 22:03:20 +08:00
openvela-robot fdb8a2f8c6 feature: charge: enable da9168 vbus and vindpm interrupt
1.enable da9168 vbus and vindpm interrupt
2.add get da9168 vbus and vindpm interrupt flag api

Signed-off-by: weizhifang <weizhifang@xiaomi.com>
2026-04-20 22:03:09 +08:00
openvela-robot 3cbaffc52b mm/mm_heap: output memory info about each task
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:02:57 +08:00
openvela-robot 0fcfc386af fs/fsync: return OK for sync success with BIOC_FLUSH
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:02:54 +08:00
openvela-robot 84c5d64649 udp: Use s_sndtimeo as the actual timeout time
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:02:50 +08:00
openvela-robot d2e7abbdd3 libc/machine/armv7a: Remove dependency of thumb for memcpy etc
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 22:02:47 +08:00
openvela-robot 9176bb72eb driver/sensor: support userspace wirte data into sensor device
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:02:41 +08:00
openvela-robot 90979d15b7 fix: sensor: modify stk31850 wait delay
Use worker instead of up_mdelay to delay.

Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2026-04-20 22:02:37 +08:00
openvela-robot 3b11b46639 stm32f0l0g0/stm32_spi.c: add missing SPI mode config and fix ifdef 2026-04-20 22:02:32 +08:00
openvela-robot a737d8718f arch: Correct the order of stack related information in assert
forget to update in this patch:
commit b02db04e00f4f1f6e9b5a416ef880c0c19991347
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date:   Sun Jun 5 17:10:19 2022 +0800

    arch/assert: Keep the thread dump column order same as ps

    Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 22:02:28 +08:00
openvela-robot b02ea9a0b8 driver/sensor: add calibrate interface for sensor driver.
Add standard sensor interface for calibrate, can trigger
calibration and obtain calibration value.

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:02:25 +08:00
openvela-robot bc0d123582 tcp: check option length before d_len update
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 22:02:21 +08:00
openvela-robot c64b3cb92a rtc/rpmsg: when a client connection, server initiates time sync
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2026-04-20 22:02:18 +08:00
openvela-robot 2e4f5200be pm: remove unnecessary depends on OSINIT_OS_READY
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:02:15 +08:00
openvela-robot 689744bcad local_socket: remove error log when use nonblock mode
Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 22:02:08 +08:00