From patchwork Wed Dec 3 16:06:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5432221 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 460EABEEA8 for ; Wed, 3 Dec 2014 16:17:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CA7420373 for ; Wed, 3 Dec 2014 16:17:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74BDA20256 for ; Wed, 3 Dec 2014 16:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752641AbaLCQIA (ORCPT ); Wed, 3 Dec 2014 11:08:00 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:45443 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752106AbaLCQH7 (ORCPT ); Wed, 3 Dec 2014 11:07:59 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NG0008SOKT8N970@mailout4.samsung.com>; Thu, 04 Dec 2014 01:07:57 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-79-547f355c4d13 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E9.F4.20081.C553F745; Thu, 04 Dec 2014 01:07:56 +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 <0NG000LO7KRKV100@mmp2.samsung.com>; Thu, 04 Dec 2014 01:07:56 +0900 (KST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kyungmin.park@samsung.com, b.zolnierkie@samsung.com, pavel@ucw.cz, cooloney@gmail.com, rpurdie@rpsys.net, sakari.ailus@iki.fi, s.nawrocki@samsung.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, Jacek Anaszewski , Lee Jones , Chanwoo Choi Subject: [PATCH/RFC v9 07/19] dt-binding: mfd: max77693: Add DT binding related macros Date: Wed, 03 Dec 2014 17:06:42 +0100 Message-id: <1417622814-10845-8-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1417622814-10845-1-git-send-email-j.anaszewski@samsung.com> References: <1417622814-10845-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t9jQd0Y0/oQgysHrSw2zljPanF050Qm i+tfnrNa9L9ZyGpx7tVKRoveq88ZLc42vWG3uP/1KKPF5V1z2Cy2vlnHaNGzYSurxdLrF5ks 7p46ymYxYfpaFovWvUfYLXbvespqcfhNO6vFmf0r2RyEPNbMW8Pocbmvl8lj56y77B4rl39h 8zj8dSGLx6ZVnWwed67tYfPYM/8Hq0ffllWMHitWf2f3+LxJLoA7issmJTUnsyy1SN8ugStj TVNMwQreimvbHBsYF3J3MXJySAiYSDQ9ncsMYYtJXLi3nq2LkYtDSGA6o8TevYtYIZx2Jond x9eCVbEJGEr8fPGaqYuRg0NEIFri0rF6kBpmgW5mie7mPawgcWGBCInra8EWsAioShy4cYsJ xOYV8JC40/SFEaREQkBBYs4kG5Awp4CnxNMf99lBwkJAJQcn+k9g5F3AyLCKUTS1ILmgOCk9 11CvODG3uDQvXS85P3cTIzjsn0ntYFzZYHGIUYCDUYmH1yKuLkSINbGsuDL3EKMEB7OSCO+z b0Ah3pTEyqrUovz4otKc1OJDjNIcLErivDdu5oYICaQnlqRmp6YWpBbBZJk4OKUaGA3e3S/a q8h+fmvsnxfeMcxtL1P4S7M6jlZ0fKg56J17yCnvq3p+0K7Zq66dvJ90NfRbapigwfyeq8YO q7OvZ98Lvtxdc/jxfq0NLytsbCNqXjLv8mAKsg/XDX2d9tW4IErtcnL+wpIlQnxtJavL/5tP XdkxKb1aUoixUJ6tcP+3N9PV7ALqlFiKMxINtZiLihMBgeb0W3cCAAA= 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 max77693 led part related binding. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Lee Jones Cc: Chanwoo Choi --- include/dt-bindings/mfd/max77693.h | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 include/dt-bindings/mfd/max77693.h diff --git a/include/dt-bindings/mfd/max77693.h b/include/dt-bindings/mfd/max77693.h new file mode 100644 index 0000000..4011cb47 --- /dev/null +++ b/include/dt-bindings/mfd/max77693.h @@ -0,0 +1,38 @@ +/* + * This header provides macros for MAX77693 device binding + * + * Copyright (C) 2014, Samsung Electronics Co., Ltd. + * + * Author: Jacek Anaszewski + */ + +#ifndef __DT_BINDINGS_MAX77693_H__ +#define __DT_BINDINGS_MAX77693_H + +/* External control pins */ +#define MAX77693_LED_FLED_UNUSED 0 +#define MAX77693_LED_FLED_USED 1 + +/* FLED pins */ +#define MAX77693_LED_FLED1 1 +#define MAX77693_LED_FLED2 2 + +/* External trigger type */ +#define MAX77693_LED_TRIG_TYPE_EDGE 0 +#define MAX77693_LED_TRIG_TYPE_LEVEL 1 + +/* Trigger flags */ +#define MAX77693_LED_TRIG_FLASHEN (1 << 0) +#define MAX77693_LED_TRIG_TORCHEN (1 << 1) +#define MAX77693_LED_TRIG_SOFTWARE (1 << 2) + +#define MAX77693_LED_TRIG_ALL (MAX77693_LED_TRIG_FLASHEN | \ + MAX77693_LED_TRIG_TORCHEN | \ + MAX77693_LED_TRIG_SOFTWARE) + +/* Boost modes */ +#define MAX77693_LED_BOOST_OFF 0 +#define MAX77693_LED_BOOST_ADAPTIVE 1 +#define MAX77693_LED_BOOST_FIXED 2 + +#endif /* __DT_BINDINGS_MAX77693_H */