From patchwork Wed Oct 16 15:59:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 176508 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp7572824ill; Wed, 16 Oct 2019 09:01:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyBDG1qGwrh27tVPmAK4EODCQSnmWJzqk5nJsqj7PkyiqC2WMBT06ibG6Je/sSgzNCZbk/ X-Received: by 2002:a7b:cf0e:: with SMTP id l14mr4144682wmg.46.1571241679273; Wed, 16 Oct 2019 09:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571241679; cv=none; d=google.com; s=arc-20160816; b=voxivym3o3kvAh/7h1n6ADHnYCBpeCDoN5xknvOP/NTtMPju1tBA5TjTI8k4rboSxl 0ea2u8EALZeQ8yhytzWv+zXG0MrFVDAUJLB929NUFxwdWV160NCdauaKtMpFovg6CHU/ 7/ZrJAuMZXTBMWRJtRf+uUXNqc40yt6uQUSFTclqBd95ThcoYqhGBD7jQK1eKGiI5oj7 hgWqolS2Ju6bcI/Lwx78lW7SCjSfmanyJ0l30GTGRHqF/RPCBfRtIBenhUEA3pRLTjvN Mgttq4uaDo7CYX1lxczEOQPeFgR/Xbu9HWvqppCBMCX9D+PyHsC1WZe8llulKfGuo7fN Q6SA== 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=wI20U9i/2Gs+tgxGsV0sBUQSHE7jy2AY/Vhu3Ga394Y=; b=X6xuitcCcXpfcioHW45LFVj71Oz7IvAMmLS/NfBwOJeXr5UFV4cexD+NlfeFukZsg4 TVbf+YMfslHdnfRg66cRajYQETkcNe+D0flqiH4jWepcE3YEU8F0bCoupt7nnX3LKnWK NPE+x/j/fN4urF1Qex6W+gaj6yzePVX1t8SXM/sNnJCT18MC1X0foRFaz/g3lghoSK6f ih+aSeTh6RjrpwVDZDII49GiHQAQDhZNRqba1Ar0HoOsVIAqJegbE0aDsxuKZD2mZPLA 5trJfFM2M5k0rB9ml1ThSajabae4EPRNxwFvO/4/K1Jq7rHZP+OqGmhcDYWxMdVeTEQs WDxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VFFgTmK6; 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 d48si17259693eda.383.2019.10.16.09.01.18; Wed, 16 Oct 2019 09:01:19 -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=VFFgTmK6; 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 S2405935AbfJPQAf (ORCPT + 26 others); Wed, 16 Oct 2019 12:00:35 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48426 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393092AbfJPQAd (ORCPT ); Wed, 16 Oct 2019 12:00:33 -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 x9GG0Tex045871; Wed, 16 Oct 2019 11:00:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571241629; bh=wI20U9i/2Gs+tgxGsV0sBUQSHE7jy2AY/Vhu3Ga394Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VFFgTmK6o4akTtuAG2lzz88geuLSWiTsXHSIpKt7HhkHb90Vk8TO0P9D0nbBj8Xc+ Rmff3qgsVKZeiSuWKyoWoZGzbw2AKbhUwiiTUCeAXCKTQKMbLnOqVgx9OLIwgQLKqA lCjD9I0HswxBPRlxv+MKFm/5FgO6B3uJfM8tvHfo= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9GG0Sjr094750 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Oct 2019 11:00:28 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 16 Oct 2019 11:00:28 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) 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; Wed, 16 Oct 2019 11:00:28 -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 x9GG0SqF096936; Wed, 16 Oct 2019 11:00:28 -0500 From: Dan Murphy To: , CC: , , Dan Murphy , Rob Herring Subject: [PATCH v13 01/18] dt: bindings: Add multicolor class dt bindings documention Date: Wed, 16 Oct 2019 10:59:37 -0500 Message-ID: <20191016155954.29044-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191016155954.29044-1-dmurphy@ti.com> References: <20191016155954.29044-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 CC: Rob Herring --- .../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..4b1bd82f2a42 --- /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_CHARGING; + + + 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 = ; + }; + }; + +};