Skip to contentSkip to conversation

drm: panel: add support for panels used in LG P880/P895

PATCH Applied Svyatoslav Ryhel 4 participants 12 messages May 6, 2025 – May 24, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v3 cover drm: panel: add support for panels used in LG P880/P895

Add support for panels used in LG P880/P895 which are based on Renesas IC (not related to Renesas RISC-V architecture just the same manufacturer).

---
Changes in v3:
- switch to devm_drm_panel_alloc
- rebased on top of drm-misc-next

Changes in v2:
- added IC vendor compatible ass fallback
- renamed renesas,inversion > renesas,column-inversion
---

Maxim Schwalm (1):
drm: panel: Add support for Renesas R69328 based MIPI DSI panel

Svyatoslav Ryhel (3):
dt-bindings: display: panel: Document Renesas R61307 based DSI panel
drm: panel: Add support for Renesas R61307 based MIPI DSI panel
dt-bindings: display: panel: Document Renesas R69328 based DSI panel

 .../display/panel/renesas,r61307.yaml         |  94 +++++
 .../display/panel/renesas,r69328.yaml         |  73 ++++
 drivers/gpu/drm/panel/Kconfig                 |  26 ++
 drivers/gpu/drm/panel/Makefile                |   2 +
 drivers/gpu/drm/panel/panel-renesas-r61307.c  | 325 ++++++++++++++++++
 drivers/gpu/drm/panel/panel-renesas-r69328.c  | 281 +++++++++++++++
 6 files changed, 801 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml
 create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r69328.yaml
 create mode 100644 drivers/gpu/drm/panel/panel-renesas-r61307.c
 create mode 100644 drivers/gpu/drm/panel/panel-renesas-r69328.c
Signature · 1 line
2.48.1
#1 lore raw

PATCH v3 1/4 dt-bindings: display: panel: Document Renesas R61307 based DSI panel

R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

---
 .../display/panel/renesas,r61307.yaml         | 94 +++++++++++++++++++
 1 file changed, 94 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml
Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml new file +94 -0
new file mode 100644
index 000000000000..90cce221c0d1
@@ -0,0 +1,94 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/renesas,r61307.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas R61307 based DSI Display Panel
+
+maintainers:
+  - Svyatoslav Ryhel <[email protected]>
+
+description:
+  The Renesas R61307 is a generic DSI Panel IC used to control LCD panels.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    items:
+      - enum:
+            # KOE/HITACHI TX13D100VM0EAA 5.0" XGA TFT LCD panel
+          - hit,tx13d100vm0eaa
+          - koe,tx13d100vm0eaa
+      - const: renesas,r61307
+
+  reg:
+    maxItems: 1
+
+  vcc-supply:
+    description: Regulator for main power supply.
+
+  iovcc-supply:
+    description: Regulator for 1.8V IO power supply.
+
+  backlight: true
+
+  renesas,gamma:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description:
+      0 - disabled
+      1-3 - gamma setting A presets
+    enum: [0, 1, 2, 3]
+
+  renesas,column-inversion:
+    type: boolean
+    description: switch between line and column inversion. The line
+      inversion is set by default.
+
+  renesas,contrast:
+    type: boolean
+    description: digital contrast adjustment
+
+  reset-gpios: true
+  port: true
+
+required:
+  - compatible
+  - port
+  - backlight
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@1 {
+            compatible = "koe,tx13d100vm0eaa", "renesas,r61307";
+            reg = <1>;
+
+            reset-gpios = <&gpio 176 GPIO_ACTIVE_LOW>;
+
+            renesas,gamma = <3>;
+            renesas,column-inversion;
+            renesas,contrast;
+
+            vcc-supply = <&vcc_3v0_lcd>;
+            iovcc-supply = <&iovcc_1v8_lcd>;
+
+            backlight = <&backlight>;
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&dsi_out>;
+                };
+            };
+        };
+    };
+...
Signature · 1 line
2.48.1
Reviewed-by on v3 1/4
#2 lore raw

Re: [PATCH v3 1/4] dt-bindings: display: panel: Document Renesas R61307 based DSI panel

Quoted 4 lines · Svyatoslav Ryhel

R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

I see you have gone the extra mile and deduced the underlying display controller, excellent work.

Yours,
Linus Walleij

maintainer Reviewed-by on v3 1/4
#3 lore raw

Re: [PATCH v3 1/4] dt-bindings: display: panel: Document Renesas R61307 based DSI panel

In reply to Svyatoslav Ryhel
Quoted 9 lines · Svyatoslav Ryhel

R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

---
 .../display/panel/renesas,r61307.yaml         | 94 +++++++++++++++++++
 1 file changed, 94 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml
#4 lore raw

PATCH v3 2/4 drm: panel: Add support for Renesas R61307 based MIPI DSI panel

In reply to Svyatoslav Ryhel

R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

Supported compatibles are:
- hit,tx13d100vm0eaa
- koe,tx13d100vm0eaa

---
 drivers/gpu/drm/panel/Kconfig                |  13 +
 drivers/gpu/drm/panel/Makefile               |   1 +
 drivers/gpu/drm/panel/panel-renesas-r61307.c | 325 +++++++++++++++++++
 3 files changed, 339 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-renesas-r61307.c
drivers/gpu/drm/panel/Kconfig +13 -0
index 639f4324db61..d15ad60d977f 100644
@@ -635,6 +635,19 @@ config DRM_PANEL_RAYDIUM_RM69380
 	  This panel controller can be found in the Lenovo Xiaoxin Pad Pro 2021
 	  in combination with an EDO OLED panel.
 
+config DRM_PANEL_RENESAS_R61307
+	tristate "Renesas R61307 DSI video mode panel"
+	depends on OF
+	depends on DRM_MIPI_DSI
+	depends on BACKLIGHT_CLASS_DEVICE
+	help
+	  Say Y here if you want to enable support for KOE tx13d100vm0eaa
+	  IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
+	  resolution and uses 24 bit RGB per pixel.
+
+	  This panel controller can be found in LG Optimus Vu P895 smartphone
+	  in combination with LCD panel.
+
 config DRM_PANEL_RONBO_RB070D30
 	tristate "Ronbo Electronics RB070D30 panel"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index 5eec88e4ac3d..196288532c9f 100644
@@ -64,6 +64,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67200) += panel-raydium-rm67200.o
 obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o
 obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o
 obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o
+obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) += panel-renesas-r61307.o
 obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) += panel-samsung-ams581vf01.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) += panel-samsung-ams639rq08.o
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +325 -0

325 lines not on this page · raw message

Signature · 1 line
2.48.1
Reviewed-by on v3 2/4
#5 lore raw

Re: [PATCH v3 2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel

Quoted 9 lines · Svyatoslav Ryhel

R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

Supported compatibles are:
- hit,tx13d100vm0eaa
- koe,tx13d100vm0eaa

Yours,
Linus Walleij

#6 lore raw

PATCH v3 3/4 dt-bindings: display: panel: Document Renesas R69328 based DSI panel

In reply to Svyatoslav Ryhel

R69328 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

---
 .../display/panel/renesas,r69328.yaml         | 73 +++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r69328.yaml
Documentation/devicetree/bindings/display/panel/renesas,r69328.yaml new file +73 -0
new file mode 100644
index 000000000000..1cd219b510ee
@@ -0,0 +1,73 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/renesas,r69328.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas R69328 based DSI Display Panel
+
+maintainers:
+  - Svyatoslav Ryhel <[email protected]>
+
+description:
+  The Renesas R69328 is a generic DSI Panel IC used to control LCD panels.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    items:
+      - enum:
+            # JDI DX12D100VM0EAA 4.7" WXGA TFT LCD panel
+          - jdi,dx12d100vm0eaa
+      - const: renesas,r69328
+
+  reg:
+    maxItems: 1
+
+  vdd-supply:
+    description: Regulator for main power supply.
+
+  vddio-supply:
+    description: Regulator for 1.8V IO power supply.
+
+  backlight: true
+
+  reset-gpios: true
+  port: true
+
+required:
+  - compatible
+  - port
+  - backlight
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@1 {
+            compatible = "jdi,dx12d100vm0eaa", "renesas,r69328";
+            reg = <1>;
+
+            reset-gpios = <&gpio 176 GPIO_ACTIVE_LOW>;
+
+            vdd-supply = <&vdd_3v0_lcd>;
+            vddio-supply = <&vdd_1v8_io>;
+
+            backlight = <&backlight>;
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&dsi_out>;
+                };
+            };
+        };
+    };
+...
Signature · 1 line
2.48.1
maintainer Reviewed-by on v3 3/4
#8 lore raw

Re: [PATCH v3 3/4] dt-bindings: display: panel: Document Renesas R69328 based DSI panel

In reply to Svyatoslav Ryhel
Quoted 9 lines · Svyatoslav Ryhel

R69328 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

---
 .../display/panel/renesas,r69328.yaml         | 73 +++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r69328.yaml
#9 lore raw

PATCH v3 4/4 drm: panel: Add support for Renesas R69328 based MIPI DSI panel

In reply to Svyatoslav Ryhel

From: Maxim Schwalm <[email protected]>

Driver adds support for panels with Renesas R69328 IC

Currently supported compatible is:
- jdi,dx12d100vm0eaa

---
 drivers/gpu/drm/panel/Kconfig                |  13 +
 drivers/gpu/drm/panel/Makefile               |   1 +
 drivers/gpu/drm/panel/panel-renesas-r69328.c | 281 +++++++++++++++++++
 3 files changed, 295 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-renesas-r69328.c
drivers/gpu/drm/panel/Kconfig +13 -0
index d15ad60d977f..18adcac9e227 100644
@@ -648,6 +648,19 @@ config DRM_PANEL_RENESAS_R61307
 	  This panel controller can be found in LG Optimus Vu P895 smartphone
 	  in combination with LCD panel.
 
+config DRM_PANEL_RENESAS_R69328
+	tristate "Renesas R69328 720x1280 DSI video mode panel"
+	depends on OF
+	depends on DRM_MIPI_DSI
+	depends on BACKLIGHT_CLASS_DEVICE
+	help
+	  Say Y here if you want to enable support for JDI dx12d100vm0eaa
+	  IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
+	  resolution and uses 24 bit RGB per pixel.
+
+	  This panel controller can be found in LG Optimus 4X P895 smartphone
+	  in combination with LCD panel.
+
 config DRM_PANEL_RONBO_RB070D30
 	tristate "Ronbo Electronics RB070D30 panel"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index 196288532c9f..5d961e966eb7 100644
@@ -65,6 +65,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o
 obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o
 obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o
 obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) += panel-renesas-r61307.o
+obj-$(CONFIG_DRM_PANEL_RENESAS_R69328) += panel-renesas-r69328.o
 obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) += panel-samsung-ams581vf01.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) += panel-samsung-ams639rq08.o
drivers/gpu/drm/panel/panel-renesas-r69328.c new file +281 -0

281 lines not on this page · raw message

Signature · 1 line
2.48.1
Reviewed-by on v3 4/4
#10 lore raw

Re: [PATCH v3 4/4] drm: panel: Add support for Renesas R69328 based MIPI DSI panel

Quoted 11 lines · Svyatoslav Ryhel

From: Maxim Schwalm <[email protected]>

Driver adds support for panels with Renesas R69328 IC

Currently supported compatible is:
- jdi,dx12d100vm0eaa

Yours,
Linus Walleij

#11 lore raw
In reply to Svyatoslav Ryhel
Quoted 3 lines · Svyatoslav Ryhel

Add support for panels used in LG P880/P895 which are based on Renesas IC (not related to Renesas RISC-V architecture just the same manufacturer).

Applied to drm-misc-next, thanks!

[1/4] dt-bindings: display: panel: Document Renesas R61307 based DSI panel

      commit: 43adabbe3a7912b2db199a17d446a5d9fcde6fc7
[2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel
      commit: cb6c01ead1eb78f7676ea09fe407c4aa1c5855b3
[3/4] dt-bindings: display: panel: Document Renesas R69328 based DSI panel
      commit: 215c73d48330230dc0ab0bbdd2798dd2ce66acfd
[4/4] drm: panel: Add support for Renesas R69328 based MIPI DSI panel
      commit: 9e0f93f7af569c6aee53eedac2c4161ea9d50169

Best regards,

Signature · 1 line
Dmitry Baryshkov <[email protected]>