Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5734102ybe; Tue, 17 Sep 2019 12:35:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOJx6w3baUrudd013DbbHx1STG31Zn62h80x1rooVSRQMxzzuJzLtqVDsfMj+96mdHLV8n X-Received: by 2002:a05:6402:16d5:: with SMTP id r21mr6425807edx.71.1568748950798; Tue, 17 Sep 2019 12:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568748950; cv=none; d=google.com; s=arc-20160816; b=p6y64Ka+642Axl/OXkkob1rbORyZXZzjF3sFysgDQpbtVkfu0B29Ftk7fHY45ECm/M F+19xtNGHAh7I46zcrZn+PpMyDnYe9wHKr31YrEkoiLvl/vb5r4zRy/0wnUsw5x53lUR 5s5iaGiabmfd5iBIvKznFcywJUwTpktUwMACdETWSa2EPT2GRGC44XjWt/S/GguWgOyk wklvjhBP9nvcPx7zlSeXwDt/v8XjJ5ZgQbhJQebOm7rFk0MdldDv88XJ1Ozwc7i9pz7O wYJ/dXgsvIhXTPktu1IA17tX8PjJLo631w4DvtKBFve0flAvICzqqzKx6jGTCiA0gHUy ouMg== 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=Yxm8SULxI+b291k9owGh4ffelO3YSlG1GwHzQHO4shI=; b=I6fjdo9iUDvW75Ocry1ARLDQE6vXTF80Lc40tbCOnDG2mHrn+TUDBr8Fv3pq5OGH7e mToETOEZhLW04WoC2eaVfK7eiFZlzrVD9HxNkgMs9Lezz76r5zumIBjdsy0uAMCWxwaG etSmYmu4CQeQ7LN2pggtmOmrgvmW+mfWmnc7kT112Ic3fK7qro01oDryFRuWlc+GrR8K 43sWyLFQwmqjZqZO/WVMK5lMy3k+g2YxTIAcDYD7uk4N/LWXjEuTCzruPAeUZSVo7CEk iQrZ53NQTQXurtElXGVWhA3JPeSuKPa35kSYu5jKn6Hecdc/Pd8x7671LS/4qjp81eUu wF1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gBEYOA0P; 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 y21si1804039edo.214.2019.09.17.12.35.27; Tue, 17 Sep 2019 12:35:50 -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=gBEYOA0P; 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 S1731481AbfIQR6H (ORCPT + 99 others); Tue, 17 Sep 2019 13:58:07 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45552 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbfIQR5j (ORCPT ); Tue, 17 Sep 2019 13:57:39 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8HHvYWR042784; Tue, 17 Sep 2019 12:57:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568743054; bh=Yxm8SULxI+b291k9owGh4ffelO3YSlG1GwHzQHO4shI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gBEYOA0P8ZpW0jbNrjZmRYWj+WyP65P58SWUgxwvHtLTdeOHVvMWhsvt9BC6+i8UH e9B6kuYRBR7LtOR3MT8TuvmjWZ0wLTi14jcmLeaulvOUBP+OU/juuM1YxhW8R2n3Bb JKzR/UYRxzHTuKXNdK7SOQackD7bPa8xlZLixWUs= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8HHvYM1105697 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Sep 2019 12:57:34 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 17 Sep 2019 12:57:31 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE100.ent.ti.com (10.64.6.21) 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; Tue, 17 Sep 2019 12:57:31 -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 x8HHvYlj068332; Tue, 17 Sep 2019 12:57:34 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v6 3/9] dt: bindings: Add multicolor class dt bindings documention Date: Tue, 17 Sep 2019 12:59:31 -0500 Message-ID: <20190917175937.13872-3-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190917175937.13872-1-dmurphy@ti.com> References: <20190917175937.13872-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 --- v6 - Fixed description and added suffix for function .../bindings/leds/leds-class-multicolor.txt | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt 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 = ; + }; + }; + +}; -- 2.22.0.214.g8dca754b1e