Add generic-display-mux driver and bindings
Subsystems (7)
v3 cover Add generic-display-mux driver and bindings
This series is developed for and tested on MT8173 board, and the layout is:
/-- anx7688
-- MT8173 HDMI bridge -- GPIO mux
\-- native HDMI
v2: https://lore.kernel.org/all/[email protected]/
v1: https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/
Changes in v3:
- Removed ddc-i2c-bus in the gpio-mux bridge bindings
- Added .get_edid callback in generic-gpio-mux driver
- Removed .get_edid callback in mtk_hdmi.c
- Modified anx7688 driver and binding to add a .get_edid callback
Changes in v2:
- Referenced existing dt-binding schemas from graph.yaml
- Added ddc-i2c-bus into the bindings
- Dropped attach/mode_set/enable/disable callbacks
- Fixed style issues
- Removed the special case for the HDMI connector
- Made the driver only read the GPIO status in IRQ handler
- Rebased to drm-misc-next
- Update the license: "GPL v2" --> "GPL"
Nicolas Boichat (2):
dt-bindings: display: bridge: Add GPIO display mux binding
drm: bridge: Generic GPIO mux driver
Pin-yen Lin (3):
dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688 drm/bridge: Add .get_edid callback for anx7688 driver drm/mediatek: Remove .get_edid callback
.../bridge/google,cros-ec-anx7688.yaml | 5 + .../bindings/display/bridge/gpio-mux.yaml | 90 +++++++ drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/cros-ec-anx7688.c | 24 ++ drivers/gpu/drm/bridge/generic-gpio-mux.c | 222 ++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_hdmi.c | 53 +---- 7 files changed, 365 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml create mode 100644 drivers/gpu/drm/bridge/generic-gpio-mux.c
Signature · 1 line
2.39.2.637.g21b0678d19-goog
PATCH v3 1/5 dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688
Introduce a optional "ddc-i2c-bus" property for anx7688 bridge. This allows the bridge to register a .get_edid callback.
---
Changes in v3:
- New in v3
.../bindings/display/bridge/google,cros-ec-anx7688.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +5 -0
@@ -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 + ports: $ref: /schemas/graph.yaml#/properties/ports
@@ -59,6 +63,7 @@ examples: anx7688: anx7688@2c { compatible = "google,cros-ec-anx7688"; reg = <0x2c>; + ddc-i2c-bus = <&hdmiddc0>; ports { #address-cells = <1>;
Signature · 1 line
2.39.2.637.g21b0678d19-goog
Rob Herring
maintainerRe: [PATCH v3 1/5] dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688
Quoted 2 lines · Pin-yen Lin
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.
Quoted 15 lines
Signed-off-by Pin-yen Lin <[email protected]>---
Changes in v3:
- New in v3.../bindings/display/bridge/google,cros-ec-anx7688.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +0
-0
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml properties: · line 31
Quoted 7 lines
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +4
-0@@ -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
Re: [PATCH v3 1/5] dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688
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
Quoted 39 lines · Rob Herring
Quoted 2 lines · Pin-yen Lin
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.
Quoted 11 lines
Signed-off-by Pin-yen Lin <[email protected]>---
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.yamlb/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yamlQuoted 2 lines
index
a44d025d33bd..9d5ce8172e88100644
---
a/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yamlQuoted 1 line
+++
b/Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yamlDocumentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml properties: · line 29
Quoted 6 lines
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +2
-0@@ -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 EDIDprobing
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml properties: · line 31
Quoted 2 lines
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +2
-0+ $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
Re: [PATCH v3 1/5] dt-bindings: display: bridge: Add ddc-i2c-bus for anx7688
In reply to Rob Herring(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
Quoted 34 lines · Rob Herring
Quoted 2 lines · Pin-yen Lin
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.
Quoted 15 lines
Signed-off-by Pin-yen Lin <[email protected]>---
Changes in v3:
- New in v3.../bindings/display/bridge/google,cros-ec-anx7688.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +0
-0Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml properties: · line 31
Quoted 7 lines
Documentation/devicetree/bindings/display/bridge/google,cros-ec-anx7688.yaml +4
-0@@ -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
PATCH v3 2/5 drm/bridge: Add .get_edid callback for anx7688 driver
In reply to Pin-yen LinAllow the driver to read EDID when ddc-i2c-bus phandle is present in the device node.
---
Changes in v3:
- New in v3
drivers/gpu/drm/bridge/cros-ec-anx7688.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
drivers/gpu/drm/bridge/cros-ec-anx7688.c +24 -0
@@ -6,6 +6,7 @@*/ #include <drm/drm_bridge.h> +#include <drm/drm_edid.h> #include <drm/drm_print.h> #include <linux/i2c.h> #include <linux/module.h>
@@ -91,14 +92,24 @@ static bool cros_ec_anx7688_bridge_mode_fixup(struct drm_bridge *bridge,return totalbw >= requiredbw; } +static struct edid *cros_ec_anx7688_get_edid (struct drm_bridge *bridge, +struct drm_connector *connector) +{ +struct cros_ec_anx7688 *anx7688 =bridge_to_cros_ec_anx7688 (bridge); + +return drm_get_edid (connector, anx7688->bridge.ddc); +} +static const struct drm_bridge_funcs cros_ec_anx7688_bridge_funcs = { .mode_fixup = cros_ec_anx7688_bridge_mode_fixup, + .get_edid = cros_ec_anx7688_get_edid, };static int cros_ec_anx7688_bridge_probe (struct i2c_client *client) {struct device *dev = &client->dev;struct cros_ec_anx7688 *anx7688; +struct device_node *phandle;u16 vendor, device, fw_version;u8 buffer[4 ];int ret;
@@ -153,6 +164,19 @@ static int cros_ec_anx7688_bridge_probe(struct i2c_client *client)DRM_WARN ("Old ANX7688 FW version (0x%04x), not filtering\n" , fw_version); + + phandle =of_parse_phandle (dev->of_node,"ddc-i2c-bus" ,0 ); +if (phandle) { + anx7688->bridge.ddc =of_get_i2c_adapter_by_node (phandle); +of_node_put (phandle); +if (!anx7688->bridge.ddc) +return -EPROBE_DEFER ; + }else { +dev_dbg (dev,"No I2C bus specified, disabling EDID readout\n" ); + } +if (anx7688->bridge.ddc) + anx7688->bridge.ops |=DRM_BRIDGE_OP_EDID ; + anx7688->bridge.funcs = &cros_ec_anx7688_bridge_funcs;drm_bridge_add (&anx7688->bridge);
Signature · 1 line
2.39.2.637.g21b0678d19-goog
PATCH v3 3/5 drm/mediatek: Remove .get_edid callback
In reply to Pin-yen LinThe original implementation peaking into the remote nodes to get the ddc bus fwnode, which is not a good practice. Remove the callback from this driver and rely on drm_connector helpers to read EDID.
---
Changes in v3:
- New in v3
drivers/gpu/drm/mediatek/mtk_hdmi.c | 53 +++++++---------------------- 1 file changed, 13 insertions(+), 40 deletions(-)
drivers/gpu/drm/mediatek/mtk_hdmi.c +13 -40
@@ -159,7 +159,6 @@ struct mtk_hdmi {const struct mtk_hdmi_conf *conf;struct phy *phy;struct device *cec_dev; -struct i2c_adapter *ddc_adpt;struct clk *clk[MTK_HDMI_CLK_COUNT ];struct drm_display_mode mode;bool dvi_mode;
@@ -1265,21 +1264,6 @@ static enum drm_connector_status mtk_hdmi_bridge_detect(struct drm_bridge *bridgreturn mtk_hdmi_detect (hdmi); } -static struct edid *mtk_hdmi_bridge_get_edid (struct drm_bridge *bridge, -struct drm_connector *connector) -{ -struct mtk_hdmi *hdmi =hdmi_ctx_from_bridge (bridge); -struct edid *edid; - -if (!hdmi->ddc_adpt) -return NULL ; - edid =drm_get_edid (connector, hdmi->ddc_adpt); -if (!edid) -return NULL ; - hdmi->dvi_mode = !drm_detect_monitor_audio (edid); -return edid; -} -static int mtk_hdmi_bridge_attach (struct drm_bridge *bridge,enum drm_bridge_attach_flags flags) {
@@ -1390,10 +1374,19 @@ static void mtk_hdmi_bridge_atomic_enable(struct drm_bridge *bridge, {struct drm_atomic_state *state = old_state->base.state;struct mtk_hdmi *hdmi =hdmi_ctx_from_bridge (bridge); +struct edid *edid;/* Retrieve the connector through the atomic state. */ - hdmi->curr_conn =drm_atomic_get_new_connector_for_encoder (state, - bridge->encoder); +if (!hdmi->curr_conn) + hdmi->curr_conn =drm_atomic_get_new_connector_for_encoder ( + state, bridge->encoder); + +if (hdmi->curr_conn->edid_blob_ptr) { + edid = (struct edid *)hdmi->curr_conn->edid_blob_ptr->data; + hdmi->dvi_mode = !drm_detect_monitor_audio (edid); + }else { +dev_err (hdmi->dev,"No edid in drm_connector object\n" ); + }mtk_hdmi_output_set_display_mode (hdmi, &hdmi->mode);clk_prepare_enable (hdmi->clk[MTK_HDMI_CLK_HDMI_PLL ]);
@@ -1417,7 +1410,6 @@ static const struct drm_bridge_funcs mtk_hdmi_bridge_funcs = { .atomic_pre_enable = mtk_hdmi_bridge_atomic_pre_enable, .atomic_enable = mtk_hdmi_bridge_atomic_enable, .detect = mtk_hdmi_bridge_detect, - .get_edid = mtk_hdmi_bridge_get_edid, }; static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi,
@@ -1425,7 +1417,7 @@ static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi, {struct device *dev = &pdev->dev;struct device_node *np = dev->of_node; -struct device_node *cec_np, *remote, *i2c_np; +struct device_node *cec_np, *remote;struct platform_device *cec_pdev;struct regmap *regmap;struct resource *mem;
@@ -1497,24 +1489,6 @@ static int mtk_hdmi_dt_parse_pdata(struct mtk_hdmi *hdmi, } } - i2c_np =of_parse_phandle (remote,"ddc-i2c-bus" ,0 ); -if (!i2c_np) { -dev_err (dev,"Failed to find ddc-i2c-bus node in %pOF\n" , - remote); -of_node_put (remote); - ret = -EINVAL ; - goto put_device; - } -of_node_put (remote); - - hdmi->ddc_adpt =of_find_i2c_adapter_by_node (i2c_np); -of_node_put (i2c_np); -if (!hdmi->ddc_adpt) { -dev_err (dev,"Failed to get ddc i2c adapter by node\n" ); - ret = -EINVAL ; - goto put_device; - } -return 0 ; put_device:put_device (hdmi->cec_dev);
@@ -1728,8 +1702,7 @@ static int mtk_drm_hdmi_probe(struct platform_device *pdev) hdmi->bridge.funcs = &mtk_hdmi_bridge_funcs; hdmi->bridge.of_node = pdev->dev.of_node; - hdmi->bridge.ops =DRM_BRIDGE_OP_DETECT |DRM_BRIDGE_OP_EDID - |DRM_BRIDGE_OP_HPD ; + hdmi->bridge.ops =DRM_BRIDGE_OP_DETECT |DRM_BRIDGE_OP_HPD ; hdmi->bridge.type =DRM_MODE_CONNECTOR_HDMIA ;drm_bridge_add (&hdmi->bridge);
Signature · 1 line
2.39.2.637.g21b0678d19-goog
PATCH v3 4/5 dt-bindings: display: bridge: Add GPIO display mux binding
In reply to Pin-yen LinFrom: Nicolas Boichat <[email protected]>
Add bindings for Generic GPIO mux driver.
---
Rob mentioned that this series can probably use the common MUX bindings. Those bindings are designed for MUX consumers that requests a certain MUX configuration, while this driver is reading a GPIO pin controlled by the other parts of the system (in our use case, it's the embedded controller firmware).
Changes in v3:
- Removed ddc-i2c-bus in the bindings
Changes in v2:
- Referenced existing dt-binding schemas from graph.yaml
- Added ddc-i2c-bus into the bindings
.../bindings/display/bridge/gpio-mux.yaml | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml
Documentation/devicetree/bindings/display/bridge/gpio-mux.yaml new file +90 -0
@@ -0,0 +1,90 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/gpio-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic display mux (1 input, 2 outputs) + +maintainers: + - Nicolas Boichat <[email protected]> + +description: | + This bindings describes a simple display (e.g. HDMI) mux, that has 1 + input, and 2 outputs. The mux status is controlled by hardware, and + its status is read back using a GPIO. + +properties: + compatible: + const: gpio-display-mux + + detect-gpios: + maxItems: 1 + description: GPIO that indicates the active output + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: | + Video port for input. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: | + 2 video ports for output. + The reg value in the endpoints matches the GPIO status: when + GPIO is asserted, endpoint with reg value <1> is selected. + + required: + - port@0 + - port@1 + +required: + - compatible + - detect-gpios + - ports + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + hdmi_mux: hdmi_mux { + compatible = "gpio-display-mux"; + detect-gpios = <&pio 36 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_mux_pins>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { /* input */ + reg = <0>; + + hdmi_mux_in: endpoint { + remote-endpoint = <&hdmi0_out>; + }; + }; + + port@1 { /* output */ + reg = <1>; + + #address-cells = <1>; + #size-cells = <0>; + + hdmi_mux_out_anx: endpoint@0 { + reg = <0>; + remote-endpoint = <&dp_bridge_in>; + }; + + hdmi_mux_out_hdmi: endpoint@1 { + reg = <1>; + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + };
Signature · 1 line
2.39.2.637.g21b0678d19-goog
PATCH v3 5/5 drm: bridge: Generic GPIO mux driver
In reply to Pin-yen LinFrom: Nicolas Boichat <[email protected]>
This driver supports single input, 2 output display mux (e.g. HDMI mux), that provide its status via a GPIO.
---
Changes in v3:
- Added .get_edid callback in generic-gpio-mux driver
Changes in v2:
- Dropped attach/mode_set/enable/disable callbacks
- Fixed style issues
- Removed the special case for the HDMI connector
- Made the driver only read the GPIO status in IRQ handler
- Rebased to drm-misc-next
- Update the license: "GPL v2" --> "GPL"
drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/generic-gpio-mux.c | 222 ++++++++++++++++++++++ 3 files changed, 233 insertions(+) create mode 100644 drivers/gpu/drm/bridge/generic-gpio-mux.c
drivers/gpu/drm/bridge/Kconfig +10 -0
@@ -73,6 +73,16 @@ config DRM_FSL_LDB help Support for i.MX8MP DPI-to-LVDS on-SoC encoder. +config DRM_GENERIC_GPIO_MUX + tristate "Generic GPIO-controlled mux" + depends on OF + select DRM_KMS_HELPER + help + This bridge driver models a GPIO-controlled display mux with one + input, 2 outputs (e.g. an HDMI mux). The hardware decides which output + is active, reports it as a GPIO, and the driver redirects calls to the + appropriate downstream bridge (if any). + config DRM_ITE_IT6505 tristate "ITE IT6505 DisplayPort bridge" depends on OF
drivers/gpu/drm/bridge/Makefile +1 -0
@@ -4,6 +4,7 @@ obj-$(CONFIG_DRM_CHRONTEL_CH7033) += chrontel-ch7033.o obj-$(CONFIG_DRM_CROS_EC_ANX7688) += cros-ec-anx7688.o obj-$(CONFIG_DRM_DISPLAY_CONNECTOR) += display-connector.o obj-$(CONFIG_DRM_FSL_LDB) += fsl-ldb.o +obj-$(CONFIG_DRM_GENERIC_GPIO_MUX) += generic-gpio-mux.o obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o obj-$(CONFIG_DRM_LONTIUM_LT8912B) += lontium-lt8912b.o obj-$(CONFIG_DRM_LONTIUM_LT9211) += lontium-lt9211.o
drivers/gpu/drm/bridge/generic-gpio-mux.c new file +222 -0
222 lines not on this page · raw message
Signature · 1 line
2.39.2.637.g21b0678d19-goog
Quoted 6 lines · Pin-yen Lin
This series is developed for and tested on MT8173 board, and the layout is:
/-- anx7688-- MT8173 HDMI bridge -- GPIO mux
\-- native HDMI
What is the part number of this GPIO mux? Does mux gpio interrupt based and able to switch output HDMI and DP. If so, how this gpio interrupt is different than the HPD in native HDMI? I mean does HPD have any detection bottlenecks with mux gpio interrupt?
I do have GPIO Mux that input DSI and two outputs DMD/HDMI Input and HDMI Out. 2x1 with 1x2 mux.
I'm thinking having a generic mux to select the specific out number of outputs with associated interface outputs can be a viable solution to address all use cases here.
Thanks,
Jagan.
Quoted 5 lines · Jagan Teki
Quoted 3 lines · Pin-yen Lin
This series is developed for and tested on MT8173 board, and the layout is:
Quoted 8 lines
Quoted 3 lines
/-- anx7688-- MT8173 HDMI bridge -- GPIO mux
\-- native HDMIWhat is the part number of this GPIO mux? Does mux gpio interrupt based and able to switch output HDMI and DP. If so, how this gpio interrupt is different than the HPD in native HDMI? I mean does HPD have any detection bottlenecks with mux gpio interrupt?
It's a full blown HDMI 1:2 demultiplexer, so DDC and HPD signals are muxed as well. The anx7688 handles all the Type-C stuff, and our EC talks to it. If HDMI output from the SoC needs to be muxed over for DP alt-mode, the EC will signal the SoC.
Quoted 6 lines
I do have GPIO Mux that input DSI and two outputs DMD/HDMI Input and HDMI Out. 2x1 with 1x2 mux.
I'm thinking having a generic mux to select the specific out number of outputs with associated interface outputs can be a viable solution to address all use cases here.
AFAIK DRM doesn't allow dynamically changing the constitution of a display pipeline, so it doesn't really work out for us.
If you're just muxing between different outputs with passive/dumb bridges, it may still work for you.
ChenYu