Add Samsung S6D7AA0 panel controller driver
Subsystems (5)
Artur Weber
maintainerv4 cover Add Samsung S6D7AA0 panel controller driver
This patchset adds initial support for Samsung S6D7AA0-based panels. Currently, the following panels are supported:
- S6D7AA0-LSL080AL02 (Samsung Galaxy Tab 3 8.0)
- S6D7AA0-LSL080AL03 (Samsung Galaxy Tab A 8.0 2015)
- S6D7AA0-LTL101AT01 (Samsung Galaxy Tab A 9.7 2015)
Changed in v2:
- Added commit messages for dt-bindings and MAINTAINERS entry commits
- dt-bindings: Applied suggestions from Krzysztof Kozlowski
- driver: Removed unused panel_name property from desc struct
Changed in v3:
- Correctly applied patch for dt-bindings
Changed in v4:
- Added support for LSL080AL03 and LTL101AT01 panels
- Added DSI-controlled backlight support for panels that support it
- Added vmipi-supply
- Dropped s6d7aa0_bl_ctl_on function (not universal across all panels)
- Removed MIPI_DSI_MODE_LPM flag
Artur Weber (3):
dt-bindings: display: panel: Add Samsung S6D7AA0 LCD panel controller drm/panel: Add Samsung S6D7AA0 panel controller driver
MAINTAINERS: Add entry for Samsung S6D7AA0 LCD panel controller driver
.../display/panel/samsung,s6d7aa0.yaml | 68 ++ MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 585 ++++++++++++++++++ 5 files changed, 667 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
base-commit: 9102d61886cb887b152f89c2481a6c17d1846fee
Signature · 1 line
2.40.1
Artur Weber
maintainerPATCH v4 1/3 dt-bindings: display: panel: Add Samsung S6D7AA0 LCD panel controller
Add bindings for the S6D7AA0 LCD panel controller, including the S6D7AA0-LSL080AL02 panel used in the Samsung Galaxy Tab 3 8.0 family of tablets, and the S6D7AA0-LSL080AL03 and S6D7AA0-LTL101AT01 panels used in the Samsung Galaxy Tab A 8.0 and 9.7 2015.
---
Changed in v2:
- Updated commit message
- Applied suggestions from Krzysztof Kozlowski
Changed in v3:
- Correctly applied suggestions
Changed in v4:
- Added LSL080AL03, LTL101AT01 compatibles
- Added description to reset-gpios
- Added vmipi-supply, renamed enable-supply to power-supply
--- .../display/panel/samsung,s6d7aa0.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +68 -0
@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6d7aa0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6D7AA0 MIPI-DSI LCD panel controller + +maintainers: + - Artur Weber <[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # 1280x800 LSL080AL02 panel + - samsung,s6d7aa0-lsl080al02 + # 1024x768 LSL080AL03 panel + - samsung,s6d7aa0-lsl080al03 + # 1024x768 LTL101AT01 panel + - samsung,s6d7aa0-ltl101at01 + + reg: true + + backlight: + description: | + Backlight to use for the panel. If this property is set on panels + that have DSI-based backlight control (LSL080AL03 and LTL101AT01), + it overrides the DSI-based backlight. + + reset-gpios: + description: Reset GPIO pin, usually GPIO_ACTIVE_LOW. + + power-supply: + description: | + Main power supply for the panel; the exact voltage differs between + panels, and is usually somewhere around 3.3-5v. + + vmipi-supply: + description: VMIPI supply, usually 1.8v. + +required: + - compatible + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6d7aa0-lsl080al02"; + reg = <0>; + power-supply = <&display_3v3_supply>; + reset-gpios = <&gpf0 4 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + }; + }; + +...
Signature · 1 line
2.40.1
Artur Weber
maintainerPATCH v4 2/3 drm/panel: Add Samsung S6D7AA0 panel controller driver
In reply to Artur WeberInitial driver for S6D7AA0-controlled panels. Currently, the following panels are supported:
- S6D7AA0-LSL080AL02 (Samsung Galaxy Tab 3 8.0)
- S6D7AA0-LSL080AL03 (Samsung Galaxy Tab A 8.0 2015)
- S6D7AA0-LTL101AT01 (Samsung Galaxy Tab A 9.7 2015)
It should be possible to extend this driver to work with other panels using this IC.
---
Changed in v2:
- Removed unused panel_name property from desc struct
Changed in v4:
- Added LSL080AL03 and LTL101AT01 panels
- Added DSI-controlled backlight support for panels that support it
- Renamed command defines: CMD_* -> MCS_*
- Dropped s6d7aa0_bl_ctl_on (not universal across panels)
- Dropped MIPI_DSI_MODE_LPM flag
- Added vmipi-supply, renamed enable-supply to power-supply
--- drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 585 ++++++++++++++++++ 3 files changed, 593 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
drivers/gpu/drm/panel/Kconfig +7 -0
@@ -553,6 +553,13 @@ config DRM_PANEL_SAMSUNG_S6D27A1 This panel can be found in Samsung Galaxy Ace 2 GT-I8160 mobile phone. +config DRM_PANEL_SAMSUNG_S6D7AA0 + tristate "Samsung S6D7AA0 MIPI-DSI video mode panel controller" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + config DRM_PANEL_SAMSUNG_S6E3HA2 tristate "Samsung S6E3HA2 DSI video mode panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -54,6 +54,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_DB7430) += panel-samsung-db7430.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) += panel-samsung-s6d16d0.o 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_S6E3HA2) += panel-samsung-s6e3ha2.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.o
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c new file +585 -0
585 lines not on this page · raw message
Signature · 1 line
2.40.1
Artur Weber
maintainerPATCH v4 3/3 MAINTAINERS: Add entry for Samsung S6D7AA0 LCD panel controller driver
In reply to Artur WeberAdd myself as maintainer of the Samsung S6D7AA0 panel driver.
--- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
@@ -6641,6 +6641,12 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml F: drivers/gpu/drm/panel/panel-samsung-s6d27a1.c +DRM DRIVER FOR SAMSUNG S6D7AA0 PANELS +M: Artur Weber <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml +F: drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c + DRM DRIVER FOR SITRONIX ST7703 PANELS M: Guido Günther <[email protected]> R: Purism Kernel Team <[email protected]>
Signature · 1 line
2.40.1
Re: [PATCH v4 1/3] dt-bindings: display: panel: Add Samsung S6D7AA0 LCD panel controller
In reply to Artur WeberQuoted 10 lines · Artur Weber
Add bindings for the S6D7AA0 LCD panel controller, including the S6D7AA0-LSL080AL02 panel used in the Samsung Galaxy Tab 3 8.0 family of tablets, and the S6D7AA0-LSL080AL03 and S6D7AA0-LTL101AT01 panels used in the Samsung Galaxy Tab A 8.0 and 9.7 2015.
Signed-off-by Artur Weber <[email protected]>---
Changed in v2:
- Updated commit message
- Applied suggestions from Krzysztof Kozlowski
What have changed?
Quoted 2 lines
Changed in v3:
- Correctly applied suggestions
What have changed?
Quoted 24 lines
Changed in v4:
- Added LSL080AL03, LTL101AT01 compatibles
- Added description to reset-gpios
- Added vmipi-supply, renamed enable-supply to power-supply--- .../display/panel/samsung,s6d7aa0.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yamlDocumentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +9
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6d7aa0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6D7AA0 MIPI-DSI LCD panel controller + +maintainers:
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 19
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +10
-0+ - Artur Weber <[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # 1280x800 LSL080AL02 panel + - samsung,s6d7aa0-lsl080al02
lsl080al02 is model number also coming from Samsung? I am afraid this concatenated two compatibles into one...
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +8
-0+ # 1024x768 LSL080AL03 panel + - samsung,s6d7aa0-lsl080al03 + # 1024x768 LTL101AT01 panel + - samsung,s6d7aa0-ltl101at01 + + reg: true + + backlight:> + description: |
If there is going to be new version:
Do not need '|' unless you need to preserve formatting.
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 37
Quoted 9 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +9
-0+ Backlight to use for the panel. If this property is set on panels + that have DSI-based backlight control (LSL080AL03 and LTL101AT01), + it overrides the DSI-based backlight. + + reset-gpios: + description: Reset GPIO pin, usually GPIO_ACTIVE_LOW. + + power-supply: + description: |
Do not need '|' unless you need to preserve formatting.
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 38
Quoted 2 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +2
-0+ Main power supply for the panel; the exact voltage differs between + panels, a
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH v4 1/3] dt-bindings: display: panel: Add Samsung S6D7AA0 LCD panel controller
In reply to Artur WeberQuoted 27 lines · Artur Weber
Add bindings for the S6D7AA0 LCD panel controller, including the S6D7AA0-LSL080AL02 panel used in the Samsung Galaxy Tab 3 8.0 family of tablets, and the S6D7AA0-LSL080AL03 and S6D7AA0-LTL101AT01 panels used in the Samsung Galaxy Tab A 8.0 and 9.7 2015.
Signed-off-by Artur Weber <[email protected]>---
Changed in v2:
- Updated commit message
- Applied suggestions from Krzysztof Kozlowski
Changed in v3:
- Correctly applied suggestions
Changed in v4:
- Added LSL080AL03, LTL101AT01 compatibles
- Added description to reset-gpios
- Added vmipi-supply, renamed enable-supply to power-supply--- .../display/panel/samsung,s6d7aa0.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yamlDocumentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +0
-0
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +1
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0
Dual license please.
Quoted 70 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +67
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6d7aa0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6D7AA0 MIPI-DSI LCD panel controller + +maintainers: + - Artur Weber <[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # 1280x800 LSL080AL02 panel + - samsung,s6d7aa0-lsl080al02 + # 1024x768 LSL080AL03 panel + - samsung,s6d7aa0-lsl080al03 + # 1024x768 LTL101AT01 panel + - samsung,s6d7aa0-ltl101at01 + + reg: true + + backlight: + description: | + Backlight to use for the panel. If this property is set on panels + that have DSI-based backlight control (LSL080AL03 and LTL101AT01), + it overrides the DSI-based backlight. + + reset-gpios: + description: Reset GPIO pin, usually GPIO_ACTIVE_LOW. + + power-supply: + description: | + Main power supply for the panel; the exact voltage differs between + panels, and is usually somewhere around 3.3-5v. + + vmipi-supply: + description: VMIPI supply, usually 1.8v. + +required: + - compatible + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6d7aa0-lsl080al02"; + reg = <0>; + power-supply = <&display_3v3_supply>; + reset-gpios = <&gpf0 4 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + }; + }; + +...Signature · 1 line
2.40.1