From patchwork Wed Feb 18 16:20:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5845081 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9E280BF440 for ; Wed, 18 Feb 2015 16:22:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D60C620253 for ; Wed, 18 Feb 2015 16:22:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0944F20251 for ; Wed, 18 Feb 2015 16:22:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702AbbBRQWH (ORCPT ); Wed, 18 Feb 2015 11:22:07 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:24132 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbbBRQWE (ORCPT ); Wed, 18 Feb 2015 11:22:04 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJZ00DUZ6SREI20@mailout1.samsung.com>; Thu, 19 Feb 2015 01:22:03 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-fe-54e4bc2ad42b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 57.49.20081.A2CB4E45; Thu, 19 Feb 2015 01:22:03 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NJZ003WS6QJDJ20@mmp1.samsung.com>; Thu, 19 Feb 2015 01:22:02 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@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 v11 04/20] dt-binding: leds: Add common LED DT bindings macros Date: Wed, 18 Feb 2015 17:20:25 +0100 Message-id: <1424276441-3969-5-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1424276441-3969-1-git-send-email-j.anaszewski@samsung.com> References: <1424276441-3969-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGLMWRmVeSWpSXmKPExsVy+t9jAV3tPU9CDNYfZrU4unMik8X8I+dY LXqvPme0ONv0ht1i65t1jBY9G7ayWtw9dZTNYveup6wWh9+0s1qc2b+SzYHLY+esu+weh78u ZPHYM/8Hq0ffllWMHitWf2f3+LxJLoAtissmJTUnsyy1SN8ugSvj8O7brAUrOSvufLjP1MD4 jr2LkZNDQsBEYtuEn0wQtpjEhXvr2boYuTiEBBYxSvz42s0O4bQzSex6OIEFpIpNwFDi54vX YB0iApES745eYgYpYhbYwChxeUIjWJGwQIjEq+OngBIcHCwCqhIP5qmChHkF3CX2bL/CCBKW EFCQmDPJBsTkFPCQuPDcA6RCCKhi+s13rBMYeRcwMqxiFE0tSC4oTkrPNdQrTswtLs1L10vO z93ECA69Z1I7GFc2WBxiFOBgVOLhbfj9OESINbGsuDL3EKMEB7OSCG/uyichQrwpiZVVqUX5 8UWlOanFhxilOViUxHmV7NtChATSE0tSs1NTC1KLYLJMHJxSDYxhp/c4vBXqq7y/a6Wl/sf1 fuJ97nezvSYv1Pod8Vz6/3kR3xpe+xKP9UmvWsMtnRQ4+0635xwOqn+WlrL16pF7N6aVPWW3 kJq444zX+lkPv0t8q/9/c/nMsxu6Wt+071O2Fv/Pfb6uZtbkX+Ea955pOd7J2z9ZQdxj/rTp 929McvmQqOVvultIiaU4I9FQi7moOBEAQ/0QCzkCAAA= 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/max77693.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/leds/max77693.h diff --git a/include/dt-bindings/leds/max77693.h b/include/dt-bindings/leds/max77693.h new file mode 100644 index 0000000..79fcef7 --- /dev/null +++ b/include/dt-bindings/leds/max77693.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 */