public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@denx.de>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Pavel Machek <pavel@denx.de>,
	"cip-dev@lists.cip-project.org" <cip-dev@lists.cip-project.org>,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Chris Paterson <Chris.Paterson2@renesas.com>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [cip-dev] [PATCH RESEND 5.10.y-cip 03/13] thermal/drivers: Add TSU driver for RZ/G2L
Date: Mon, 18 Jul 2022 10:55:00 +0200	[thread overview]
Message-ID: <YtUf5HKy9MGPd8i8@pollux.denx.de> (raw)
In-Reply-To: <OS0PR01MB592291A21992DB4B471AB5E4868C9@OS0PR01MB5922.jpnprd01.prod.outlook.com>

Hi!

> > > > 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
> > > > from
> > > > ???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.
> > >
> > > > +#define TSU_SS_CONV_RUNNING	BIT(0)
> > > > +
> > > > +#define TS_CODE_AVE_SCALE(x)	((x) * 1000000)
> > > > +#define MCELSIUS(temp)		((temp) * MILLIDEGREE_PER_DEGREE)
> > > > +#define TS_CODE_CAP_TIMES	8	/* Capture  times */
> > >
> > > Two spaces, plus "capture times" does not really explain much.
> > 
> > OK, will fix the 2 spaces. For " capture times" Basically we need to read
> > TSU_SAD register eight times consecutively at 20 microseconds interval.
> > 
> > I will try to drop the comment /* Capture  times */ from mainline, if it
> > does not really explain the intention.
> 
> Or
> 
> What about "Total number of ADC data samples"? Does it better?
> Please let me know.

Yes, that sounds better.

Thanks,
										Pavel

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


  reply	other threads:[~2022-07-18  8:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15  7:39 [PATCH RESEND 5.10.y-cip 00/13] Add thermal driver and watchdog driver enhancements Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 01/13] kernel.h: split out mathematical helpers Biju Das
2022-07-16  9:08   ` Pavel Machek
2022-07-16 14:16     ` Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 02/13] units: Add SI metric prefix definitions Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 03/13] thermal/drivers: Add TSU driver for RZ/G2L Biju Das
2022-07-16 10:53   ` [cip-dev] " Pavel Machek
2022-07-16 14:36     ` Biju Das
2022-07-18  5:44       ` Biju Das
2022-07-18  8:55         ` Pavel Machek [this message]
2022-07-18  9:01           ` Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 04/13] thermal/drivers/rz2gl: Add error check for reset_control_deassert() Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 05/13] thermal/drivers/rz2gl: Fix OTP Calibration Register values Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 06/13] arm64: defconfig: Enable additional support for Renesas platforms Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 07/13] watchdog: rzg2l_wdt: Fix 32bit overflow issue Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 08/13] watchdog: rzg2l_wdt: Fix Runtime PM usage Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 09/13] watchdog: rzg2l_wdt: Fix 'BUG: Invalid wait context' Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 10/13] watchdog: rzg2l_wdt: Fix reset control imbalance Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 11/13] watchdog: rzg2l_wdt: Add error check for reset_control_deassert Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 12/13] watchdog: rzg2l_wdt: Use force reset for WDT reset Biju Das
2022-07-15  7:39 ` [PATCH RESEND 5.10.y-cip 13/13] watchdog: rzg2l_wdt: Add set_timeout callback Biju Das
2022-07-16 11:13   ` Pavel Machek
2022-07-16 14:24     ` Biju Das
2022-07-15  7:46 ` [PATCH RESEND 5.10.y-cip 00/13] Add thermal driver and watchdog driver enhancements Biju Das
2022-07-15  9:28   ` nobuhiro1.iwamatsu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YtUf5HKy9MGPd8i8@pollux.denx.de \
    --to=pavel@denx.de \
    --cc=Chris.Paterson2@renesas.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox