Skip to contentSkip to conversation

Add Lontiun LT7911EXC eDP to MIPI DSI bridge

PATCH Superseded [email protected] 3 participants 6 messages Apr 29 – Apr 30

Subsystems (4)

v3 of 17 Superseded Latest is v17 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add Lontiun LT7911EXC eDP to MIPI DSI bridge

From: Sunyun Yang <[email protected]>

The LT7911EXC is an I2C-controlled bridge that Receiver eDP1.4 and output signal/dual port mipi. This series introduces:

- A device tree binding YAML file describing the hardware
- A new DRM bridge driver implementing the basic functionality

---
Change in v3:
- dt-binding:
- drm/bridge:
1. already submit lt7911exc_fw.bin to linux-firmware. [Dmitry]
2. remove lt7911exc_remove function.
3. drop the "lontium, " in lt7911exc_i2c_table.
- Link to v2: https://lore.kernel.org/lkml/[email protected]/

Change in v2:
- dt-binding:
1. reset pins use active low. [Dmitry]
- drm/bridge:
1. use atomic_* callbacks. [Quentin]
2. fix the incorrect formatting and spaces.
3. add the required header files. [Dmitry]
4. remove "enabled" flag.
5. remove *fw from the lt7911exc struct.
6. .max_register and .range_max use actual range.
7. regulator use bulk interface.
8. use dev_err_probe, devm_mutex_init and devm_drm_bridge_add.
9. Replace GPL v2 with GPL.
- Link to v1: https://lore.kernel.org/lkml/[email protected]/
---
Sunyun Yang (2):
dt-bindings:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge drm:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge

 .../display/bridge/lontium,lt7911exc.yaml     |  89 ++++
 drivers/gpu/drm/bridge/Kconfig                |  13 +
 drivers/gpu/drm/bridge/Makefile               |   1 +
 drivers/gpu/drm/bridge/lontium-lt7911exc.c    | 493 ++++++++++++++++++
 4 files changed, 596 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml
 create mode 100644 drivers/gpu/drm/bridge/lontium-lt7911exc.c
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/2 dt-bindings:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge

From: Sunyun Yang <[email protected]>

The LT7911EXC is an I2C-controlled bridge that Receiver eDP1.4 and output signal/dual port mipi.

---
 .../display/bridge/lontium,lt7911exc.yaml     | 89 +++++++++++++++++++
 1 file changed, 89 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +89 -0
new file mode 100644
index 000000000000..0525133443ca
@@ -0,0 +1,89 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/bridge/lontium,lt7911exc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Lontium LT7911EXC eDP to MIPI DSI Bridge
+
+maintainers:
+  - Sunyun Yang <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - lontium,lt7911exc
+
+  reg:
+    maxItems: 1
+
+  reset-gpios:
+    maxItems: 1
+    description: GPIO connected to RST_ pin.
+
+  vdd-supply:
+    description: Regulator for 1.2V MIPI phy power.
+
+  vcc-supply:
+    description: Regulator for 3.3V IO power.
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for MIPI DSI output.
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for eDP input.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - vdd-supply
+  - vcc-supply
+  - ports
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mipi-bridge@41 {
+            compatible = "lontium,lt7911exc";
+            reg = <0x41>;
+            reset-gpios = <&gpy8 8 GPIO_ACTIVE_LOW>;
+            vdd-supply = <&lt7911exc_1v2>;
+            vcc-supply = <&lt7911exc_3v3>;
+
+            ports {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                port@0 {
+                    reg = <0>;
+                    bridge_in: endpoint {
+                        remote-endpoint = <&edp_out>;
+                    };
+                };
+
+                port@1 {
+                    reg = <1>;
+                    bridge_out: endpoint {
+                        remote-endpoint = <&panel_in>;
+                    };
+                };
+            };
+        };
+    };
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge

Quoted 6 lines · On Wed, Apr 29, 2026 at 12:05:40PM +0800, [email protected] wrote:

From: Sunyun Yang <[email protected]>

The LT7911EXC is an I2C-controlled bridge that Receiver eDP1.4 and output signal/dual port mipi.

Missing space after ':' in subject.

...

Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml line 36

Quoted 7 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +7 -0
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for MIPI DSI output.

Wrong description, first is input. Look at your DTS.

Quoted 33 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +33 -0
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for eDP input.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - vdd-supply
+  - vcc-supply
+  - ports
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mipi-bridge@41 {
+            compatible = "lontium,lt7911exc";
+            reg = <0x41>;
+            reset-gpios = <&gpy8 8 GPIO_ACTIVE_LOW>;
+            vdd-supply = <&lt7911exc_1v2>;
+            vcc-supply = <&lt7911exc_3v3>;
+

Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml line 79

Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +10 -0
+            ports {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                port@0 {
+                    reg = <0>;
+                    bridge_in: endpoint {
+                        remote-endpoint = <&edp_out>;
+                    };
+                };

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH v3 1/2] dt-bindings:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge

Quoted 11 lines · Krzysztof Kozlowski <[email protected]> 于2026年4月30日周四 15:56写道:
Quoted 6 lines · On Wed, Apr 29, 2026 at 12:05:40PM +0800, [email protected] wrote:

From: Sunyun Yang <[email protected]>

The LT7911EXC is an I2C-controlled bridge that Receiver eDP1.4 and output signal/dual port mipi.

Missing space after ':' in subject.

it will be fixed in next version.

Quoted 10 lines

...

Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml line 36

Quoted 7 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +7 -0
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for MIPI DSI output.
Quoted 2 lines

Wrong description, first is input. Look at your DTS.

yes, you are right, I didn't notice this place.

it will be fixed in next version.
thanks Krzysztof Kozlowski

Quoted 47 lines
Quoted 33 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +33 -0
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for eDP input.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - vdd-supply
+  - vcc-supply
+  - ports
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mipi-bridge@41 {
+            compatible = "lontium,lt7911exc";
+            reg = <0x41>;
+            reset-gpios = <&gpy8 8 GPIO_ACTIVE_LOW>;
+            vdd-supply = <&lt7911exc_1v2>;
+            vcc-supply = <&lt7911exc_3v3>;
+

Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml line 79

Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +10 -0
+            ports {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                port@0 {
+                    reg = <0>;
+                    bridge_in: endpoint {
+                        remote-endpoint = <&edp_out>;
+                    };
+                };

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH v3 1/2] dt-bindings:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge

Quoted 9 lines · 杨孙运 <[email protected]> 于2026年4月30日周四 16:43写道:
Quoted 7 lines · Krzysztof Kozlowski <[email protected]> 于2026年4月30日周四 15:56写道:
Quoted 5 lines · On Wed, Apr 29, 2026 at 12:05:40PM +0800, [email protected] wrote:

From: Sunyun Yang <[email protected]>

The LT7911EXC is an I2C-controlled bridge that Receiver eDP1.4 and output signal/dual port mipi.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Missing space after ':' in subject.

it will be fixed in next version.

sorry, Where is the missing space? I didn't find it.

is:
Subject: [PATCH v3 1/2] dt-bindings:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI
?

Quoted 64 lines
Quoted 10 lines

...

Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml line 36

Quoted 7 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +7 -0
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for MIPI DSI output.
Quoted 2 lines

Wrong description, first is input. Look at your DTS.

yes, you are right, I didn't notice this place.

it will be fixed in next version.
thanks Krzysztof Kozlowski

Quoted 47 lines
Quoted 33 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +33 -0
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Video port for eDP input.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - vdd-supply
+  - vcc-supply
+  - ports
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mipi-bridge@41 {
+            compatible = "lontium,lt7911exc";
+            reg = <0x41>;
+            reset-gpios = <&gpy8 8 GPIO_ACTIVE_LOW>;
+            vdd-supply = <&lt7911exc_1v2>;
+            vcc-supply = <&lt7911exc_3v3>;
+

Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml line 79

Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt7911exc.yaml new file +10 -0
+            ports {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                port@0 {
+                    reg = <0>;
+                    bridge_in: endpoint {
+                        remote-endpoint = <&edp_out>;
+                    };
+                };

Best regards,
Krzysztof

#5 lore raw

PATCH v3 2/2 drm:bridge: Add Lontiun LT7911EXC eDP to MIPI DSI bridge

In reply to [email protected]

From: Sunyun Yang <[email protected]>

The LT7911EXC is an I2C-controlled bridge that Receiver eDP1.4 and output signal/dual port mipi.

---
 drivers/gpu/drm/bridge/Kconfig             |  13 +
 drivers/gpu/drm/bridge/Makefile            |   1 +
 drivers/gpu/drm/bridge/lontium-lt7911exc.c | 493 +++++++++++++++++++++
 3 files changed, 507 insertions(+)
 create mode 100644 drivers/gpu/drm/bridge/lontium-lt7911exc.c
drivers/gpu/drm/bridge/Kconfig +13 -0
index c3209b0f4678..8cff2bf15b09 100644
@@ -132,6 +132,19 @@ config DRM_ITE_IT6505
 	help
 	  ITE IT6505 DisplayPort bridge chip driver.
 
+config DRM_LONTIUM_LT7911EXC
+	tristate "Lontium eDP/MIPI bridge"
+	depends on OF
+	select CRC32
+	select FW_LOADER
+	select DRM_PANEL
+	select DRM_KMS_HELPER
+	help
+	  DRM driver for the Lontium LT7911EXC bridge chip.
+	  The LT7911EXC converts eDP input to single/dual port
+	  MIPI DSI output.
+	  Please say Y if you have such hardware.
+
 config DRM_LONTIUM_LT8912B
 	tristate "Lontium LT8912B DSI/HDMI bridge"
 	depends on OF
drivers/gpu/drm/bridge/Makefile +1 -0
index beab5b695a6e..70ddca75dd3a 100644
@@ -13,6 +13,7 @@ obj-$(CONFIG_DRM_I2C_NXP_TDA998X) += tda998x.o
 obj-$(CONFIG_DRM_INNO_HDMI) += inno-hdmi.o
 obj-$(CONFIG_DRM_ITE_IT6263) += ite-it6263.o
 obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o
+obj-$(CONFIG_DRM_LONTIUM_LT7911EXC) += lontium-lt7911exc.o
 obj-$(CONFIG_DRM_LONTIUM_LT8912B) += lontium-lt8912b.o
 obj-$(CONFIG_DRM_LONTIUM_LT9211) += lontium-lt9211.o
 obj-$(CONFIG_DRM_LONTIUM_LT9611) += lontium-lt9611.o
drivers/gpu/drm/bridge/lontium-lt7911exc.c new file +493 -0

493 lines not on this page · raw message

Signature · 1 line
2.34.1