Devicetree
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	Thuan Nguyen <thuan.nguyen-hong@banvien.com.vn>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Robert Foss <rfoss@kernel.org>, Jonas Karlman <jonas@kwiboo.se>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Luca Ceresoli <luca.ceresoli@bootlin.com>,
	linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: display: vga-connector: Allow hardcoding EDID
Date: Fri, 17 Jul 2026 15:25:30 +0300	[thread overview]
Message-ID: <20260717122530.GA1955120@killaraus.ideasonboard.com> (raw)
In-Reply-To: <20260707080143.GA211515@killaraus.ideasonboard.com>

Hi Maxime,

On Tue, Jul 07, 2026 at 11:01:43AM +0300, Laurent Pinchart wrote:
> On Tue, Jul 07, 2026 at 09:46:52AM +0200, Maxime Ripard wrote:
> > On Mon, Jul 06, 2026 at 07:02:43PM +0300, Laurent Pinchart wrote:
> > > On Mon, Jul 06, 2026 at 05:40:30PM +0200, Maxime Ripard wrote:
> > > > On Mon, Jul 06, 2026 at 12:45:22PM +0300, Laurent Pinchart wrote:
> > > > > On Mon, Jul 06, 2026 at 10:52:32AM +0200, Maxime Ripard wrote:
> > > > > > On Mon, Jul 06, 2026 at 12:35:39AM +0300, Laurent Pinchart wrote:
> > > > > > > Since DDC version 2, introduced in 1996, VGA monitors have exposed EDID
> > > > > > > data over an I2C bus. The bus is also used to detect the presence of a
> > > > > > > connected monitor by trying to read the EDID data.
> > > > > > > 
> > > > > > > Some devices where the VGA display is integrated in the device and
> > > > > > > always connected do not connect the DDC pins. Some development boards,
> > > > > > > such as the Renesas M3N Salvator-XS, also do not connect the DDC pins.
> > > > > > > 
> > > > > > > To support those, add the ability to provide hardcoded EDID data in the
> > > > > > > device tree. This is mutually exclusive with specifying a DDC bus, and
> > > > > > > can only be done when the VGA display is guaranteed to be always
> > > > > > > connected.
> > > > > > > 
> > > > > > > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> > > > > > 
> > > > > > This feels redundant with the EDID firmware loading mechanism we have in
> > > > > > KMS already. It should at least be mentioned why we would need to set it
> > > > > > in the device tree at all.
> > > > > 
> > > > > Very good question.
> > > > > 
> > > > > I assume you're talking about CONFIG_DRM_LOAD_EDID_FIRMWARE, as the
> > > > > debugfs override_edid feature isn't meant for production. If there are
> > > > > other relevant mechanisms I'm not aware of, please let me know.
> > > > 
> > > > No, that's indeed what I meant.
> > > > 
> > > > > In the use case at hand, the VGA display is an integral part of the
> > > > > device, the same way an LVDS or DSI panel would be. Using
> > > > > CONFIG_DRM_LOAD_EDID_FIRMWARE, the manufacturer would need to set the
> > > > > drm.edid_firmware command line parameter, and provide EDID as a file in
> > > > > /lib/firmware/ (possibly in an initramfs). Beside the complexity, and
> > > > > the fact it won't be very friendly to people who run a different
> > > > > userspace on the device, I think EDID counts in this case as system
> > > > > description, the same way we support specifying panel timings in device
> > > > > tree.
> > > > 
> > > > It's *some* hardware description, but you have no idea whether it's
> > > > actually the hardware you're running from. What would be in that EDID
> > > > anyway?
> > > 
> > > It would be the EDID corresponding to the connected display :-) I see it
> > > as identical to how a user of the simple panel driver is responsible for
> > > listing the timings corresponding to the hardware in the device tree.
> > 
> > What's the expected user-experience for someone with that board
> > unplugging a display and plugging another then? Update the device tree,
> > rebuild it, rebuild the firmware and / or resign it and reboot?
> 
> The whole point is that they can't easily unplug the display. This patch
> series is meant to support devices where the display is an integral part
> of the device. The user experience is expected to be the same as for a
> user who will take a phone, remove the display panel, and plug a
> different one. It's certainly possible, and they would have to update
> the DT indeed.
> 
> > That doesn't sound very practical, and even impossible in some cases.
> > 
> > > > There's another alternative we've used several times already, in
> > > > simple-bridge for example: just register any VESA mode up to a given
> > > > resolution:
> > > > https://elixir.bootlin.com/linux/v7.1.2/source/drivers/gpu/drm/bridge/simple-bridge.c#L66
> > > 
> > > I don't see how that would help. The goal is to provide the kernel with
> > > the data corresponding to the display integrated in the device.
> > 
> > How is that not helping? Your problem is that you have a display you
> > can't get the supported resolutions from. What I'm suggesting allows you
> > to create all the possible resolutions for that display, allowing the
> > user to use the display, which is what we did for multiple drivers with
> > the same problem.
> 
> How would the possible resolutions be provided to the kernel ? Isn't it
> the whole point of EDID ?
> 
> > You seem to be set on providing the EDID to the kernel, but it's a
> > terrible idea to begin with, so I'd rather discuss alternatives.
> 
> Could you elaborate on why it is a terrible idea ?

I'd be happy to continue this discussion when you'll have time.

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2026-07-17 12:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-05 21:35 [PATCH 0/4] drm: bridge: display-connector: Support hardcoding EDID for VGA Laurent Pinchart
2026-07-05 21:35 ` [PATCH 1/4] dt-bindings: display: vga-connector: Allow hardcoding EDID Laurent Pinchart
2026-07-06  8:08   ` Geert Uytterhoeven
2026-07-06 10:03     ` Laurent Pinchart
2026-07-06  8:52   ` Maxime Ripard
2026-07-06  9:45     ` Laurent Pinchart
2026-07-06 15:40       ` Maxime Ripard
2026-07-06 16:02         ` Laurent Pinchart
2026-07-07  7:46           ` Maxime Ripard
2026-07-07  8:01             ` Laurent Pinchart
2026-07-17 12:25               ` Laurent Pinchart [this message]
2026-07-16 20:44   ` Rob Herring
2026-07-05 21:35 ` [PATCH 2/4] drm/bridge: display-connector: Fix I2C adapter resource leak Laurent Pinchart
2026-07-05 21:48   ` sashiko-bot
2026-07-05 23:38     ` Laurent Pinchart
2026-07-17 15:03   ` Johan Hovold
2026-07-17 15:21     ` Luca Ceresoli
2026-07-05 21:35 ` [PATCH 3/4] drm/bridge: display-connector: Support hardcoded EDID for VGA connectors Laurent Pinchart
2026-07-05 21:44   ` sashiko-bot
2026-07-05 23:38     ` Laurent Pinchart
2026-07-05 21:35 ` [PATCH 4/4] [DNI] arm64: dts: renesas: salvator: Add overlay for Dell P1911 VGA display Laurent Pinchart
2026-07-05 21:37   ` sashiko-bot
2026-07-05 23:39     ` Laurent Pinchart
2026-07-06  8:16   ` Geert Uytterhoeven
2026-07-06  9:48     ` Laurent Pinchart

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=20260717122530.GA1955120@killaraus.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=andrzej.hajda@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=geert+renesas@glider.be \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=krzk+dt@kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=magnus.damm@gmail.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=thuan.nguyen-hong@banvien.com.vn \
    --cc=tzimmermann@suse.de \
    /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