Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2410051imu; Tue, 6 Nov 2018 14:10:11 -0800 (PST) X-Google-Smtp-Source: AJdET5dtb25muwYgefWKMHKua/D9BQHhvvnXDQhzvo2GsnxWHK4E3tOnrnB8huVdV2xRLX1pU2+l X-Received: by 2002:a17:902:8bc6:: with SMTP id r6-v6mr13915798plo.194.1541542211683; Tue, 06 Nov 2018 14:10:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541542211; cv=none; d=google.com; s=arc-20160816; b=J55rVL1kNLJGohT7KaHWJsB0KgDd8ZawbMOf+2pTDw0onBoObCPmf77S/Xlkk6hZpE jU+tX1xSoOT2fcXItaTHiVAlWAoke8Pixh9mzgpZzDyR70JTbGfsoxyBpDl71Nyc0Lfs j6LL1+sd719bjgcE3Vk1TLzPx7x2WOi5BVgqwHeQak1eHAwsNqMB5G0ky4iwpZmgLpZU uxEzMBY3jCckgOz1nGepWF29xEn+d/pFsx536CxAjz+NKWA2k/B44VKsFsaSEhYn4OAh 573TMbHtTsniQMsFixGBIAFCvr6E98xNcE6c+Dav1+me/iSwQDJzjgQ3n6gUgcdbFU3b 9kWg== 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=j4wYfQac1eSCAS/c8KUS5KNLhBiOt8tDdOWjxqlLhWA=; b=QE7Ds9E+XOLo/KiCsu9tB0JYvgEbR7EVyFxwx8nK320yO4vHgV2Bd6XPo2rNcqgf9k e3CNs//63MxAX5oIZ8I1LFLM6CCPETzw1wkJ8rMAlLFLD/TQoQQpFL5lVVWbYBYU9NHc rH2rM5muAUKACHa2HXJwZC9iPMZJ5lAsiYg65kwNd9qFhyM+Pn2wFy3E5le0RcDXyfY/ 3ehEKWiDgJzZGqM7zW/fqn3CJ6drYaNVeaj1uB7M9f53h6+iKD20/tdXLksLMGUL96b7 0fuOQVB0ed8wJoda4RnFpiZBqDd9vPHHrcmpIBU2sbbGG1vbqEpGai/n8e3Noy+PyvBv VRww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p6UEGBWx; 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 v63-v6si39826954pfb.67.2018.11.06.14.09.56; Tue, 06 Nov 2018 14:10:11 -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=p6UEGBWx; 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 S2388819AbeKGHfh (ORCPT + 99 others); Wed, 7 Nov 2018 02:35:37 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45076 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388363AbeKGHff (ORCPT ); Wed, 7 Nov 2018 02:35:35 -0500 Received: by mail-lj1-f194.google.com with SMTP id j4-v6so12920981ljc.12; Tue, 06 Nov 2018 14:08:12 -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=j4wYfQac1eSCAS/c8KUS5KNLhBiOt8tDdOWjxqlLhWA=; b=p6UEGBWxBQc6s/+QwuYRiK9de9UBM+Tj+bK5lu8g2oahV7mjNnS9Q1Hh3mduX8dXzb EL4pA82hGEaDC3u0k7rKCv6pxo1kIeq4aZooxdyySm+kHyS8pYUYyPvn52qhwh+hSqCm 38GqdfNSWNTuuuCibsfIFWpfO0qRxdudv+QF8+5cpYh6NH207etWqh3euJopj5DenRWJ BgiAQFwXtV57GNTfCc78ExM1Vmc9+sVby6kSrjuDbiRj6A4JbRCkDjTQaYLlqVzMtNcN THBTLYD2QfUqOOfBOIoucKBivI+WguW6iVUxB6fQ7CZ8n7uBh38abUH7v8WTJ8+GsggT MWyw== 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=j4wYfQac1eSCAS/c8KUS5KNLhBiOt8tDdOWjxqlLhWA=; b=IT60emh/hpAvtqfal1GFZ2aFwmd/huMKk3j7YHvQv1hrzyxwcwsGuEsseuQ14hnseV pu7dqD2wsoWLaGddA53l3QtwkzifbUarIombdD1ErwM8wY0LxDD9psE/sHyAnhT6pGxf C6Ev1Ql3k9+h6Y4lRylFuna7KNoMmMKBHZutqWhX9EQqWibjkWoMf3KXme2pspnonTi1 9OP8xRwojEYjrsBNvnwXosV6nO38tWoHkZVZHFNCPR4o0QUSk5oe/zGCumbea6QezsO5 ObNFGT1/ec7cCUKaAO7bXxOiFXWkM9XUPtlo/Wb03dUes+54cOSke6a7ZUSTZoDUvYJO 0QGQ== X-Gm-Message-State: AGRZ1gKECcFd9JGQcgAr/iQDPiDOC1dyahkEbtevbGL5uwfuQfRTUzPC IvKXYm4n9pkEhO3xOCeqI8duL37UHoU= X-Received: by 2002:a2e:2b85:: with SMTP id r5-v6mr2271020ljr.91.1541542091833; Tue, 06 Nov 2018 14:08:11 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Nov 2018 14:08:11 -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, Oleh Kravchenko Subject: [PATCH 15/24] dt-bindings: cr0014114: Add function and color properties Date: Tue, 6 Nov 2018 23:07:23 +0100 Message-Id: <1541542052-10081-16-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: Oleh Kravchenko --- .../devicetree/bindings/leds/leds-cr0014114.txt | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-cr0014114.txt b/Documentation/devicetree/bindings/leds/leds-cr0014114.txt index 4255b19..4c65c56 100644 --- a/Documentation/devicetree/bindings/leds/leds-cr0014114.txt +++ b/Documentation/devicetree/bindings/leds/leds-cr0014114.txt @@ -11,14 +11,20 @@ Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt apply. In particular, "reg" and "spi-max-frequency" properties must be given. LED sub-node properties: -- label : +- 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 : (optional) see Documentation/devicetree/bindings/leds/common.txt Example ------- +#include + led-controller@0 { compatible = "crane,cr0014114"; reg = <0>; @@ -28,27 +34,33 @@ led-controller@0 { led@0 { reg = <0>; - label = "red:coin"; + function = "coin"; + color = "red"; }; led@1 { reg = <1>; - label = "green:coin"; + function = "coin"; + color = "green"; }; led@2 { reg = <2>; - label = "blue:coin"; + function = "coin"; + color = "blue"; }; led@3 { reg = <3>; - label = "red:bill"; + function = "bill"; + color = "red"; }; led@4 { reg = <4>; - label = "green:bill"; + function = "bill"; + color = "green"; }; led@5 { reg = <5>; - label = "blue:bill"; + function = "bill"; + color = "blue"; }; ... }; -- 2.1.4