drm/panel: Add support for Raydium RM68200 panel
Subsystems (4)
v2 cover drm/panel: Add support for Raydium RM68200 panel
The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD panel connected using a MIPI-DSI video interface.
Version 2:
- Add Rob Herring Reviewed-by on dt-bindings.
- Update Kconfig & driver thanks to Thierry Reding comments: no more DRV_NAME, DRM_WARN_ONCE instead of DRV_NAME where applicable, use backlight_enable/disable() & devm_of_find_backlight(), no extra gpio reset to 0, no more msg if successful, use RM68200 instead of rm68200 where necessary.
Version 1:
- Initial commit
Philippe Cornu (2):
dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel drm/panel: Add support for Raydium RM68200 panel driver
.../bindings/display/panel/raydium,rm68200.txt | 25 ++ drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm68200.c | 437 +++++++++++++++++++++ 4 files changed, 471 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt create mode 100755 drivers/gpu/drm/panel/panel-raydium-rm68200.c
Signature · 6 lines
2.15.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 1/2 dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel
The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD panel connected using a MIPI-DSI video interface.
--- .../bindings/display/panel/raydium,rm68200.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt new file +25 -0
@@ -0,0 +1,25 @@ +Raydium Semiconductor Corporation RM68200 5.5" 720p MIPI-DSI TFT LCD panel + +The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD +panel connected using a MIPI-DSI video interface. + +Required properties: + - compatible: "raydium,rm68200" + - reg: the virtual channel number of a DSI peripheral + +Optional properties: + - reset-gpios: a GPIO spec for the reset pin (active low). + - power-supply: phandle of the regulator that provides the supply voltage. + - backlight: phandle of the backlight device attached to the panel. + +Example: +&dsi { + ... + panel@0 { + compatible = "raydium,rm68200"; + reg = <0>; + reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>; + power-supply = <&v1v8>; + backlight = <&pwm_backlight>; + }; +};
Signature · 6 lines
2.15.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 2/2 drm/panel: Add support for Raydium RM68200 panel driver
In reply to Philippe CornuThis patch adds Raydium Semiconductor Corporation RM68200 5.5" 720x1280 TFT LCD panel driver (MIPI-DSI video mode).
--- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm68200.c | 437 ++++++++++++++++++++++++++ 3 files changed, 446 insertions(+) create mode 100755 drivers/gpu/drm/panel/panel-raydium-rm68200.c
drivers/gpu/drm/panel/Kconfig +8 -0
@@ -108,6 +108,14 @@ config DRM_PANEL_RASPBERRYPI_TOUCHSCREEN Pi 7" Touchscreen. To compile this driver as a module, choose M here. +config DRM_PANEL_RAYDIUM_RM68200 + tristate "Raydium RM68200 720x1280 dsi video mode panel" + depends on OF + depends on DRM_MIPI_DSI + help + Say Y here if you want to enable support for Raydium RM68200 + 720x1280 dsi video mode panel + config DRM_PANEL_SAMSUNG_S6E3HA2 tristate "Samsung S6E3HA2 DSI video mode panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen.o +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.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_S6E63J0X03) += panel-samsung-s6e63j0x03.o
drivers/gpu/drm/panel/panel-raydium-rm68200.c new file +437 -0
437 lines not on this page · raw message
Signature · 6 lines
2.15.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thierry Reding
AppliedQuoted 18 lines · Philippe Cornu
The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD panel connected using a MIPI-DSI video interface.
Version 2:
- Add Rob Herring Reviewed-by on dt-bindings.
- UpdateKconfig& driver thanks to Thierry Reding comments: no moreDRV_NAME,DRM_WARN_ONCEinstead ofDRV_NAMEwhere applicable, use backlight_enable/disable() &devm_of_find_backlight(), no extra gpio reset to 0, no more msg if successful, use RM68200 instead of rm68200 where necessary.Version 1:
- Initial commitPhilippe Cornu (2):
dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel drm/panel: Add support for Raydium RM68200 panel driver
Quoted 7 lines
.../bindings/display/panel/raydium,rm68200.txt | 25 ++ drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm68200.c | 437 +++++++++++++++++++++ 4 files changed, 471 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt create mode 100755 drivers/gpu/drm/panel/panel-raydium-rm68200.c
Applied, thanks. There were a few tiny things I wasn't entirely happy about, but I fixed those up myself.
Most notable was the use of DRM_WARN_ONCE(), which is bad in this case because it won't show any subsequent errors, ever again. I think in this case the proper solution is DRM_ERROR_RATELIMITED(), or erroring out on the first error, assuming that subsequent operations won't succeed either. I went with the rate limitation.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Thierry,
Quoted 27 lines · Thierry Reding
Quoted 18 lines · Philippe Cornu
The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD panel connected using a MIPI-DSI video interface.
Version 2:
- Add Rob Herring Reviewed-by on dt-bindings.
- UpdateKconfig& driver thanks to Thierry Reding comments: no moreDRV_NAME,DRM_WARN_ONCEinstead ofDRV_NAMEwhere applicable, use backlight_enable/disable() &devm_of_find_backlight(), no extra gpio reset to 0, no more msg if successful, use RM68200 instead of rm68200 where necessary.Version 1:
- Initial commitPhilippe Cornu (2):
dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel drm/panel: Add support for Raydium RM68200 panel driverQuoted 7 lines
.../bindings/display/panel/raydium,rm68200.txt | 25 ++ drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm68200.c | 437 +++++++++++++++++++++ 4 files changed, 471 insertions(+)create mode 100644
Documentation/devicetree/bindings/display/panel/raydium,rm68200.txtcreate mode 100755drivers/gpu/drm/panel/panel-raydium-rm68200.c
Quoted 8 lines
Applied, thanks. There were a few tiny things I wasn't entirely happy about, but I fixed those up myself.
Most notable was the use of
DRM_WARN_ONCE(), which is bad in this case because it won't show any subsequent errors, ever again. I think in this case the proper solution isDRM_ERROR_RATELIMITED(), or erroring out on the first error, assuming that subsequent operations won't succeed either. I went with the rate limitation.
Big thank you for your nice cleanups and reworks, I will follow those in the future :-)
I take the opportunity to thank you also for the merge of the 2 otm8009a patches.
Moreover, if you think I need to update otm8009a driver with the same reworks (include order, DRM_ERROR_RATELIMITED, error msg, remove msg if successfull, struct data alignment...), please tell me :)
Note: I plan to update it soon with new backlight_enable/disable api...
Thank you again,
Philippe :-)
Quoted 3 lines
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel