From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Tomasz Figa <tomasz.figa@gmail.com>
Cc: kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, m.szyprowski@samsung.com
Subject: Re: [PATCH] ARM: dts: Specify default clocks for Exynos4 FIMC devices
Date: Fri, 26 Sep 2014 13:01:10 +0200 [thread overview]
Message-ID: <54254776.7070803@samsung.com> (raw)
In-Reply-To: <5424900D.2070709@gmail.com>
Hi Tomasz,
On 25/09/14 23:58, Tomasz Figa wrote:
> On 10.09.2014 18:37, Sylwester Nawrocki wrote:
>> > The default mux and divider clocks are specified in device tree
>> > so that the FIMC devices in Exynos4210 and Exynos4x12 SoCs are
>> > clocked from recommended clock source and with maximum supported
>> > frequency. If needed these settings could be overrode in board
>> > specific dts files, however they are in practice optimal in most
>> > cases.
>> >
>> > Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>> > ---
>> > arch/arm/boot/dts/exynos4210.dtsi | 16 ++++++++++++++++
>> > arch/arm/boot/dts/exynos4x12.dtsi | 16 ++++++++++++++++
>> > 2 files changed, 32 insertions(+)
>> >
>> > diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi
>> > index 807bb5b..0969d2e 100644
>> > --- a/arch/arm/boot/dts/exynos4210.dtsi
>> > +++ b/arch/arm/boot/dts/exynos4210.dtsi
>> > @@ -154,18 +154,30 @@
>> > samsung,pix-limits = <4224 8192 1920 4224>;
>> > samsung,mainscaler-ext;
>> > samsung,cam-if;
>> > + assigned-clocks = <&clock CLK_MOUT_FIMC0>,
>> > + <&clock CLK_SCLK_FIMC0>;
>> > + assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
>> > + assigned-clock-rates = <0>, <160000000>;
>
> I wonder whether such settings shouldn't really be set up on a per-board
> basis.
>
> As Daniel already pointed, we have cases when MPLL frequency differs
> across boards, but we might also have boards that differ in power budget
> and so having different desired operating frequencies for various IP blocks.
>
> What do you think?
This patch provides sane default values for Exynos4210, MPLL is recommended
clock source for FIMC devices. If any other clock frequency is needed for
selected boards the clocks setup could be simply overwritten in board dts
file. Otherwise similar changes would have to be done in each board dts.
Alternatively I could split it and leave only parent clock assignment in
SoC dts, moving assigned-clock-rates properties to board dts. I'm going
to leave the functional clock frequency setting in the driver as it is done
now, and to just modify the fallback to driver data, to have also
'assigned-clock-rates' considered in the driver.
So parent clock assignment independently of the IP block driver in dts,
and the functional clock frequency set in the driver from driver data.
--
Regards,
Sylwester
WARNING: multiple messages have this Message-ID (diff)
From: s.nawrocki@samsung.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: dts: Specify default clocks for Exynos4 FIMC devices
Date: Fri, 26 Sep 2014 13:01:10 +0200 [thread overview]
Message-ID: <54254776.7070803@samsung.com> (raw)
In-Reply-To: <5424900D.2070709@gmail.com>
Hi Tomasz,
On 25/09/14 23:58, Tomasz Figa wrote:
> On 10.09.2014 18:37, Sylwester Nawrocki wrote:
>> > The default mux and divider clocks are specified in device tree
>> > so that the FIMC devices in Exynos4210 and Exynos4x12 SoCs are
>> > clocked from recommended clock source and with maximum supported
>> > frequency. If needed these settings could be overrode in board
>> > specific dts files, however they are in practice optimal in most
>> > cases.
>> >
>> > Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>> > ---
>> > arch/arm/boot/dts/exynos4210.dtsi | 16 ++++++++++++++++
>> > arch/arm/boot/dts/exynos4x12.dtsi | 16 ++++++++++++++++
>> > 2 files changed, 32 insertions(+)
>> >
>> > diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi
>> > index 807bb5b..0969d2e 100644
>> > --- a/arch/arm/boot/dts/exynos4210.dtsi
>> > +++ b/arch/arm/boot/dts/exynos4210.dtsi
>> > @@ -154,18 +154,30 @@
>> > samsung,pix-limits = <4224 8192 1920 4224>;
>> > samsung,mainscaler-ext;
>> > samsung,cam-if;
>> > + assigned-clocks = <&clock CLK_MOUT_FIMC0>,
>> > + <&clock CLK_SCLK_FIMC0>;
>> > + assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
>> > + assigned-clock-rates = <0>, <160000000>;
>
> I wonder whether such settings shouldn't really be set up on a per-board
> basis.
>
> As Daniel already pointed, we have cases when MPLL frequency differs
> across boards, but we might also have boards that differ in power budget
> and so having different desired operating frequencies for various IP blocks.
>
> What do you think?
This patch provides sane default values for Exynos4210, MPLL is recommended
clock source for FIMC devices. If any other clock frequency is needed for
selected boards the clocks setup could be simply overwritten in board dts
file. Otherwise similar changes would have to be done in each board dts.
Alternatively I could split it and leave only parent clock assignment in
SoC dts, moving assigned-clock-rates properties to board dts. I'm going
to leave the functional clock frequency setting in the driver as it is done
now, and to just modify the fallback to driver data, to have also
'assigned-clock-rates' considered in the driver.
So parent clock assignment independently of the IP block driver in dts,
and the functional clock frequency set in the driver from driver data.
--
Regards,
Sylwester
next prev parent reply other threads:[~2014-09-26 11:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-10 16:37 [PATCH] ARM: dts: Specify default clocks for Exynos4 FIMC devices Sylwester Nawrocki
2014-09-10 16:37 ` Sylwester Nawrocki
2014-09-18 19:27 ` Daniel Drake
2014-09-18 19:27 ` Daniel Drake
2014-09-25 18:05 ` Sylwester Nawrocki
2014-09-25 18:05 ` Sylwester Nawrocki
2014-09-25 19:44 ` Daniel Drake
2014-09-25 19:44 ` Daniel Drake
2014-09-25 20:47 ` Daniel Drake
2014-09-25 20:47 ` Daniel Drake
2014-09-18 23:53 ` Daniel Drake
2014-09-18 23:53 ` Daniel Drake
2014-09-25 18:17 ` Sylwester Nawrocki
2014-09-25 18:17 ` Sylwester Nawrocki
2014-09-25 21:58 ` Tomasz Figa
2014-09-25 21:58 ` Tomasz Figa
2014-09-26 11:01 ` Sylwester Nawrocki [this message]
2014-09-26 11:01 ` Sylwester Nawrocki
2014-09-26 13:24 ` Tomasz Figa
2014-09-26 13:24 ` Tomasz Figa
2014-09-26 13:45 ` Sylwester Nawrocki
2014-09-26 13:45 ` Sylwester Nawrocki
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=54254776.7070803@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=tomasz.figa@gmail.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.