From: Pawel Moll <pawel.moll@arm.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v7 1/2] video: ARM CLCD: Add DT support
Date: Mon, 23 Jun 2014 14:13:57 +0000 [thread overview]
Message-ID: <1403532837.3804.29.camel@hornet> (raw)
In-Reply-To: <20140620170901.GA12059@leverpostej>
On Fri, 2014-06-20 at 18:09 +0100, Mark Rutland wrote:
> > +- clocks-names: should contain "clcdclk" and "apb_pclk"
>
> s/clocks-names/clock-names/
Haha - it took quite a few patch revisions to spot this one, thanks!
> > +
> > +- clocks: contains phandle and clock specifier pairs for the entries
> > + in the clock-names property. See
> > + Documentation/devicetree/binding/clock/clock-bindings.txt
> > +
> > +Optional properties:
> > +
> > +- arm,pl11x,framebuffer-base: a pair of two 32-bit values, address and size,
> > + defining the framebuffer that must be used; if not present, the
> > + framebuffer may be located anywhere in the memory
>
> The name is confusing: this is a base _and_ size.
True. Can split it into two -base and -size or rename it into
framebuffer or video-memory.
> When should this be used, and what is valid to point it at?
When the hardware design determines the address the memory transactions
must be issued at. This is aimed at a situation (allegedly not
impossible) when the memory map from the CLCD's point of view is
different from the CPU's one (eg. the video memory is mapped at xxx for
the CPU and yyy for the CLCD).
> How does this play with memory carveouts (CMA, reserved-memory)?
It doesn't, and wasn't intended to (the original version of the binding
was trying to do something like reserved-memory before it was defined),
but someone managed to convince me not to do this, if it's a "low level"
feature.
I guess I can be re-convinced (again).
> > +- max-memory-bandwidth: maximum bandwidth in bytes per second that the
> > + cell's memory interface can handle
>
> When should I set this, given it is optional?
When there is a (significant) limitation of the bandwidth available for
the cell's memory interface. One will either be told by the soc guys or
will figure it out in the hard way, as we did :-(
> > +
> > +Required sub-nodes:
> > +
> > +- port: describes LCD panel signals, following the common binding
> > + for video transmitter interfaces; see
> > + Documentation/devicetree/bindings/media/video-interfaces.txt;
> > + when it is a TFT panel, the port's endpoint must define the
> > + following property:
> > +
> > + - arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,
> > + defining the way CLD pads are wired up; this implicitly
> > + defines available color modes, for example:
> > + - PL111 TFT 4:4:4 panel:
> > + arm,pl11x,tft-r0g0b0-pads = <4 15 20>;
> > + - PL110 TFT (1:)5:5:5 panel:
> > + arm,pl11x,tft-r0g0b0-pads = <1 7 13>;
> > + - PL111 TFT (1:)5:5:5 panel:
> > + arm,pl11x,tft-r0g0b0-pads = <3 11 19>;
> > + - PL111 TFT 5:6:5 panel:
> > + arm,pl11x,tft-r0g0b0-pads = <3 10 19>;
> > + - PL110 and PL111 TFT 8:8:8 panel:
> > + arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
> > + - PL110 and PL111 TFT 8:8:8 panel, R & B components swapped:
> > + arm,pl11x,tft-r0g0b0-pads = <16 8 0>;
>
> I'm somewhat lost trying to figure out this mapping. Am I not looking at
> this in the right way, or is there any documentation which makes this
> clearer?
Yeah, looking at this now, it definitely needs some more explanation.
Something like this?
First value contains index of the "CLD" external pin (pad)
used as R0 (first bit of the red component), second value
index of the pad used as G0, third value index of the pad
used as B0, see also "LCD panel signal multiplexing details"
paragraph in the PL11x Technical Reference Manuals.
Pawel
next prev parent reply other threads:[~2014-06-23 14:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 15:21 [PATCH v7 1/2] video: ARM CLCD: Add DT support Pawel Moll
2014-06-17 15:21 ` [PATCH v7 2/2] ARM: vexpress: Add CLCD Device Tree properties Pawel Moll
2014-06-20 17:09 ` [PATCH v7 1/2] video: ARM CLCD: Add DT support Mark Rutland
2014-06-23 14:13 ` Pawel Moll [this message]
2014-06-23 14:55 ` [PATCH v8 " Pawel Moll
2014-06-23 14:55 ` [PATCH v2 2/2] ARM: vexpress: Add CLCD Device Tree properties Pawel Moll
2014-06-23 15:43 ` [PATCH v7 1/2] video: ARM CLCD: Add DT support Rob Herring
2014-06-23 15:59 ` Pawel Moll
2014-06-23 17:56 ` Rob Herring
2014-06-24 11:54 ` Pawel Moll
2014-06-20 22:27 ` Peter Maydell
2014-06-23 13:52 ` Pawel Moll
2014-06-23 14:10 ` Russell King - ARM Linux
2014-06-23 14:23 ` Pawel Moll
2014-06-23 11:04 ` Tomi Valkeinen
2014-06-23 13:47 ` Pawel Moll
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=1403532837.3804.29.camel@hornet \
--to=pawel.moll@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).