Closed Elarion245 closed 1 year ago
Interesting, this only seems to apply to the 4C+. All other boards inherit from rockchip/rk3399-rock-pi-4.dtsi
which includes the following snippet to activate tsadc:
&tsadc {
status = "okay";
/* tshut mode 0:CRU 1:GPIO */
rockchip,hw-tshut-mode = <1>;
/* tshut polarity 0:LOW 1:HIGH */
rockchip,hw-tshut-polarity = <1>;
};
And indeed there are two thermal zones on my 4B+. I can try to add that into the 4C+ device tree, but I would need you to test it.
Sounds great! I will test and report back once you are comfortable with an update. Thank you!
Don't know if you changed something on the new beta, but it had no impact on the missing temperature sensors on the 4C+
No I didn’t change anything yet, but I am planning to post a second beta with this change in the next days!
I patched the device tree directly, no need for an overlay.
Works perfectly!
The systemmonitor now finds the CPU temperature. I was also able to manually read out the GPU-temp via the following sensor definition
- platform: command_line
name: "GPU Temperature"
command: "cat /sys/class/thermal/thermal_zone1/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
device_class: "temperature"
Thanks a lot for this! Now I am finally able to see if I need bigger heat-sinks or if I can put somehing on top of the housing.
Oh that's cool, thanks for posting the sensor configuration! Added those two to my dashboard as well.
I'm glad, if there is something that I can provide that helps you ;)
Implemented in latest release https://github.com/citruz/haos-rockpi/releases/tag/10.1%2B20230526
Describe the issue you are experiencing
After Boot, System Monitor finds no CPU Temperature or GPU Temperature sensors. Indeed /sys/class/thermal ist not showing any thermal_zone* devices.
More information is available here: https://forum.radxa.com/t/rockpi-4-cpu-temperature/9530 sounds like an overlay for tsadc activation is required.
What operating system image do you use?
rock-4c-plus
What version of Home Assistant Operating System is installed?
10
Did you upgrade the Operating System.
Yes
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
No response
Additional information
No response