[PATCH RFC] media: rc: OF: Add Generic bindings for remote-control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>

This patch attempts to collate generic bindings which can be used by
the remote control hardwares. Currently the list is not long as there
are only 2 drivers which are device tree'd.

Mainly this patch tries to document few bindings used by ST IRB driver
which can be generic as well. This document also add fews common
bindings used by most of the drivers like, interrupts, regs, clocks and
pinctrls.

This document can also be holding place to describe generic bindings
used in remote controls devices.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>
---
Hi All, 
Following Stephen Warren's suggestions at https://lkml.org/lkml/2013/9/24/452
this patch is an attempt to document such generic bindings in a common
document.

This document currently collates all the generic bindings used with
remote-controls and act as holding place to describe generic bindings for
remote controls.

Comments?

Thanks,
srini

 .../devicetree/bindings/media/remote-control.txt   |   31 ++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/media/remote-control.txt

diff --git a/Documentation/devicetree/bindings/media/remote-control.txt b/Documentation/devicetree/bindings/media/remote-control.txt
new file mode 100644
index 0000000..901ea56
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/remote-control.txt
@@ -0,0 +1,31 @@
+Generic device tree bindings for remote control.
+
+properties:
+	- compatible: Can contain any remote control driver compatible string.
+	  example: "st-comms-irb, "gpio-ir-receiver".
+	- reg: Base physical address of the controller and length of memory
+	  mapped region.
+	- interrupts: Interrupt-specifier for the sole interrupt generated by
+	  the device. The interrupt specifier format depends on the
+	  interrupt controller parent. Iff the device supports interrupts.
+	- rx-mode: Can be "infrared" or "uhf". rx-mode should be present iff
+	  the rx pins are wired up.
+	- tx-mode: Can be "infrared" or "uhf". tx-mode should be present iff
+	  the tx pins are wired up.
+
+Optional properties:
+	- linux,rc-map-name: Linux specific remote control map name. Refer to
+	  include/media/rc-map.h for full list of maps.
+	- pinctrl-names, pinctrl-0: The pincontrol settings to configure muxing
+	  properly for the device pins.
+	- clocks : phandle with clock-specifier pair for the device specified
+	  in compatible.
+
+example:
+
+	rc: rc@fe518000 {
+		compatible	= "st,comms-irb";
+		reg		= <0xfe518000 0x234>;
+		interrupts	= <0 203 0>;
+		rx-mode		= "infrared";
+	};
-- 
1.7.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux