* [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
@ 2014-11-05 10:04 Geert Uytterhoeven
2014-11-10 0:57 ` Simon Horman
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-11-05 10:04 UTC (permalink / raw)
To: linux-sh
According to the datasheet, the operating clock for IIC0 is the HPP
(RT Peri) clock, not the SUB (Peri) clock. Both clocks run at the same
speed (50 Mhz).
This is consistent with IIC0 being located in the A4R PM domain, and
IIC1 in the A3SP PM domain.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/boot/dts/r8a7740.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 20d2b56773fbf069..e2c9496c2c325a1f 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -497,7 +497,7 @@
clocks = <&cpg_clocks R8A7740_CLK_S>,
<&cpg_clocks R8A7740_CLK_S>, <&sub_clk>,
<&cpg_clocks R8A7740_CLK_B>,
- <&sub_clk>, <&sub_clk>,
+ <&cpg_clocks R8A7740_CLK_HPP>, <&sub_clk>,
<&cpg_clocks R8A7740_CLK_B>;
#clock-cells = <1>;
renesas,clock-indices = <
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
2014-11-05 10:04 [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Geert Uytterhoeven
@ 2014-11-10 0:57 ` Simon Horman
2014-11-12 0:57 ` Simon Horman
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-11-10 0:57 UTC (permalink / raw)
To: linux-sh
On Wed, Nov 05, 2014 at 11:04:34AM +0100, Geert Uytterhoeven wrote:
> According to the datasheet, the operating clock for IIC0 is the HPP
> (RT Peri) clock, not the SUB (Peri) clock. Both clocks run at the same
> speed (50 Mhz).
>
> This is consistent with IIC0 being located in the A4R PM domain, and
> IIC1 in the A3SP PM domain.
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
2014-11-05 10:04 [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Geert Uytterhoeven
2014-11-10 0:57 ` Simon Horman
@ 2014-11-12 0:57 ` Simon Horman
2014-11-12 2:25 ` Simon Horman
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-11-12 0:57 UTC (permalink / raw)
To: linux-sh
On Mon, Nov 10, 2014 at 09:57:46AM +0900, Simon Horman wrote:
> On Wed, Nov 05, 2014 at 11:04:34AM +0100, Geert Uytterhoeven wrote:
> > According to the datasheet, the operating clock for IIC0 is the HPP
> > (RT Peri) clock, not the SUB (Peri) clock. Both clocks run at the same
> > speed (50 Mhz).
> >
> > This is consistent with IIC0 being located in the A4R PM domain, and
> > IIC1 in the A3SP PM domain.
>
> Thanks, I have queued this up.
Hi Geert,
As this appears to be a bug fix I would like to accompany this patch with
some text describing when the problem was introduced and what its effects
are. In short a rough guide to if it should be applied to -stable. To that
end I prepared the following which I would appreciate your feedback on.
* ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
This problem was introduced when clock support was added DT for the
r8a7740 by d9ffd583bf345e2ea ("ARM: shmobile: r8a7740: add SoC clocks to
DTS") in v3.17.
I am not aware of any run-time effect of this problem.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
2014-11-05 10:04 [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Geert Uytterhoeven
2014-11-10 0:57 ` Simon Horman
2014-11-12 0:57 ` Simon Horman
@ 2014-11-12 2:25 ` Simon Horman
2014-11-12 9:09 ` Geert Uytterhoeven
2014-11-12 11:04 ` Geert Uytterhoeven
4 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-11-12 2:25 UTC (permalink / raw)
To: linux-sh
On Wed, Nov 12, 2014 at 09:57:02AM +0900, Simon Horman wrote:
> On Mon, Nov 10, 2014 at 09:57:46AM +0900, Simon Horman wrote:
> > On Wed, Nov 05, 2014 at 11:04:34AM +0100, Geert Uytterhoeven wrote:
> > > According to the datasheet, the operating clock for IIC0 is the HPP
> > > (RT Peri) clock, not the SUB (Peri) clock. Both clocks run at the same
> > > speed (50 Mhz).
> > >
> > > This is consistent with IIC0 being located in the A4R PM domain, and
> > > IIC1 in the A3SP PM domain.
> >
> > Thanks, I have queued this up.
>
> Hi Geert,
>
> As this appears to be a bug fix I would like to accompany this patch with
> some text describing when the problem was introduced and what its effects
> are. In short a rough guide to if it should be applied to -stable. To that
> end I prepared the following which I would appreciate your feedback on.
>
> * ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
>
> This problem was introduced when clock support was added DT for the
> r8a7740 by d9ffd583bf345e2ea ("ARM: shmobile: r8a7740: add SoC clocks to
> DTS") in v3.17.
s/v3.17/v3.18-rc1/
> I am not aware of any run-time effect of this problem.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
2014-11-05 10:04 [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Geert Uytterhoeven
` (2 preceding siblings ...)
2014-11-12 2:25 ` Simon Horman
@ 2014-11-12 9:09 ` Geert Uytterhoeven
2014-11-12 11:04 ` Geert Uytterhoeven
4 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-11-12 9:09 UTC (permalink / raw)
To: linux-sh
Hi Simon,
On Wed, Nov 12, 2014 at 3:25 AM, Simon Horman <horms@verge.net.au> wrote:
> On Wed, Nov 12, 2014 at 09:57:02AM +0900, Simon Horman wrote:
>> On Mon, Nov 10, 2014 at 09:57:46AM +0900, Simon Horman wrote:
>> > On Wed, Nov 05, 2014 at 11:04:34AM +0100, Geert Uytterhoeven wrote:
>> > > According to the datasheet, the operating clock for IIC0 is the HPP
>> > > (RT Peri) clock, not the SUB (Peri) clock. Both clocks run at the same
>> > > speed (50 Mhz).
>> > >
>> > > This is consistent with IIC0 being located in the A4R PM domain, and
>> > > IIC1 in the A3SP PM domain.
>>
>> As this appears to be a bug fix I would like to accompany this patch with
>> some text describing when the problem was introduced and what its effects
>> are. In short a rough guide to if it should be applied to -stable. To that
>> end I prepared the following which I would appreciate your feedback on.
>>
>> * ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
>>
>> This problem was introduced when clock support was added DT for the
>> r8a7740 by d9ffd583bf345e2ea ("ARM: shmobile: r8a7740: add SoC clocks to
>> DTS") in v3.17.
>
> s/v3.17/v3.18-rc1/
Correct, thanks!
>> I am not aware of any run-time effect of this problem.
Indeed. Both clocks run at the same frequency, and TTBOMK the HPP clock
cannot be disabled (is that correct?), so the IIC0 clock cannot be inadvertently
be disabled because the common part is disabled through another clock.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
2014-11-05 10:04 [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Geert Uytterhoeven
` (3 preceding siblings ...)
2014-11-12 9:09 ` Geert Uytterhoeven
@ 2014-11-12 11:04 ` Geert Uytterhoeven
4 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-11-12 11:04 UTC (permalink / raw)
To: linux-sh
On Wed, Nov 12, 2014 at 10:09 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
>>> I am not aware of any run-time effect of this problem.
>
> Indeed. Both clocks run at the same frequency, and TTBOMK the HPP clock
> cannot be disabled (is that correct?), so the IIC0 clock cannot be inadvertently
> be disabled because the common part is disabled through another clock.
I have to correct myself: this patch does fix something visible.
With CONFIG_DEBUG_LL=y, there's no longer a periof of garbage output
on the serial console, when the i2c driver disables the IIC0 clock.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock
2014-11-13 1:20 [GIT PULL] Renesas ARM Based SoC DT Fixes for v3.18 Simon Horman
@ 2014-11-13 1:20 ` Simon Horman
0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2014-11-13 1:20 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
According to the datasheet, the operating clock for IIC0 is the HPP
(RT Peri) clock, not the SUB (Peri) clock. Both clocks run at the same
speed (50 Mhz).
This is consistent with IIC0 being located in the A4R PM domain, and
IIC1 in the A3SP PM domain.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a7740.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index d46c213..eed697a 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -433,7 +433,7 @@
clocks = <&cpg_clocks R8A7740_CLK_S>,
<&cpg_clocks R8A7740_CLK_S>, <&sub_clk>,
<&cpg_clocks R8A7740_CLK_B>,
- <&sub_clk>, <&sub_clk>,
+ <&cpg_clocks R8A7740_CLK_HPP>, <&sub_clk>,
<&cpg_clocks R8A7740_CLK_B>;
#clock-cells = <1>;
renesas,clock-indices = <
--
2.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-11-13 1:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 10:04 [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Geert Uytterhoeven
2014-11-10 0:57 ` Simon Horman
2014-11-12 0:57 ` Simon Horman
2014-11-12 2:25 ` Simon Horman
2014-11-12 9:09 ` Geert Uytterhoeven
2014-11-12 11:04 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2014-11-13 1:20 [GIT PULL] Renesas ARM Based SoC DT Fixes for v3.18 Simon Horman
2014-11-13 1:20 ` [PATCH 2/2] ARM: shmobile: r8a7740 dtsi: Correct IIC0 parent clock Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox