[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEXTbpctOtgE8uQJ7Bb8-ZRSjEwzQcQDegm1AuWfMmtDV0EbwA@mail.gmail.com>
Date: Thu, 23 Feb 2023 21:35:59 +0800
From: Pin-yen Lin <treapking@...omium.org>
To: Rob Herring <robh@...nel.org>
Cc: Andrzej Hajda <andrzej.hajda@...el.com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Robert Foss <rfoss@...nel.org>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>,
Jernej Skrabec <jernej.skrabec@...il.com>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Benson Leung <bleung@...omium.org>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>,
devicetree@...r.kernel.org,
Nicolas Boichat <drinkcat@...omium.org>,
chrome-platform@...ts.linux.dev, linux-kernel@...r.kernel.org,
Guenter Roeck <groeck@...omium.org>,
Matthias Brugger <matthias.bgg@...il.com>,
dri-devel@...ts.freedesktop.org,
linux-mediatek@...ts.infradead.org,
Philipp Zabel <p.zabel@...gutronix.de>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v3 1/5] dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688
(Resend this with plaintext mode. Sorry for the previous spam.)
Hi Rob,
After some internal discussions, we decided to drop this series
because the driver is trying to do runtime routing of the display
signals, which is not supported by the current DRM system, even if we
can describe the design in the device tree. I'm explaining our use
case as a record, and I can follow up on the mtk_hdmi.c change if
anyone is interested.
The more detailed schematics looks like:
+----------+ +----------------+ +-----------+
| MTK | | | | HDMI |
| HDMI +--->| TS3DV642 +--->| connector |
| bridge | | | +-----------+
+----------+ | |
| HDMI MUX | +-------------+
| | | anx7688 | +-----------+
+----------+ | | | HDMI to DP | | USB-C |
| cros EC +--->| +--->| bridge +-->| connector |
+----------+ +----------------+ +-------------+ +-----------+
The TS3DV642 HDMI MUX is controlled by the CrOS EC to switch the HDMI
signal between two output ports, and the generic-display-mux driver
was trying to control the downstream bridges according to the GPIO
status reported by EC. However, as far as I know, this kind of runtime
routing is not supported by DRM.
And, it can work fine if we only describe the following design in DT:
+---------+ +-------------+ +-----------+
| MTK | | anx7688 | | USB-C |
| HDMI +-->| HDMI to DP +-->| connector |
| bridge | | bridge | +-----------+
+---------+ +-------------+
This can work because the anx7688 driver won't reject any display
modes when the DP lane count is 0 ([1]), which is true when the HDMI
connector is used.
Thanks for your time for reviewing this series and sorry for not
explaining everything clearly at the beginning.
[1]: https://elixir.bootlin.com/linux/v6.2/source/drivers/gpu/drm/bridge/cros-ec-anx7688.c#L87
Regards,
Pin-yen
On Tue, Feb 21, 2023 at 11:41 PM Rob Herring <robh@...nel.org> wrote:
>
> On Sat, Feb 18, 2023 at 07:17:08PM +0800, Pin-yen Lin wrote:
> > Introduce a optional "ddc-i2c-bus" property for anx7688 bridge. This
> > allows the bridge to register a .get_edid callback.
>
> What's .get_edid? This is a binding and is independent of Linux.
>
> >
> > Signed-off-by: Pin-yen Lin <treapking@...omium.org>
> > ---
> >
> > Changes in v3:
> > - New in v3
> >
> > .../bindings/display/bridge/google,cros-ec-anx7688.yaml | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml b/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml
> > index a44d025d33bd..9d5ce8172e88 100644
> > --- a/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml
> > +++ b/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml
> > @@ -25,6 +25,10 @@ properties:
> > maxItems: 1
> > description: I2C address of the device.
> >
> > + ddc-i2c-bus:
> > + description: phandle link to the I2C controller used for DDC EDID probing
> > + $ref: /schemas/types.yaml#/definitions/phandle
> > +
>
> No, this belongs in the connector node. The DDC signals are routed to
> the connector, not the bridge chip.
>
> Rob
Powered by blists - more mailing lists