All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-09-25 23:11 ` Magnus Damm
  0 siblings, 0 replies; 12+ messages in thread
From: Magnus Damm @ 2013-09-25 23:11 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Hook up the single channel thermal sensor via DT
on r8a7790. The information used by the platform
device has been verified against the data sheet.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Written against renesas-devel-20130925

 arch/arm/boot/dts/r8a7790.dtsi         |    7 +++++++
 arch/arm/mach-shmobile/clock-r8a7790.c |    1 +
 2 files changed, 8 insertions(+)

--- 0001/arch/arm/boot/dts/r8a7790.dtsi
+++ work/arch/arm/boot/dts/r8a7790.dtsi	2013-09-26 07:23:04.000000000 +0900
@@ -87,6 +87,13 @@
 		interrupts = <1 9 0xf04>;
 	};
 
+	thermal@e61f0000 {
+		compatible = "renesas,rcar-thermal";
+		reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
+		interrupt-parent = <&gic>;
+		interrupts = <0 69 4>;
+	};
+
 	gpio0: gpio@ffc40000 {
 		compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
 		reg = <0 0xffc40000 0 0x2c>;
--- 0001/arch/arm/mach-shmobile/clock-r8a7790.c
+++ work/arch/arm/mach-shmobile/clock-r8a7790.c	2013-09-26 07:24:37.000000000 +0900
@@ -272,6 +272,7 @@ static struct clk_lookup lookups[] = {
 	CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]),
 	CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]),
 	CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]),
+	CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
 	CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
 	CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]),
 	CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]),

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

* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-09-25 23:11 ` Magnus Damm
  0 siblings, 0 replies; 12+ messages in thread
From: Magnus Damm @ 2013-09-25 23:11 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Hook up the single channel thermal sensor via DT
on r8a7790. The information used by the platform
device has been verified against the data sheet.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Written against renesas-devel-20130925

 arch/arm/boot/dts/r8a7790.dtsi         |    7 +++++++
 arch/arm/mach-shmobile/clock-r8a7790.c |    1 +
 2 files changed, 8 insertions(+)

--- 0001/arch/arm/boot/dts/r8a7790.dtsi
+++ work/arch/arm/boot/dts/r8a7790.dtsi	2013-09-26 07:23:04.000000000 +0900
@@ -87,6 +87,13 @@
 		interrupts = <1 9 0xf04>;
 	};
 
+	thermal at e61f0000 {
+		compatible = "renesas,rcar-thermal";
+		reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
+		interrupt-parent = <&gic>;
+		interrupts = <0 69 4>;
+	};
+
 	gpio0: gpio at ffc40000 {
 		compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
 		reg = <0 0xffc40000 0 0x2c>;
--- 0001/arch/arm/mach-shmobile/clock-r8a7790.c
+++ work/arch/arm/mach-shmobile/clock-r8a7790.c	2013-09-26 07:24:37.000000000 +0900
@@ -272,6 +272,7 @@ static struct clk_lookup lookups[] = {
 	CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]),
 	CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]),
 	CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]),
+	CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
 	CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
 	CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]),
 	CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]),

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

* Re: [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
  2013-09-25 23:11 ` Magnus Damm
@ 2013-09-25 23:35   ` Simon Horman
  -1 siblings, 0 replies; 12+ messages in thread
From: Simon Horman @ 2013-09-25 23:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 08:11:19AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> 
> Hook up the single channel thermal sensor via DT
> on r8a7790. The information used by the platform
> device has been verified against the data sheet.
> 
> Signed-off-by: Magnus Damm <damm@opensource.se>

Hi Magnus,

I would prefer if this was split into two patches.
An SoC patch that updates clock-r8a7790.c.
And a DT patch which updates r8a7790.dtsi.

Thanks

> ---
> 
>  Written against renesas-devel-20130925
> 
>  arch/arm/boot/dts/r8a7790.dtsi         |    7 +++++++
>  arch/arm/mach-shmobile/clock-r8a7790.c |    1 +
>  2 files changed, 8 insertions(+)
> 
> --- 0001/arch/arm/boot/dts/r8a7790.dtsi
> +++ work/arch/arm/boot/dts/r8a7790.dtsi	2013-09-26 07:23:04.000000000 +0900
> @@ -87,6 +87,13 @@
>  		interrupts = <1 9 0xf04>;
>  	};
>  
> +	thermal@e61f0000 {
> +		compatible = "renesas,rcar-thermal";
> +		reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
> +		interrupt-parent = <&gic>;
> +		interrupts = <0 69 4>;
> +	};
> +
>  	gpio0: gpio@ffc40000 {
>  		compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
>  		reg = <0 0xffc40000 0 0x2c>;
> --- 0001/arch/arm/mach-shmobile/clock-r8a7790.c
> +++ work/arch/arm/mach-shmobile/clock-r8a7790.c	2013-09-26 07:24:37.000000000 +0900
> @@ -272,6 +272,7 @@ static struct clk_lookup lookups[] = {
>  	CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]),
>  	CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]),
>  	CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]),
> +	CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
>  	CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
>  	CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]),
>  	CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]),
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-09-25 23:35   ` Simon Horman
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Horman @ 2013-09-25 23:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 08:11:19AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> 
> Hook up the single channel thermal sensor via DT
> on r8a7790. The information used by the platform
> device has been verified against the data sheet.
> 
> Signed-off-by: Magnus Damm <damm@opensource.se>

Hi Magnus,

I would prefer if this was split into two patches.
An SoC patch that updates clock-r8a7790.c.
And a DT patch which updates r8a7790.dtsi.

Thanks

> ---
> 
>  Written against renesas-devel-20130925
> 
>  arch/arm/boot/dts/r8a7790.dtsi         |    7 +++++++
>  arch/arm/mach-shmobile/clock-r8a7790.c |    1 +
>  2 files changed, 8 insertions(+)
> 
> --- 0001/arch/arm/boot/dts/r8a7790.dtsi
> +++ work/arch/arm/boot/dts/r8a7790.dtsi	2013-09-26 07:23:04.000000000 +0900
> @@ -87,6 +87,13 @@
>  		interrupts = <1 9 0xf04>;
>  	};
>  
> +	thermal at e61f0000 {
> +		compatible = "renesas,rcar-thermal";
> +		reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
> +		interrupt-parent = <&gic>;
> +		interrupts = <0 69 4>;
> +	};
> +
>  	gpio0: gpio at ffc40000 {
>  		compatible = "renesas,gpio-r8a7790", "renesas,gpio-rcar";
>  		reg = <0 0xffc40000 0 0x2c>;
> --- 0001/arch/arm/mach-shmobile/clock-r8a7790.c
> +++ work/arch/arm/mach-shmobile/clock-r8a7790.c	2013-09-26 07:24:37.000000000 +0900
> @@ -272,6 +272,7 @@ static struct clk_lookup lookups[] = {
>  	CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]),
>  	CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]),
>  	CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]),
> +	CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
>  	CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
>  	CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]),
>  	CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]),
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
  2013-09-25 23:35   ` Simon Horman
@ 2013-09-25 23:43     ` Magnus Damm
  -1 siblings, 0 replies; 12+ messages in thread
From: Magnus Damm @ 2013-09-25 23:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 8:35 AM, Simon Horman <horms@verge.net.au> wrote:
> On Thu, Sep 26, 2013 at 08:11:19AM +0900, Magnus Damm wrote:
>> From: Magnus Damm <damm@opensource.se>
>>
>> Hook up the single channel thermal sensor via DT
>> on r8a7790. The information used by the platform
>> device has been verified against the data sheet.
>>
>> Signed-off-by: Magnus Damm <damm@opensource.se>
>
> Hi Magnus,
>
> I would prefer if this was split into two patches.
> An SoC patch that updates clock-r8a7790.c.
> And a DT patch which updates r8a7790.dtsi.

Sure, that's fine with me. I will do that from now on.

I believe that common clock framework will allow us to handle all
within a single dtsi patch.

Cheers,

/ magnus

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

* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-09-25 23:43     ` Magnus Damm
  0 siblings, 0 replies; 12+ messages in thread
From: Magnus Damm @ 2013-09-25 23:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 8:35 AM, Simon Horman <horms@verge.net.au> wrote:
> On Thu, Sep 26, 2013 at 08:11:19AM +0900, Magnus Damm wrote:
>> From: Magnus Damm <damm@opensource.se>
>>
>> Hook up the single channel thermal sensor via DT
>> on r8a7790. The information used by the platform
>> device has been verified against the data sheet.
>>
>> Signed-off-by: Magnus Damm <damm@opensource.se>
>
> Hi Magnus,
>
> I would prefer if this was split into two patches.
> An SoC patch that updates clock-r8a7790.c.
> And a DT patch which updates r8a7790.dtsi.

Sure, that's fine with me. I will do that from now on.

I believe that common clock framework will allow us to handle all
within a single dtsi patch.

Cheers,

/ magnus

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

* Re: [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
  2013-09-25 23:43     ` Magnus Damm
@ 2013-09-26  0:29       ` Simon Horman
  -1 siblings, 0 replies; 12+ messages in thread
From: Simon Horman @ 2013-09-26  0:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 08:43:46AM +0900, Magnus Damm wrote:
> On Thu, Sep 26, 2013 at 8:35 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Thu, Sep 26, 2013 at 08:11:19AM +0900, Magnus Damm wrote:
> >> From: Magnus Damm <damm@opensource.se>
> >>
> >> Hook up the single channel thermal sensor via DT
> >> on r8a7790. The information used by the platform
> >> device has been verified against the data sheet.
> >>
> >> Signed-off-by: Magnus Damm <damm@opensource.se>
> >
> > Hi Magnus,
> >
> > I would prefer if this was split into two patches.
> > An SoC patch that updates clock-r8a7790.c.
> > And a DT patch which updates r8a7790.dtsi.
> 
> Sure, that's fine with me. I will do that from now on.

Thanks. I'm trying to reduce dependencies/conflicts between
branches. I'm not sure how well it will pan out. But that is my aim
at the moment.

> I believe that common clock framework will allow us to handle all
> within a single dtsi patch.

Excellent.

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

* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-09-26  0:29       ` Simon Horman
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Horman @ 2013-09-26  0:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 26, 2013 at 08:43:46AM +0900, Magnus Damm wrote:
> On Thu, Sep 26, 2013 at 8:35 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Thu, Sep 26, 2013 at 08:11:19AM +0900, Magnus Damm wrote:
> >> From: Magnus Damm <damm@opensource.se>
> >>
> >> Hook up the single channel thermal sensor via DT
> >> on r8a7790. The information used by the platform
> >> device has been verified against the data sheet.
> >>
> >> Signed-off-by: Magnus Damm <damm@opensource.se>
> >
> > Hi Magnus,
> >
> > I would prefer if this was split into two patches.
> > An SoC patch that updates clock-r8a7790.c.
> > And a DT patch which updates r8a7790.dtsi.
> 
> Sure, that's fine with me. I will do that from now on.

Thanks. I'm trying to reduce dependencies/conflicts between
branches. I'm not sure how well it will pan out. But that is my aim
at the moment.

> I believe that common clock framework will allow us to handle all
> within a single dtsi patch.

Excellent.

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

* Re: [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
  2013-09-26  0:29       ` Simon Horman
@ 2013-09-26  6:10         ` Kuninori Morimoto
  -1 siblings, 0 replies; 12+ messages in thread
From: Kuninori Morimoto @ 2013-09-26  6:10 UTC (permalink / raw)
  To: linux-arm-kernel


Hi Simon, Magnus

> > >> Hook up the single channel thermal sensor via DT
> > >> on r8a7790. The information used by the platform
> > >> device has been verified against the data sheet.
> > >>
> > >> Signed-off-by: Magnus Damm <damm@opensource.se>
> > >
> > > Hi Magnus,
> > >
> > > I would prefer if this was split into two patches.
> > > An SoC patch that updates clock-r8a7790.c.
> > > And a DT patch which updates r8a7790.dtsi.
> > 
> > Sure, that's fine with me. I will do that from now on.
> 
> Thanks. I'm trying to reduce dependencies/conflicts between
> branches. I'm not sure how well it will pan out. But that is my aim
> at the moment.
> 
> > I believe that common clock framework will allow us to handle all
> > within a single dtsi patch.

About thermal on H2/M2 (= Gen2),
I am concerned about whether Gen1/Gen2 thermal chip have a compatible,
since H2 datasheet v0.05 <-> v0.6 seems have different register mapping,
and M2 is very different from Gen1.
Now, I'm confirming about it

Best regards
---
Kuninori Morimoto

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

* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-09-26  6:10         ` Kuninori Morimoto
  0 siblings, 0 replies; 12+ messages in thread
From: Kuninori Morimoto @ 2013-09-26  6:10 UTC (permalink / raw)
  To: linux-arm-kernel


Hi Simon, Magnus

> > >> Hook up the single channel thermal sensor via DT
> > >> on r8a7790. The information used by the platform
> > >> device has been verified against the data sheet.
> > >>
> > >> Signed-off-by: Magnus Damm <damm@opensource.se>
> > >
> > > Hi Magnus,
> > >
> > > I would prefer if this was split into two patches.
> > > An SoC patch that updates clock-r8a7790.c.
> > > And a DT patch which updates r8a7790.dtsi.
> > 
> > Sure, that's fine with me. I will do that from now on.
> 
> Thanks. I'm trying to reduce dependencies/conflicts between
> branches. I'm not sure how well it will pan out. But that is my aim
> at the moment.
> 
> > I believe that common clock framework will allow us to handle all
> > within a single dtsi patch.

About thermal on H2/M2 (= Gen2),
I am concerned about whether Gen1/Gen2 thermal chip have a compatible,
since H2 datasheet v0.05 <-> v0.6 seems have different register mapping,
and M2 is very different from Gen1.
Now, I'm confirming about it

Best regards
---
Kuninori Morimoto

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

* Re: [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
  2013-09-26  6:10         ` Kuninori Morimoto
@ 2013-10-21  1:17           ` Kuninori Morimoto
  -1 siblings, 0 replies; 12+ messages in thread
From: Kuninori Morimoto @ 2013-10-21  1:17 UTC (permalink / raw)
  To: linux-arm-kernel


Hi Simon, Magnus

> > > >> Hook up the single channel thermal sensor via DT
> > > >> on r8a7790. The information used by the platform
> > > >> device has been verified against the data sheet.
> > > >>
> > > >> Signed-off-by: Magnus Damm <damm@opensource.se>
> > > >
> > > > Hi Magnus,
> > > >
> > > > I would prefer if this was split into two patches.
> > > > An SoC patch that updates clock-r8a7790.c.
> > > > And a DT patch which updates r8a7790.dtsi.
> > > 
> > > Sure, that's fine with me. I will do that from now on.
> > 
> > Thanks. I'm trying to reduce dependencies/conflicts between
> > branches. I'm not sure how well it will pan out. But that is my aim
> > at the moment.
> > 
> > > I believe that common clock framework will allow us to handle all
> > > within a single dtsi patch.
> 
> About thermal on H2/M2 (= Gen2),
> I am concerned about whether Gen1/Gen2 thermal chip have a compatible,
> since H2 datasheet v0.05 <-> v0.6 seems have different register mapping,
> and M2 is very different from Gen1.
> Now, I'm confirming about it

Sorry, It seems my mistake.
H2 thermal seems no problem.

Best regards
---
Kuninori Morimoto

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

* [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device
@ 2013-10-21  1:17           ` Kuninori Morimoto
  0 siblings, 0 replies; 12+ messages in thread
From: Kuninori Morimoto @ 2013-10-21  1:17 UTC (permalink / raw)
  To: linux-arm-kernel


Hi Simon, Magnus

> > > >> Hook up the single channel thermal sensor via DT
> > > >> on r8a7790. The information used by the platform
> > > >> device has been verified against the data sheet.
> > > >>
> > > >> Signed-off-by: Magnus Damm <damm@opensource.se>
> > > >
> > > > Hi Magnus,
> > > >
> > > > I would prefer if this was split into two patches.
> > > > An SoC patch that updates clock-r8a7790.c.
> > > > And a DT patch which updates r8a7790.dtsi.
> > > 
> > > Sure, that's fine with me. I will do that from now on.
> > 
> > Thanks. I'm trying to reduce dependencies/conflicts between
> > branches. I'm not sure how well it will pan out. But that is my aim
> > at the moment.
> > 
> > > I believe that common clock framework will allow us to handle all
> > > within a single dtsi patch.
> 
> About thermal on H2/M2 (= Gen2),
> I am concerned about whether Gen1/Gen2 thermal chip have a compatible,
> since H2 datasheet v0.05 <-> v0.6 seems have different register mapping,
> and M2 is very different from Gen1.
> Now, I'm confirming about it

Sorry, It seems my mistake.
H2 thermal seems no problem.

Best regards
---
Kuninori Morimoto

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

end of thread, other threads:[~2013-10-21  1:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25 23:11 [PATCH] ARM: shmobile: Add r8a7790 thermal sensor DT device Magnus Damm
2013-09-25 23:11 ` Magnus Damm
2013-09-25 23:35 ` Simon Horman
2013-09-25 23:35   ` Simon Horman
2013-09-25 23:43   ` Magnus Damm
2013-09-25 23:43     ` Magnus Damm
2013-09-26  0:29     ` Simon Horman
2013-09-26  0:29       ` Simon Horman
2013-09-26  6:10       ` Kuninori Morimoto
2013-09-26  6:10         ` Kuninori Morimoto
2013-10-21  1:17         ` Kuninori Morimoto
2013-10-21  1:17           ` Kuninori Morimoto

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.