drm/panel: initial support for the Ortustech COM35H3P70ULC
Subsystems (4)
cover drm/panel: initial support for the Ortustech COM35H3P70ULC
Add initial support for the 480x640 DSI panel from Ortustech. The panel uses an Ilitek ILI9806E panel driver IC.
Michael Walle (2):
dt-bindings: display: panel: add Ilitek ili9806e panel controller drm/panel: add Ilitek ILI9806E panel driver
.../display/panel/ilitek,ili9806e.yaml | 63 +++ MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 413 ++++++++++++++++++ 5 files changed, 491 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
Signature · 1 line
2.39.2
PATCH 1/2 dt-bindings: display: panel: add Ilitek ili9806e panel controller
Add the device tree binding for the Ilitek ILI9806E controller which can be found on the Ortustech COME35H3P70ULC DSI display panel.
There are no peculiarities except for two different power signals.
--- .../display/panel/ilitek,ili9806e.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml
Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml new file +63 -0
@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/ilitek,ili9806e.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek ILI9806E based MIPI-DSI panels + +maintainers: + - Michael Walle <[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - ortustech,com35h3p70ulc + - const: ilitek,ili9806e + + reg: + maxItems: 1 + + vdd-supply: true + vccio-supply: true + +required: + - compatible + - reg + - vdd-supply + - vccio-supply + - reset-gpios + - backlight + - port + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "ortustech,com35h3p70ulc", "ilitek,ili9806e"; + reg = <0>; + vdd-supply = <®_vdd_panel>; + vccio-supply = <®_vccio_panel>; + reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + }; + +...
Signature · 1 line
2.39.2
Re: [PATCH 1/2] dt-bindings: display: panel: add Ilitek ili9806e panel controller
Quoted 6 lines · Michael Walle
Add the device tree binding for the Ilitek ILI9806E controller which can be found on the Ortustech COME35H3P70ULC DSI display panel.
There are no peculiarities except for two different power signals.
Signed-off-by Michael Walle <[email protected]>
PATCH 2/2 drm/panel: add Ilitek ILI9806E panel driver
In reply to Michael WalleThe Ortustech COM35H3P70ULC panel is based on the ILI9806E DSI display controller.
--- MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 413 ++++++++++++++++++ 4 files changed, 428 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
MAINTAINERS +5 -0
@@ -7002,6 +7002,11 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/ilitek,ili9805.yaml F: drivers/gpu/drm/panel/panel-ilitek-ili9805.c +DRM DRIVER FOR ILITEK ILI9806E PANELS +M: Michael Walle <[email protected]> +S: Maintained +F: drivers/gpu/drm/panel/panel-ilitek-ili9806e.c + DRM DRIVER FOR JADARD JD9365DA-H3 MIPI-DSI LCD PANELS M: Jagan Teki <[email protected]> S: Maintained
drivers/gpu/drm/panel/Kconfig +9 -0
@@ -205,6 +205,15 @@ config DRM_PANEL_ILITEK_ILI9805 Say Y if you want to enable support for panels based on the Ilitek ILI9805 controller. +config DRM_PANEL_ILITEK_ILI9806E + tristate "Ilitek ILI9806E-based panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Ilitek ILI9806E controller. + config DRM_PANEL_ILITEK_ILI9881C tristate "Ilitek ILI9881C-based panels" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -21,6 +21,7 @@ obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.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_ILI9805) += panel-ilitek-ili9805.o +obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9806E) += panel-ilitek-ili9806e.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9882T) += panel-ilitek-ili9882t.o obj-$(CONFIG_DRM_PANEL_INNOLUX_EJ030NA) += panel-innolux-ej030na.o
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c new file +413 -0
413 lines not on this page · raw message
Signature · 1 line
2.39.2
Re: [PATCH 2/2] drm/panel: add Ilitek ILI9806E panel driver
Quoted 3 lines · Michael Walle
The Ortustech COM35H3P70ULC panel is based on the ILI9806E DSI display controller.
[...]
Quoted 6 lines
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c new file +6
-0+static int ili9806e_get_modes (struct drm_panel *panel, +struct drm_connector *connector) +{ +struct ili9806e_panel *ctx =to_ili9806e_panel (panel); +struct drm_display_mode *mode; +
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c line 155
Quoted 10 lines
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c new file +10
-0+ mode =drm_mode_duplicate (connector->dev, ctx->desc->display_mode); +if (!mode) +return -ENOMEM ; + +drm_mode_set_name (mode); + + mode->type =DRM_MODE_TYPE_DRIVER |DRM_MODE_TYPE_PREFERRED ; + connector->display_info.width_mm = mode->width_mm; + connector->display_info.height_mm = mode->height_mm; +drm_mode_probed_add (connector, mode);
drm_connector_helper_get_modes_fixed(), please.
Quoted 4 lines
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c new file +4
-0+ +return 1 ; +} +
Signature · 2 lines
With best wishes Dmitry