From patchwork Fri Oct 11 13:06:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 175945 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp731462ill; Fri, 11 Oct 2019 06:08:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqz96WNGps0vTdsm6LHvHb1yJC8K3WFTGyVrLGBY6GOlrtfyB7Pto+ORfQvL6KN82uETUuAV X-Received: by 2002:a17:906:250d:: with SMTP id i13mr13979067ejb.275.1570799317757; Fri, 11 Oct 2019 06:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570799317; cv=none; d=google.com; s=arc-20160816; b=aHamk+QFgH9vjhOS4KETY+CsbSF4WNAKV3cNyNfred0Bxgmz9TeCFvkHDJdfR2JBao 9TWBPJmjnLAOidqGkj3C32kNjJLqA8FEL2Yd5p64BZgXdthYFSEJPHxFqR/6vmgp/U/l 8Cmap7d5H7BTvdOFV+UNWqFrKeZufxKEINaaXIRuTLRa3f4E4IsJT14JDgVnydPI3p8u 4w0YvQPUf79bFUTUflYazllZVhQHtppkRkib3crrAlbspjf9p+54CHyrHg6eYYXVGlkb CWKsJceT8ssOdHTa8NPOzkFowGNO0peSbq4DZv7IdJW5asYSQPpVfxvJKoG76UHed/1b /Pgg== 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=U/CdL3ky1UgHUUHC2UlJw+Bp+HRLVkYO6pdXvDYGyfg=; b=A9LAFpEfCxaN2EW/FK9d5d4h2XICgnEpm5G+DOaqeCvHc0879esJrPnLo+ZbfGPBp8 C/pksRg6UoMqhMDJIBnzUrkNhvRGYFl4zjQ9DH9Jurt+YkFWKxIVB3vZvq3EZknDKRue dPQQ50reYE/CGhnPkHXEwxPvu2sG5FSmo7pD+Ldc0TT9AgmlcpQaNkZ8SnW6rt/ouaWE Vg7tNdExkmZK/25dVzWPzahUP15Oeoyp3D+0WCYUXxC5Pf9RzLi1opgd+K+PJDSO7rOO gJ4T7/Y9fN8KzEgiH7nHxBLttluRM6wWIOvrzJvyLxTm1rEf1tJZVwAPFGedXS2uRIC2 PWQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="rJ/ynb78"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-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 h13si5912733edh.242.2019.10.11.06.08.37; Fri, 11 Oct 2019 06:08:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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="rJ/ynb78"; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-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 S1728603AbfJKNIh (ORCPT + 1 other); Fri, 11 Oct 2019 09:08:37 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:45598 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbfJKNHX (ORCPT ); Fri, 11 Oct 2019 09:07:23 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9BD7J9q080603; Fri, 11 Oct 2019 08:07:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570799239; bh=U/CdL3ky1UgHUUHC2UlJw+Bp+HRLVkYO6pdXvDYGyfg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rJ/ynb78HmwC24QtJKzzawm9cDGWnX7C+CiKf6VFGWV83qnYKz9X70i3M1AhIfLav xF5fPjXMvpKiIbJrPsng3jzO1/Zz5JmfeX8jXbTFMJqh4As2x6NlQjZ3dg/kIrqNSo sxYjaf8FLnFPdsSeZ7CDxY8RULFs7HnQaMs5Tjd8= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9BD7J1T094074; Fri, 11 Oct 2019 08:07:19 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) 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; Fri, 11 Oct 2019 08:07:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Fri, 11 Oct 2019 08:07:14 -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 x9BD7IHn123401; Fri, 11 Oct 2019 08:07:18 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v12 01/16] dt: bindings: Add multicolor class dt bindings documention Date: Fri, 11 Oct 2019 08:06:42 -0500 Message-ID: <20191011130657.4713-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191011130657.4713-1-dmurphy@ti.com> References: <20191011130657.4713-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add DT bindings for the LEDs multicolor class framework. Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.txt | 98 +++++++++++++++++++ 1 file changed, 98 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..8619c9bf1811 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt @@ -0,0 +1,98 @@ +* Multicolor LED properties + +Bindings for multi color LEDs show how to describe current outputs of +either integrated multi-color LED elements (like RGB, RGBW, RGBWA-UV +etc.) or standalone LEDs, to achieve logically grouped multi-color LED +modules. This is achieved by adding multi-led nodes layer to the +monochrome LED bindings. + +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 = ; + }; + }; + +};