From: Tomasz Figa <t.figa@samsung.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Leela Krishna Amudala <l.krishna@samsung.com>,
linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
dianders@chromium.org, jg1.han@samsung.com
Subject: Re: [PATCH 2/3] ARM: exynos5420: dt: add clock entries to watchdog node
Date: Wed, 24 Jul 2013 13:12:57 +0200 [thread overview]
Message-ID: <1374683930.AViQJCJKdW@amdc1227> (raw)
In-Reply-To: <CAK9yfHy8FY6gaKoU+v5UVOO1TRor7-TMpqPKXyN3gfvy0vXYVA@mail.gmail.com>
On Wednesday 24 of July 2013 15:31:43 Sachin Kamat wrote:
> Hi Tomasz,
>
> On 24 July 2013 15:24, Tomasz Figa <t.figa@samsung.com> wrote:
> > Hi Sachin,
> >
> > On Wednesday 24 of July 2013 15:18:26 Sachin Kamat wrote:
> >> Hi Leela,
> >>
> >> On 24 July 2013 15:08, Leela Krishna Amudala <l.krishna@samsung.com>
> >
> > wrote:
> >> > This patch adds clock entries to watchdog node for exynos5420
> >> > as per the common clock framework of exynos5420
> >> >
> >> > Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
> >> > Reviewed-by: Doug Anderson <dianders@chromium.org>
> >> > Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
> >> > ---
> >> >
> >> > arch/arm/boot/dts/exynos5420.dtsi | 6 ++++++
> >> > 1 file changed, 6 insertions(+)
> >> >
> >> > diff --git a/arch/arm/boot/dts/exynos5420.dtsi
> >> > b/arch/arm/boot/dts/exynos5420.dtsi index 8c54c4b..e1d2d20 100644
> >> > --- a/arch/arm/boot/dts/exynos5420.dtsi
> >> > +++ b/arch/arm/boot/dts/exynos5420.dtsi
> >> > @@ -145,4 +145,10 @@
> >> >
> >> > clocks = <&clock 260>, <&clock 131>;
> >> > clock-names = "uart", "clk_uart_baud0";
> >> >
> >> > };
> >> >
> >> > +
> >> > + watchdog {
> >> > + clocks = <&clock 316>;
> >> > + clock-names = "watchdog";
> >> > + status = "okay";
> >>
> >> Generally you do "okay" in specific board dts files.
> >
> > Not necessarily. The status property should be set to okay whenever the
> > device represented by such node can already work with given set of
> > information (properties).
> >
> > Given the fact that watchdog driver does not require any board specific
> > information, it can be instantiated regardless of the board.
>
> Yes you are right. But I was thinking of keeping this (enabling) as an
> option at the board level.
> We do this for some of the other IPs too where even though we have all
> the properties we keep them disabled.
Yes and this is wrong. Device tree is only a way to list all the hardware
present on particular platform. You don't define which components are used
or not depending on use case, but rather all the hardware that can be used
on given board should be enabled on DT level.
To illustrate the problem please consider that in the end, a dtb file will
be fused into board ROM (or at most flash memory) and passed to the kernel
by the bootloader. If you disable some hardware on DT level even if it can
be physically used on the board, there will be no way to reenable it, if
some user wanted to use it, because that would require editing the fused
dtb.
Best regards,
Tomasz
next prev parent reply other threads:[~2013-07-24 11:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 9:38 [PATCH 0/3] parse watchdog node to read PMU registers addresses Leela Krishna Amudala
2013-07-24 9:38 ` [PATCH 1/3] watchdog: s3c2410_wdt: parse watchdog dt node to read PMU registers adresses Leela Krishna Amudala
2013-07-24 12:39 ` Kukjin Kim
2013-07-25 10:27 ` Tomasz Figa
2013-07-26 0:32 ` Doug Anderson
2013-08-10 21:32 ` Olof Johansson
2013-07-24 9:38 ` [PATCH 2/3] ARM: exynos5420: dt: add clock entries to watchdog node Leela Krishna Amudala
2013-07-24 9:48 ` Sachin Kamat
2013-07-24 9:54 ` Tomasz Figa
2013-07-24 10:01 ` Sachin Kamat
2013-07-24 10:44 ` Leela Krishna Amudala
2013-07-24 11:12 ` Tomasz Figa [this message]
2013-07-24 11:21 ` Sachin Kamat
2013-07-24 11:56 ` Kukjin Kim
2013-07-24 14:09 ` Tomasz Figa
2013-07-24 14:52 ` Sylwester Nawrocki
2013-07-24 15:23 ` Tomasz Figa
2013-07-24 14:14 ` Tomasz Figa
2013-07-25 18:18 ` Stephen Warren
2013-07-24 9:38 ` [PATCH 3/3] ARM: dts: exynos: add PMU registers addresses and mask bit " Leela Krishna Amudala
2013-07-24 9:46 ` Sachin Kamat
2013-07-24 10:54 ` Leela Krishna Amudala
2013-07-24 11:00 ` Sachin Kamat
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=1374683930.AViQJCJKdW@amdc1227 \
--to=t.figa@samsung.com \
--cc=dianders@chromium.org \
--cc=jg1.han@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=l.krishna@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=sachin.kamat@linaro.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