Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2453867ybi; Sun, 9 Jun 2019 12:10:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuey38mbSG7TCadBBCFxRkjw/U/uZEzIV+IXDHD1P3Ooa3Dci4tyZi8SEBrZ1M6uKk0ZOU X-Received: by 2002:a63:295:: with SMTP id 143mr12046808pgc.279.1560107454328; Sun, 09 Jun 2019 12:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560107454; cv=none; d=google.com; s=arc-20160816; b=aNnUaLo8MXClD6tbIxG1fLHgcRZoiqoG+UjPchLunzmzE+teAxxzverlviRZyyDV49 zo6AqOgjhbMMFl4sBWHwvMgKXcBL682eFtD7+rxHtVgHgTo3qOjG7fWLoA319OB3MJIs 69Ra/4aOOw+pwyZrJd/Olti7bT3sKOtiX8jN2W3xdi1BbTCATs+CgLLTde5ImmLtwveU 9JoazYh2MhsBAkVEqjR5emeh+IIVZ/+gA+SYTpQzk5QVX4g0xyi0ySpt7RHLBjH7/DeY bQ19r+cu6aBkHL4cJWWfiwR0yZfmh2XGGvTb0TBJOvH4NdG9qYcFFpFUkPlYyXVt7Qox fFMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Gi+RQar2xIxGko9w1zT7uY953FhVhvBTDf+plIbqWkc=; b=0KVuQD9lw1LMlPEdd/+wJO7c2mLUBTyBaEnqtaKbKYV6A6ZgQTzMla6Ai4eHWXld52 lkkdApHMI4TT+zEmNO4Dq+5qOwWwtIqwg5uOk8/eSGjBnroiDrRQtCLRPxYXYPygI2Bd nhOmwmuBOQxWm7ipy0s5Va4e/NHqnV9pktLdVOeZCptHB+91A80Rj5ioLsKovLNM76/j ZnTSRfTC+RRxbzzDjFzF9Zy0thzU2N1qy5qFPcurUBmOmFNSEPhpjHRtJZqGunM5kyCQ 0/xJi8zNi029pSxGvVUtzJkC+d2y1JpZGrmky0L2HPhjI4ZNWTk/NinajeQaSZ3Ksw7G Zw3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RKAsJCLy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q124si7631987pgq.381.2019.06.09.12.10.38; Sun, 09 Jun 2019 12:10:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RKAsJCLy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729805AbfFITIh (ORCPT + 99 others); Sun, 9 Jun 2019 15:08:37 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42969 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729120AbfFITId (ORCPT ); Sun, 9 Jun 2019 15:08:33 -0400 Received: by mail-wr1-f67.google.com with SMTP id x17so6953748wrl.9; Sun, 09 Jun 2019 12:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gi+RQar2xIxGko9w1zT7uY953FhVhvBTDf+plIbqWkc=; b=RKAsJCLyhC36qHrUXGNGQjgrKh3+5v6fMd5Dq8bibO3rZVFui7aDjghIfbztyDqX4D TbyqVxR8Mf1/QsHgtFT1CYiI+i+FaDuy3DQeVpe1JP7P7E443t2Y8NzWP9grQV91eYhe mp9VEsj2kbkDyB4WX9iwcM5U71W7WdQauN2wsvH7IS5aIZObmMt3YzKtOMmmrIRxRbYd +q0ReFSQq9G3DtdPYG69QMg3jWCL9CYA2G7ys0ugGz9o3eZQsDXgMORWIl6xZOrYl+su Rqo+YrCutFYyJlQBAZ5nlBkBn98PvWQ8xC0lOOloyhndAmYsg9/mbPBfJ6fuYKfFwwlV TGjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gi+RQar2xIxGko9w1zT7uY953FhVhvBTDf+plIbqWkc=; b=q70M7r1l6SlM5V6o1oNdjeg0oriZaTe3vMPVPkf58DnebUdOQECg4zABJYGqkmCGj7 sd7NYi4W2CteYI/3NDPnmU3nYOGckP/QBl0TTMoiFvKfhK5Kt9wEI/VNXT0iXfNo4PaF DE9YTKwFoiVJKTowrrB1vVO1zK390xMmSz43s+ovz1LeORyKdknZmTr5J8wSiTOwPJdC xN7WjBK5moiTRNAVscrMNCfkIN5uHaHXCkHcOMGy9XLnsSzCOx5eqz3nSdFjPIBEF4ip 1Hzdi/ngwXgsMpbSzoIy5ue10lnnl0LdoESCoxGDstvUs7MImhEq7SYbp8D9Gs/bzvNM 53SA== X-Gm-Message-State: APjAAAXO7hy7PQ4dCQsRxK95LdEm21xeRYz8tMK16Lt/jFQqS63hVYHi 3tHS/o75XIs2RCCPYzPj4YKq0T5B X-Received: by 2002:adf:8385:: with SMTP id 5mr14993575wre.194.1560107310949; Sun, 09 Jun 2019 12:08:30 -0700 (PDT) Received: from myhost.home (ckm12.neoplus.adsl.tpnet.pl. [83.31.88.12]) by smtp.gmail.com with ESMTPSA id y38sm14725041wrd.41.2019.06.09.12.08.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jun 2019 12:08:30 -0700 (PDT) From: Jacek Anaszewski To: linux-leds@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, robh@kernel.org, dtor@google.com, linux@roeck-us.net, dmurphy@ti.com, jacek.anaszewski@gmail.com, Baolin Wang , Daniel Mack , Linus Walleij , Oleh Kravchenko , Sakari Ailus , Simon Shields Subject: [PATCH v5 03/26] dt-bindings: leds: Add LED_FUNCTION definitions Date: Sun, 9 Jun 2019 21:07:40 +0200 Message-Id: <20190609190803.14815-4-jacek.anaszewski@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190609190803.14815-1-jacek.anaszewski@gmail.com> References: <20190609190803.14815-1-jacek.anaszewski@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial set of common LED function definitions. Signed-off-by: Jacek Anaszewski Cc: Baolin Wang Cc: Daniel Mack Cc: Linus Walleij Cc: Oleh Kravchenko Cc: Sakari Ailus Cc: Simon Shields Reviewed-by: Rob Herring Acked-by: Pavel Machek Reviewed-by: Dan Murphy --- include/dt-bindings/leds/common.h | 44 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index 217ee9e0dd6c..9e1256a7c1bf 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -3,8 +3,9 @@ * This header provides macros for the common LEDs device tree bindings. * * Copyright (C) 2015, Samsung Electronics Co., Ltd. - * * Author: Jacek Anaszewski + * + * Copyright (C) 2019 Jacek Anaszewski */ #ifndef __DT_BINDINGS_LEDS_H @@ -30,4 +31,45 @@ #define LED_COLOR_ID_IR 7 #define LED_COLOR_ID_MAX 8 +/* Standard LED functions */ +#define LED_FUNCTION_ACTIVITY "activity" +#define LED_FUNCTION_ALARM "alarm" +#define LED_FUNCTION_BACKLIGHT "backlight" +#define LED_FUNCTION_BLUETOOTH "bluetooth" +#define LED_FUNCTION_BOOT "boot" +#define LED_FUNCTION_CPU "cpu" +#define LED_FUNCTION_CAPSLOCK "capslock" +#define LED_FUNCTION_CHARGING "charging" +#define LED_FUNCTION_DEBUG "debug" +#define LED_FUNCTION_DISK "disk" +#define LED_FUNCTION_DISK_ACTIVITY "disk-activity" +#define LED_FUNCTION_DISK_ERR "disk-err" +#define LED_FUNCTION_DISK_READ "disk-read" +#define LED_FUNCTION_DISK_WRITE "disk-write" +#define LED_FUNCTION_FAULT "fault" +#define LED_FUNCTION_FLASH "flash" +#define LED_FUNCTION_HEARTBEAT "heartbeat" +#define LED_FUNCTION_INDICATOR "indicator" +#define LED_FUNCTION_KBD_BACKLIGHT "kbd_backlight" +#define LED_FUNCTION_LAN "lan" +#define LED_FUNCTION_MAIL "mail" +#define LED_FUNCTION_MTD "mtd" +#define LED_FUNCTION_MICMUTE "micmute" +#define LED_FUNCTION_MUTE "mute" +#define LED_FUNCTION_NUMLOCK "numlock" +#define LED_FUNCTION_PANIC "panic" +#define LED_FUNCTION_PROGRAMMING "programming" +#define LED_FUNCTION_POWER "power" +#define LED_FUNCTION_RX "rx" +#define LED_FUNCTION_SD "sd" +#define LED_FUNCTION_SCROLLLOCK "scrolllock" +#define LED_FUNCTION_STANDBY "standby" +#define LED_FUNCTION_STATUS "status" +#define LED_FUNCTION_TORCH "torch" +#define LED_FUNCTION_TX "tx" +#define LED_FUNCTION_USB "usb" +#define LED_FUNCTION_WAN "wan" +#define LED_FUNCTION_WLAN "wlan" +#define LED_FUNCTION_WPS "wps" + #endif /* __DT_BINDINGS_LEDS_H */ -- 2.11.0