devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add the thermal zones of the rk3588 to its dts
@ 2024-01-22 20:34 Emmanuel Gil Peyrot
  2024-01-22 20:34 ` [PATCH 1/2] arm64: dts: rockchip: Add the rk3588 thermal zones Emmanuel Gil Peyrot
  2024-01-22 20:34 ` [PATCH 2/2] arm64: dts: rockchip: Enable the tsadc on Rock-5B Emmanuel Gil Peyrot
  0 siblings, 2 replies; 6+ messages in thread
From: Emmanuel Gil Peyrot @ 2024-01-22 20:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	Sebastian Reichel, Cristian Ciocaltea, Tamás Szűcs,
	Christopher Obbard, Shreeya Patel, John Clark, Dragan Simic,
	Chris Morgan, Emmanuel Gil Peyrot, Andy Yan, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel,
	Nicolas Frattaroli

The driver got added back in 45d7b3867a5cabb97fc31f16122cda8540c3a30c,
but the dts never got updated, so here it is!

I’ve added it to the rk3588s because that’s where most of the
definitions are, but I’ve only tested on a rk3588 so maybe there are
subtle changes.

The rk3588 TRM also documents slightly different values (in part 1
section 14.5.3) than the driver, but I’ve left the values alone since I
have no way to determine which one is (more) correct.

Only the CPU is properly mapped, as neither the GPU nor the NPU have
been added to the dts for now, I’ve left some TODOs there.

All of the thermal zones report almost the same value on my rock-5b
board, I’m not sure if this is due to a programming error or if this is
to be expected.  For instance, after running for a while, all of the
zones report 44384 m℃, despite having used neither the GPU nor the NPU.

Additionally, the alert and crit temperatures have been arbitrarily
chosen based on other dts files, not based on any knowledge of the
thermal behaviours of this specific SoC.

Emmanuel Gil Peyrot (2):
  arm64: dts: rockchip: Add the rk3588 thermal zones
  arm64: dts: rockchip: Enable the tsadc on Rock-5B

 .../boot/dts/rockchip/rk3588-rock-5b.dts      |   4 +
 arch/arm64/boot/dts/rockchip/rk3588s.dtsi     | 181 ++++++++++++++++++
 2 files changed, 185 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-23  6:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 20:34 [PATCH 0/2] Add the thermal zones of the rk3588 to its dts Emmanuel Gil Peyrot
2024-01-22 20:34 ` [PATCH 1/2] arm64: dts: rockchip: Add the rk3588 thermal zones Emmanuel Gil Peyrot
2024-01-22 20:52   ` Daniel Lezcano
2024-01-22 22:09     ` Emmanuel Gil Peyrot
2024-01-23  6:31       ` Alexey Charkov
2024-01-22 20:34 ` [PATCH 2/2] arm64: dts: rockchip: Enable the tsadc on Rock-5B Emmanuel Gil Peyrot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).