From patchwork Thu Nov 14 13:30:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 179410 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp11063401ilf; Thu, 14 Nov 2019 05:31:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyOvMzMQZI65PCnTiQhce8gcUpkd8g23PzbX46WwZ/8j2nvHlPA181PvvDmoVxpS3Nf8Amf X-Received: by 2002:a17:906:a411:: with SMTP id l17mr8473806ejz.274.1573738298399; Thu, 14 Nov 2019 05:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573738298; cv=none; d=google.com; s=arc-20160816; b=MceUCVv+6QrdqgKCR6JJTD4wUxop3cqTvxy9MzRf8PxrzI3ARXiifJDFcZKskSyNzi 415CQgMhZOtzM7tfQCxzXqltkdzIyT6tv5p8/6Jy/FydrAgly9vql0UQkl9/tiLyqnG7 W+9WWF3PHTH+wb+H80RlNN8LvkcBLYFLH0RRwXFAmySGODf8w3YZKRW8ApknNAQc+O2G lNzchClsSeX0V70GEKPkDbkBD9m2x84t2Z0YsQzFA8lGF8dcuHYj8zpQTxlGQGDuh9su waLqqgtgfMcahwRRa42w1fTJxg4kI5XU3ClEI9x1hxjTMmJm1mKo0EfhqAUcXQPa82OW H8hQ== 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=A4TZ0HLHkEcLxBM5bKC6/AIr+d9xK42IrANI1Dakdu2TloL+10y191uh2cx84/Z5XV ulZ8/++LpcQZYix6ZO01lG6krEy9rNCj0y9D9n3fDTMLjaIY1la0xd8qr0eDI7Jtf4yM oURAmB1gnh0UcdQm/Tamg08OC/pwsJ7KndxZQA+14AjDWsFkPZV405lFVdpHHx4uQJ40 flJOITo9mf86Ei019TXsCfWHsrGZs63XpQFMwudjMzvam9VFVbFuMvCG4Ba+me9UXLNd X4vfWGofAFzjJbiv9MAc0Yxe5DD3khxtQwtR/rSKdshkyeNnV49/LaasHrO6CagEqVvw DOZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ho2wsQun; 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 b5si1522309edj.310.2019.11.14.05.31.38; Thu, 14 Nov 2019 05:31:38 -0800 (PST) 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=Ho2wsQun; 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 S1726428AbfKNNbh (ORCPT + 1 other); Thu, 14 Nov 2019 08:31:37 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:40538 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbfKNNbg (ORCPT ); Thu, 14 Nov 2019 08:31:36 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAEDVVo4103618; Thu, 14 Nov 2019 07:31:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573738291; bh=Qullg3/iDdm3fXb2oDGatHkWR3NFfKVfLUoihQpmjOI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ho2wsQunov0+qoyQ58KsLBW/a3GXSojh+RYcZ6o6GLrwKjrevPT1kwWuGo53lUgk+ IA7nRpNDZUdx540x7ZuOJEEhgkpX+w/Eg9K1ORofAf67w8hCJSttdBEubZM/5Pna/I RVv6OFSuwSLPKgkyXf3Kpm2u0lp0Ljsa4ybjw9yg= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAEDVVZs062472 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Nov 2019 07:31:31 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 14 Nov 2019 07:31:30 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 14 Nov 2019 07:31:30 -0600 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 xAEDVUsL030426; Thu, 14 Nov 2019 07:31:30 -0600 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v17 01/19] dt: bindings: Add multicolor class dt bindings documention Date: Thu, 14 Nov 2019 07:30:05 -0600 Message-ID: <20191114133023.32185-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191114133023.32185-1-dmurphy@ti.com> References: <20191114133023.32185-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 = ; + }; + }; + +};