Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2409236imu; Tue, 6 Nov 2018 14:09:21 -0800 (PST) X-Google-Smtp-Source: AJdET5dxZOAko5UMj3JRb2MT1e+GPxwNE6LDdMjs35LP+DmpXSpJ3yesAC87q20ZZPeKrYOOl2Cq X-Received: by 2002:a65:4049:: with SMTP id h9mr24971837pgp.304.1541542161864; Tue, 06 Nov 2018 14:09:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541542161; cv=none; d=google.com; s=arc-20160816; b=nEQy5TmgbSbv6en3/HT8IeGh+uI9XrgkZVQv5Uk/A8f+QlmzS10yyow6KiIzmEYGza zTjQi2Gcul3Vh0xOtChBy5vldhAJEreo+1DTzKNwDliPzcFAPEAjIRH75+IPpaWM4TgL ZohSYzrx4sUxFxWbJoLwGeTHlO5S7tTwaA0tNRWWGf04xy5nBeSxqsxVpBW83Ku1FKw3 LngLPPim16eBuIX/uxCqZdKjCss78BfxHMibQbJYu1KYVPbDXqq1Ec28Ch9Tg70m/SkG PA097szx7Irf+oiT5ZgSmHy840BEuWCCiZD3ay6v4d/W0zS+Y/We8Ud7PGXLzfuPIQmM KAcQ== 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=d2w20Nzhg6PwqRqYMjBmG0FB63ZStDmAp6VIKaIjxgA=; b=qNzUPhfrAfK62CoA8pEZD7ka9Ouaac+LfXGp0+UzTf5eYrHuaZg3B4F2lJ1JK5bwfe +B3zF/cgvyv75RO+t35PqVDP2h/CyzuFk/37ZvXDJTiU8Zjirvwjgi6hAYvj83z3XdNS w9B4RrBoiLdAU4IZovcwzhQlMTMr3O87zrUfg8E01ibG7Qclfql03bUpLTwbBvOTwY6e J8HkLlv2M/lqvxzKxl6oAvOYOWuqhKOz7jbtw8gcMftMKtL68eoARuoyhOrNS0o45hjd e5Ab7+//Xhny2TtfSt/J2kanhnuQJGIXItL/aJgvSxZfc/YL1zxNczcxdXk64yQg5LdZ N94g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="uLZ+/9g/"; 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 a10-v6si31942429pfa.227.2018.11.06.14.09.05; Tue, 06 Nov 2018 14:09:21 -0800 (PST) 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="uLZ+/9g/"; 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 S2389065AbeKGHfv (ORCPT + 99 others); Wed, 7 Nov 2018 02:35:51 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35903 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388363AbeKGHfv (ORCPT ); Wed, 7 Nov 2018 02:35:51 -0500 Received: by mail-lf1-f65.google.com with SMTP id h192so10060421lfg.3; Tue, 06 Nov 2018 14:08:27 -0800 (PST) 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=d2w20Nzhg6PwqRqYMjBmG0FB63ZStDmAp6VIKaIjxgA=; b=uLZ+/9g/Tbg8PAZ+mLMecfTDcWxZwv2EI9u/NzAmCViCwbgTxwjYCr5UMwPxVQ1y/c tggPcjK6ixdFYHFiIqWVUU+FF2o4TDowlj5hhLC1jnVscfOVlBvdXIu77YAWt6Ua1pPh g1nYSvIc0Cfrxognoi3+3Ra7IlWLpxnDRi3olEz8ENqsFddl6VMO3bfh8n4a47EwlpSP jTzqfeqeyFCbmLKagPwic3QQnSEbO9RHmtGCgAKMDcxppKDzi4PXbDUkZC82otZv2DWI nArV5BvpQji9zzwMFRlbM9kz67SKOVOyZ9wHp1KKFq83sRzK4pz54Ui8Lqt3jj0u5kws dYGQ== 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=d2w20Nzhg6PwqRqYMjBmG0FB63ZStDmAp6VIKaIjxgA=; b=E8CdmpgnwiOhC7KsIVJWjkEVFS/r+JCSDtVFF3DyAVB1K+dsEXQjPTDqKC67Z2Z9yG 0t5DChciVfVcQz6JWy2Kv4mKduunfyDXkznWTeLO2Wo+uXvugpmhiSnkhi2ZdO3WGtnZ oWjNT+18/mq/Z4ovD4D4arnVVKU7h5l87LGLEX06i12hzlrRlQVwnaa4kfef1mUTV3S5 7kRMzP5daOSBPCPhAWd/Kro+jgKcwfUvydXv/SL/ufA3xcm4CG1RQof+aScVSIkhkxJa Pgzafm4xqmX0sVTmXtOBRg+H5r10b1w83pfoiWHZwMkgXRPolx53Na75ocLGEWH+JLJJ mqhw== X-Gm-Message-State: AGRZ1gLaWRygvvq8dERznU66Tc/YeYIRDBuwlWTXtPDF1D7wDL75IomW qloTr8Pup8Y4hoSt8eVwBW4iAkn3OpU= X-Received: by 2002:a19:94d5:: with SMTP id o82mr15467008lfk.155.1541542106243; Tue, 06 Nov 2018 14:08:26 -0800 (PST) Received: from i4790k.home (bgp86.neoplus.adsl.tpnet.pl. [83.28.79.86]) by smtp.gmail.com with ESMTPSA id c20sm3185654lfj.67.2018.11.06.14.08.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Nov 2018 14:08:25 -0800 (PST) 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, jacek.anaszewski@gmail.com, Simon Shields Subject: [PATCH 23/24] dt-bindings: an30259a: Add function and color properties Date: Tue, 6 Nov 2018 23:07:31 +0100 Message-Id: <1541542052-10081-24-git-send-email-jacek.anaszewski@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski Cc: Simon Shields --- .../devicetree/bindings/leds/leds-an30259a.txt | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-an30259a.txt b/Documentation/devicetree/bindings/leds/leds-an30259a.txt index 6ffb861..43da93b 100644 --- a/Documentation/devicetree/bindings/leds/leds-an30259a.txt +++ b/Documentation/devicetree/bindings/leds/leds-an30259a.txt @@ -15,10 +15,19 @@ Required sub-node properties: - reg: Pin that the LED is connected to. Must be 1, 2, or 3. Optional sub-node properties: - - label: see Documentation/devicetree/bindings/leds/common.txt - - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt + - function : + see Documentation/devicetree/bindings/leds/common.txt + - color : + see Documentation/devicetree/bindings/leds/common.txt + - label : + see Documentation/devicetree/bindings/leds/common.txt (deprecated) + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt Example: + +#include + led-controller@30 { compatible = "panasonic,an30259a"; reg = <0x30>; @@ -28,16 +37,19 @@ led-controller@30 { led@1 { reg = <1>; linux,default-trigger = "heartbeat"; - label = "red:indicator"; + function = LED_FUNCTION_INDICATOR; + color = "red"; }; led@2 { reg = <2>; - label = "green:indicator"; + function = LED_FUNCTION_INDICATOR; + color = "green"; }; led@3 { reg = <3>; - label = "blue:indicator"; + function = LED_FUNCTION_INDICATOR; + color = "blue"; }; }; -- 2.1.4