Devicetree
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Kieran Bingham <kieran.bingham@ideasonboard.com>
Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
	Rob Herring <robh+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Chris Paterson <Chris.Paterson2@renesas.com>
Subject: Re: [PATCH v2 1/3] arm64: dts: renesas: Prepare AA1024XD12 panel .dtsi for overlay support
Date: Mon, 21 Feb 2022 16:42:17 +0200	[thread overview]
Message-ID: <YhOkyScHvAi5JQmH@pendragon.ideasonboard.com> (raw)
In-Reply-To: <164545430425.2976960.2974689638537387661@Monstersaurus>

On Mon, Feb 21, 2022 at 02:38:24PM +0000, Kieran Bingham wrote:
> Quoting Laurent Pinchart (2021-12-29 19:31:33)
> > The Mitsubishi AA1024XD12 panel can be used for R-Car Gen2 and Gen3
> > boards as an optional external panel. It is described in the
> > arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi file as a direct child of the
> > DT root node. This allows including r8a77xx-aa104xd12-panel.dtsi in
> > board device trees, with other minor modifications, to enable the panel.
> > 
> > This is however not how external components should be modelled. Instead
> > of modifying the board device tree to enable the panel, it should be
> > compiled as a DT overlay, to be loaded by the boot loader.
> > 
> > Prepare the r8a77xx-aa104xd12-panel.dtsi file for this usage by
> > declaring a panel node only, without hardcoding its path. Overlay
> > sources can then include r8a77xx-aa104xd12-panel.dtsi where appropriate.
> > 
> > This change doesn't cause any regression as r8a77xx-aa104xd12-panel.dtsi
> > is currently unused. As overlay support for this panel has only been
> > tested with Gen3 hardware, and Gen2 support will require more
> > development, move the file to arch/arm64/boot/dts/renesas/.
> > 
> > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> >  .../arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi | 39 -------------------
> >  .../boot/dts/renesas/panel-aa104xd12.dtsi     | 30 ++++++++++++++
> >  2 files changed, 30 insertions(+), 39 deletions(-)
> >  delete mode 100644 arch/arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi
> >  create mode 100644 arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi
> > 
> > diff --git a/arch/arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi b/arch/arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi
> > deleted file mode 100644
> > index 79fce67ebb1c..000000000000
> > --- a/arch/arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi
> > +++ /dev/null
> > @@ -1,39 +0,0 @@
> > -// SPDX-License-Identifier: GPL-2.0
> > -/*
> > - * Common file for the AA104XD12 panel connected to Renesas R-Car boards
> > - *
> > - * Copyright (C) 2014 Renesas Electronics Corp.
> > - */
> > -
> > -/ {
> > -       panel {
> > -               compatible = "mitsubishi,aa104xd12", "panel-lvds";
> > -
> > -               width-mm = <210>;
> > -               height-mm = <158>;
> > -               data-mapping = "jeida-18";
> > -
> > -               panel-timing {
> > -                       /* 1024x768 @65Hz */
> > -                       clock-frequency = <65000000>;
> > -                       hactive = <1024>;
> > -                       vactive = <768>;
> > -                       hsync-len = <136>;
> > -                       hfront-porch = <20>;
> > -                       hback-porch = <160>;
> > -                       vfront-porch = <3>;
> > -                       vback-porch = <29>;
> > -                       vsync-len = <6>;
> > -               };
> > -
> > -               port {
> > -                       panel_in: endpoint {
> > -                               remote-endpoint = <&lvds_connector>;
> > -                       };
> > -               };
> > -       };
> > -};
> > -
> > -&lvds_connector {
> > -       remote-endpoint = <&panel_in>;
> > -};
> > diff --git a/arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi b/arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi
> > new file mode 100644
> > index 000000000000..6e9f447d8fe1
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi
> 
> Is this a device directly on the renesas board itself?

I would have included it in the board DT if that had been the case :-)

> I still wonder if
> 'extra' overlays should be in a subfolder here, or ... even potentially
> some more common location - but this can do for now I guess.

They should, but they should then be parametric, it's a whole other
story.

> And I see I gave this on v1, but /after/ you posted v2 ;-)
> 
> You can keep it though ...
> 
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> 
> > @@ -0,0 +1,30 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Common file for the AA104XD12 panel connected to Renesas R-Car Gen3 boards.
> > + *
> > + * Copyright (C) 2021 Renesas Electronics Corp.
> > + */
> > +
> > +panel {
> > +       compatible = "mitsubishi,aa104xd12", "panel-lvds";
> > +
> > +       width-mm = <210>;
> > +       height-mm = <158>;
> > +       data-mapping = "jeida-18";
> > +
> > +       panel-timing {
> > +               /* 1024x768 @65Hz */
> > +               clock-frequency = <65000000>;
> > +               hactive = <1024>;
> > +               vactive = <768>;
> > +               hsync-len = <136>;
> > +               hfront-porch = <20>;
> > +               hback-porch = <160>;
> > +               vfront-porch = <3>;
> > +               vback-porch = <29>;
> > +               vsync-len = <6>;
> > +       };
> > +
> > +       port {
> > +       };
> > +};

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2022-02-21 14:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-29 19:31 [PATCH v2 0/3] arm64: dts: renesas: Prepare AA1024XD12 panel .dtsi for overlay support Laurent Pinchart
2021-12-29 19:31 ` [PATCH v2 1/3] " Laurent Pinchart
2022-01-26 12:18   ` Geert Uytterhoeven
2022-01-26 18:58     ` Laurent Pinchart
2022-01-26 19:15       ` Geert Uytterhoeven
2022-01-26 23:57         ` Laurent Pinchart
2022-07-07  2:25           ` Laurent Pinchart
2022-07-07  7:30             ` Geert Uytterhoeven
2022-07-07  8:12               ` Laurent Pinchart
2022-02-21 14:38   ` Kieran Bingham
2022-02-21 14:42     ` Laurent Pinchart [this message]
2021-12-29 19:31 ` [PATCH v2 2/3] arm64: dts: renesas: Add panel overlay for Salvator-X(S) boards Laurent Pinchart
2022-01-26 12:19   ` Geert Uytterhoeven
2022-02-21 14:40   ` Kieran Bingham
2021-12-29 19:31 ` [PATCH v2 3/3] arm64: dts: renesas: Add panel overlay for Draak and Ebisu boards Laurent Pinchart
2022-01-26 12:20   ` Geert Uytterhoeven
2022-02-21 14:41   ` Kieran Bingham

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=YhOkyScHvAi5JQmH@pendragon.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=Chris.Paterson2@renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=robh+dt@kernel.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