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

Commit 9c69b58a authored by Arindam Biswas's avatar Arindam Biswas Committed by Gerrit - the friendly Code Review server
Browse files

media: rc: GENI-IR controller driver



The Generic Serial Interface Infrared (GENI-IR) controller
driver enables the GENI-IR functionality in the QCS405 chipsets.
This is a snapshot of commit 48da75bf0ffa
("media: rc: GENI-IR controller driver").

Change-Id: I760cf167a7c24fed4a82dcde87f374a04724c181
Signed-off-by: default avatarNiranjana Vishwanathapura <nvishwan@codeaurora.org>
Git-commit: 48da75bf0ffad5c482a7fe7987f32d6530f97bb7
[cabiswa@codeaurora.org: Adding GENI IR driver code to msm 4.14]
Signed-off-by: default avatarArindam Biswas <cabiswa@codeaurora.org>
parent 88532b42
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
MSM Generic Serial Interface Infrared (GENI-IR) Controller

Required properties:
- compatible : Should be "qcom,msm-geni-ir"
- reg : Offset and length of the register region for the device
- reg-names : Register region name referenced in 'reg' above
	The only required register resource entry is:
	"base"       : GENI-IR controller register block
- interrupts : Interrupt numbers used by this controller
- interrupt-names : Interrupt resource names referenced in 'interrupts' above
	Required interrupt resource entries are:
	"geni-ir-core-irq"   : GENI-IR core interrupt
	"geni-ir-wakeup-irq" : GENI-IR wakeup interrupt
- qcom,geni-ir-gpio-tx  : GPIO pin number of the GENI-IR transmit line
- qcom,geni-ir-gpio-rx  : GPIO pin number of the GENI-IR receive line

Aliases :
Aliases may be optionally used for GENI-IR devices on a target.
The alias will have the following format:
	'geni_ir{n}' where n is the instance number.

GENI-IR device is the child device of the SPSS device.

Example:
	aliases {
		geni_ir1 = &geni_ir_1;
	};

	qcom,msm-spss@fc5c3000 {

		...

		geni_ir_1: qcom,msm-geni-ir@fc5c1000 {
			compatible = "qcom,msm-geni-ir";
			reg-names = "base";
			reg = <0xfc5c1000 0x1000>;
			interrupts = <0 284 0>, <0 285 0>;
			interrupt-names = "geni-ir-core-irq",
					  "geni-ir-wakeup-irq";
			qcom,geni-ir-gpio-tx = <&msmgpio 8 0>;
			qcom,geni-ir-gpio-rx = <&msmgpio 9 0>;
		};
	};
+11 −0
Original line number Diff line number Diff line
@@ -482,4 +482,15 @@ config IR_ZX

endif #RC_DEVICES

config IR_MSM_GENI
	tristate "MSM GENI IR Controller"
	depends on RC_CORE
	default m
	---help---
	   Say Y here to enable support for integrated infrared module
	   for MSM family processors.

	   To compile this driver as a module, choose M here: the
	   module will be called msm-geni-ir.

endif #RC_CORE
+1 −0
Original line number Diff line number Diff line
@@ -45,3 +45,4 @@ obj-$(CONFIG_IR_SERIAL) += serial_ir.o
obj-$(CONFIG_IR_SIR) += sir_ir.o
obj-$(CONFIG_IR_MTK) += mtk-cir.o
obj-$(CONFIG_IR_ZX) += zx-irdec.o
obj-$(CONFIG_IR_MSM_GENI) += msm-geni-ir.o
 No newline at end of file
+1075 −0

File added.

Preview size limit exceeded, changes collapsed.