-
Notifications
You must be signed in to change notification settings - Fork 8.2k
sensors: dht: convert to devicetree and add sample #21424
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
sensors: dht: convert to devicetree and add sample #21424
Conversation
db9670b to
0bf9b3b
Compare
0e5d5e7 to
78a847e
Compare
samples/sensor/dht/README.rst
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.
This would read better:
After providing a devicetree overlay that specifies the sensor location, build this sample app using:
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.
Updated.
78a847e to
d63680f
Compare
dbkinder
left a comment
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.
docs LGTM, thanks!
MaureenHelm
left a comment
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.
one nit, but otherwise looks great. thanks @pabigot
drivers/sensor/dht/dht.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.
this should be const
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.
done; thanks.
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.
you amended the wrong commit. the change should be in sensor: dht: convert from Kconfig to devicetree
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.
Moved to the right commit.
d63680f to
acb969e
Compare
Define a binding for the Aosong DHT family of temperature/humidity sensors. Remove the Kconfig settings, and update the driver to use devicetree information. Signed-off-by: Peter Bigot <[email protected]>
Add a sample to test the Aosong temperature/humidity sensor. Signed-off-by: Peter Bigot <[email protected]>
acb969e to
f5aece4
Compare
Define a binding for the Aosong DHT family of temperature/humidity sensors. Remove the Kconfig settings, and update the driver to use devicetree information.
Add a sample.