Skip to content

Conversation

NoahStephens
Copy link

@NoahStephens NoahStephens commented Sep 20, 2025

Added support for the bridge power switch pin, controlled by the ADC7124 Control 1 register. The pin can be enabled though the device tree.

In the future pdsw_en could be switched on and off at run time, though the pm_runtime support.

Relevant Reference Materials
ADI AD7124-8 Product Page
AD7124-8 Data sheet (Rev E.) pdf

For specific information about PDSW functionality refer to Table. 69 IO_CONTROL_1_REGISTER or BRIDGE POWER-DOWN SWITCH on page 48.

Copy link

Hello @NoahStephens, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@zephyrbot zephyrbot added area: ADC Analog-to-Digital Converter (ADC) platform: ADI Analog Devices, Inc. labels Sep 20, 2025
Added support for the low side power switch pin used for switching
DUTs attached to the ADC. The switch is configured though the
drivers device tree.

Signed-off-by: Noah Stephens <[email protected]>
@NoahStephens NoahStephens force-pushed the ad7124-pdsw-first-contrib branch from c974463 to 7ab37ef Compare September 20, 2025 03:35
@NoahStephens NoahStephens force-pushed the ad7124-pdsw-first-contrib branch from 7b237d0 to 02a11fc Compare September 23, 2025 00:45
@NoahStephens NoahStephens requested a review from ttmut September 29, 2025 22:08
Copy link
Contributor

@ttmut ttmut left a comment

Choose a reason for hiding this comment

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

Could you please fix the compliance error? Thanks.

Fixed pd-switch-enable boolean logic description to the logic as
decribed in the data sheet for the device. Also fixed some code
compliance issues.

Signed-off-by: NoahStephens <[email protected]>
Copy link

sonarqubecloud bot commented Oct 8, 2025

@ttmut
Copy link
Contributor

ttmut commented Oct 9, 2025

Compliance check is still failing. See the details here https://github.com/zephyrproject-rtos/zephyr/actions/runs/18331927332/job/52215418908?pr=96314

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 platform: ADI Analog Devices, Inc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants