From 0e541d83484f273c254a298834593c3bbb20fa7b Mon Sep 17 00:00:00 2001 From: Chen Jichang Date: Fri, 21 Nov 2025 11:46:04 +0800 Subject: [PATCH] feat(parlio): support parlio gdma eof on p4 rev3.0 --- components/hal/esp32p4/include/hal/parlio_ll.h | 1 + docs/en/api-reference/peripherals/parlio/parlio_tx.rst | 2 +- docs/zh_CN/api-reference/peripherals/parlio/parlio_tx.rst | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/hal/esp32p4/include/hal/parlio_ll.h b/components/hal/esp32p4/include/hal/parlio_ll.h index 8166a8bd92..a9bce617b4 100644 --- a/components/hal/esp32p4/include/hal/parlio_ll.h +++ b/components/hal/esp32p4/include/hal/parlio_ll.h @@ -43,6 +43,7 @@ #if HAL_CONFIG(CHIP_SUPPORT_MIN_REV) >= 300 #define PARLIO_LL_TX_VALID_MAX_DELAY 32767 +#define PARLIO_LL_SUPPORT_TX_EOF_FROM_DMA 1 // Support to treat DMA EOF as TX unit EOF #endif #ifdef __cplusplus diff --git a/docs/en/api-reference/peripherals/parlio/parlio_tx.rst b/docs/en/api-reference/peripherals/parlio/parlio_tx.rst index 716dad3b4b..3567f67d8c 100644 --- a/docs/en/api-reference/peripherals/parlio/parlio_tx.rst +++ b/docs/en/api-reference/peripherals/parlio/parlio_tx.rst @@ -325,7 +325,7 @@ The waveform of the external clock input is shown below: .. note:: - Due to hardware limitations, the bitstream generated by the BitScrambler cannot change the length compared to the original bitstream, otherwise transmission blocking or data loss may occur. + Due to hardware limitations, on chip versions prior to rev3.0, the bitstream generated by the bitscrambler must have the same length as the original bitstream, otherwise transmission blocking or data loss may occur. :cpp:func:`parlio_tx_unit_decorate_bitscrambler` and :cpp:func:`parlio_tx_unit_undecorate_bitscrambler` need to be used in pairs. When deleting the TX unit, you need to call :cpp:func:`parlio_tx_unit_undecorate_bitscrambler` first to remove the BitScrambler. diff --git a/docs/zh_CN/api-reference/peripherals/parlio/parlio_tx.rst b/docs/zh_CN/api-reference/peripherals/parlio/parlio_tx.rst index f7bae42759..b3c7a76510 100644 --- a/docs/zh_CN/api-reference/peripherals/parlio/parlio_tx.rst +++ b/docs/zh_CN/api-reference/peripherals/parlio/parlio_tx.rst @@ -325,7 +325,7 @@ TX 单元可以选择各种不同的时钟源,其中外部时钟源较为特 .. note:: - 由于硬件限制,使用比特调节器生成的比特流与原本比特流相比,长度不能发生变化,否则可能会发生传输阻塞或数据丢失。 + 由于硬件限制,在 rev3.0 之前的芯片版本上,使用比特调节器生成的比特流与原本比特流相比,长度不能发生变化,否则可能会发生传输阻塞或数据丢失。 :cpp:func:`parlio_tx_unit_decorate_bitscrambler` 和 :cpp:func:`parlio_tx_unit_undecorate_bitscrambler` 需要成对使用。在删除 TX 单元时,需要先调用 :cpp:func:`parlio_tx_unit_undecorate_bitscrambler` 移除比特调节器。