-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: adc: ad7124: add low side power switch support #96314
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
base: main
Are you sure you want to change the base?
drivers: adc: ad7124: add low side power switch support #96314
Conversation
Hello @NoahStephens, and thank you very much for your first pull request to the Zephyr project! |
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]>
c974463
to
7ab37ef
Compare
7b237d0
to
02a11fc
Compare
There was a problem hiding this 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]>
02a11fc
to
9392817
Compare
|
Compliance check is still failing. See the details here https://github.com/zephyrproject-rtos/zephyr/actions/runs/18331927332/job/52215418908?pr=96314 |
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 toTable. 69 IO_CONTROL_1_REGISTER
orBRIDGE POWER-DOWN SWITCH
on page 48.