Skip to content

Conversation

jsbatch
Copy link
Contributor

@jsbatch jsbatch commented Oct 17, 2025

This change implements an ADC driver for the PSOC Edge family of MCUs that use the Autonomous Analog (AutAnalog) SAR ADC.

  • Updates device tree and KConfig files based on the new ADC driver implementation.
  • Updates modules/hal/infineon to include new support files.
  • Adds AutAnalog SAR ADC driver files for PSOC Edge ADC.
  • Adds sample and test overlays to provide support for:
    • samples/drivers/adc/adc_dt/
    • samples/drivers/adc/adc_sequence/
    • tests/drivers/adc/adc_api/
    • tests/drivers/adc/adc_error_cases/

Copy link

github-actions bot commented Oct 17, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_infineon zephyrproject-rtos/hal_infineon@3ef39bd zephyrproject-rtos/hal_infineon#33 zephyrproject-rtos/hal_infineon#33/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hal_infineon DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Oct 17, 2025
@zephyrbot zephyrbot added area: Tests Issues related to a particular existing or missing test area: Boards/SoCs area: Samples Samples area: ADC Analog-to-Digital Converter (ADC) area: Devicetree Bindings platform: Infineon Infineon Technologies AG labels Oct 17, 2025
@jsbatch jsbatch force-pushed the main-autanalog_adc_pr branch 3 times, most recently from 99e07db to 9a900bb Compare October 17, 2025 19:30
@jsbatch jsbatch force-pushed the main-autanalog_adc_pr branch from 9a900bb to 885aea3 Compare October 17, 2025 23:29
*Separates AutAnalog and AutAnalog ADC in device tree.
*Makes AutAnalog SAR ADC a child of the AutAnalog system to reflect
 hardware architecture.
*Adds binding file for AutAnalog SAR ADC driver.

Signed-off-by: John Batch <[email protected]>
*Adds AutAnalog related files to the cmakeu list and adding KConfig
 definitions for AutAnalog and AutAnalog SAR ADC.
*Updates hal_infineon in west manifest.
*Updates infineon_kconfig.h to prevent multiple declarations of defines.

Signed-off-by: John Batch <[email protected]>
Changes initialization to use a function from hal_infineon.  This
initialization function will initialize the AutAnalog system if needed
as well as the SystemInit.

Signed-off-by: John Batch <[email protected]>
Adds AutAnalog SAR ADC driver files to support ADC conversions in the
PCSOC Edge family of MCUs.

Signed-off-by: John Batch <[email protected]>
Adding files to allow running the following samples for the Infineon
AutAnalog SAR ADC driver on the PSOC Edge family of MCUs:
  * samples/drivers/adc_dt
  * samples/drivers/adc_sequence

Signed-off-by: John Batch <[email protected]>
Adding files to allow running the following tests for the Infineon
AutAnalog SAR ADC driver on the PSOC Edge family of MCUs:
  * tests/drivers/adc/adc_api
  * tests/drivers/adc/adc_error_cases

Signed-off-by: John Batch <[email protected]>
@jsbatch jsbatch force-pushed the main-autanalog_adc_pr branch from 885aea3 to 647f5a5 Compare October 17, 2025 23:37
Copy link

/* Wait for conversion to complete */
do {
result_status = Cy_AutAnalog_SAR_GetHSchanResultStatus(0);
} while ((result_status & sequence->channels) != sequence->channels);
Copy link
Contributor

@ZhaoxiangJin ZhaoxiangJin Oct 18, 2025

Choose a reason for hiding this comment

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

you may need to invoke adc_context_wait_for_completion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ADC Analog-to-Digital Converter (ADC) area: Boards/SoCs area: Devicetree Bindings area: Samples Samples area: Tests Issues related to a particular existing or missing test DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_infineon platform: Infineon Infineon Technologies AG

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants