feat(ppa): add support for ESP32S31

This commit is contained in:
Song Ruo Jing
2026-04-24 11:47:41 +08:00
parent 1ba5618805
commit 6441c76ef4
19 changed files with 1467 additions and 79 deletions
@@ -1,2 +1,2 @@
| Supported Targets | ESP32-P4 |
| ----------------- | -------- |
| Supported Targets | ESP32-P4 | ESP32-S31 |
| ----------------- | -------- | --------- |
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -15,6 +15,7 @@
*/
#if CONFIG_IDF_TARGET_ESP32P4
#if CONFIG_ESP32P4_SELECTS_REV_LESS_V3
#define PPA_SRM_MIN_PERFORMANCE_PX_PER_SEC (21000 * 1000) // k_min
#define PPA_SRM_TIME_OFFSET (-26000) // b_approx
@@ -28,4 +29,15 @@
#define PPA_FILL_MIN_PERFORMANCE_PX_PER_SEC (150000 * 1000) // k_min
#define PPA_FILL_TIME_OFFSET (-106000) // b_approx
#elif CONFIG_IDF_TARGET_ESP32S31
#define PPA_SRM_MIN_PERFORMANCE_PX_PER_SEC (25900 * 1000) // k_min
#define PPA_SRM_TIME_OFFSET (-64000) // b_approx
#define PPA_BLEND_MIN_PERFORMANCE_PX_PER_SEC (22000 * 1000) // k_min
#define PPA_BLEND_TIME_OFFSET (-57000) // b_approx
#define PPA_FILL_MIN_PERFORMANCE_PX_PER_SEC (79800 * 1000) // k_min
#define PPA_FILL_TIME_OFFSET (-137000) // b_approx
#endif
@@ -42,5 +42,6 @@ def test_ppa_esp32p4_rev1(dut: Dut) -> None:
indirect=True,
)
@idf_parametrize('target', soc_filtered_targets('SOC_PPA_SUPPORTED == 1'), indirect=['target'])
@pytest.mark.temp_skip_ci(targets=['esp32s31'], reason='TODO: IDFCI-10377 no runner yet')
def test_ppa_flash_encryption(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -0,0 +1,3 @@
CONFIG_SPIRAM=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_SPEED_200M=y