-
Notifications
You must be signed in to change notification settings - Fork 7.3k
drivers: sensors: Add support for RaspberryPi Pico CPU temperature #53591
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
Conversation
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, left a few comments
/ { | ||
aliases { | ||
cputemp0 = &coretemp; | ||
}; | ||
}; | ||
|
||
&coretemp { | ||
status = "okay"; | ||
}; |
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.
Is there a reason you implemented this as an overlay instead of doing it in the board dts?
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.
aliase
clause move to rp2040.dts.
Still default disabled the die-temp
node.
So keeping remain the overlay for enabling it.
drivers/sensor/rpi_pico_temp/Kconfig
Outdated
bool "Raspberry Pi Pico CPU Temperature Sensor" | ||
default y | ||
depends on DT_HAS_RASPBERRYPI_PICO_TEMP_ENABLED | ||
depends on (ADC && SOC_SERIES_RP2XXX) |
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 already have a dependency on the dts compatible, so I think you can remove the redundant dependency on the SOC_SERIES
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.
It make a sense.
Removed SOC_SERIES_RP2XXX.
|
||
vbe: | ||
type: int | ||
default: 706000 |
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.
Please justify the default value in the description
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.
Add short description for clarify it is a spec.
|
||
vbe-slope: | ||
type: int | ||
default: -1721 |
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.
Please justify the default value in the description
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.
Add short description for clarify it is a spec.
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.
Can you please rename the dts alias and sample to be consistent with the sensor channel name? i.e., die temp instead of cpu temp
Support for the measuring the CPU die temperature for the RaspberryPi Pico. Signed-off-by: TOKITA Hiroshi <[email protected]>
Renamed to die-temp[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.
Can you please rename the dts alias and sample to be consistent with the sensor channel name? i.e., die temp instead of cpu temp
Renamed to die-temp[n].
The sample filenames need to be renamed too
Add a polling sample for CPU temperature monitor. This sample demonstrates how to data fetch and print to the console. Signed-off-by: TOKITA Hiroshi <[email protected]>
|
Add myself as codeowner of previously committed driver. - zephyrproject-rtos#53591 Signed-off-by: TOKITA Hiroshi <[email protected]>
Add myself as codeowner of previously committed driver. - #53591 Signed-off-by: TOKITA Hiroshi <[email protected]>
Add myself as codeowner of previously committed driver. - zephyrproject-rtos#53591 Signed-off-by: TOKITA Hiroshi <[email protected]>
Support for the measuring the CPU die temperature
for the RaspberryPi Pico.
Signed-off-by: TOKITA Hiroshi [email protected]