-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: dac: add max22017 support #76017
base: main
Are you sure you want to change the base?
Conversation
Hello @granquet, and thank you very much for your first pull request to the Zephyr project! |
339249e
to
8aab635
Compare
8aab635
to
e0df28d
Compare
e0df28d
to
9830e0d
Compare
9830e0d
to
4212a70
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.
Thanks @granquet for your PR and sorry for the late response. It got lost in my notifications for some reason.
As far as I can see, the DAC, ADC and GPIO features of this device are independent of each other. Can you please split out the GPIO driver from this PR and create a dedicated PR for it? This will help with reviews, as the GPIO and DAC drivers are maintained by different persons.
I will do a thorough review once the GPIO sections are taken out.
4212a70
to
e7d8bc7
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.
Need to add a node with this compatible to tests/drivers/build_all/dac/app.overlay
88663dd
to
4f674c2
Compare
3786ec4
to
dd23c39
Compare
Design changed to an MFD to accomodate the GPIO and DAC functions of the device as per requested in the previous (now closed PR #78898 ) GPIO PR. |
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.
Thanks for your patience and the rework as a MFD.
Please find some minor comments below.
I tried to find a datasheet for the MAX22017, but couldn't find anything. Do you have a link?
drivers/gpio/Kconfig.adi_max22017
Outdated
|
||
config GPIO_MAX22017_INT_QUIRK | ||
bool "MAX22017 GPIO Interrupt quirk" | ||
default n |
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.
As far as I understand, the driver doesn't work properly without the quirk, correct? If that's the case, should it not be default y
? Otherwise, if you prefer to keep default n
, this line should be deleted, as n
is always the default.
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 think it mostly comes from my testing setup as I don't have a clean debounced input to try it... so any attempt at testing this out generates a storm of interrupts.
it "works" but sometimes can get stuck with a pending interrupt to read.
"polling" the interrupt register is the only way I have found to get out of that "stuck" situation.
maybe someone with a clean input signal will never reproduce the issues I'm seeing? that's what I'm hoping for tbh, and is the rationale for the quirk beeing disabled by default.
I have access to a "preliminary" datasheet that I've been provided by ADI directly. |
5489f5c
to
b1ef23b
Compare
It does not seem to be publicly available, sadly. |
@granquet , we are only merging bug fixes and documentation updates for the 4.0 release. I am changing the milestone to 4.1 |
@granquet this would need to be rebased on main as it has merge conflicts |
The MAX22017 DAC provides two 16 Channel Analog outputs and 6 GPIOs. Signed-off-by: Guillaume Ranquet <[email protected]>
The MAX22017 is a two-channel industrial-grade software-configurable analog output device that can be used in either voltage or current output mode. Signed-off-by: Guillaume Ranquet <[email protected]>
b1ef23b
to
aac30ed
Compare
Thx for notifying me :) |
Np :) you also have "interesting" commits in this PR that look like they don't want to be there :) |
aac30ed
to
982be6f
Compare
MAX22017 is a DAC with support for 6 GPIOs Signed-off-by: Guillaume Ranquet <[email protected]>
982be6f
to
8d03ec1
Compare
This series add support for the MAX22017 DAC.
The MAX22017 is a two-channel industrial-grade software-configurable analog output device that can be used in either voltage or current output mode.
The DAC also has support for six configurable GPIO.