Add Samsung S6D7AA0 panel controller driver
Subsystems (5)
Artur Weber
maintainercover Add Samsung S6D7AA0 panel controller driver
This patchset adds initial support for Samsung S6D7AA0-based panels. Currently, only the S6D7AA0-LSL080AL02 panel used in the Samsung Galaxy Tab 3 8.0 family of tablets is supported; other panels can be added in the future.
Artur Weber (3):
dt-bindings: panel: Add Samsung S6D7AA0 LCD controller bindings drm/panel: Add Samsung S6D7AA0 panel controller driver
MAINTAINERS: Add myself as Samsung S6D7AA0 panel driver maintainer
.../display/panel/samsung,s6d7aa0.yaml | 51 +++ MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 397 ++++++++++++++++++ 5 files changed, 462 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
Signature · 1 line
2.40.0
Artur Weber
maintainerPATCH 1/3 dt-bindings: panel: Add Samsung S6D7AA0 LCD controller bindings
--- .../display/panel/samsung,s6d7aa0.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +51 -0
@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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: + const: samsung,s6d7aa0-lsl080al02 + + reg: true + reset-gpios: true + backlight: true + + enable-supply: + description: Enable supply + +required: + - compatible + - reset-gpios + - enable-supply + - backlight + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6d7aa0-lsl080al02"; + reg = <0>; + enable-supply = <&lcd_enable_supply>; + reset-gpios = <&gpf0 4 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + }; + }; + +...
Signature · 1 line
2.40.0
Re: [PATCH 1/3] dt-bindings: panel: Add Samsung S6D7AA0 LCD controller bindings
Quoted 1 line · Artur Weber
Signed-off-by Artur Weber <[email protected]>
Missing commit msg.
Subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings.
Quoted 28 lines
--- .../display/panel/samsung,s6d7aa0.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yamlDocumentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +17
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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: + const: samsung,s6d7aa0-lsl080al02
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +10
-0+ + reg: true + reset-gpios: true + backlight: true + + enable-supply: + description: Enable supply + +required: + - compatible
reg?
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 29
Quoted 2 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +2
-0+ - reset-gpios> + - enable-supply + - backlight
keep the same order as they appear in properties.
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 33
Quoted 3 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +3
-0+ +additionalProperties: false +
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH 1/3] dt-bindings: panel: Add Samsung S6D7AA0 LCD controller bindings
In reply to Artur WeberQuoted 26 lines · Artur Weber
Signed-off-by Artur Weber <[email protected]>--- .../display/panel/samsung,s6d7aa0.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yamlDocumentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +14
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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# +
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml line 24
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +10
-0+properties: + compatible: + const: samsung,s6d7aa0-lsl080al02 + + reg: true + reset-gpios: true + backlight: true + + enable-supply: + description: Enable supply
If there's only a single supply, then why not use panel-simple-dsi.yaml?
Quoted 30 lines
Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml new file +27
-0+ +required: + - compatible + - reset-gpios + - enable-supply + - backlight + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6d7aa0-lsl080al02"; + reg = <0>; + enable-supply = <&lcd_enable_supply>; + reset-gpios = <&gpf0 4 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + }; + }; + +...Signature · 1 line
2.40.0
Artur Weber
maintainerPATCH 2/3 drm/panel: Add Samsung S6D7AA0 panel controller driver
In reply to Artur WeberInitial driver for S6D7AA0-controlled panels, currently only for the LSL080AL02 panel used in the Samsung Galaxy Tab 3 8.0 family of boards.
It should be possible to extend this driver to work with other panels using this IC.
--- drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 397 ++++++++++++++++++ 3 files changed, 405 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
drivers/gpu/drm/panel/Kconfig +7 -0
@@ -532,6 +532,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
@@ -52,6 +52,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 +397 -0
397 lines not on this page · raw message
Signature · 1 line
2.40.0
Artur Weber
maintainerPATCH 3/3 MAINTAINERS: Add myself as Samsung S6D7AA0 panel driver maintainer
In reply to Artur Weber--- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
@@ -6623,6 +6623,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.0
Re: [PATCH 3/3] MAINTAINERS: Add myself as Samsung S6D7AA0 panel driver maintainer
Quoted 1 line · Artur Weber
Signed-off-by Artur Weber <[email protected]>
Missing commit msg.
Best regards,
Krzysztof