toggle quoted messageShow quoted text
Thank you for the review.
From: Pavel Machek <pavel@...>
Sent: 05 April 2022 20:06
To: Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@...>
Cc: cip-dev@...; Nobuhiro Iwamatsu
<nobuhiro1.iwamatsu@...>; Pavel Machek <pavel@...>; Biju Das
Subject: Re: [PATCH 5.10.y-cip 26/29] thermal/drivers: Add TSU driver for
From: Biju Das <biju.das.jz@...>
commit 673c68bd48390dad01f7d17670de3e33b60860ac upstream.
The RZ/G2L SoC incorporates a thermal sensor unit (TSU) that measures
the temperature inside the LSI.
The thermal sensor in this unit measures temperatures in the range
−40 degree Celsius to 125 degree Celsius with an accuracy of ±3°C. The
TSU repeats measurement at 20 microseconds intervals and automatically
updates the results of measurement.
The TSU has no interrupts as well as no external pins.
This patch adds Thermal Sensor Unit(TSU) driver for RZ/G2L SoC.
+ /* TSU repeats measurement at 20 microseconds intervals and...
+ * ts_code_ave = (ts_code + ⋯ + ts_code) / 8
+ /* The temperature Tj is calculated by the formulaI'd avoid using non-ASCII characters where possible. ... is not that much
+ * Tj = (dsensor − calib1) * 165/ (calib0 − calib1) − 40
+ * where calib0 and calib1 are the caliberation values.
longer, and that symbol should really be -.
Also comments should start with /* on separate line, but that's really
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany