From patchwork Fri Sep 27 09:33:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas KANDAGATLA X-Patchwork-Id: 2953501 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B3A939F288 for ; Fri, 27 Sep 2013 09:36:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8541720253 for ; Fri, 27 Sep 2013 09:36:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BAA122024A for ; Fri, 27 Sep 2013 09:36:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752479Ab3I0JgS (ORCPT ); Fri, 27 Sep 2013 05:36:18 -0400 Received: from eu1sys200aog115.obsmtp.com ([207.126.144.139]:39747 "EHLO eu1sys200aog115.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878Ab3I0JgQ (ORCPT ); Fri, 27 Sep 2013 05:36:16 -0400 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKUkVRhUrbT2MgXRzX+/SftEclVv/YedRL@postini.com; Fri, 27 Sep 2013 09:36:16 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4305665; Fri, 27 Sep 2013 09:35:35 +0000 (GMT) Received: from mail7.sgp.st.com (unknown [164.129.223.81]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B4DCB4910; Fri, 27 Sep 2013 09:22:48 +0000 (GMT) Received: from localhost (king.bri.st.com [10.65.51.59]) by mail7.sgp.st.com (MOS 4.3.3-GA) with ESMTP id BNH49014 (AUTH srinivak); Fri, 27 Sep 2013 11:35:52 +0200 From: Srinivas KANDAGATLA To: linux-media@vger.kernel.org Cc: Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley , Mauro Carvalho Chehab , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC] media: rc: OF: Add Generic bindings for remote-control Date: Fri, 27 Sep 2013 10:33:11 +0100 Message-Id: <1380274391-26577-1-git-send-email-srinivas.kandagatla@st.com> X-Mailer: git-send-email 1.7.6.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla 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 --- 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"; + };