Commit 7b59b132 authored by Shreeya Patel's avatar Shreeya Patel Committed by Hans Verkuil
Browse files

media: platform: synopsys: Add support for HDMI input driver



Add initial support for the Synopsys DesignWare HDMI RX
Controller Driver used by Rockchip RK3588. The driver
supports:
 - HDMI 1.4b and 2.0 modes (HDMI 4k@60Hz)
 - RGB888, YUV422, YUV444 and YCC420 pixel formats
 - CEC
 - EDID configuration

The hardware also has Audio and HDCP capabilities, but these are
not yet supported by the driver.

Co-developed-by: default avatarDingxian Wen <shawn.wen@rock-chips.com>
Signed-off-by: default avatarDingxian Wen <shawn.wen@rock-chips.com>
Signed-off-by: default avatarShreeya Patel <shreeya.patel@collabora.com>
Signed-off-by: default avatarDmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent 94363326
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ source "drivers/media/platform/rockchip/Kconfig"
source "drivers/media/platform/samsung/Kconfig"
source "drivers/media/platform/st/Kconfig"
source "drivers/media/platform/sunxi/Kconfig"
source "drivers/media/platform/synopsys/Kconfig"
source "drivers/media/platform/ti/Kconfig"
source "drivers/media/platform/verisilicon/Kconfig"
source "drivers/media/platform/via/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ obj-y += rockchip/
obj-y += samsung/
obj-y += st/
obj-y += sunxi/
obj-y += synopsys/
obj-y += ti/
obj-y += verisilicon/
obj-y += via/
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

source "drivers/media/platform/synopsys/hdmirx/Kconfig"
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
obj-y += hdmirx/
+35 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

config VIDEO_SYNOPSYS_HDMIRX
	tristate "Synopsys DesignWare HDMI Receiver driver"
	depends on VIDEO_DEV
	select MEDIA_CONTROLLER
	select VIDEO_V4L2_SUBDEV_API
	select VIDEOBUF2_DMA_CONTIG
	select CEC_CORE
	select HDMI
	help
	  Support for Synopsys HDMI HDMI RX Controller.
	  This driver supports HDMI 2.0 version.

	  To compile this driver as a module, choose M here. The module
	  will be called synopsys_hdmirx.

config VIDEO_SYNOPSYS_HDMIRX_LOAD_DEFAULT_EDID
	bool "Load default EDID"
	depends on VIDEO_SYNOPSYS_HDMIRX
	help
	  Preload default EDID (Extended Display Identification Data)
	  branded by Linux Foundation that exposes display modes up
	  to 4k@30Hz, which have best compatibility with HDMI transmitters.

	  Enabling this option is recommended for a non-production use-cases.
	  It will make driver usable out-of-the-box.

	  For a higher display modes you will need to load customized EDID
	  from userspace using v4l2-ctl tool or by other means.

	  Without enabling this option driver will be practically
	  non-functional until EDID will be loaded from userspace.
	  Which is a wanted behavior when using this driver in a
	  commercial product that should utilize own branded EDID.
Loading