Skip to content

Conversation

@fimohame
Copy link
Contributor

@fimohame fimohame commented Nov 26, 2025

Origin: Silicon Labs WiseConnect SDK
License: Zlib and Apache-2.0
URL: https://github.com/siliconlabs/wiseconnect
Commit: 74254b81a6fb92f5edfdae037ab4b1d110067db5
Version: v3.5.2
Purpose: Add PSRAM half sleep mode support.
This functionality enables low-power operations for
PSRAM half sleep supported devices.

Signed-off-by: S Mohamed Fiaz [email protected]

Add d_cache sdk files in import_wiseconnect.py

Signed-off-by: S Mohamed Fiaz <[email protected]>
Origin: Silicon Labs WiseConnect SDK
License: Zlib and Apache-2.0
URL: https://github.com/siliconlabs/wiseconnect
Commit: 74254b81a6fb92f5edfdae037ab4b1d110067db5
Version: v3.5.2
Purpose: Add D_Cache support for SiWx91x

Signed-off-by: S Mohamed Fiaz <[email protected]>
@fimohame fimohame changed the title Siwx91x psram half sleep support Add PSRAM Half Sleep and DCache support for Siwx91x Nov 26, 2025
@fimohame fimohame marked this pull request as ready for review November 26, 2025 08:02
@fimohame fimohame changed the title Add PSRAM Half Sleep and DCache support for Siwx91x Add PSRAM half Sleep and DCache support for Siwx91x Nov 26, 2025

#ifdef SLI_SI91X_MCU_ENABLE_PSRAM_FEATURE
#include "sl_si91x_psram.h"
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless the target file does not exist, avoid conditionally include the header files (unused declarations don't hurt the code).

#error "No valid PSRAM configuration defined"
#endif

#endif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is the right place for the Zephyr configuration:

  • Add the various macro based on the DT in sl_si91x_psram_zephyr_config.h
  • Include this file if __ZEPHYR__ is defined:
#if defined(SLI_SI91X_MCU_PSRAM_APS1604M_SQR)
...
#elif __ZEPHYR__
#include "sl_si91x_psram_zephyr_config.h"
#endif

#error "No valid PSRAM configuration defined"
#endif

#endif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Included sl_si91x_psram.h under __ZEPHYR__ guard to ensure
compatibility with Zephyr builds.

Signed-off-by: S Mohamed Fiaz <[email protected]>
@fimohame fimohame force-pushed the siwx91x-psram-half-sleep-support branch from 24254e3 to 56aebc9 Compare December 2, 2025 09:29
Applied __ZEPHYR__ guards around PSRAM configuration
and related includes to restrict PSRAM-specific code to
non-Zephyr builds.

Signed-off-by: S Mohamed Fiaz <[email protected]>
@fimohame fimohame force-pushed the siwx91x-psram-half-sleep-support branch from 56aebc9 to 97f48c6 Compare December 2, 2025 09:31
#include "sl_si91x_psram_aps6404l_sqh_config.h"
#elif defined(SLI_SI91X_MCU_PSRAM_APS6404L_SQRH)
#include "sl_si91x_psram_aps6404l_sqrh_config.h"
#elif __ZEPHYR__
Copy link
Member

@Martinhoff-maker Martinhoff-maker Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand this patch but is there any actions to take in Wiseconnect in order to avoid that stuff in the next release of Wiseconnect ? Remenber that @jerome-pouiller is trying to reduce the number of patch in wiseconnect so each time we introduce a new one, we should think to remove it in the next release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me check through if we can do any in here

@fimohame fimohame marked this pull request as draft December 2, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants