From patchwork Fri Oct 18 12:25:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 176818 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp789041ill; Fri, 18 Oct 2019 05:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdOhgwi6Ht7wB9b1CrDwzTaXvYlLGbPmj+UsWBJm0Zo4j0H79myT8NgqYBqVvllO4t7457 X-Received: by 2002:a05:6402:2d2:: with SMTP id b18mr9262777edx.264.1571401631970; Fri, 18 Oct 2019 05:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571401631; cv=none; d=google.com; s=arc-20160816; b=WBRHb79XdiNiAM6lQPkbUDAz3mUTtawZ0/46x3AUeLI+ZtgsuqyfrWKsbXoLOTbrc/ dVEK+yM8vZj+hYC5dza42LisAeRtJyfmz63LcuB/M45vlIXJ6WK4iZilnJDpHJ6VUT0/ bNFwXnLNhG8W39DX872Qi6jgOBthDFIG1AVivlHmzsIfhZ7qX8Kx7NMCN4dvmw970LIc fcyZyvskpgABBxqbxZSYbhp3DlaI/RNSV34ITwmmYHm99ZYO59u0aGFqolVcpcmIAB30 Uif8LrkvKgkYOrzuGIOfCstLgiVm/poXRMUhf8R/DOO5oihAnBS78BBcY4Q2mPVv6JZi ToVg== 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=Qullg3/iDdm3fXb2oDGatHkWR3NFfKVfLUoihQpmjOI=; b=mmxy4Mt+9FP55Yvie/Chl41XhYQ/PJ65Vzg+RMojtFMhYDQNUQp5Amj4/dnuH1GzuA +9QR39JmFzSvshBZeJk71rxnUdxZTpD+fJdlTfRtqCtJQBYNTcNK1hG/rDZV38OHmkXc ekis1/X8E/Arecyy1BHBZo8tmXe/Y5OWJou2ncrW/bE4FF2Hm8NAKMvj9O1ijqXjaTnP gUCwowEXrfP3UXBxMaVzHjy8WwHSWu4WsZoj813tr7jVPgYn8xa6XyQ7t2mDVagPckE5 jDJhR7XmEWRyOSk5kTr3VubZ4J02VcNpGWAeRvaUYbgN4uw0dRXrHmZPPXplKB5LqRAp pPEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TiHkuEgv; 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 y3si4411727ede.38.2019.10.18.05.27.11; Fri, 18 Oct 2019 05:27:11 -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=TiHkuEgv; 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 S2438563AbfJRM1L (ORCPT + 1 other); Fri, 18 Oct 2019 08:27:11 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48394 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404910AbfJRMZ7 (ORCPT ); Fri, 18 Oct 2019 08:25:59 -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 x9ICPtkd066216; Fri, 18 Oct 2019 07:25:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571401555; bh=Qullg3/iDdm3fXb2oDGatHkWR3NFfKVfLUoihQpmjOI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TiHkuEgviSYg8GzUYtyFpElh1OZB6qe4kxZ606duavVQa2a4vtyMM1nyYsPud9ph9 hlmPJ+8vfz1fOmirDjxMKi1Feu7uXvNJUWrCrXf/8F9HRaDbuDff7cInPaXlRQze4V ABtOp/fn5m8Z/hsS9D8BZ5UQHtwGTWbpRQ10z/DY= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9ICPtQx092076 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Oct 2019 07:25:55 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 18 Oct 2019 07:25:55 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Fri, 18 Oct 2019 07:25:46 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9ICPsEn091993; Fri, 18 Oct 2019 07:25:54 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v14 01/19] dt: bindings: Add multicolor class dt bindings documention Date: Fri, 18 Oct 2019 07:25:03 -0500 Message-ID: <20191018122521.6757-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191018122521.6757-1-dmurphy@ti.com> References: <20191018122521.6757-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..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 = ; + }; + }; + +};