-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
drivers: adc: iadc_gecko: Use pinctrl and clock control, add bindings #84508
drivers: adc: iadc_gecko: Use pinctrl and clock control, add bindings #84508
Conversation
a7542ca
to
15f82f5
Compare
drivers/adc/iadc_gecko.c
Outdated
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.
Since this driver is only compatible with SiSDK/Series-2, I suggest to drop "gecko" from its name.
15f82f5
to
a03fc42
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.
I still suggest to remove "gecko" from the name. But this is not a blocker.
a03fc42
to
87cbe14
Compare
@asmellby this has some merge conflicts |
Make use of ABUS support in the pinctrl driver to allocate analog buses, rather than hard-coding bus 0 in the ADC driver. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
Use clock control driver instead of hard-coding HAL function calls to configure clocks. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
Add macros for use in devicetree to configure IADC on Silabs Series 2 devices. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
Add overlays for xg24_dk2601b and xg27_dk2602a for the accuracy test. Update the api test to use named macros for readability. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
Add support for xg24_rb4187c to the ADC sample app. Configure two channels, one measuring the AVDD supply against the 1.21V bandgap reference, and one measuring pin PB1 (wired to button 0) against the AVDD (VDDX) reference. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
0c7ddfe
87cbe14
to
0c7ddfe
Compare
Use pinctrl for ABUS allocation (leveraging #84462), use clock control to enable peripheral clock. Add headers with utility macros for easier configuration of IADC inputs. Enable accuracy test, update api test to use bindings header.