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

Commit dba90a5e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "media: platform: Altek AL6100 driver release" into msm-4.9

parents 192441fe 533dd2c8
Loading
Loading
Loading
Loading
+65 −0
Original line number Diff line number Diff line
Altek al6100 depth chip driver(spi/I2c)

Description:

The al6100 is a mini isp chip which is to process
the dual IR raw images from IR camera sensor to be
depth data. It has own firmware. It can connect to
two IR camera sensors via internal mipi port(Rx0/Rx1).
The input of this chip is the IR raw image from
the two IR camera sensors. The Tx0/Tx1 on chip can
connect to AP side and output depth data and IR images
to AP.

Required properties:
 - compatible: Should be "altek,isp"(with spi)/
   "altek,i2c_slave"(with i2c)/"altek,i2c_top"(with i2c)
   for al6100 depth chip driver
 - irq-gpios: a gpio for spi/I2c interrupt

Optional properties:
 - vcc1-gpios: If present, specifies a gpio for power on
   al6100 depth chip
 - wp-gpios: If present, specifies a gpio for control
   eeprom write protected pin
 - reset-gpios: If present, specifies a gpio for reset
   al6100 depth chip

Example:
	(spi)
	&spi_8 {
		mini_isp@0 {
			compatible = "altek,isp";
			reg = <0>;
			spi-max-frequency = <50000000>;
			spi-cpol;
			spi-cpha;
			vcc-supply = <&pm8953_s3>;
			reset-gpios = <&tlmm 33 0x00>;
			irq-gpios = <&tlmm 35 0x00>;
			vcc1-gpios = <&tlmm 38 0x00>;
			wp-gpios = <&tlmm 52 0x00>;
			vcc2-gpios = <&tlmm 63 0x00>;
			status = "ok";
		};
	};

	(I2c)
	i2c_slave@11 {
		compatible = "altek,i2c_slave";
		reg = <0x4b>;	/* for Pure Bypass */
		reg = <0x11>;
		status = "disabled";	/* use SPI instead */
	};

	i2c_top@77 {
		compatible = "altek,i2c_top";
		reg = <0x77>;
		vcc-supply = <&pm8953_s3>;
		reset-gpios = <&tlmm 33 0x00>;
		irq-gpios = <&tlmm 35 0x00>;
		vcc1-gpios = <&tlmm 38 0x00>;
		wp-gpios = <&tlmm 52 0x00>;
		vcc2-gpios = <&tlmm 63 0x00>;
		status = "disabled";	/* use SPI instead */
	};
+1 −0
Original line number Diff line number Diff line
@@ -388,6 +388,7 @@ CONFIG_DVB_MPQ=m
CONFIG_DVB_MPQ_DEMUX=m
CONFIG_DVB_MPQ_TSPP1=y
CONFIG_TSPP=m
CONFIG_VIDEO_ALTEK_ISP=y
CONFIG_QCOM_KGSL=y
CONFIG_DRM=y
CONFIG_DRM_SDE_EVTLOG_DEBUG=y
+1 −0
Original line number Diff line number Diff line
@@ -393,6 +393,7 @@ CONFIG_DVB_MPQ=m
CONFIG_DVB_MPQ_DEMUX=m
CONFIG_DVB_MPQ_TSPP1=y
CONFIG_TSPP=m
CONFIG_VIDEO_ALTEK_ISP=y
CONFIG_QCOM_KGSL=y
CONFIG_DRM=y
CONFIG_DRM_SDE_EVTLOG_DEBUG=y
+1 −0
Original line number Diff line number Diff line
@@ -379,3 +379,4 @@ source "drivers/media/platform/sti/c8sectpfe/Kconfig"
endif #DVB_PLATFORM_DRIVERS

source "drivers/media/platform/msm/Kconfig"
source "drivers/media/platform/altek/Kconfig"
+2 −0
Original line number Diff line number Diff line
@@ -67,4 +67,6 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VPU) += mtk-vpu/

obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC)	+= mtk-vcodec/

obj-$(CONFIG_VIDEO_ALTEK_ISP)		+= altek/

obj-y  += msm/
Loading