drm: panel: add support for panels used in LG P880/P895
Subsystems (4)
v2 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 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 | 95 +++++ .../display/panel/renesas,r69328.yaml | 74 ++++ drivers/gpu/drm/panel/Kconfig | 26 ++ drivers/gpu/drm/panel/Makefile | 2 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 327 ++++++++++++++++++ drivers/gpu/drm/panel/panel-renesas-r69328.c | 283 +++++++++++++++ 6 files changed, 807 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
PATCH v2 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 | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml
Documentation/devicetree/bindings/display/panel/renesas,r61307.yaml new file +95 -0
@@ -0,0 +1,95 @@ +# 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
PATCH v2 2/4 drm: panel: Add support for Renesas R61307 based MIPI DSI panel
In reply to Svyatoslav RyhelR61307 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 | 327 +++++++++++++++++++ 3 files changed, 341 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-renesas-r61307.c
drivers/gpu/drm/panel/Kconfig +13 -0
@@ -605,6 +605,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
@@ -61,6 +61,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.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 +327 -0
327 lines not on this page · raw message
Signature · 1 line
2.48.1
Re: [PATCH v2 2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel
Quoted 15 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,tx13d100vm0eaaSigned-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 327 +++++++++++++++++++ 3 files changed, 341 insertions(+)create mode 100644
drivers/gpu/drm/panel/panel-renesas-r61307.c
<snip>
Quoted 35 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +35
-0+static int renesas_r61307_probe (struct mipi_dsi_device *dsi) +{ +struct device *dev = &dsi->dev; +struct renesas_r61307 *priv; +int ret; + + priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL ); +if (!priv) +return -ENOMEM ; + + priv->vcc_supply =devm_regulator_get (dev,"vcc" ); +if (IS_ERR (priv->vcc_supply)) +return dev_err_probe (dev,PTR_ERR (priv->vcc_supply), +"Failed to get vcc-supply\n" ); + + priv->iovcc_supply =devm_regulator_get (dev,"iovcc" ); +if (IS_ERR (priv->iovcc_supply)) +return dev_err_probe (dev,PTR_ERR (priv->iovcc_supply), +"Failed to get iovcc-supply\n" ); + + priv->reset_gpio =devm_gpiod_get_optional (dev,"reset" , +GPIOD_OUT_HIGH ); +if (IS_ERR (priv->reset_gpio)) +return dev_err_probe (dev,PTR_ERR (priv->reset_gpio), +"Failed to get reset gpios\n" ); + +if (device_property_read_bool (dev,"renesas,inversion" )) + priv->inversion = true; + +if (device_property_read_bool (dev,"renesas,contrast" )) + priv->dig_cont_adj = true; + + priv->gamma =0 ; +device_property_read_u32 (dev,"renesas,gamma" , &priv->gamma); +
drivers/gpu/drm/panel/panel-renesas-r61307.c line 278
Quoted 10 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +10
-0+ priv->dsi = dsi; +mipi_dsi_set_drvdata (dsi, priv); + + dsi->lanes =4 ; + dsi->format =MIPI_DSI_FMT_RGB888 ; + dsi->mode_flags =MIPI_DSI_MODE_VIDEO |MIPI_DSI_MODE_VIDEO_SYNC_PULSE | +MIPI_DSI_CLOCK_NON_CONTINUOUS |MIPI_DSI_MODE_LPM ; + +drm_panel_init (&priv->panel, dev, &renesas_r61307_panel_funcs, +DRM_MODE_CONNECTOR_DSI );
Please switch to devm_drm_panel_alloc()
drivers/gpu/drm/panel/panel-renesas-r61307.c line 285
Quoted 7 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +7
-0+ + ret =drm_panel_of_backlight (&priv->panel); +if (ret) +return dev_err_probe (dev, ret,"Failed to get backlight\n" ); + +drm_panel_add (&priv->panel); +
<snip>
With that:
Re: [PATCH v2 2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel
пн, 5 трав. 2025 р. о 10:50 Neil Armstrong <[email protected]> пише:
Quoted 59 lines · Svyatoslav Ryhel
Quoted 15 lines
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,tx13d100vm0eaaSigned-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 327 +++++++++++++++++++ 3 files changed, 341 insertions(+)create mode 100644
drivers/gpu/drm/panel/panel-renesas-r61307.c<snip>
Quoted 39 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +39
-0+static int renesas_r61307_probe (struct mipi_dsi_device *dsi) +{ +struct device *dev = &dsi->dev; +struct renesas_r61307 *priv; +int ret; + + priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL ); +if (!priv) +return -ENOMEM ; + + priv->vcc_supply =devm_regulator_get (dev,"vcc" ); +if (IS_ERR (priv->vcc_supply)) +return dev_err_probe (dev,PTR_ERR (priv->vcc_supply), +"Failed to get vcc-supply\n" ); + + priv->iovcc_supply =devm_regulator_get (dev,"iovcc" ); +if (IS_ERR (priv->iovcc_supply)) +return dev_err_probe (dev,PTR_ERR (priv->iovcc_supply), +"Failed to get iovcc-supply\n" ); + + priv->reset_gpio =devm_gpiod_get_optional (dev,"reset" , +GPIOD_OUT_HIGH ); +if (IS_ERR (priv->reset_gpio)) +return dev_err_probe (dev,PTR_ERR (priv->reset_gpio), +"Failed to get reset gpios\n" ); + +if (device_property_read_bool (dev,"renesas,inversion" )) + priv->inversion = true; + +if (device_property_read_bool (dev,"renesas,contrast" )) + priv->dig_cont_adj = true; + + priv->gamma =0 ; +device_property_read_u32 (dev,"renesas,gamma" , &priv->gamma); + + priv->dsi = dsi; +mipi_dsi_set_drvdata (dsi, priv); + + dsi->lanes =4 ;
Quoted 9 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c line 278
Quoted 6 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +6
-0+ dsi->format =MIPI_DSI_FMT_RGB888 ; + dsi->mode_flags =MIPI_DSI_MODE_VIDEO |MIPI_DSI_MODE_VIDEO_SYNC_PULSE | +MIPI_DSI_CLOCK_NON_CONTINUOUS |MIPI_DSI_MODE_LPM ; + +drm_panel_init (&priv->panel, dev, &renesas_r61307_panel_funcs, +DRM_MODE_CONNECTOR_DSI );Please switch to
devm_drm_panel_alloc()
This helper is not available as for 6.15-rc5
Quoted 11 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c line 285
Quoted 7 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +7
-0+ + ret =drm_panel_of_backlight (&priv->panel); +if (ret) +return dev_err_probe (dev, ret,"Failed to get backlight\n" ); + +drm_panel_add (&priv->panel); +<snip>
With that:
Reviewed-by Neil Armstrong <[email protected]>
Neil Armstrong
maintainerRe: [PATCH v2 2/4] drm: panel: Add support for Renesas R61307 based MIPI DSI panel
Quoted 70 lines · Svyatoslav Ryhel
пн, 5 трав. 2025 р. о 10:50 Neil Armstrong <[email protected]> пише:
Quoted 59 lines · Svyatoslav Ryhel
Quoted 15 lines
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,tx13d100vm0eaaSigned-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 327 +++++++++++++++++++ 3 files changed, 341 insertions(+)create mode 100644
drivers/gpu/drm/panel/panel-renesas-r61307.c<snip>
Quoted 39 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +39
-0+static int renesas_r61307_probe (struct mipi_dsi_device *dsi) +{ +struct device *dev = &dsi->dev; +struct renesas_r61307 *priv; +int ret; + + priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL ); +if (!priv) +return -ENOMEM ; + + priv->vcc_supply =devm_regulator_get (dev,"vcc" ); +if (IS_ERR (priv->vcc_supply)) +return dev_err_probe (dev,PTR_ERR (priv->vcc_supply), +"Failed to get vcc-supply\n" ); + + priv->iovcc_supply =devm_regulator_get (dev,"iovcc" ); +if (IS_ERR (priv->iovcc_supply)) +return dev_err_probe (dev,PTR_ERR (priv->iovcc_supply), +"Failed to get iovcc-supply\n" ); + + priv->reset_gpio =devm_gpiod_get_optional (dev,"reset" , +GPIOD_OUT_HIGH ); +if (IS_ERR (priv->reset_gpio)) +return dev_err_probe (dev,PTR_ERR (priv->reset_gpio), +"Failed to get reset gpios\n" ); + +if (device_property_read_bool (dev,"renesas,inversion" )) + priv->inversion = true; + +if (device_property_read_bool (dev,"renesas,contrast" )) + priv->dig_cont_adj = true; + + priv->gamma =0 ; +device_property_read_u32 (dev,"renesas,gamma" , &priv->gamma); + + priv->dsi = dsi; +mipi_dsi_set_drvdata (dsi, priv); + + dsi->lanes =4 ;Quoted 9 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c line 278
Quoted 6 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +6
-0+ dsi->format =MIPI_DSI_FMT_RGB888 ; + dsi->mode_flags =MIPI_DSI_MODE_VIDEO |MIPI_DSI_MODE_VIDEO_SYNC_PULSE | +MIPI_DSI_CLOCK_NON_CONTINUOUS |MIPI_DSI_MODE_LPM ; + +drm_panel_init (&priv->panel, dev, &renesas_r61307_panel_funcs, +DRM_MODE_CONNECTOR_DSI );Please switch to
devm_drm_panel_alloc()
Quoted 1 line
This helper is not available as for 6.15-rc5
Please rebase on on drm-misc-next or linux-next:
https://cgit.freedesktop.org/drm/drm-misc/
Thanks,
Neil
Quoted 12 lines
Quoted 12 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c line 285
Quoted 8 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c new file +7
-0+ + ret =drm_panel_of_backlight (&priv->panel); +if (ret) +return dev_err_probe (dev, ret,"Failed to get backlight\n" ); + +drm_panel_add (&priv->panel); +<snip>
With that:
Reviewed-by Neil Armstrong <[email protected]>
PATCH v2 3/4 dt-bindings: display: panel: Document Renesas R69328 based DSI panel
In reply to Svyatoslav RyhelR69328 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.
--- .../display/panel/renesas,r69328.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/renesas,r69328.yaml
Documentation/devicetree/bindings/display/panel/renesas,r69328.yaml new file +74 -0
@@ -0,0 +1,74 @@ +# 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
PATCH v2 4/4 drm: panel: Add support for Renesas R69328 based MIPI DSI panel
In reply to Svyatoslav RyhelFrom: 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 | 283 +++++++++++++++++++ 3 files changed, 297 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-renesas-r69328.c
drivers/gpu/drm/panel/Kconfig +13 -0
@@ -618,6 +618,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
@@ -62,6 +62,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 +283 -0
283 lines not on this page · raw message
Signature · 1 line
2.48.1
Re: [PATCH v2 4/4] drm: panel: Add support for Renesas R69328 based MIPI DSI panel
Quoted 17 lines · Svyatoslav Ryhel
From: Maxim Schwalm <[email protected]>
Driver adds support for panels with Renesas R69328 IC
Currently supported compatible is:
- jdi,dx12d100vm0eaaCo-developed-by Svyatoslav Ryhel <[email protected]>Signed-off-by Svyatoslav Ryhel <[email protected]>Signed-off-by Maxim Schwalm <[email protected]>--- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r69328.c | 283 +++++++++++++++++++ 3 files changed, 297 insertions(+)create mode 100644
drivers/gpu/drm/panel/panel-renesas-r69328.c
<snip>
Quoted 27 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c new file +27
-0+ +static int renesas_r69328_probe (struct mipi_dsi_device *dsi) +{ +struct device *dev = &dsi->dev; +struct renesas_r69328 *priv; +int ret; + + priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL ); +if (!priv) +return -ENOMEM ; + + priv->vdd_supply =devm_regulator_get (dev,"vdd" ); +if (IS_ERR (priv->vdd_supply)) +return dev_err_probe (dev,PTR_ERR (priv->vdd_supply), +"Failed to get vdd-supply\n" ); + + priv->vddio_supply =devm_regulator_get (dev,"vddio" ); +if (IS_ERR (priv->vddio_supply)) +return dev_err_probe (dev,PTR_ERR (priv->vddio_supply), +"Failed to get vddio-supply\n" ); + + priv->reset_gpio =devm_gpiod_get_optional (dev,"reset" , +GPIOD_OUT_LOW ); +if (IS_ERR (priv->reset_gpio)) +return dev_err_probe (dev,PTR_ERR (priv->reset_gpio), +"Failed to get reset-gpios\n" ); +
drivers/gpu/drm/panel/panel-renesas-r69328.c line 234
Quoted 10 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c new file +10
-0+ priv->dsi = dsi; +mipi_dsi_set_drvdata (dsi, priv); + + dsi->lanes =4 ; + dsi->format =MIPI_DSI_FMT_RGB888 ; + dsi->mode_flags =MIPI_DSI_MODE_VIDEO |MIPI_DSI_MODE_VIDEO_SYNC_PULSE | +MIPI_DSI_CLOCK_NON_CONTINUOUS |MIPI_DSI_MODE_LPM ; + +drm_panel_init (&priv->panel, dev, &renesas_r69328_panel_funcs, +DRM_MODE_CONNECTOR_DSI );
Same as patch 2
Quoted 7 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c new file +7
-0+ + ret =drm_panel_of_backlight (&priv->panel); +if (ret) +return dev_err_probe (dev, ret,"Failed to get backlight\n" ); + +drm_panel_add (&priv->panel); +
drivers/gpu/drm/panel/panel-renesas-r69328.c line 251
Quoted 10 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c new file +10
-0+ ret =mipi_dsi_attach (dsi); +if (ret) { +dev_err (dev,"Failed to attach to DSI host: %d\n" , ret); +drm_panel_remove (&priv->panel); +return ret; + } + +return 0 ; +} +
<snip>
With that fixed: