Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bcbf6f4 authored by Kamil Debski's avatar Kamil Debski Committed by Mauro Carvalho Chehab
Browse files

[media] cec: s5p-cec: Add s5p-cec driver



Add CEC interface driver present in the Samsung Exynos range of
SoCs.

The following files were based on work by SangPil Moon:
- exynos_hdmi_cec.h
- exynos_hdmi_cecctl.c

Signed-off-by: default avatarKamil Debski <kamil@wypas.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 257d4eae
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
* Samsung HDMI CEC driver

The HDMI CEC module is present is Samsung SoCs and its purpose is to
handle communication between HDMI connected devices over the CEC bus.

Required properties:
  - compatible : value should be following
	"samsung,s5p-cec"

  - reg : Physical base address of the IP registers and length of memory
	  mapped region.

  - interrupts : HDMI CEC interrupt number to the CPU.
  - clocks : from common clock binding: handle to HDMI CEC clock.
  - clock-names : from common clock binding: must contain "hdmicec",
		  corresponding to entry in the clocks property.
  - samsung,syscon-phandle - phandle to the PMU system controller

Example:

hdmicec: cec@100B0000 {
	compatible = "samsung,s5p-cec";
	reg = <0x100B0000 0x200>;
	interrupts = <0 114 0>;
	clocks = <&clock CLK_HDMI_CEC>;
	clock-names = "hdmicec";
	samsung,syscon-phandle = <&pmu_system_controller>;
	pinctrl-names = "default";
	pinctrl-0 = <&hdmi_cec>;
	status = "okay";
};
+7 −0
Original line number Diff line number Diff line
@@ -1642,6 +1642,13 @@ L: linux-media@vger.kernel.org
S:	Maintained
F:	drivers/media/platform/s5p-tv/

ARM/SAMSUNG S5P SERIES HDMI CEC SUBSYSTEM SUPPORT
M:	Kyungmin Park <kyungmin.park@samsung.com>
L:	linux-arm-kernel@lists.infradead.org
L:	linux-media@vger.kernel.org
S:	Maintained
F:	drivers/media/platform/s5p-cec/

ARM/SAMSUNG S5P SERIES JPEG CODEC SUPPORT
M:	Andrzej Pietrasiewicz <andrzej.p@samsung.com>
M:	Jacek Anaszewski <j.anaszewski@samsung.com>
+10 −0
Original line number Diff line number Diff line
@@ -108,6 +108,16 @@ config VIDEO_S3C_CAMIF
source "drivers/media/platform/soc_camera/Kconfig"
source "drivers/media/platform/exynos4-is/Kconfig"
source "drivers/media/platform/s5p-tv/Kconfig"

config VIDEO_SAMSUNG_S5P_CEC
	tristate "Samsung S5P CEC driver"
	depends on VIDEO_DEV && MEDIA_CEC && (PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST)
	---help---
	  This is a driver for Samsung S5P HDMI CEC interface. It uses the
	  generic CEC framework interface.
	  CEC bus is present in the HDMI connector and enables communication
	  between compatible devices.

source "drivers/media/platform/am437x/Kconfig"
source "drivers/media/platform/xilinx/Kconfig"
source "drivers/media/platform/rcar-vin/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ obj-$(CONFIG_VIDEO_MEM2MEM_DEINTERLACE) += m2m-deinterlace.o

obj-$(CONFIG_VIDEO_S3C_CAMIF) 		+= s3c-camif/
obj-$(CONFIG_VIDEO_SAMSUNG_EXYNOS4_IS) 	+= exynos4-is/
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_CEC)	+= s5p-cec/
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG)	+= s5p-jpeg/
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MFC)	+= s5p-mfc/
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_TV)	+= s5p-tv/
+2 −0
Original line number Diff line number Diff line
obj-$(CONFIG_VIDEO_SAMSUNG_S5P_CEC)	+= s5p-cec.o
s5p-cec-y += s5p_cec.o exynos_hdmi_cecctrl.o
Loading