Commit Graph

69 Commits

Author SHA1 Message Date
wanckl
37c6608ab3 feat(driver_spi): support esp32h4 spi driver 2025-08-05 15:08:02 +08:00
wanckl
0992a1db62 fix(driver_spi): fixed esp32c5 spi slave dma potential rx error 2025-07-18 09:29:27 +08:00
wanckl
768a7a8442 fix(driver_spi): master driver change esp32p4 default src to pll 2025-06-23 16:40:21 +08:00
Wan Lei
50ef5946cb Merge branch 'test/spi_common_gpio_refa' into 'master'
feat(driver_spi): gpio reserve support for spi master/slave/slave_hd driver

Closes IDF-9107 and IDF-11126

See merge request espressif/esp-idf!31301
2025-06-03 11:21:43 +08:00
wanckl
4c11e81fd9 feat(driver_spi): support gpio reserved check 2025-05-28 19:29:46 +08:00
wuzhenghui
65b7e70564 feat(driver): support acquire/release clock source dependency for all drivers 2025-05-27 21:21:38 +08:00
morris
c94db04f2d fix(spi): allocate driver memory with caps explicitly 2025-04-23 10:38:07 +08:00
morris
15e16599ae refactor(drivers): refactor the iram-safe option of the gdma peripherals
Closes https://github.com/espressif/esp-idf/issues/15771
2025-04-15 11:37:18 +08:00
wanckl
51873d46aa feat(driver_spi): add h21 spi drivers supports 2025-04-03 11:27:29 +08:00
wanckl
43aef06e90 fix(driver_spi): make slave_hd isr can place in flash to save iram 2025-03-22 19:32:10 +08:00
Chen Jichang
ff1fd80198 fix(drivers): use CPU_MAX lock in dirvers use axi dma to access psram 2025-03-12 17:38:44 +08:00
morris
046279155d Merge branch 'fix/spi_device_dynamic_freq_bug' into 'master'
fix(driver_spi): fixed wrong condition check in master driver device override_freq_hz feature

Closes IDF-12525

See merge request espressif/esp-idf!37222
2025-02-24 16:40:47 +08:00
wanckl
90728ade83 fix(driver_spi): fixed wrong condition check in master driver device override_freq_hz feature 2025-02-24 11:50:42 +08:00
Song Ruo Jing
53d8b70e8b fix(gpio): fix IO output enable control
oen_sel and oen_inv_sel fields from func_out_sel_cfg register
2025-02-20 19:49:28 +08:00
wanlei
923255d7a7 feat(spi_slave): add api for pm lock control 2025-02-17 20:33:55 +08:00
Wan Lei
c7a0e45489 Merge branch 'feat/spi_master_dynamic_freq' into 'master'
feat(spi_master): add transaction config for device multi freq point

Closes IDFGH-12774

See merge request espressif/esp-idf!28579
2025-02-13 15:58:59 +08:00
wanckl
39c85269cc feat(spi_master): add transaction config for dynamic clock speed update
Closes https://github.com/espressif/esp-idf/issues/13753
2025-02-12 20:29:34 +08:00
Wan Lei
68b79fc138 Merge branch 'fix/spi_master_halt_using_rc_fast' into 'master'
fix(spi_master): fix spi halt when remove device who using rc_fast

See merge request espressif/esp-idf!31079
2025-02-12 15:18:22 +08:00
Song Ruo Jing
3a8d065908 refactor(gpio): improve gpio_iomux_in/out API 2025-02-10 21:44:07 +08:00
wanlei
cc7adfa068 fix(spi_master): fix spi halt when remove device who using rc_fast 2025-02-10 10:51:33 +08:00
C.S.M
ee5ae9a1a4 refactor(spi): Remove useless dma channels 2025-01-24 12:00:49 +08:00
wanckl
8a4f3cec5a fix(driver_twai): fixed coverity check in twai 2025-01-15 16:27:55 +08:00
wanckl
5945331268 fix(driver_spi): fixed coverity check in slave and slave_hd 2025-01-15 16:08:15 +08:00
wanckl
460380bb25 feat(driver_spi): support using SPI_DEVICE_STD_TIMING to adjust master rx in standard timing 2025-01-08 17:17:06 +08:00
wanckl
fcdc5d02d4 fix(driver_spi): fixed slave_hd driver transaction alignment check 2024-12-13 16:15:43 +08:00
wanckl
ff78ea91cd feat(driver_spi): slave hd driver sleep retention support 2024-11-22 16:41:48 +08:00
wanckl
3100fb6f1b fix(driver_spi): fixed slave hd append mode potential data loss working over weeks 2024-11-22 16:41:34 +08:00
wanckl
9b7bbb1f0c feat(driver_spi): slave driver support sleep retention 2024-11-22 16:41:30 +08:00
Li Shuai
8eea8a8ef3 change(esp_hw_support): update some modules sleep retention init dependency bitmap 2024-11-18 15:40:47 +08:00
wanckl
a2be2ffe5a fix(driver_spi): fixed p4 no dma polling trans cache sync fail 2024-10-30 20:52:29 +08:00
wanckl
2f9456bf51 fix(esp_timer): fix isr safe when CONFIG_FREERTOS_USE_TICKLESS_IDLE and PM_ENABLE 2024-10-24 12:47:38 +08:00
wanckl
ef7406257a feat(driver_spi): spi master support sleep retention(recovery) 2024-10-24 12:47:32 +08:00
Alexey Lapshin
599c14d8f0 Merge branch 'feature/update-toolchain-to-esp-14.2.0_20240903' into 'master'
feat(tools): update toolchain version to esp-14.2.0_20240906

Closes IDFGH-13033, IDFGH-13355, and IDFGH-13360

See merge request espressif/esp-idf!33295
2024-09-09 14:22:47 +08:00
Alexey Lapshin
57d39c3923 fix(driver_spi): supress overlapping buffers warning for GCC analyzer 2024-09-08 13:53:52 +07:00
wanlei
d15e53d876 refa(spi): clean up esp_dma_xxx memory allocation code 2024-09-05 10:56:30 +08:00
Armando
d215fa6cdb feat(sdspi): supported tuning clock duty cycle 2024-08-29 09:05:43 +08:00
wanckl
ab53d300d0 feat(esp_driver_spi): add config for data io default level 2024-08-29 09:05:43 +08:00
wanckl
6b6065de50 fix(driver_spi): fix p4 cache auto writeback during spi(dma) rx 2024-08-27 20:01:56 +08:00
wanlei
e24067295b feat(spi_master): add test clock src and config validation 2024-08-14 11:35:58 +08:00
Wan Lei
1bf898611f Merge branch 'contrib/github_pr_13856' into 'master'
fix(spi_master): spi_bus_free() fail but destruct common context (GitHub PR)

Closes IDFGH-12895

See merge request espressif/esp-idf!31084
2024-07-02 17:12:31 +08:00
Wan Lei
55d4de5129 Merge branch 'fix/spi_hd_seg_fix_iwdt_timeout' into 'master'
fix(spi_slave_hd): fix seg mode potential iwdt timeout when multi task call

Closes IDF-9671

See merge request espressif/esp-idf!30224
2024-05-31 20:36:34 +08:00
Mathy Vanvoorden
d35239dd28 fix(esp_driver_spi): Make spi_bus_free() exit early on issues
If for example there are still devices configured on the bus
spi_bus_free() will report that with ESP_ERR_INVALID_STATE, but not
before it frees all other things like IO and DMA. This means that
after the function exits any other task that is still running and
using those devices will all of a sudden stop working (and probably
crash the device).

This commit prevents that situation by making the function return
early so it can be called again safely later when all devices have
been removed.

Closes https://github.com/espressif/esp-idf/pull/13856
2024-05-28 14:58:10 +08:00
morris
dc6989796a feat(gdma): set burst size and return alignment constraint
burst size can affect the buffer alignment
2024-05-24 22:43:55 +08:00
wanlei
165394b744 fix(spi_slave_hd): fix seg mode potential iwdt timeout when multi task call 2024-05-20 17:14:29 +08:00
Wan Lei
da73e0f8a2 Merge branch 'fix/spi_sct_fix_descripter_oob_when_lager_then_4092' into 'master'
fix(spi_master): fix sct mode descripter oob when data lager then 4092 bytes

See merge request espressif/esp-idf!30545
2024-05-20 11:49:18 +08:00
Alexey Gerenkov
8b93323da6 Merge branch 'upgrade_clang_toolchain' into 'master'
Upgrade clang toolchain version to 'esp-17.0.1_20240419'

See merge request espressif/esp-idf!29811
2024-05-14 21:47:06 +08:00
wanlei
4f424da1ee fix(spi_master): fix sct mode descripter oob when data lager then 4092 bytes 2024-05-13 11:42:29 +08:00
Alexey Gerenkov
3482277bfe fix(build): Fix '-Werror=format=' errors for esp32p4 2024-05-03 16:55:18 +03:00
Alexey Gerenkov
41bfac91d9 fix(build): Fix printf formating errors 2024-05-03 16:55:18 +03:00
wanlei
cb86a3e2a2 feat(spi): Add helper function for alignment reqiured memory allocation 2024-04-24 14:01:09 +08:00