From patchwork Fri Sep 20 17:41:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174151 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2785193ill; Fri, 20 Sep 2019 10:38:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGaHXdU7lQVRkcGgz12Ead2m5NjPitnedgwlyYwL0Ggz7DokgeVV1Ekc0X91ADC1RG+BL8 X-Received: by 2002:a50:ce53:: with SMTP id k19mr23119709edj.2.1569001133524; Fri, 20 Sep 2019 10:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569001133; cv=none; d=google.com; s=arc-20160816; b=PznaZgEyHf9eEK7rIaDJF4+/T72h0dLnMfTEFS9/nSVPHUAecse/zqoEGyF/svS+4R EHXb0u/jXI5OxB8Jj6WGFcez43hFVzcLs/vbYJ6yC+cshL8aGf8sppEC4EEDbyZBXwvC j5qAZ9K0jQViOpeZwHGz8FqpYxMV1ql4VYAyIzjXK1kY1yeZ7nMsJOl0BRABIUELLH82 p1ra8e9Bw6vwzn2wEaXWE3sB6ppLdOPcO+qwqXGAikLwKOF8T7oHLD7XUw477t/MlRD0 YmweJJbe4lXo18Dxbq8MpKlnepu4SKz0zC2TGT7nAqGqtLmaDlR/uJfqnM37ELurkZ5B 3p4w== 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=Bww3DmLPInN+74zzf9x1fHcHAM7PHNA7A5KdfU8oS5o=; b=oguxsrbuU86OyYz3PC1/BO0GUmvLqKMMvkEzDBvQSoGYhFyMEf+isYLHiJ4mWvTaB6 5PDSfv/503vZdRBtP3pbwzKL6nYlktGNTVcJrJF2gCugGusrc/FQs8OLxa7ycFA/yQq8 D6RsWfWltTpgyrvvuI9PhbX/0Cp2Ut/+z2mnMr7tmkecCYM5ZId6zNDKaRnDn7bTtT5Z Ir17wdxAOIksymjkClVMYmooMjFM15yaRiU0piM7skhrQT2W+RztiAdlCF3m6u8eDMK7 ZqoqqxPQVA+PCtTS+iKKRLEo5Q8vbKfwJc9HZkieWBIOjejdrJMIEgie9rPBI9bLLqO0 2XGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZzkLNWKQ; 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 b20si1438389ejk.38.2019.09.20.10.38.53; Fri, 20 Sep 2019 10:38:53 -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=ZzkLNWKQ; 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 S2393227AbfITRiw (ORCPT + 26 others); Fri, 20 Sep 2019 13:38:52 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:54466 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392231AbfITRib (ORCPT ); Fri, 20 Sep 2019 13:38:31 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8KHcRSZ016881; Fri, 20 Sep 2019 12:38:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569001107; bh=Bww3DmLPInN+74zzf9x1fHcHAM7PHNA7A5KdfU8oS5o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZzkLNWKQyeu43gwHKcm7t5FOmQn3XEBIGeqs/0J6Qhj6nxEp91UAKHH0mumpD35go 83JOCGVNzl6qMHq3qYQO1BJRhr0Xyzr5xyFM7u96gmNDtVRcht+/7RNeMdU4iokeaV AiRGgQhJgu0303SMclprmc3ObOIJbx88GOeK6/bM= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8KHcRd6021615 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Sep 2019 12:38:27 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 20 Sep 2019 12:38:22 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) 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; Fri, 20 Sep 2019 12:38:26 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8KHcQEw107409; Fri, 20 Sep 2019 12:38:26 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v8 3/9] dt: bindings: Add multicolor class dt bindings documention Date: Fri, 20 Sep 2019 12:41:33 -0500 Message-ID: <20190920174139.30079-4-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190920174139.30079-1-dmurphy@ti.com> References: <20190920174139.30079-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 | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt -- 2.22.0.214.g8dca754b1e 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..215d3c90f351 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt @@ -0,0 +1,95 @@ +* Multicolor LED properties + +Monochrome LEDs can grouped into LED clusters. These clusters can provide a +visible output that have a wide range of colors and intensities. + +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@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + color = ; + function = LED_FUNCTION_STATUS; + + + 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>; + }; + }; + + 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 = ; + }; + }; + +};