From patchwork Thu May 23 19:08:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 165049 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2598436ili; Thu, 23 May 2019 12:08:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl7NZOF+kZrDlq1XbciwRiRwiTK5Kb2+d5u51b0CEEep3kEIg8hmWnqNewzqopKMYLlGNF X-Received: by 2002:a65:530d:: with SMTP id m13mr4936351pgq.68.1558638527452; Thu, 23 May 2019 12:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558638527; cv=none; d=google.com; s=arc-20160816; b=maRK7ZN8tll0T6JxdKayoQAO8XT66zLb/d3DIZwEtJiMX4Qq+JVbdbd+Sz0+gqEFQi /es76YuLao8vB7v0XpmCjWPhQ6wkdDl8S1tCgF84tUnRINQIZ8iUDISiUWZOSRslJceu 4YQB2thFB1HsB+pyAaeBNzrIso33Is7uUrRBq72zFCiI4ULKyJ/YXp1nn8lDxoDu1g04 DriShgvOi1YyfTM2oAqpeY4JrTLEcctoxqGWYGPYY5VI8WHu+Tmy/tkiS09wVdyo7IRJ qEjaf8C1JgJlZgqdbWt4FQeuduu8VUKcXvkyzBSsO3O+ZdULWo2wrZJkBIRnDQ7Xqi2U b2lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NOGPoNwWv6Pn/PLmO8rE0HQXiSYvUFN87f5nSAAmvIE=; b=URHwY7B5u88tR0e/iOkn3GUY00ZaIYYqfGQUGBHzmHKxpYctqcM8/ncUWcV9d7yUmC wnCXvfY2YtR6sAwam+0gqIVz5VKKZlximsgiyg4m6d60Pfb8XBx6usugbtXFtKUeEar6 iFsLeWkOxR/P/paXnv5yRCI4BxgxoOBI7pkegQ5wG5xiuvjykglcT/39O21hLKMWwHRz rBmQ/jHB5RLCKtDYsQcNAdnZAd4geIiBOAbA78P+pHzeUjPWF+4Hrmajn2BFmrrMe3zZ yO1MkPnzDNM/aXxgQUBy26ew/X9sA7XZblPgYdyNjBd9ofWbZKyIVDckigRQVEKQ8eHw +X1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ftte8Z4j; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si480211plt.389.2019.05.23.12.08.47; Thu, 23 May 2019 12:08:47 -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=@ti.com header.s=ti-com-17Q1 header.b=ftte8Z4j; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731885AbfEWTIq (ORCPT + 30 others); Thu, 23 May 2019 15:08:46 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:56294 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731841AbfEWTIm (ORCPT ); Thu, 23 May 2019 15:08:42 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4NJ8btM092486; Thu, 23 May 2019 14:08:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1558638517; bh=NOGPoNwWv6Pn/PLmO8rE0HQXiSYvUFN87f5nSAAmvIE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ftte8Z4j52lAhLnoqLNsMSuDfTgJH9AszYsc/dkSmcWfss676p7TJ0VjvMGCy4JAP gSO81UNzM01hfFirotm5swl8bWclY6GDM/OWO9QPshL9cajgb/yiH4EZUStp00xdj6 WpRHjpFPlUTFUbDR18Q8NhhhtawDztspjcdRPPPs= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4NJ8bos123868 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 May 2019 14:08:37 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 23 May 2019 14:08:37 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 23 May 2019 14:08:37 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4NJ8b8m095902; Thu, 23 May 2019 14:08:37 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v3 2/9] dt: bindings: Add multicolor class dt bindings documention Date: Thu, 23 May 2019 14:08:13 -0500 Message-ID: <20190523190820.29375-3-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190523190820.29375-1-dmurphy@ti.com> References: <20190523190820.29375-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings for the LEDs multicolor class framework. Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.txt | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt -- 2.21.0.5.gaeb582a983 diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt new file mode 100644 index 000000000000..e2a2ce3279cb --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt @@ -0,0 +1,97 @@ +* Multicolor LED properties + +Multicolor LEDs can consist of a RGB, RGBW or a RGBA LED clusters. These devices +can be grouped together and also provide a modeling mechanism so that the +cluster LEDs can vary in hue and intensity to produce a wide range of colors. + +The nodes and properties defined in this document are unique to the multicolor +LED class. Common LED nodes and properties are inherited from the common.txt +within this documentation directory. + +Required LED Child properties: + - color : For multicolor LED support this property should be defined as + LED_COLOR_ID_MULTI and further definition can be found in + include/linux/leds/common.h. + +led-controller@30 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5024"; + reg = <0x29>; + + multi-led@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + color = ; + function = LED_FUNCTION_ACTIVITY; + + led@12 { + reg = <12>; + color = ; + }; + + led@13 { + reg = <13>; + color = ; + }; + + led@14 { + reg = <14>; + color = ; + }; + }; + + /* Only support RGB no model defined */ + multi-led@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + color = ; + function = LED_FUNCTION_; + + + led@3 { + reg = <3>; + color = ; + }; + + led@4 { + reg = <4>; + color = ; + }; + + led@5 { + reg = <5>; + color = ; + }; + }; + + multi-led@2 { + #address-cells = <1>; + #size-cells = <0>; + color = ; + function = LED_FUNCTION_ACTIVITY; + reg = <2>; + ti,led-bank = <2 3 5>; + + led@6 { + reg = <0x6>; + color = ; + led-sources = <6 9 15>; + }; + + led@7 { + reg = <0x7>; + color = ; + led-sources = <7 10 16>; + }; + + led@8 { + reg = <0x8>; + color = ; + led-sources = <8 11 17>; + }; + }; + +};