From: Rob Herring <robh@kernel.org>
To: Jyri Sarha <jsarha@ti.com>
Cc: devicetree@vger.kernel.org, tony@atomide.com,
dri-devel@lists.freedesktop.org, peter.ujfalusi@ti.com,
tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com,
bcousson@baylibre.com
Subject: Re: [PATCH 2/4] drm/tilcdc: Add blue-and-red-wiring -device tree property
Date: Thu, 18 Aug 2016 14:17:39 -0500 [thread overview]
Message-ID: <20160818191739.GA23056@rob-hp-laptop> (raw)
In-Reply-To: <9c5bd87d77527aa7a88ab0c006387ed565606c8e.1471334845.git.jsarha@ti.com>
On Tue, Aug 16, 2016 at 12:24:28PM +0300, Jyri Sarha wrote:
> Add "blue-and-red-wiring"-device tree property and update devicetree
> binding document. The red and blue components are reversed between 24
> and 16 bit modes on am335x LCDC output pins. To get 24 RGB format the
> red and blue wires has to be crossed and this in turn causes 16 colors
> output to be in BGR format. With straight wiring the 16 color is RGB
> and 24 bit is BGR. The new property describes whether the red and blue
> wires are crossed or not. The am335x-evm has the wires going to LCD
> crossed and that is chosen to be the default mode if
> "blue-and-red-wiring"-property is not found.
>
> For more details see section 3.1.1 in AM335x Silicon Errata:
> http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360
>
> Signed-off-by: Jyri Sarha <jsarha@ti.com>
> ---
> .../devicetree/bindings/display/tilcdc/tilcdc.txt | 12 ++++++
> drivers/gpu/drm/tilcdc/tilcdc_drv.c | 44 ++++++++++++++++++++++
> drivers/gpu/drm/tilcdc/tilcdc_drv.h | 4 ++
> drivers/gpu/drm/tilcdc/tilcdc_plane.c | 9 ++---
> 4 files changed, 63 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt b/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt
> index 6efa4c5..992803b 100644
> --- a/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt
> +++ b/Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt
> @@ -17,6 +17,8 @@ Optional properties:
> the lcd controller.
> - max-pixelclock: The maximum pixel clock that can be supported
> by the lcd controller in KHz.
> + - blue-and-red-wiring: Either "crossed" or "straight", if not present
> + crossed wiring is assumed for dtb backward compatibility. [1]
Just do a boolean and restrict it to a particular compatible string so
we don't have to carry it forever on new parts.
Rob
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-08-18 19:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 9:24 [PATCH 0/4] drm/tilcdc: Address LCDC rev 2 color errata Jyri Sarha
2016-08-16 9:24 ` [PATCH 1/4] drm/tilcdc: Remove drm_helper_disable_unused_functions() call Jyri Sarha
2016-08-16 9:24 ` [PATCH 2/4] drm/tilcdc: Add blue-and-red-wiring -device tree property Jyri Sarha
2016-08-18 19:17 ` Rob Herring [this message]
2016-08-19 11:48 ` Jyri Sarha
2016-08-16 9:24 ` [PATCH 3/4] drm/tilcdc: Choose console BPP that supports RGB Jyri Sarha
2016-08-16 9:24 ` [PATCH 4/4] ARM: dts: am335x-boneblack: Convert BGR from LCDC to RGB in tda19988 Jyri Sarha
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=20160818191739.GA23056@rob-hp-laptop \
--to=robh@kernel.org \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jsarha@ti.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=peter.ujfalusi@ti.com \
--cc=tomi.valkeinen@ti.com \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox