All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
To: linux-renesas-soc@vger.kernel.org
Cc: devicetree@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
	Kieran Bingham <kieran.bingham@ideasonboard.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Chris Paterson <Chris.Paterson2@renesas.com>
Subject: [PATCH v2 0/3] arm64: dts: renesas: Prepare AA1024XD12 panel .dtsi for overlay support
Date: Wed, 29 Dec 2021 21:31:32 +0200	[thread overview]
Message-ID: <20211229193135.28767-1-laurent.pinchart+renesas@ideasonboard.com> (raw)

Hello,

This small patchs series adds two DT overlays that model a Mitsubishi
AA1024XD12 panel connected to a Salvator-X(S) board or a Draak or Ebisu
board.

The panel is external to the development board and is optional, so DT
overlays seem to be the best option to me. They can easily be applied by
U-Boot. For instance, when booting a FIT image, a list of configurations
can be specified. Here's the boot script I'm using (with the U-Boot
bootcmd simply set to "dhcp && source"):

--------
setenv bootargs "console=ttySC0,115200 rw root=/dev/nfs ip=dhcp"
setenv bootfile gen3/kernel_fdt.itb
setenv fdtfile r8a77965-salvator-xs.dtb
setenv overlay_files "salvator-panel-aa104xd12.dtbo"

for overlay in ${overlay_files}; do
        setenv overlaystring "${overlaystring}\\#conf-${overlay}"
done

tftpboot ${bootfile}
bootm ${fileaddr}#conf-${fdtfile}${overlaystring}
--------

This is much simpler than the hack branch I used to carry with per-board
DT changes to enable panel support on a particular board (and last but
not least, it hopefully can be merged in mainline !).

The only difference between the two overlays is the LVDS output that the
panel is connected to (LVDS0 on Salvator-X(S), and LVDS1 on Draak and
Ebisu). On my xmas wish list is a mechanism to make this configurable at
the time the overlay is applied, but I think I'll be a sad little boy on
xmas day.

As these are the first DT overlays for Renesas boards in the mainline
kernel, comments are welcome. If the approach gets positive feedback, we
could turn other external add-ons (panels, camera modules, ...) into
overlays as well.

Compared to v1, this version creates the endpoints for the lvds0 and
lvds1 ports in the overlays, to take into account the changes from
https://lore.kernel.org/all/20211229191838.27922-1-laurent.pinchart+renesas@ideasonboard.com/.

Laurent Pinchart (3):
  arm64: dts: renesas: Prepare AA1024XD12 panel .dtsi for overlay
    support
  arm64: dts: renesas: Add panel overlay for Salvator-X(S) boards
  arm64: dts: renesas: Add panel overlay for Draak and Ebisu boards

 .../arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi | 39 -------------------
 arch/arm64/boot/dts/renesas/Makefile          |  3 ++
 .../renesas/draak-ebisu-panel-aa104xd12.dts   | 36 +++++++++++++++++
 .../boot/dts/renesas/panel-aa104xd12.dtsi     | 30 ++++++++++++++
 .../dts/renesas/salvator-panel-aa104xd12.dts  | 36 +++++++++++++++++
 5 files changed, 105 insertions(+), 39 deletions(-)
 delete mode 100644 arch/arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi
 create mode 100644 arch/arm64/boot/dts/renesas/draak-ebisu-panel-aa104xd12.dts
 create mode 100644 arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi
 create mode 100644 arch/arm64/boot/dts/renesas/salvator-panel-aa104xd12.dts


base-commit: 2b534e90a1e31c7fc9536b512b72274cc3575f4c
-- 
Regards,

Laurent Pinchart


             reply	other threads:[~2021-12-29 19:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-29 19:31 Laurent Pinchart [this message]
2021-12-29 19:31 ` [PATCH v2 1/3] arm64: dts: renesas: Prepare AA1024XD12 panel .dtsi for overlay support 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
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=20211229193135.28767-1-laurent.pinchart+renesas@ideasonboard.com \
    --to=laurent.pinchart+renesas@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.