From patchwork Thu Jul 25 18:28:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 169741 Delivered-To: patch@linaro.org Received: by 2002:ac9:2daa:0:0:0:0:0 with SMTP id g42csp4402755oce; Thu, 25 Jul 2019 11:28:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8PwGFBSgg/dgc2kLngb+oa9Z6GSor2mp5eUqiPpFYzTAEBOWNiYGC4D5CIwTwqkkNv/4A X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr89490138plk.113.1564079312236; Thu, 25 Jul 2019 11:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564079312; cv=none; d=google.com; s=arc-20160816; b=lBQHo2NGzP2/ecISmDkTI4SJ21pJ/X3QZi61c24Ifu8JCb4xWE8hYUn03Q/KbSCUcl n2l13ptT3mosXRsUtPWhuTcwDwcHoZGmCQb16SBLuTxFd9syW2oH+ALypk1ZsWhMFoJa HJJ2R0BBBN7HfjOlctHbhYGKBZI3pGv0PZkRS59lNjTLMgnCigKQsB9eZbEhxKeVM+MY Ox1trMHaDPB8x5TAGM041WecENiis5K0nEWhzGCyV5ax8a4zDqR1ui5J4R0jEkZNZuox iyTqEeXohvVUhupvY+6wrzOY/X5magBO6PdcdHo1xnj5F5eQApPB/R4d021TMlzmFFnw 1xqg== 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=FmX84wdoIvKOF4QfyScCM6+x89vt6CsCWXDGcqUhLqw=; b=dBdWP8fWMbl4UuiE+XJX46mgvkmlt+PScSERRq8P95DowdtZWFk9A/+W0LGT2dKW46 kcoapb0mztfqvLdAsjhQlNE7RWftLBXJ19YhbSntHHcbxLQu5RWmnvo3Hwv++M0+bw4d AbhZbk5WH3AQ3WyJFODA13lgQwDIQ7eb8TEoGqgRtlxxBTr//tHI3eFBPU2KJtWjn58y PB/ErhyAjhO68CBm8wCEVTTfuqEAimQiWiwEHa6UYPBMo5DJQpgZUk3feP02lyddxH5R P5Wjat4iD69hSKx/rpO/W72uMloC0Wi3o+VigkkVIIFaxhH1I+LiNl2nZSBqSw96AWNG HYZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sxRNV2+r; 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 v1si15186819plb.381.2019.07.25.11.28.31; Thu, 25 Jul 2019 11:28:32 -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=sxRNV2+r; 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 S1726352AbfGYS2a (ORCPT + 29 others); Thu, 25 Jul 2019 14:28:30 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58578 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfGYS20 (ORCPT ); Thu, 25 Jul 2019 14:28:26 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6PISM8o061902; Thu, 25 Jul 2019 13:28:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1564079302; bh=FmX84wdoIvKOF4QfyScCM6+x89vt6CsCWXDGcqUhLqw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sxRNV2+rYEJpDSWo1iRjLVo/9cSmeDc0kPYGWXFky3pWC4av1zXeL32/8fogvgcjR cZPvpygHSmlfahwLuiudfot0dTmvrau5p50xebA4Q6F/lw3YUnaQKGaFBFHpZYwGdB hbU1hiNQ3u64WcZ9pwMsVTDbQpyt+GU0yXrfPPlE= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6PISMpq061783 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Jul 2019 13:28:22 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 25 Jul 2019 13:28:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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, 25 Jul 2019 13:28:22 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6PISMge066175; Thu, 25 Jul 2019 13:28:22 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v4 3/9] dt: bindings: Add multicolor class dt bindings documention Date: Thu, 25 Jul 2019 13:28:12 -0500 Message-ID: <20190725182818.29556-4-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190725182818.29556-1-dmurphy@ti.com> References: <20190725182818.29556-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 | 96 +++++++++++++++++++ 1 file changed, 96 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..5d36327b18fc --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt @@ -0,0 +1,96 @@ +* 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@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>; + }; + }; + + 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 = ; + }; + }; + +};