Skip to contentSkip to conversation

Add support for the BOE ILI97680A AMOLED panel of the Motorola Signature

PATCH Superseded Venkat Yadlapati 2 participants 4 messages Nov 20 – Nov 22

Subsystems (4)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add support for the BOE ILI97680A AMOLED panel of the Motorola Signature

The Motorola Signature uses a 1264x2780 BOE AMOLED panel driven by an Ilitek ILI97680A. It is a MIPI DSI command mode panel with DSC 1.2 compression on four lanes. This series adds the devicetree binding and a driver for it.

Two things are specific to this panel. The DSC picture parameter set is written to a vendor register on command page 7 instead of being sent as a standard PPS packet, and the brightness range is 0 to 16180 over DCS.

Tested on a Motorola Signature with the msm DRM driver: the panel lights up at its native resolution and Phosh renders on it.

I used an LLM (Claude) to help write these patches and their commit messages. I reviewed all of them and tested the result on the device.

---
Changes in v3:
- Drop the Assisted-by trailers and the LLM notes from the commit
messages, the LLM use is stated in this cover letter.
- Drop an unused include, fill the DSC configuration before adding the panel and describe the PPS layout in the comment.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Give the panel its own compatible, "motorola,vantage-boe-ili97680a",
with "ilitek,ili97680a" as fallback: the mode, DSC settings and initialization sequence belong to this BOE panel, not to every
ILI97680A panel. BOE's part number is not known, so the name follows
the "<device>-<glass vendor>-<controller>" style of the Xiaomi and
Lenovo NT36523 panels.
- Driver: match the panel compatible.
- Link to v1: https://patch.msgid.link/[email protected]

To: Venkat Yadlapati <[email protected]>
To: Neil Armstrong <[email protected]>
To: Jessica Zhang <[email protected]>
To: Maarten Lankhorst <[email protected]>
To: Maxime Ripard <[email protected]>
To: Thomas Zimmermann <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Venkat Yadlapati (2):
dt-bindings: display: panel: Add Ilitek ILI97680A drm/panel: Add Ilitek ILI97680A DSC command mode panel driver

 .../bindings/display/panel/ilitek,ili97680a.yaml   |  75 ++++
 MAINTAINERS                                        |   6 +
 drivers/gpu/drm/panel/Kconfig                      |  16 +
 drivers/gpu/drm/panel/Makefile                     |   1 +
 drivers/gpu/drm/panel/panel-ilitek-ili97680a.c     | 495 +++++++++++++++++++++
 5 files changed, 593 insertions(+)

---
base-commit: 39e407b553ec15d4a233b651531ad431ed7542be
change-id: 20261116-vantage-panel-9b6254aa0a42

Best regards,

Signature · 1 line
Venkat Yadlapati <[email protected]>
#1 lore raw

PATCH v3 1/2 dt-bindings: display: panel: Add Ilitek ILI97680A

Document the Ilitek ILI97680A based 1264x2780 AMOLED panel by BOE, a MIPI DSI command mode panel with DSC 1.2 compression found in the Motorola Signature.

---
 .../bindings/display/panel/ilitek,ili97680a.yaml   | 75 ++++++++++++++++++++++
 MAINTAINERS                                        |  6 ++
 2 files changed, 81 insertions(+)
Documentation/devicetree/bindings/display/panel/ilitek,ili97680a.yaml new file +75 -0
new file mode 100644
index 000000000000..c098b44fef3f
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/ilitek,ili97680a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Ilitek ILI97680A based AMOLED DSI command mode panel
+
+maintainers:
+  - Venkat Yadlapati <[email protected]>
+
+description:
+  AMOLED panels driven by an Ilitek ILI97680A controller over MIPI DSI in
+  command mode with DSC 1.2 compression. The resolution, DSC settings and
+  initialization sequence depend on the panel, so each panel has its own
+  compatible with the controller as fallback.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    items:
+      - enum:
+          # 1264x2780 BOE panel of the Motorola Signature (vantage)
+          - motorola,vantage-boe-ili97680a
+      - const: ilitek,ili97680a
+
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  vci-supply: true
+  vdd-supply: true
+  vddio-supply: true
+  port: true
+  reset-gpios: true
+
+required:
+  - compatible
+  - reg
+  - vci-supply
+  - vdd-supply
+  - vddio-supply
+  - port
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "motorola,vantage-boe-ili97680a", "ilitek,ili97680a";
+            reg = <0>;
+
+            vci-supply = <&vreg_l13b_3p1>;
+            vdd-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vreg_l10b_1p8>;
+
+            reset-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>;
+
+            port {
+                endpoint {
+                    remote-endpoint = <&mdss_dsi1_out>;
+                };
+            };
+        };
+    };
+...
MAINTAINERS +6 -0
index c4f4e48774d0..e2a8093c328a 100644
@@ -13040,6 +13040,12 @@ M:	Stanislaw Gruszka <[email protected]>
 S:	Maintained
 F:	drivers/usb/atm/ueagle-atm.c
 
+ILITEK ILI97680A PANEL DRIVER
+M:	Venkat Yadlapati <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/display/panel/ilitek,ili97680a.yaml
+F:	drivers/gpu/drm/panel/panel-ilitek-ili97680a.c
+
 IMAGIS TOUCHSCREEN DRIVER
 M:	Markuss Broks <[email protected]>
 S:	Maintained
Signature · 1 line
2.56.1
Reviewed-by on v3 1/2
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings: display: panel: Add Ilitek ILI97680A

Documentation/devicetree/bindings/display/panel/ilitek,ili97680a.yaml line 45

Quoted 7 lines · Venkat Yadlapati
Documentation/devicetree/bindings/display/panel/ilitek,ili97680a.yaml new file +7 -0
+required:
+  - compatible
+  - reg
+  - vci-supply
+  - vdd-supply
+  - vddio-supply
+  - port

Drop port here

Quoted 35 lines
Documentation/devicetree/bindings/display/panel/ilitek,ili97680a.yaml new file +30 -0
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "motorola,vantage-boe-ili97680a", "ilitek,ili97680a";
+            reg = <0>;
+
+            vci-supply = <&vreg_l13b_3p1>;
+            vdd-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vreg_l10b_1p8>;
+
+            reset-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>;
+
+            port {
+                endpoint {
+                    remote-endpoint = <&mdss_dsi1_out>;
+                };
+            };
+        };
+    };
+...
MAINTAINERS +0 -0
index c4f4e48774d0..e2a8093c328a 100644

MAINTAINERS M: Stanislaw Gruszka <[email protected]> · line 13047

Quoted 8 lines
MAINTAINERS +5 -0
@@ -13040,6 +13040,12 @@ M:	Stanislaw Gruszka <[email protected]>
 S:	Maintained
 F:	drivers/usb/atm/ueagle-atm.c
 
+ILITEK ILI97680A PANEL DRIVER
+M:	Venkat Yadlapati <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/display/panel/ilitek,ili97680a.yaml
+F:	drivers/gpu/drm/panel/panel-ilitek-ili97680a.c

There is no such file. Drop.

With these two fixed:

Best regards,
Krzysztof

#3 lore raw

PATCH v3 2/2 drm/panel: Add Ilitek ILI97680A DSC command mode panel driver

In reply to Venkat Yadlapati

Add a driver for the 1264x2780 BOE AMOLED panel driven by an Ilitek ILI97680A, found in the Motorola Signature. The panel runs in DSI command mode on four lanes with DSC 1.2 at 10 bits per component and 8 bits per pixel, two 632x20 slices per line.

The picture parameter set is not taken from the standard DSC PPS packet but written to a vendor register on command page 7. Brightness is controlled through DCS with a range of 0 to 16180.

---
 drivers/gpu/drm/panel/Kconfig                  |  16 +
 drivers/gpu/drm/panel/Makefile                 |   1 +
 drivers/gpu/drm/panel/panel-ilitek-ili97680a.c | 495 +++++++++++++++++++++++++
 3 files changed, 512 insertions(+)
drivers/gpu/drm/panel/Kconfig +16 -0
index 26ffa2378f55..070f152f01e2 100644
@@ -353,6 +353,22 @@ config DRM_PANEL_ILITEK_ILI9488
 	  Say Y if you want to enable support for panels based on the
 	  Ilitek ILI9488 controller.
 
+config DRM_PANEL_ILITEK_ILI97680A
+	tristate "Ilitek ILI97680A-based DSC command mode panels"
+	depends on OF
+	depends on DRM_MIPI_DSI
+	depends on BACKLIGHT_CLASS_DEVICE
+	select DRM_DISPLAY_DSC_HELPER
+	select DRM_DISPLAY_HELPER
+	help
+	  Say Y here if you want to enable support for Ilitek ILI97680A-based
+	  DSI command mode panels with DSC, such as the 1264x2780 BOE panel in
+	  the Motorola Signature. The panel is driven in command mode with
+	  Display Stream Compression and its brightness is controlled over DCS.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called panel-ilitek-ili97680a.
+
 config DRM_PANEL_ILITEK_ILI9805
 	tristate "Ilitek ILI9805-based panels"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index 365f2e73f6b4..3ac5685662e3 100644
@@ -34,6 +34,7 @@ obj-$(CONFIG_DRM_PANEL_ILITEK_ILI7836A) += panel-ilitek-ili7836a.o
 obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o
 obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o
 obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9488) += panel-ilitek-ili9488.o
+obj-$(CONFIG_DRM_PANEL_ILITEK_ILI97680A) += panel-ilitek-ili97680a.o
 obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9805) += panel-ilitek-ili9805.o
 obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9806E_CORE) += panel-ilitek-ili9806e-core.o
 obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9806E_DSI) += panel-ilitek-ili9806e-dsi.o
drivers/gpu/drm/panel/panel-ilitek-ili97680a.c new file +495 -0

495 lines not on this page · raw message

Signature · 1 line
2.56.1