-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Dingxian Wen <shawn.wen@rock-chips.com> Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com> Signed-off-by: Shreeya Patel <shreeya.patel@collabora.com> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
- Loading branch information
Shreeya Patel
authored and
Hans Verkuil
committed
Mar 5, 2025
1 parent
9436332
commit 7b59b13
Showing
10 changed files
with
3,508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
source "drivers/media/platform/synopsys/hdmirx/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
obj-y += hdmirx/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
synopsys-hdmirx-objs := snps_hdmirx.o snps_hdmirx_cec.o | ||
|
||
obj-$(CONFIG_VIDEO_SYNOPSYS_HDMIRX) += synopsys-hdmirx.o |
Oops, something went wrong.