From patchwork Thu Mar 12 15:45:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5996781 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E3A159F318 for ; Thu, 12 Mar 2015 15:50:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FFA6202DD for ; Thu, 12 Mar 2015 15:50:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6ACE02035D for ; Thu, 12 Mar 2015 15:50:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932481AbbCLPp5 (ORCPT ); Thu, 12 Mar 2015 11:45:57 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:62128 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932082AbbCLPpv (ORCPT ); Thu, 12 Mar 2015 11:45:51 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NL3002UZVSD8Q40@mailout2.samsung.com>; Fri, 13 Mar 2015 00:45:49 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-95-5501b4ad0281 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 47.48.20081.DA4B1055; Fri, 13 Mar 2015 00:45:49 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NL300DC9VRGU950@mmp2.samsung.com>; Fri, 13 Mar 2015 00:45:49 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: kyungmin.park@samsung.com, pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, Jacek Anaszewski Subject: [PATCH/RFC v13 02/13] dt-binding: leds: Add common LED DT bindings macros Date: Thu, 12 Mar 2015 16:45:03 +0100 Message-id: <1426175114-14876-3-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1426175114-14876-1-git-send-email-j.anaszewski@samsung.com> References: <1426175114-14876-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsVy+t9jQd21WxhDDd7/VrQ4unMik8X8I+dY LXqvPme0ONv0ht3i8q45bBZb36xjtOjZsJXV4u6po2wWu3c9ZbU4/Kad1eLM/pVsDtweO2fd Zfc4/HUhi8ee+T9YPfq2rGL0WLH6O7vH501yAWxRXDYpqTmZZalF+nYJXBlTrvWwFcznrJg4 6RZ7A+MT9i5GTg4JAROJU5MOsUHYYhIX7q0Hsrk4hASmM0qc+7wZymlnkug8c4URpIpNwFDi 54vXTCC2iEC5xJ47j9lBipgFNjBKXJ7QyAKSEBYIkbg68w5QAwcHi4CqxOlOsF5eAQ+Jk4fu sYKEJQQUJOZMsgEJcwp4SnTf/wBWIgRUMnnDX/YJjLwLGBlWMYqmFiQXFCel5xrqFSfmFpfm pesl5+duYgSH4TOpHYwrGywOMQpwMCrx8FZ8ZQgVYk0sK67MPcQowcGsJMJrOp8xVIg3JbGy KrUoP76oNCe1+BCjNAeLkjivkn1biJBAemJJanZqakFqEUyWiYNTqoGR68g5i+nGEpN194sF FBQmSsa4uyzNi+M/FLc5yCV+/ceOWOm5ysZ7wybJ7jm86r/3YZHA2UfO1XHmpjtdXyClGLeq zffipA2dt/857PJal/x20uIQgzWBHIIPK9uvyTGv2JG8d+6nt+d2PD1qIxVeXWL0/5O3YOmN 2XISzWz3edYIzoqMzZmkxFKckWioxVxUnAgA9uTZ4j8CAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Add macros for defining boost mode and trigger type properties of flash LED devices. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- include/dt-bindings/leds/common.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/leds/common.h diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h new file mode 100644 index 0000000..79fcef7 --- /dev/null +++ b/include/dt-bindings/leds/common.h @@ -0,0 +1,21 @@ +/* + * This header provides macros for the common LEDs device tree bindings. + * + * Copyright (C) 2015, Samsung Electronics Co., Ltd. + * + * Author: Jacek Anaszewski + */ + +#ifndef __DT_BINDINGS_LEDS_H__ +#define __DT_BINDINGS_LEDS_H + +/* External trigger type */ +#define LEDS_TRIG_TYPE_EDGE 0 +#define LEDS_TRIG_TYPE_LEVEL 1 + +/* Boost modes */ +#define LEDS_BOOST_OFF 0 +#define LEDS_BOOST_ADAPTIVE 1 +#define LEDS_BOOST_FIXED 2 + +#endif /* __DT_BINDINGS_LEDS_H */