drm/panel: Add driver for Seiko 43WVF1G panel
Subsystems (4)
PATCH 1/1 drm/panel: Add driver for Seiko 43WVF1G panel
Add driver for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel.
Datasheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf
Seiko 43WVF1G panel has two power supplies: AVDD and DVDD and they require a specific power on/down sequence.
For this reason the simple panel driver cannot be used to drive this panel, so create a new one heavily based on simple panel.
Based on initial patch submission from Breno Lima.
--- .../bindings/display/panel/seiko,43wvf1g.txt | 23 ++ drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 372 +++++++++++++++++++++ 4 files changed, 405 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt create mode 100644 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c
Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt new file +23 -0
@@ -0,0 +1,23 @@ +Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel + +Required properties: +- compatible: should be "sii,43wvf1g". +- "DVDD-supply": 3v3 digital regulator. +- "AVDD-supply": 5v analog regulator. + +Optional properties: +- backlight: phandle for the backlight control. + +Example: + + panel { + compatible = "sii,43wvf1g"; + backlight = <&backlight_display>; + DVDD-supply = <®_lcd_3v3>; + AVDD-supply = <®_lcd_5v>; + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + };
drivers/gpu/drm/panel/Kconfig +9 -0
@@ -74,6 +74,15 @@ config DRM_PANEL_SAMSUNG_S6E8AA0 select DRM_MIPI_DSI select VIDEOMODE_HELPERS +config DRM_PANEL_SEIKO_43WVF1G + tristate "Seiko 43WVF1G panel" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + Say Y here if you want to enable support for the Seiko + 43WVF1G controller for 800x480 LCD panels + config DRM_PANEL_SHARP_LQ101R1SX01 tristate "Sharp LQ101R1SX01 panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -6,6 +6,7 @@ obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o +obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c new file +372 -0
372 lines not on this page · raw message
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Marco Franchi
Add driver for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel.
Datasheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf
Quoted 8 lines
Seiko 43WVF1G panel has two power supplies: AVDD and DVDD and they require a specific power on/down sequence.
For this reason the simple panel driver cannot be used to drive this panel, so create a new one heavily based on simple panel.Based on initial patch submission from Breno Lima.
Signed-off-by Marco Franchi <[email protected]>
Works fine on a imx6sx-sdb board:
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Marco Franchi
Tested-by Fabio EstevamHi Thierry,
________________________________
From: Fabio Estevam <[email protected]>
Sent: Monday, May 8, 2017 10:54 AM
To: Marco Franchi
Cc: DRI mailing list; Thierry Reding; [email protected]
Subject: Re: [PATCH] drm/panel: Add driver for Seiko 43WVF1G panel
Quoted 6 lines · Marco Franchi
Add driver for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel.
Datasheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf
Quoted 8 lines
Seiko 43WVF1G panel has two power supplies: AVDD and DVDD and they require a specific power on/down sequence.
For this reason the simple panel driver cannot be used to drive this panel, so create a new one heavily based on simple panel.Based on initial patch submission from Breno Lima.
Signed-off-by Marco Franchi <[email protected]>
Works fine on a imx6sx-sdb board:
Any comments?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thierry/Rob,
Quoted 12 lines · Fabio Estevam
Quoted 11 lines · Marco Franchi
Add driver for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel.
Datasheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdfSeiko 43WVF1G panel has two power supplies: AVDD and DVDD and they require a specific power on/down sequence.
For this reason the simple panel driver cannot be used to drive this panel, so create a new one heavily based on simple panel.
Quoted 7 lines
Quoted 3 lines
Based on initial patch submission from Breno Lima.
Signed-off-by Marco Franchi <[email protected]>Works fine on a imx6sx-sdb board:
Tested-by Fabio Estevam <[email protected]>
Does this look good for you?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 29 lines · Marco Franchi
Add driver for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel.
Datasheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdfSeiko 43WVF1G panel has two power supplies: AVDD and DVDD and they require a specific power on/down sequence.
For this reason the simple panel driver cannot be used to drive this panel, so create a new one heavily based on simple panel.Based on initial patch submission from Breno Lima.
Signed-off-by Marco Franchi <[email protected]>--- .../bindings/display/panel/seiko,43wvf1g.txt | 23 ++ drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 372 +++++++++++++++++++++ 4 files changed, 405 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt create mode 100644 drivers/gpu/drm/panel/panel-seiko-43wvf1g.cDocumentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt new file +0
-0
Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt line 6
Quoted 6 lines
Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt new file +6
-0@@ -0,0 +1,23 @@ +Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel + +Required properties: +- compatible: should be "sii,43wvf1g". +- "DVDD-supply": 3v3 digital regulator. +- "AVDD-supply": 5v analog regulator.
I don't think we should be using all-uppercase for supply names. So the above should be "dvdd-supply" and "avdd-supply". No need to resend only for that change, I can fix it up when applying.
Rob, can I have your Acked-by with the above change?
Just two minor comments below.
Quoted 1 line
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +0
-0
[...]
Quoted 10 lines
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +10
-0+struct seiko_panel_desc { +const struct drm_display_mode *modes; +unsigned int num_modes; +const struct display_timing *timings; +unsigned int num_timings; + +unsigned int bpc; + +/** +* @width: width (in millimeters) of the panel's active display area
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c line 43
Quoted 10 lines
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +10
-0+* @height: height (in millimeters) of the panel's active display area +*/ +struct { +unsigned int width; +unsigned int height; + } size; + +u32 bus_format; +u32 bus_flags; +};
It's somewhat unfortunate how this has to duplicate a lot of the panel-simple driver just because it uses two regulators. However, with some of the work going on to make panel-simple code more reusable this might improve in the future. For now I think this doesn't hurt.
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c line 53
Quoted 9 lines
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +9
-0+struct seiko_panel { +struct drm_panel base; +bool prepared; +bool enabled; +const struct seiko_panel_desc *desc; +struct backlight_device *backlight; +struct regulator *DVDD; +struct regulator *AVDD; +};
Same as for the binding: we don't use all-uppercase names for variables, so I'll fix those up to be lowercase when applying.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Rob,
Quoted 41 lines · Thierry Reding
Quoted 29 lines · Marco Franchi
Add driver for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel.
Datasheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdfSeiko 43WVF1G panel has two power supplies: AVDD and DVDD and they require a specific power on/down sequence.
For this reason the simple panel driver cannot be used to drive this panel, so create a new one heavily based on simple panel.Based on initial patch submission from Breno Lima.
Signed-off-by Marco Franchi <[email protected]>--- .../bindings/display/panel/seiko,43wvf1g.txt | 23 ++ drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 372 +++++++++++++++++++++ 4 files changed, 405 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt create mode 100644 drivers/gpu/drm/panel/panel-seiko-43wvf1g.cDocumentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt new file +0
-0Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt line 6
Quoted 6 lines
Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt new file +6
-0@@ -0,0 +1,23 @@ +Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel + +Required properties: +- compatible: should be "sii,43wvf1g". +- "DVDD-supply": 3v3 digital regulator. +- "AVDD-supply": 5v analog regulator.I don't think we should be using all-uppercase for supply names. So the above should be "dvdd-supply" and "avdd-supply". No need to resend only for that change, I can fix it up when applying.
Quoted 1 line
Rob, can I have your Acked-by with the above change?
Any comment, please? It would be nice if we can get this into 4.13, if possible.
Quoted 44 lines
Just two minor comments below.
Quoted 1 line
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +0
-0[...]
Quoted 10 lines
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +10
-0+struct seiko_panel_desc { +const struct drm_display_mode *modes; +unsigned int num_modes; +const struct display_timing *timings; +unsigned int num_timings; + +unsigned int bpc; + +/** +* @width: width (in millimeters) of the panel's active display area drivers/gpu/drm/panel/panel-seiko-43wvf1g.c line 43
Quoted 10 lines
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +10
-0+* @height: height (in millimeters) of the panel's active display area +*/ +struct { +unsigned int width; +unsigned int height; + } size; + +u32 bus_format; +u32 bus_flags; +};It's somewhat unfortunate how this has to duplicate a lot of the panel-simple driver just because it uses two regulators. However, with some of the work going on to make panel-simple code more reusable this might improve in the future. For now I think this doesn't hurt.
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c line 53
Quoted 9 lines
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +9
-0+struct seiko_panel { +struct drm_panel base; +bool prepared; +bool enabled; +const struct seiko_panel_desc *desc; +struct backlight_device *backlight; +struct regulator *DVDD; +struct regulator *AVDD; +};Same as for the binding: we don't use all-uppercase names for variables, so I'll fix those up to be lowercase when applying.
Quoted 1 line
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Rob,
Quoted 10 lines · Thierry Reding
Quoted 4 lines
+Required properties:
+- compatible: should be "sii,43wvf1g". +- "DVDD-supply": 3v3 digital regulator. +- "AVDD-supply": 5v analog regulator.I don't think we should be using all-uppercase for supply names. So the above should be "dvdd-supply" and "avdd-supply". No need to resend only for that change, I can fix it up when applying.
Rob, can I have your Acked-by with the above change?
Any comments?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel