Skip to content

silabs siwx91x adc driver #90172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

smalae
Copy link
Collaborator

@smalae smalae commented May 19, 2025

Enable ADC driver for siwx91x device

@smalae smalae changed the title Silabs siwx91x adc driver silabs siwx91x adc driver May 19, 2025
@github-actions github-actions bot added area: Pinctrl area: Clock Control platform: Silabs Silicon Labs area: ADC Analog-to-Digital Converter (ADC) labels May 19, 2025
Copy link

github-actions bot commented May 19, 2025

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

Name Old Revision New Revision Diff
hal_silabs zephyrproject-rtos/hal_silabs@389726f zephyrproject-rtos/hal_silabs@14626c8 (main) zephyrproject-rtos/[email protected]

All manifest checks OK

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

@github-actions github-actions bot added manifest manifest-hal_silabs DNM (manifest) This PR should not be merged (controlled by action-manifest) labels May 19, 2025
@smalae smalae force-pushed the silabs_siwx91x_adc_driver branch 3 times, most recently from bebf5ab to 5d8468b Compare May 20, 2025 05:27
@smalae smalae closed this May 20, 2025
@smalae smalae reopened this May 20, 2025
@smalae smalae closed this May 20, 2025
@smalae smalae reopened this May 20, 2025
compatible = "silabs,siwx91x-adc";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x24043800 0x214>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

From what I see in the reference manual, the max register offset is 0x21C or even 0x220 (might be a mistake in the RM)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As per the si91x_device.h, the size is 0x214. Maybe it is incorrect in the HRM.

@smalae smalae force-pushed the silabs_siwx91x_adc_driver branch from 5d8468b to 8d957af Compare May 20, 2025 10:44
@smalae smalae requested a review from Martinhoff-maker May 20, 2025 10:52
@smalae smalae force-pushed the silabs_siwx91x_adc_driver branch from 8d957af to 99aa849 Compare May 20, 2025 13:37
@github-actions github-actions bot removed the DNM (manifest) This PR should not be merged (controlled by action-manifest) label May 20, 2025
smalae added 6 commits May 20, 2025 19:17
Clock driver changes required for initializing the ADC clock
for the siwx91x driver

Signed-off-by: Sai Santhosh Malae <[email protected]>
1. Create a YAML file for ADC node
2. Add ADC node in the siwx917.dtsi

Signed-off-by: Sai Santhosh Malae <[email protected]>
Modified pinctrl driver to configure analog pins for
ULP and HP modes.

Signed-off-by: Sai Santhosh Malae <[email protected]>
Implement ADC driver for siwx91x device

Signed-off-by: Sai Santhosh Malae <[email protected]>
Add siwx917_rb4338a board overlay and congig files

Signed-off-by: Sai Santhosh Malae <[email protected]>
update west.yml to point to ADC sdk changes in hal_silabs

Signed-off-by: Sai Santhosh Malae <[email protected]>
@smalae smalae force-pushed the silabs_siwx91x_adc_driver branch from 99aa849 to 68f142b Compare May 20, 2025 13:52
Copy link

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

Successfully merging this pull request may close these issues.

3 participants