From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Icenowy Zheng <icenowy@aosc.xyz>
Cc: Ondrej Jirman <megous@megous.com>,
devicetree@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Eduardo Valentin <edubezval@gmail.com>,
Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org>,
Zhang Rui <rui.zhang@intel.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs
Date: Thu, 2 Mar 2017 15:11:05 +0100 [thread overview]
Message-ID: <20170302141105.5fr3ru72rtdyv4pd@lukather> (raw)
In-Reply-To: <20170301190220.2EgSha6N@smtp3o.mail.yandex.net>
[-- Attachment #1.1: Type: text/plain, Size: 2552 bytes --]
On Thu, Mar 02, 2017 at 12:02:13AM +0800, Icenowy Zheng wrote:
>
> 2017年3月1日 23:56于 Maxime Ripard <maxime.ripard@free-electrons.com>写道:
> >
> > On Wed, Mar 01, 2017 at 06:20:51PM +0800, Icenowy Zheng wrote:
> > >
> > > 2017年3月1日 18:14于 Maxime Ripard <maxime.ripard@free-electrons.com>写道:
> > > >
> > > > On Tue, Feb 28, 2017 at 03:18:13PM +0800, Icenowy Zheng wrote:
> > > > >
> > > > > 2017年2月28日 14:44于 Maxime Ripard <maxime.ripard@free-electrons.com>写道:
> > > > > >
> > > > > > On Tue, Feb 28, 2017 at 03:40:53AM +0800, Icenowy Zheng wrote:
> > > > > > > From: Ondrej Jirman <megous@megous.com>
> > > > > > >
> > > > > > > Allwinner SoCs from H3 (including H5, A64, etc) have a new version of
> > > > > > > thermal sensor, and needs a new driver for it.
> > > > > > >
> > > > > > > Add such a driver.
> > > > > > >
> > > > > > > Currently only H3 is supported, but other SoCs are easily to be
> > > > > > > supported by adding new formula and set the sensor number.
> > > > > > >
> > > > > > > Signed-off-by: Ondřej Jirman <megous@megous.com>
> > > > > > > [Icenowy: extend to support further multiple-sensor SoCs, change commit
> > > > > > > message]
> > > > > > > Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> > > > > >
> > > > > > There's no need to create a new driver for that. This can be handled
> > > > > > by the GPADC driver we already have.
> > > > >
> > > > > sun8i-ths is not GPADC at all.
> > > > >
> > > > > The latest SoC I know that use GPADC as thermal sensor is A33.
> > > >
> > > > It's not called the same way, but it definitely is an evolution of the
> > > > same controller. There's no need for a new driver, only reworking what
> > > > is already there.
> > >
> > > I don't think so -- here's some evidence:
>
> But the H3 THS have many new IRQs, functions, different sampling
> rate set method and a quite different register layout.
>
> Doing this in GPADC driver is possible but meaningless.
>
> > >
> > > 1. The old GPADC do not have module clock.
> >
> > The A33 could use a PLL.
>
> But it's a dedicated mod clk on new generation THS.
And all of this really are evolutions. The block is still driven in
the exact same way. And this is where there is value in having the
same driver: you share the logic, which is mostly common, instead of
duplicating it.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2017-03-02 14:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-01 16:02 [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs Icenowy Zheng
2017-03-02 14:11 ` Maxime Ripard [this message]
2017-03-09 0:36 ` Icenowy Zheng
2017-03-09 14:27 ` Maxime Ripard
2017-03-09 15:31 ` Icenowy Zheng
-- strict thread matches above, loose matches on Subject: below --
2017-03-01 10:20 Icenowy Zheng
2017-03-01 15:56 ` Maxime Ripard
2017-02-28 7:18 Icenowy Zheng
2017-03-01 10:14 ` Maxime Ripard
2017-02-27 19:40 [PATCH 1/3] dt-bindings: document the thermal sensor of Allwinner H3 SoC Icenowy Zheng
2017-02-27 19:40 ` [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs Icenowy Zheng
[not found] ` <20170227194054.51951-2-icenowy-ymACFijhrKM@public.gmane.org>
2017-02-28 6:44 ` Maxime Ripard
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=20170302141105.5fr3ru72rtdyv4pd@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=icenowy@aosc.xyz \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=megous@megous.com \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=wens@csie.org \
/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;
as well as URLs for NNTP newsgroup(s).