RE: [PATCH 1/2] ARM: dts: iwg22d-sodimm: enable LCD panel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert,

Thank you for your review!

> -----Original Message-----
> From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Sent: 02 March 2020 13:40
> To: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@xxxxxxxxxxxxxx>
> Cc: Linux-Renesas <linux-renesas-soc@xxxxxxxxxxxxxxx>; Chris Paterson
> <Chris.Paterson2@xxxxxxxxxxx>; Prabhakar Mahadev Lad
> <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
> Subject: Re: [PATCH 1/2] ARM: dts: iwg22d-sodimm: enable LCD panel
> 
> Hi Marian-Cristian,
> 
> On Wed, Jan 29, 2020 at 7:58 PM Marian-Cristian Rotariu <marian-
> cristian.rotariu.rb@xxxxxxxxxxxxxx> wrote:
> > On the Generic SODIMM Development Platform there is an RGB LCD panel
> > directly connected to the DU output. It uses the TPU0 as backlight,
> > one GPIO pull-up configuration for power enable, R[2:7], G[2:7],
> > B[2:7], VSYNC, HSYNC, DU0_DISP and, DU0_CLK as inputs.
> >
> > There is no encoder between the DU and the panel, therefore the
> > default connector driver is used.
> >
> > Signed-off-by: Marian-Cristian Rotariu
> > <marian-cristian.rotariu.rb@xxxxxxxxxxxxxx>
> > Reviewed-by: Lad Prabhakar <prabhakar.mahadev-
> lad.rj@xxxxxxxxxxxxxx>
> 
> Thanks for your patch!
> 
> > --- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> > +++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
> > @@ -79,6 +79,52 @@
> >                 states = <3300000 1
> >                           1800000 0>;
> >         };
> > +
> > +       vccq_panel: regulator-vccq-panel {
> > +               compatible = "regulator-fixed";
> > +               regulator-name = "Panel VccQ";
> > +               regulator-min-microvolt = <3300000>;
> > +               regulator-max-microvolt = <3300000>;
> > +               gpio = <&gpio1 13 GPIO_ACTIVE_LOW>;
> > +               enable-active-high;
> > +       };
> > +
> > +       backlight {
> > +               compatible = "pwm-backlight";
> > +               pwms = <&tpu 3 5000000 GPIO_ACTIVE_LOW>;
> > +               brightness-levels = <0 4 8 16 32 64 128 255>;
> > +               default-brightness-level = <7>;
> > +               pinctrl-0 = <&backlight_pins>;
> > +               pinctrl-names = "default";
> > +       };
> > +
> > +       lcd {
> > +               compatible = "edt,etm043080dh6gp", "simple-panel";
> 
> According to the latest panel-simple.yaml, the "simple-panel" should be
> dropped...
I will drop "simple-panel" in v2.

> 
> > +               power-supply = <&vccq_panel>;
> > +
> > +               ports {
> > +                       port@0 {
> > +                               lcd_in: endpoint {
> > +                                       remote-endpoint = <&du_out_rgb0>;
> > +                               };
> > +                       };
> > +               };
> 
> ... and there should only be a single "port".
Indeed, I will fix it.

> 
> > +       };
> > +};
> > +
> > +&du {
> > +       pinctrl-0 = <&du0_pins>;
> > +       pinctrl-names = "default";
> > +
> > +       status = "okay";
> > +
> > +       ports {
> > +               port@0 {
> > +                       endpoint {
> > +                               remote-endpoint = <&lcd_in>;
> > +                       };
> > +               };
> > +       };
> >  };
> >
> >  &avb {
> > @@ -150,11 +196,21 @@
> >                 function = "avb";
> >         };
> >
> > +       backlight_pins: backlight {
> > +               renesas,groups = "tpu_to3";
> 
> According to my schematics, DISP_BL_GPIO is connected to
> TPUTO3_C(GP0_21), so this should be "tpu_to3_c".

This is a rather big mistake as I did not test the brightness of the panel.
I have now retested the v2 patch and the various level of brightness
work fine. I will send the v2 in a bit.

Best regards,
Marian




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux