Skip to content

Commit 19773aa

Browse files
Luis Oliveirabala-gunasundar
authored andcommitted
media: platform: dwc: Add MIPI CSI-2 controller driver
Add the Synopsys MIPI CSI-2 controller driver. This controller driver is divided in platform functions and core functions. This way it serves as platform for future DesignWare drivers. Signed-off-by: Luis Oliveira <luis.oliveira@synopsys.com> Co-developed-by: Eugen Hristev <eugen.hristev@microchip.com> [eugen.hristev@microchip.com: Add format SRGGB10 to supported format list. Write the data type to the correct register DATA_IDS_1. Changed dev_info to dev_dbg to remove extra chatty messages Avoid overwriting static array of formats] Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> [luis.oliveira@synopsys.com: Add MIPI CSI-2 platform data] Signed-off-by: Luis Oliveira <luis.oliveira@synopsys.com> [eugen.hristev@microchip.com: Add support for periph clock and phy clock Fix enum_mbus function Implement get_mbus_config Implement media controller Update to use fwnode API In s_stream, first start/stop the sensor remove chatty 'number of lanes' message] Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> [conor.dooley@microchip.com: fix potential uninitialized variable use] Signed-off-by: Conor Dooley <conor.dooley@microchip.com> [eugen.hristev@microchip.com: port to kernel 5.16, 5.17] Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
1 parent b06f4f5 commit 19773aa

12 files changed

Lines changed: 2425 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20830,6 +20830,15 @@ S: Maintained
2083020830
F: Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
2083120831
F: drivers/dma/dw-axi-dmac/
2083220832

20833+
SYNOPSYS DESIGNWARE MIPI DPHY CSI-2 HOST DRIVER
20834+
M: Luis Oliveira <luis.oliveira@synopsys.com>
20835+
L: linux-media@vger.kernel.org
20836+
S: Maintained
20837+
T: git git://linuxtv.org/media_tree.git
20838+
F: drivers/media/platform/dwc
20839+
F: Documentation/devicetree/bindings/media/snps,dw-csi.yaml
20840+
F: include/media/dwc/dw-csi-data.h
20841+
2083320842
SYNOPSYS DESIGNWARE DMAC DRIVER
2083420843
M: Viresh Kumar <vireshk@kernel.org>
2083520844
R: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

drivers/media/platform/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ source "drivers/media/platform/aspeed/Kconfig"
6969
source "drivers/media/platform/atmel/Kconfig"
7070
source "drivers/media/platform/cadence/Kconfig"
7171
source "drivers/media/platform/chips-media/Kconfig"
72+
source "drivers/media/platform/dwc/Kconfig"
7273
source "drivers/media/platform/intel/Kconfig"
7374
source "drivers/media/platform/marvell/Kconfig"
7475
source "drivers/media/platform/mediatek/Kconfig"

drivers/media/platform/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-y += aspeed/
1212
obj-y += atmel/
1313
obj-y += cadence/
1414
obj-y += chips-media/
15+
obj-y += dwc/
1516
obj-y += intel/
1617
obj-y += marvell/
1718
obj-y += mediatek/

drivers/media/platform/dwc/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Synopsys DWC Platform drivers
4+
# Drivers here are currently for MIPI CSI-2 support
5+
6+
config DWC_MIPI_CSI2_HOST
7+
tristate "Synopsys DesignWare CSI-2 Host Controller support"
8+
select VIDEO_DEV
9+
select VIDEO_V4L2
10+
select VIDEO_V4L2_SUBDEV_API
11+
select V4L2_FWNODE
12+
help
13+
This selects the DesignWare MIPI CSI-2 host controller support. This
14+
controller gives access to control a CSI-2 receiver acting as a V4L2
15+
subdevice.
16+
17+
If you have a controller with this interface, say Y.
18+
19+
If unsure, say N.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Makefile for Synopsys DWC Platform drivers
4+
#
5+
dw-csi-objs := dw-csi-plat.o dw-mipi-csi.o
6+
ifeq ($(CONFIG_DWC_MIPI_TC_DPHY_GEN3),y)
7+
dw-csi-objs += dw-csi-sysfs.o
8+
endif
9+
obj-$(CONFIG_DWC_MIPI_CSI2_HOST) += dw-csi.o

0 commit comments

Comments
 (0)