From: Andrew Lunn <andrew@lunn.ch>
To: Eduardo Valentin <eduardo.valentin@ti.com>
Cc: linux ARM <linux-arm-kernel@lists.infradead.org>,
iwamatsu@nigauri.org, linux-pm@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
jgunthorpe@obsidianresearch.com,
Sebastian Hesselbarth <sebastian.hesselbarth@googlemail.com>,
Jason Cooper <jason@lakedaemon.net>
Subject: Re: [PATCH 1/2] thermal: Add support for thermal sensor for Orion SoC
Date: Fri, 04 Jan 2013 16:35:06 +0100 [thread overview]
Message-ID: <50E6F6AA.4000905@lunn.ch> (raw)
In-Reply-To: <50E6A378.90503@ti.com>
On 04/01/13 10:40, Eduardo Valentin wrote:
> Hey Andrew,
>
> On 14-12-2012 13:03, Andrew Lunn wrote:
>> From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
>>
>> Some Orion SoC has thermal sensor.
>> This patch adds support for 88F6282 and 88F6283.
>>
>> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
>> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
>> ---
>> .../devicetree/bindings/thermal/orion-thermal.txt | 16 +++
>> drivers/thermal/Kconfig | 7 ++
>> drivers/thermal/Makefile | 1 +
>> drivers/thermal/orion_thermal.c | 133 ++++++++++++++++++++
>> 4 files changed, 157 insertions(+)
>> create mode 100644
>> Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> create mode 100644 drivers/thermal/orion_thermal.c
>>
>> diff --git
>> a/Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> b/Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> new file mode 100644
>> index 0000000..5ce925d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> @@ -0,0 +1,16 @@
>> +* Orion Thermal
>> +
>> +This initial version is for Kirkwood 88F8262 & 88F6283 SoCs, however
>> +it is expected the driver will sometime in the future be expanded to
>> +also support Dove, using a different compatibility string.
>> +
>> +Required properties:
>> +- compatible : "marvell,kirkwood-thermal"
>> +- reg : Address range of the thermal registers
>> +
>> +Example:
>> +
>> + thermal@10078 {
>> + compatible = "marvell,kirkwood";
>> + reg = <0x10078 0x4>;
>> + };
>
> How do you differentiate if the SoC has the temperature sensor? On your
> patch description you are very clear saying that this supports only
> 88F8262 & 88F6283 SoCs.
Hi Eduardo
Thanks for the comments. I will address them in the next version.
We differentiate between the different SoCs by DT. Each has its own
.dtsi file and we will put the node into only those which have the hardware.
Thanks
Andrew
WARNING: multiple messages have this Message-ID (diff)
From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] thermal: Add support for thermal sensor for Orion SoC
Date: Fri, 04 Jan 2013 16:35:06 +0100 [thread overview]
Message-ID: <50E6F6AA.4000905@lunn.ch> (raw)
In-Reply-To: <50E6A378.90503@ti.com>
On 04/01/13 10:40, Eduardo Valentin wrote:
> Hey Andrew,
>
> On 14-12-2012 13:03, Andrew Lunn wrote:
>> From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
>>
>> Some Orion SoC has thermal sensor.
>> This patch adds support for 88F6282 and 88F6283.
>>
>> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
>> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
>> ---
>> .../devicetree/bindings/thermal/orion-thermal.txt | 16 +++
>> drivers/thermal/Kconfig | 7 ++
>> drivers/thermal/Makefile | 1 +
>> drivers/thermal/orion_thermal.c | 133 ++++++++++++++++++++
>> 4 files changed, 157 insertions(+)
>> create mode 100644
>> Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> create mode 100644 drivers/thermal/orion_thermal.c
>>
>> diff --git
>> a/Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> b/Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> new file mode 100644
>> index 0000000..5ce925d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/thermal/orion-thermal.txt
>> @@ -0,0 +1,16 @@
>> +* Orion Thermal
>> +
>> +This initial version is for Kirkwood 88F8262 & 88F6283 SoCs, however
>> +it is expected the driver will sometime in the future be expanded to
>> +also support Dove, using a different compatibility string.
>> +
>> +Required properties:
>> +- compatible : "marvell,kirkwood-thermal"
>> +- reg : Address range of the thermal registers
>> +
>> +Example:
>> +
>> + thermal at 10078 {
>> + compatible = "marvell,kirkwood";
>> + reg = <0x10078 0x4>;
>> + };
>
> How do you differentiate if the SoC has the temperature sensor? On your
> patch description you are very clear saying that this supports only
> 88F8262 & 88F6283 SoCs.
Hi Eduardo
Thanks for the comments. I will address them in the next version.
We differentiate between the different SoCs by DT. Each has its own
.dtsi file and we will put the node into only those which have the hardware.
Thanks
Andrew
next prev parent reply other threads:[~2013-01-04 15:36 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 11:03 [PATCH 0/2] Thermal sensor for Orion/Kirkwood Andrew Lunn
2012-12-14 11:03 ` Andrew Lunn
2012-12-14 11:03 ` [PATCH 1/2] thermal: Add support for thermal sensor for Orion SoC Andrew Lunn
2012-12-14 11:03 ` Andrew Lunn
2012-12-14 11:30 ` R, Durgadoss
2012-12-14 11:30 ` R, Durgadoss
2012-12-14 11:50 ` Andrew Lunn
2012-12-14 11:50 ` Andrew Lunn
2012-12-14 22:03 ` Nobuhiro Iwamatsu
2012-12-14 22:03 ` Nobuhiro Iwamatsu
2012-12-14 18:13 ` Jason Gunthorpe
2012-12-14 18:13 ` Jason Gunthorpe
2012-12-14 21:54 ` Nobuhiro Iwamatsu
2012-12-14 21:54 ` Nobuhiro Iwamatsu
2012-12-14 22:11 ` Andrew Lunn
2012-12-14 22:11 ` Andrew Lunn
2013-01-04 7:33 ` Zhang Rui
2013-01-04 7:33 ` Zhang Rui
2013-01-04 8:15 ` Andrew Lunn
2013-01-04 8:15 ` Andrew Lunn
2013-01-04 9:40 ` Eduardo Valentin
2013-01-04 9:40 ` Eduardo Valentin
2013-01-04 9:47 ` Eduardo Valentin
2013-01-04 9:47 ` Eduardo Valentin
2013-01-04 15:35 ` Andrew Lunn [this message]
2013-01-04 15:35 ` Andrew Lunn
2013-01-07 10:06 ` Eduardo Valentin
2013-01-07 10:06 ` Eduardo Valentin
2013-01-07 10:16 ` Andrew Lunn
2013-01-07 10:16 ` Andrew Lunn
2012-12-14 11:03 ` [PATCH 2/2] ARM: Kirkwood: Add support thermal sensor for 88F6282 and 88F6283 Andrew Lunn
2012-12-14 11:03 ` Andrew Lunn
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=50E6F6AA.4000905@lunn.ch \
--to=andrew@lunn.ch \
--cc=eduardo.valentin@ti.com \
--cc=iwamatsu@nigauri.org \
--cc=jason@lakedaemon.net \
--cc=jgunthorpe@obsidianresearch.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=sebastian.hesselbarth@googlemail.com \
--cc=thomas.petazzoni@free-electrons.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.