From patchwork Mon Jan 14 21:17:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 155587 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4126897jaa; Mon, 14 Jan 2019 13:17:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5qO/SjqqISWY0tDwIRNfAhGgAKf2xVl+t9KA6FguAnL0+5OHvxf20qUIM0jzgIXUD3DCDv X-Received: by 2002:a63:e545:: with SMTP id z5mr462927pgj.195.1547500667145; Mon, 14 Jan 2019 13:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547500667; cv=none; d=google.com; s=arc-20160816; b=HuN+tO+eyOdTkTShEgwV5ASAZUwzekZdqsPZvTfxVl7eklwSgV98hhRh5gGKWeKu56 zGFMsU/NFI1+nXTpHBcotuwK2FjsBUrOTtTkPzrS0xsifdAHItJ1+tF3TkyJJJHnI4zr QdTAtGbTXU6saDVCb4tetlZikbh/ueA4BANEJeM83YcwPQ6+9gSINlRhs+s60xj+B88a haV3Y/XjaJas7fC1h/85c0RbIfPDjcYCPYmnZaPhBDZSiW2U9AeNlbC23dmYHc2tzs3n wcQSWQYIaYMbxxMi1DNeSjnSTdj6KFXZ66Xr0rgy9v8fngG14xm6Fo5uOkoGLeXoXZo0 TLoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=lbuDqpW4Kmj6H2xYlb6NNkVPhAN97yT6G0r3Fyg4mJQ=; b=rPgGbg9DTLHdm/9VMq/pw9Sq4k2nw7s51eWNqUSxaoDYRqpeMBBe/x3kjzzoSVbaBr B8sYf3TZTI3yc3aczb74zFO6BP36poBmqGgb9WzodemFKC2arKQCoueJCZjEkTnlxGHr iHmyyFBMZh3SCrLoPI2RBQftsbDonDd8LcVX7Nv58AEpWay+P59PzKd2SUVRy1ItROBt xxvpHyEgOgzvCyAY49boDB0qHiWLpCVhjs94nalVig/G9tJYGTuMpK6EQkySiDb47NcO 3VUdEuT6bg552rLvw7BKP5Y+WIFN1rR7+tp2cX9mZKDmvMoKy5qzy6P/G/uLqSQ23ZVo R3fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ekbE0mYX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 26si1181495pgu.190.2019.01.14.13.17.46; Mon, 14 Jan 2019 13:17:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=ekbE0mYX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726809AbfANVRq (ORCPT + 7 others); Mon, 14 Jan 2019 16:17:46 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52260 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfANVRq (ORCPT ); Mon, 14 Jan 2019 16:17:46 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0ELHe41041900; Mon, 14 Jan 2019 15:17:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547500660; bh=lbuDqpW4Kmj6H2xYlb6NNkVPhAN97yT6G0r3Fyg4mJQ=; h=From:To:CC:Subject:Date; b=ekbE0mYXSilExGFT3Fn0I0F/2Zdy2bleXo1xK0/vJxwXyOwLmi6fJI+fEnhdh5F8D C1uovygIBYqvmfQVsMKDAaAhpNaNXTsK6bUTPie3oCruO0Agj3puyNn3yBkKZCDFuz r/vCFDaWu1MslRgKbUPOcICm0cbOfa0POWHyCHZA= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0ELHeQ2115484 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 15:17:40 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 14 Jan 2019 15:17:40 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 14 Jan 2019 15:17:40 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0ELHebD029556; Mon, 14 Jan 2019 15:17:40 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.100.22]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x0ELHdU00270; Mon, 14 Jan 2019 15:17:39 -0600 (CST) From: Dan Murphy To: CC: , , , , , , Dan Murphy Subject: [PATCH v2 1/2] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers Date: Mon, 14 Jan 2019 15:17:22 -0600 Message-ID: <20190114211723.11186-1-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024 and the LP5018 RGB LED device driver. The LP5036/3024/18 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to obtain different colors independent of the overall brightness of the LED grouping. Datasheet: http://www.ti.com/lit/ds/symlink/lp5024.pdf http://www.ti.com/lit/ds/symlink/lp5036.pdf Signed-off-by: Dan Murphy --- v2 - Added the LP5030/36 devices, defined the modules vs banked properties renamed the file from lp5024 to lp50xx. - https://lore.kernel.org/patchwork/patch/1026514/ .../devicetree/bindings/leds/leds-lp50xx.txt | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lp50xx.txt -- 2.20.1.98.gecbdaf0899 diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.txt b/Documentation/devicetree/bindings/leds/leds-lp50xx.txt new file mode 100644 index 000000000000..7bc6843ddba4 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.txt @@ -0,0 +1,143 @@ +* Texas Instruments - LP5018/24/30/36 RGB LED driver + +The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into +a LED group or control them individually. + +The difference in these RGB LED drivers is the number of supported RGB strings. + +Required properties: + - compatible: + "ti,lp5018" + "ti,lp5024" + "ti,lp5030" + "ti,lp5036" + - reg : I2C slave address + lp5018/24 - 0x28 + lp5030/36 - 0x30 + - #address-cells : 1 + - #size-cells : 0 + +Optional properties: + - enable-gpios : gpio pin to enable/disable the device. + - vled-supply : LED supply + +Required child properties: + - reg : Is the child node iteration. + +Required Child properties but only one should be defined per child: +Either one of these two properties are required for each node. The +property ti,led-bank takes precedence over the ti,led-module within the same +node. + + - ti,led-module : This property denotes the single LED module number + that will be controlled in the LED class instance. + - ti,led-bank : This property denotes the LED module numbers that will + be controlled as a single RGB cluster. Each LED module + number will be controlled by a single LED class instance. + There can only be one instance of the ti,led-bank + property for each device node. + +The LED outpus associated with the LED modules are defined in Table 1 of the +corresponding data sheets. + +LP5018 - 6 Total RGB cluster LED outputs 0-5 +LP5024 - 8 Total RGB cluster LED outputs 0-7 +LP5030 - 10 Total RGB cluster LED outputs 0-9 +LP5036 - 12 Total RGB cluster LED outputs 0-11 + +Optional child properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt + +Examples: +LP5018 and LP5024 example: +led-controller@29 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5024"; + reg = <0x29>; + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vmmcsd_fixed>; + + led@0 { + reg = <0>; + label = "led1_mod"; + ti,led-module = <1>; + }; + + led@1 { + reg = <1>; + label = "banked_leds"; + ti,led-bank = <0 2 5 3 >; + }; + + led@2 { + reg = <2>; + label = "led4_mod"; + ti,led-module = <4>; + }; + + led@3 { + reg = <3>; + label = "led7_mod"; + ti,led-module = <7>; + }; + + led@4 { + reg = <4>; + label = "led6_mod"; + ti,led-module = <6>; + }; +}; + +LP5030 and LP5036 example: +led-controller@30 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5036"; + reg = <0x30>; + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vmmcsd_fixed>; + + led@0 { + reg = <0>; + label = "led1_mod"; + ti,led-module = <1>; + }; + + led@1 { + reg = <1>; + label = "led_banked"; + ti,led-bank = <0 2 5 3 9 10 >; + }; + + led@2 { + reg = <2>; + label = "led4_mod"; + ti,led-module = <4>; + }; + + led@3 { + reg = <3>; + label = "led7_mod"; + ti,led-module = <7>; + }; + + led@4 { + reg = <4>; + label = "led6_mod"; + ti,led-module = <6>; + }; + + led@5 { + reg = <5>; + label = "led8_mod"; + ti,led-module = <8>; + }; +}; + + +For more product information please see the link below: +http://www.ti.com/lit/ds/symlink/lp5024.pdf +http://www.ti.com/lit/ds/symlink/lp5036.pdf