mipi-dsi-bus: add MIPI DSI bus support
Subsystems (2)
RFC PATCH v3 1/1 mipi-dsi-bus: add MIPI DSI bus support
MIPI DSI bus allows to model DSI hosts and DSI devices using Linux bus. DSI host should be registered by DSI master driver. During registration DSI devices will be created according to Device Tree sub-nodes, registration based on board info will be added later.
DSI host exposes operations which can be used by slave drivers to access associated devices.
---
Hi Thierry,
This is the 3rd version of MIPI DSI bus patch.
Most of changes comes from Thierry comments.
The main difference is complete change of 'philosophy' behind it.
In previous version DSI host could be standalone driver without DRM dependency. In the current version it should be DRM device.
This change breaks my drivers so I cannot test this version of patch on live system yet.
There are few things which still bother me:
- DSI mode flags - some of them seems to be too specific for my HW,
- other DSI parameters, probably there should be more, like max clock, supported pixel modes,....
Regards
Andrzej
drivers/gpu/drm/Kconfig | 3 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_mipi_dsi.c | 316 +++++++++++++++++++++++++++++++++++++++++ include/drm/drm_mipi_dsi.h | 155 ++++++++++++++++++++ 4 files changed, 475 insertions(+) create mode 100644 drivers/gpu/drm/drm_mipi_dsi.c create mode 100644 include/drm/drm_mipi_dsi.h
drivers/gpu/drm/Kconfig +3 -0
@@ -20,6 +20,9 @@ menuconfig DRM details. You should also select and configure AGP (/dev/agpgart) support if it is available for your platform. +config DRM_MIPI_DSI + bool + config DRM_USB tristate depends on DRM
drivers/gpu/drm/Makefile +1 -0
@@ -31,6 +31,7 @@ obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o CFLAGS_drm_trace_points.o := -I$(src) obj-$(CONFIG_DRM) += drm.o +obj-$(CONFIG_DRM_MIPI_DSI) += mipi_dsi.o obj-$(CONFIG_DRM_USB) += drm_usb.o obj-$(CONFIG_DRM_TTM) += ttm/ obj-$(CONFIG_DRM_TDFX) += tdfx/
drivers/gpu/drm/drm_mipi_dsi.c new file +316 -0
316 lines not on this page · raw message
include/drm/drm_mipi_dsi.h new file +155 -0
155 lines not on this page · raw message
Signature · 1 line
1.8.3.2
Quoted 12 lines · Andrzej Hajda
MIPI DSI bus allows to model DSI hosts and DSI devices using Linux bus. DSI host should be registered by DSI master driver. During registration DSI devices will be created according to Device Tree sub-nodes, registration based on board info will be added later.
DSI host exposes operations which can be used by slave drivers to access associated devices.Signed-off-by Andrzej Hajda <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
Hi Thierry,
Quoted 6 lines
This is the 3rd version of MIPI DSI bus patch.
Most of changes comes from Thierry comments.
The main difference is complete change of 'philosophy' behind it.
In previous version DSI host could be standalone driver without DRM dependency. In the current version it should be DRM device.
This change breaks my drivers so I cannot test this version of patch on live system yet.
From a brief glance this looks pretty good. I'll start porting the Tegra DSI driver to this and report back.
Quoted 3 lines
There are few things which still bother me:
- DSI mode flags - some of them seems to be too specific for my HW,
- other DSI parameters, probably there should be more, like max clock, supported pixel modes,....
I think both of those can be extended or cleaned up once we have a few working drivers. No need to try and make it perfect right away, chances are we'll get a few things wrong anyway.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel