video: support MIPI-DSI controller driver
Subsystems (2)
PATCH v3 1/1 video: support MIPI-DSI controller driver
Samsung S5PC210 and EXYNOS SoC platform has MIPI-DSI controller and MIPI-DSI based LCD Panel could be used with it. This patch supports MIPI-DSI driver based Samsung SoC chip.
LCD panel driver based MIPI-DSI should be registered to MIPI-DSI driver at machine code and LCD panel driver specific function registered to mipi_dsim_ddi structure at lcd panel init function called system init.
In the MIPI-DSI driver, find lcd panel driver by using registered lcd panel name, and then initialize lcd panel driver.
Changes since v2:
- support regulators control in the driver.
- avoid type casting and use array to read easily in data write function.
- etc.
--- drivers/video/Kconfig | 7 + drivers/video/Makefile | 2 + drivers/video/s5p_mipi_dsi.c | 619 ++++++++++++++++++++++ drivers/video/s5p_mipi_dsi_common.c | 902 +++++++++++++++++++++++++++++++++ drivers/video/s5p_mipi_dsi_common.h | 46 ++ drivers/video/s5p_mipi_dsi_lowlevel.c | 627 +++++++++++++++++++++++ drivers/video/s5p_mipi_dsi_lowlevel.h | 112 ++++ drivers/video/s5p_mipi_dsi_regs.h | 156 ++++++ include/linux/mipi_dsim.h | 361 +++++++++++++ 9 files changed, 2832 insertions(+), 0 deletions(-) create mode 100644 drivers/video/s5p_mipi_dsi.c create mode 100644 drivers/video/s5p_mipi_dsi_common.c create mode 100644 drivers/video/s5p_mipi_dsi_common.h create mode 100644 drivers/video/s5p_mipi_dsi_lowlevel.c create mode 100644 drivers/video/s5p_mipi_dsi_lowlevel.h create mode 100644 drivers/video/s5p_mipi_dsi_regs.h create mode 100644 include/linux/mipi_dsim.h
drivers/video/Kconfig +7 -0
@@ -2082,6 +2082,13 @@ config FB_S3C2410_DEBUG Turn on debugging messages. Note that you can set/unset at run time through sysfs +config S5P_MIPI_DSI + tristate "Samsung SoC MIPI-DSI support." + depends on FB_S3C && (ARCH_S5PV210 || ARCH_S5PV310 || ARCH_EXYNOS) + default n + help + This enables support for MIPI-DSI device. + config FB_NUC900 bool "NUC900 LCD framebuffer support" depends on FB && ARCH_W90X900
drivers/video/Makefile +2 -0
@@ -120,6 +120,8 @@ obj-$(CONFIG_FB_SH7760) += sh7760fb.o obj-$(CONFIG_FB_IMX) += imxfb.o obj-$(CONFIG_FB_S3C) += s3c-fb.o obj-$(CONFIG_FB_S3C2410) += s3c2410fb.o +obj-$(CONFIG_S5P_MIPI_DSI) += s5p_mipi_dsi.o s5p_mipi_dsi_common.o \ + s5p_mipi_dsi_lowlevel.o obj-$(CONFIG_FB_FSL_DIU) += fsl-diu-fb.o obj-$(CONFIG_FB_COBALT) += cobalt_lcdfb.o obj-$(CONFIG_FB_PNX4008_DUM) += pnx4008/
drivers/video/s5p_mipi_dsi.c new file +619 -0
619 lines not on this page · raw message
drivers/video/s5p_mipi_dsi_common.c new file +902 -0
902 lines not on this page · raw message
drivers/video/s5p_mipi_dsi_common.h new file +46 -0
46 lines not on this page · raw message
drivers/video/s5p_mipi_dsi_lowlevel.c new file +627 -0
627 lines not on this page · raw message
drivers/video/s5p_mipi_dsi_lowlevel.h new file +112 -0
112 lines not on this page · raw message
drivers/video/s5p_mipi_dsi_regs.h new file +156 -0
156 lines not on this page · raw message
include/linux/mipi_dsim.h new file +361 -0
361 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH v3 1/1 video: support MIPI-DSI controller driver
Quoted 44 lines · Donghwa Lee
Samsung S5PC210 and EXYNOS SoC platform has MIPI-DSI controller and MIPI-DSI based LCD Panel could be used with it. This patch supports MIPI-DSI driver based Samsung SoC chip.
LCD panel driver based MIPI-DSI should be registered to MIPI-DSI driver at machine code and LCD panel driver specific function registered to
mipi_dsim_ddistructure at lcd panel init function called system init.
In the MIPI-DSI driver, find lcd panel driver by using registered lcd panel name, and then initialize lcd panel driver.Changes since v2:
- support regulators control in the driver.
- avoid type casting and use array to read easily in data write function.
- etc.Signed-off-by Donghwa Lee <[email protected]>Signed-off-by Inki Dae <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- drivers/video/Kconfig | 7 + drivers/video/Makefile | 2 + drivers/video/s5p_mipi_dsi.c | 619 ++++++++++++++++++++++ drivers/video/s5p_mipi_dsi_common.c | 902 +++++++++++++++++++++++++++++++++ drivers/video/s5p_mipi_dsi_common.h | 46 ++ drivers/video/s5p_mipi_dsi_lowlevel.c | 627 +++++++++++++++++++++++ drivers/video/s5p_mipi_dsi_lowlevel.h | 112 ++++ drivers/video/s5p_mipi_dsi_regs.h | 156 ++++++ include/linux/mipi_dsim.h | 361 +++++++++++++ 9 files changed, 2832 insertions(+), 0 deletions(-) create mode 100644 drivers/video/s5p_mipi_dsi.c create mode 100644 drivers/video/s5p_mipi_dsi_common.c create mode 100644 drivers/video/s5p_mipi_dsi_common.h create mode 100644 drivers/video/s5p_mipi_dsi_lowlevel.c create mode 100644 drivers/video/s5p_mipi_dsi_lowlevel.h create mode 100644 drivers/video/s5p_mipi_dsi_regs.h create mode 100644 include/linux/mipi_dsim.hdrivers/video/Kconfig +0
-0
drivers/video/Kconfig config FB_S3C2410_DEBUG · line 2088
Quoted 7 lines
drivers/video/Kconfig +4
-0@@ -2082,6 +2082,13 @@ config FB_S3C2410_DEBUG Turn on debugging messages. Note that you can set/unset at run time through sysfs +config S5P_MIPI_DSI + tristate "Samsung SoC MIPI-DSI support." + depends on FB_S3C && (ARCH_S5PV210 || ARCH_S5PV310 || ARCH_EXYNOS) + default n
default n is the default default, so there's no point explicltly specifying the default default default.