[lkml]   [2018]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 2/5] drm: bridge: add API to query the expected input formats of bridges
On 2018-04-04 15:07, Laurent Pinchart wrote:
> First of all, thank you for the patch. This generates more discussion than I
> had anticipated, which is both good and bad. I'll comment through the e-mail,
> and try to explain both my initial idea, and also where it could lead us.


Thank you for the long interesting mail! I will read it again, but my
immediate reaction is that I am not the man to attempt anything heavier
than static format information in drm bridges, and that I will hold off
any further work until some consensus has been reached.

> Finally, still regarding Peter's case, the decision to output RGB565 instead
> of RGB888 (which the LVDS encoder expects) is due to PCB routing between the
> display controller and the LVDS encoder. This isn't a property of the LVDS
> encoder or the display controller, but of their hardware connection. This
> patch series uses a DT property in the LVDS encoder DT node to convey that
> information, but wouldn't it be equally correct (or incorrect :-)) to instead
> use a DT property in the display controller DT node ?

Right, it might even be more correct to do it there? Thinking about it, I
have this in the DT

#include "sama5d3_lcd.dtsi"

&hlcdc {
hlcdc-display-controller {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>;

port@0 {
hlcdc_output: endpoint {
remote-endpoint = <&lvds_encoder_input>;

Where the &pinctrl_lcd_rgb565 handle tells the chip to not even bother
routing all of the rgb888 signals to pins and thus not waste pins that
are in fact used for other things. Maybe it is possible for the hlcdc
driver to look at that info and suggest rgb565 instead of rgb888 without
anything further in the DT? But maybe it's difficult to peek into pinctrl
bindings like that?


 \ /
  Last update: 2018-04-04 16:41    [W:0.091 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site