Re: [EXT] Re: [PATCH 1/2] dt-bindings: display: panel: Add support for Raydium RM67191 panel

From: Robert Chiras
Date: Fri Jun 14 2019 - 09:44:53 EST


Hi Fabio,

On Vi, 2019-06-14 at 09:59 -0300, Fabio Estevam wrote:
> On Fri, Jun 14, 2019 at 8:53 AM Robert Chiras <robert.chiras@xxxxxxx>
> wrote:
> >
> >
> > Add dt-bindings documentation for Raydium RM67191 DSI panel.
> >
> > Signed-off-by: Robert Chiras <robert.chiras@xxxxxxx>
> > ---
> > Â.../bindings/display/panel/raydium,rm67191.txtÂÂÂÂÂ| 42
> > ++++++++++++++++++++++
> > Â1 file changed, 42 insertions(+)
> > Âcreate mode 100644
> > Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
> >
> > diff --git
> > a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.t
> > xt
> > b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.t
> > xt
> > new file mode 100644
> > index 0000000..5a6268d
> > --- /dev/null
> > +++
> > b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.t
> > xt
> > @@ -0,0 +1,42 @@
> > +Raydium RM67171 OLED LCD panel with MIPI-DSI protocol
> > +
> > +Required properties:
> > +- compatible:ÂÂÂÂÂÂÂÂÂÂ"raydium,rm67191"
> > +- reg:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvirtual channel for MIPI-DSI protocol
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂmust be <0>
> > +- dsi-lanes:ÂÂÂÂÂÂÂÂÂÂÂnumber of DSI lanes to be used
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂmust be <3> or <4>
> > +- port:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂinput port node with endpoint definition as
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂdefined in
> > Documentation/devicetree/bindings/graph.txt;
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂthe input port should be connected to a
> > MIPI-DSI device
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂdriver
> > +
> > +Optional properties:
> > +- reset-gpio:ÂÂÂÂÂÂÂÂÂÂa GPIO spec for the RST_B GPIO pin
> reset-gpios (with the s in the end) is the recommendation.
>
> >
> > +- display-timings:ÂÂÂÂÂtimings for the connected panel according
> > to [1]
> This is not needed.
Well, I know that the panel timings are already hard-coded into the
driver, but on 850D, we have two display controllers: eLCDDIF and DCSS.
While eLCDIF works just fine with the display-timings received (and
undocumented) from panel vendor, with DCSS we had some issues and we
had to tweak the display-timings. This is why I added this property,
for a special case where we have to use different timings without
changing the driver (just a different dtb file). Do you think this is a
bad practice? If yes, then what mechanism of doing that do you
recommend?
>
> >
> > +- video-mode:ÂÂÂÂÂÂÂÂÂÂ0 - burst-mode
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1 - non-burst with sync event
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ2 - non-burst with sync pulse
> > +
> > +[1]: Documentation/devicetree/bindings/display/display-timing.txt
> This path does not exist.
Right. Will update the path.
>
> Also, could you try to align these bindings with the one from
> raydium,rm68200?
>
> There are power-supply and backlight optional properties there, which
> seem useful.
This panel is OLED, while the rm68200 is LCD (from what I've noticed).
Meaning this panel backligth is also controlled by the DSI controller,
not by a separate backlight LED driver.
I will consider, instead, adding support for a power-supply (if
possible).
>
> >
> > +
> > +Example:
> > +
> > +ÂÂÂÂÂÂÂpanel@0 {
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂcompatible = "raydium,rm67191";
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreg = <0>;
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpinctrl-0 = <&pinctrl_mipi_dsi_0_1_en>;
> You should also pass pinctrl-names = "default"; if you use pinctrl-0.
Thanks. Will do that
>
> >
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreset-gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
> Should be active low.
But, the GPIO is active high.