From: Thierry Reding <thierry.reding@gmail.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
mike.turquette@linaro.org,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH 1/2] drm/tegra: Set the dsi lp clk parent and rate
Date: Tue, 23 Sep 2014 09:22:05 +0200 [thread overview]
Message-ID: <20140923072204.GJ30514@ulmo> (raw)
In-Reply-To: <20140922174652.GP3290@leverpostej>
[-- Attachment #1.1: Type: text/plain, Size: 3180 bytes --]
On Mon, Sep 22, 2014 at 06:46:52PM +0100, Mark Rutland wrote:
> On Fri, Sep 19, 2014 at 08:53:48PM +0100, Sean Paul wrote:
> > Per NVidia, this clock rate should be around 70MHz in
> > order to properly sample reads on data lane 0. In order
> > to achieve this rate, we need to reparent the clock from
> > clk_m which can only achieve 12MHz. Add parent_lp to the
> > dts bindings and set the parent & rate on init.
> >
> > Signed-off-by: Sean Paul <seanpaul@chromium.org>
> > ---
> > .../devicetree/bindings/gpu/nvidia,tegra20-host1x.txt | 10 ++++++++--
> > drivers/gpu/drm/tegra/dsi.c | 18 ++++++++++++++++++
> > drivers/gpu/drm/tegra/dsi.h | 3 +++
> > 3 files changed, 29 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt b/Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt
> > index b48f4ef..fef2918 100644
> > --- a/Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt
> > +++ b/Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt
> > @@ -191,6 +191,10 @@ of the following host1x client modules:
> > - nvidia,hpd-gpio: specifies a GPIO used for hotplug detection
> > - nvidia,edid: supplies a binary EDID blob
> > - nvidia,panel: phandle of a display panel
> > + - clock-names: Can include the following entries:
> > + - lp_parent: The parent clock for lp
> > + - clocks: Must contain an entry for each optional entry in clock-names.
> > + See ../clocks/clock-bindings.txt for details.
>
> Did this driver previously acquire clocks?
>
> What order or names did it expect if so?
This is badly placed. There are clocks and clock-names properties in a
"Required properties" section above this hunk which lists all the clocks
that this module uses. Presumably this was added to the optional section
because it isn't always needed.
> > - sor: serial output resource
> >
> > @@ -360,8 +364,10 @@ Example:
> > compatible = "nvidia,tegra20-dsi";
> > reg = <0x54300000 0x00040000>;
> > clocks = <&tegra_car TEGRA20_CLK_DSI>,
> > - <&tegra_car TEGRA20_CLK_PLL_D_OUT0>;
> > - clock-names = "dsi", "parent";
> > + <&tegra_car TEGRA124_CLK_DSIALP>,
> > + <&tegra_car TEGRA20_CLK_PLL_D_OUT0>,
> > + <&tegra_car TEGRA124_CLK_PLL_P>;
> > + clock-names = "dsi", "lp", "parent", "lp_parent";
>
> Please document _all_ the names you expect.
>
> What exactly are these two new clocks?
"lp" isn't actually new, it's just missing from the example.
> Is this all the clocks that feed into the DSI block? Are any of these
> not directly wired to the DSI block?
>
> Why exactly do you need to reparent it to this particular clock, and why
> do you need a reference here in order to do so, given it presumably
> doesn't feed directly into the DSI block?
It seems like the hardware default is to use a parent clock unsuitable
for the DSI low-power mode, but as discussed elsewhere this should be
fixed in the clock driver where we already have a way to statically set
the parent clock at boot time.
Thierry
[-- Attachment #1.2: Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2014-09-23 7:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 19:53 [PATCH 1/2] drm/tegra: Set the dsi lp clk parent and rate Sean Paul
2014-09-19 19:53 ` [PATCH 2/2] ARM: tegra: Add lp_parent clock to dsi Sean Paul
[not found] ` <1411156429-19797-1-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-09-22 7:28 ` [PATCH 1/2] drm/tegra: Set the dsi lp clk parent and rate Andrzej Hajda
2014-09-22 9:00 ` Lucas Stach
2014-09-22 10:11 ` Thierry Reding
2014-10-08 15:11 ` Peter De Schrijver
[not found] ` <20141008151155.GC4809-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2014-10-08 16:03 ` Sean Paul
2014-09-22 17:46 ` Mark Rutland
2014-09-23 7:22 ` Thierry Reding [this message]
2014-09-27 20:05 ` Mike Turquette
2014-09-29 8:17 ` Thierry Reding
2014-09-22 10:07 ` Thierry Reding
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=20140923072204.GJ30514@ulmo \
--to=thierry.reding@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mike.turquette@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;
as well as URLs for NNTP newsgroup(s).