Add Samsung S6E3HA8 panel driver
Subsystems (5)
Dzmitry Sankouski
maintainerv6 cover Add Samsung S6E3HA8 panel driver
The s6e3ha8 is a 1440x2960 DPI AMOLED display panel from Samsung Mobile
Displays (SMD)
---
Changes in v6:
- add new patch with mipi_dsi_compression_mode_multi function
- Link to v5: https://lore.kernel.org/r/20240926-starqltechn_integration_upstream-v5-0-1cb0e43e623f@gmail.com
Changes in v5:
- Split patchset per subsystem
- Link to v4: https://lore.kernel.org/r/20240913-starqltechn_integration_upstream-v4-0-2d2efd5c5877@gmail.com
---
Dzmitry Sankouski (3):
drm/mipi-dsi: add mipi_dsi_compression_mode_multi
dt-bindings: panel: add Samsung s6e3ha8 drm/panel: Add support for S6E3HA8 panel driver
Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml | 75 +++++++++++++++++++++ MAINTAINERS | 6 ++ drivers/gpu/drm/drm_mipi_dsi.c | 16 +++++ drivers/gpu/drm/panel/Kconfig | 7 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c | 342 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/drm/drm_mipi_dsi.h | 2 + 7 files changed, 449 insertions(+)
---
base-commit: 58ca61c1a866bfdaa5e19fb19a2416764f847d75
change-id: 20240617-starqltechn_integration_upstream-bc86850b2fe3
Best regards,
Signature · 1 line
Dzmitry Sankouski <[email protected]>
Dzmitry Sankouski
maintainerPATCH v6 1/3 drm/mipi-dsi: add mipi_dsi_compression_mode_multi
mipi_dsi_compression_mode_multi can help with
error handling.
--- drivers/gpu/drm/drm_mipi_dsi.c | 16 ++++++++++++++++ include/drm/drm_mipi_dsi.h | 2 ++ 2 files changed, 18 insertions(+)
drivers/gpu/drm/drm_mipi_dsi.c +16 -0
@@ -1520,6 +1520,22 @@ void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx, }EXPORT_SYMBOL (mipi_dsi_compression_mode_ext_multi); +/** +* mipi_dsi_compression_mode_multi() - enable/disable DSC on the peripheral +* @dsi: DSI peripheral device +* @enable: Whether to enable or disable the DSC +* +* Enable or disable Display Stream Compression on the peripheral using the +* default Picture Parameter Set and VESA DSC 1.1 algorithm. +*/ +void mipi_dsi_compression_mode_multi (struct mipi_dsi_multi_context *ctx, +bool enable) +{ +return mipi_dsi_compression_mode_ext_multi (ctx, enable, +MIPI_DSI_COMPRESSION_DSC ,0 ); +} +EXPORT_SYMBOL (mipi_dsi_compression_mode_multi); +/** * mipi_dsi_dcs_nop_multi() - send DCS NOP packet * @ctx: Context for multiple DSI transactions
include/drm/drm_mipi_dsi.h +2 -0
@@ -280,6 +280,8 @@ void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx,bool enable, enum mipi_dsi_compression_algo algo, unsigned int pps_selector); +void mipi_dsi_compression_mode_multi (struct mipi_dsi_multi_context *ctx, +bool enable);void mipi_dsi_picture_parameter_set_multi (struct mipi_dsi_multi_context *ctx,const struct drm_dsc_picture_parameter_set *pps);
Signature · 1 line
2.39.2
Re: [PATCH v6 1/3] drm/mipi-dsi: add mipi_dsi_compression_mode_multi
Quoted 42 lines · Dzmitry Sankouski
mipi_dsi_compression_mode_multican help with
error handling.Signed-off-by Dzmitry Sankouski <[email protected]>--- drivers/gpu/drm/drm_mipi_dsi.c | 16 ++++++++++++++++ include/drm/drm_mipi_dsi.h | 2 ++ 2 files changed, 18 insertions(+)drivers/gpu/drm/drm_mipi_dsi.c +16
-0@@ -1520,6 +1520,22 @@ void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx, }EXPORT_SYMBOL (mipi_dsi_compression_mode_ext_multi); +/** +* mipi_dsi_compression_mode_multi() - enable/disable DSC on the peripheral +* @dsi: DSI peripheral device +* @enable: Whether to enable or disable the DSC +* +* Enable or disable Display Stream Compression on the peripheral using the +* default Picture Parameter Set and VESA DSC 1.1 algorithm. +*/ +void mipi_dsi_compression_mode_multi (struct mipi_dsi_multi_context *ctx, +bool enable) +{ +return mipi_dsi_compression_mode_ext_multi (ctx, enable, +MIPI_DSI_COMPRESSION_DSC ,0 ); +} +EXPORT_SYMBOL (mipi_dsi_compression_mode_multi); +/** * mipi_dsi_dcs_nop_multi() - send DCS NOP packet * @ctx: Context for multiple DSI transactions include/drm/drm_mipi_dsi.h +0
-0
include/drm/drm_mipi_dsi.h void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx, · line 287
Quoted 8 lines
include/drm/drm_mipi_dsi.h +2
-0@@ -280,6 +280,8 @@ void mipi_dsi_compression_mode_ext_multi(struct mipi_dsi_multi_context *ctx,bool enable, enum mipi_dsi_compression_algo algo, unsigned int pps_selector); +void mipi_dsi_compression_mode_multi (struct mipi_dsi_multi_context *ctx, +bool enable);void mipi_dsi_picture_parameter_set_multi (struct mipi_dsi_multi_context *ctx,const struct drm_dsc_picture_parameter_set *pps);
kernel test robot
build botRe: [PATCH v6 1/3] drm/mipi-dsi: add mipi_dsi_compression_mode_multi
In reply to Dzmitry Sankouskikernel test robot noticed the following build warnings:
Hi Dzmitry,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 58ca61c1a866bfdaa5e19fb19a2416764f847d75]
url: https://github.com/intel-lab-lkp/linux/commits/Dzmitry-Sankouski/drm-mipi-dsi-add-mipi_dsi_compression_mode_multi/20241007-022151 base: 58ca61c1a866bfdaa5e19fb19a2416764f847d75 patch link: https://lore.kernel.org/r/20241006-starqltechn_integration_upstream-v6-1-8336b9cd6c34%40gmail.com patch subject: [PATCH v6 1/3] drm/mipi-dsi: add mipi_dsi_compression_mode_multi config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241009/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241009/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_mipi_dsi.c:1533: warning: Function parameter or struct member 'ctx' not described in 'mipi_dsi_compression_mode_multi' >> drivers/gpu/drm/drm_mipi_dsi.c:1533: warning: Excess function parameter 'dsi' description in 'mipi_dsi_compression_mode_multi'
vim +1533 drivers/gpu/drm/drm_mipi_dsi.c
1522
1523 /**
1524 * mipi_dsi_compression_mode_multi() - enable/disable DSC on the peripheral
1525 * @dsi: DSI peripheral device
1526 * @enable: Whether to enable or disable the DSC
1527 *
1528 * Enable or disable Display Stream Compression on the peripheral using the
1529 * default Picture Parameter Set and VESA DSC 1.1 algorithm.
1530 */
1531 void mipi_dsi_compression_mode_multi(struct mipi_dsi_multi_context *ctx,
1532 bool enable)
> 1533 { 1534 return mipi_dsi_compression_mode_ext_multi(ctx, enable,
1535 MIPI_DSI_COMPRESSION_DSC, 0);
1536 }
1537 EXPORT_SYMBOL(mipi_dsi_compression_mode_multi);
1538
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Neil Armstrong
maintainerRe: [PATCH v6 1/3] drm/mipi-dsi: add mipi_dsi_compression_mode_multi
Hi,
Quoted 14 lines · kernel test robot
Hi Dzmitry,
kernel test robot noticed the following build warnings:
[auto build test WARNING on
58ca61c1a866bfdaa5e19fb19a2416764f847d75]url: https://github.com/intel-lab-lkp/linux/commits/Dzmitry-Sankouski/drm-mipi-dsi-add-mipi_dsi_compression_mode_multi/20241007-022151 base: 58ca61c1a866bfdaa5e19fb19a2416764f847d75 patch link: https://lore.kernel.org/r/20241006-starqltechn_integration_upstream-v6-1-8336b9cd6c34%40gmail.com patch subject: [PATCH v6 1/3] drm/mipi-dsi: add mipi_dsi_compression_mode_multi config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241009/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241009/[email protected]/reproduce)
Quoted 9 lines
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All warnings (new ones prefixed by >>):
Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/drm_mipi_dsi.c:1533: warning: Function parameter or struct member 'ctx' not described in 'mipi_dsi_compression_mode_multi'drivers/gpu/drm/drm_mipi_dsi.c:1533: warning: Excess function parameter 'dsi' description in 'mipi_dsi_compression_mode_multi'
I missed this, Dmitry, can you send a follow-up patch fixing the kerneldoc ?
Thanks,
Neil
Quoted 22 lines
vim +1533
drivers/gpu/drm/drm_mipi_dsi.c1522
1523 /**
1524 *mipi_dsi_compression_mode_multi()- enable/disable DSC on the peripheral
1525 * @dsi: DSI peripheral device
1526 * @enable: Whether to enable or disable the DSC
1527 *
1528 * Enable or disable Display Stream Compression on the peripheral using the
1529 * default Picture Parameter Set and VESA DSC 1.1 algorithm.
1530 */
1531 void mipi_dsi_compression_mode_multi(structmipi_dsi_multi_context*ctx,
1532 bool enable)Quoted 1 line
1533 {
1534 return mipi_dsi_compression_mode_ext_multi(ctx, enable,
1535 MIPI_DSI_COMPRESSION_DSC, 0); 1536 } 1537 EXPORT_SYMBOL(mipi_dsi_compression_mode_multi); 1538
Dzmitry Sankouski
maintainerPATCH v6 2/3 dt-bindings: panel: add Samsung s6e3ha8
In reply to Dzmitry SankouskiAdd binding for the Samsung s6e3ha8 panel found in the Samsung S9.
---
Changes for v5:
- fix required properties order
- fix example indentation
Changes in v4:
- change dts example intendation from tabs
to spaces
- remove reset-gpios description
--- Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 5 +++++ 2 files changed, 80 insertions(+)
Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml new file +75 -0
@@ -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/samsung,s6e3ha8.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung s6e3ha8 AMOLED DSI panel + +description: The s6e3ha8 is a 1440x2960 DPI display panel from Samsung Mobile + Displays (SMD). + +maintainers: + - Dzmitry Sankouski <[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,s6e3ha8 + + reg: + maxItems: 1 + + reset-gpios: true + + port: true + + vdd3-supply: + description: VDD regulator + + vci-supply: + description: VCI regulator + + vddr-supply: + description: VDDR regulator + +required: + - compatible + - reset-gpios + - vdd3-supply + - vci-supply + - vddr-supply + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6e3ha8"; + reg = <0>; + vci-supply = <&s2dos05_ldo4>; + vddr-supply = <&s2dos05_buck1>; + vdd3-supply = <&s2dos05_ldo1>; + te-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&sde_dsi_active &sde_te_active_sleep>; + pinctrl-1 = <&sde_dsi_suspend &sde_te_active_sleep>; + pinctrl-names = "default", "sleep"; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; + }; + +...
MAINTAINERS +5 -0
@@ -7389,6 +7389,11 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml F: drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c +DRM DRIVER FOR SAMSUNG S6E3HA8 PANELS +M: Dzmitry Sankouski <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml + DRM DRIVER FOR SITRONIX ST7586 PANELS M: David Lechner <[email protected]> S: Maintained
Signature · 1 line
2.39.2
Dzmitry Sankouski
maintainerPATCH v6 3/3 drm/panel: Add support for S6E3HA8 panel driver
In reply to Dzmitry SankouskiAdd support for MIPI-DSI based S6E3HA8 AMOLED panel driver. This panel has 1440x2960 resolution, 5.8-inch physical size, and can be found in starqltechn device. Brightness regulation is not yet supported.
---
Changes for v6:
- return ctx.accum_err instead of 0 where possible
- s6e3ha8_amb577px01_wqhd_on: arrange code blocks by key unlock / lock actions
- more *_multi functions
- switch to devm_regulator_bulk_get_const
Changes for v5:
- return ctx.accum_err instead of 0 where possible
- switch mipi_dsi_picture_parameter_set to _multi
- replace msleep with mipi_dsi_msleep
Changes in v4:
- inline power related functions
- rework driver using new mipi_dsi_dcs_write_seq_multi macro
- use drm_connector_helper_get_modes_fixed for modes
- remove excessive compression setting
--- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 7 +++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c | 342 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 351 insertions(+)
MAINTAINERS +1 -0
@@ -7393,6 +7393,7 @@ DRM DRIVER FOR SAMSUNG S6E3HA8 PANELS M: Dzmitry Sankouski <[email protected]> S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6e3ha8.yaml +F: drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c DRM DRIVER FOR SITRONIX ST7586 PANELS M: David Lechner <[email protected]>
drivers/gpu/drm/panel/Kconfig +7 -0
@@ -689,6 +689,13 @@ config DRM_PANEL_SAMSUNG_S6E3HA2 depends on BACKLIGHT_CLASS_DEVICE select VIDEOMODE_HELPERS +config DRM_PANEL_SAMSUNG_S6E3HA8 + tristate "Samsung S6E3HA8 DSI video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + config DRM_PANEL_SAMSUNG_S6E63J0X03 tristate "Samsung S6E63J0X03 DSI command mode panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -70,6 +70,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D27A1) += panel-samsung-s6d27a1.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0) += panel-samsung-s6d7aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FA7) += panel-samsung-s6e3fa7.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA8) += panel-samsung-s6e3ha8.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_SPI) += panel-samsung-s6e63m0-spi.o
drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c new file +342 -0
342 lines not on this page · raw message
Signature · 1 line
2.39.2
Hi,
Quoted 4 lines · Dzmitry Sankouski
The s6e3ha8 is a 1440x2960 DPI AMOLED display panel from Samsung Mobile
Displays (SMD)
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/3] drm/mipi-dsi: add mipi_dsi_compression_mode_multi
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/975bdea8c470cf10637c58129edaae731fec9e93 [2/3] dt-bindings: panel: add Samsung s6e3ha8 https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/d891e79861cd2b424e3bd19d3301f35be13bf118 [3/3] drm/panel: Add support for S6E3HA8 panel driver https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/779679d3c1640d8f45c75b1e15831180ab2712e2
Signature · 1 line
Neil