From patchwork Wed Dec 19 16:26:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 154280 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5127487ljp; Wed, 19 Dec 2018 08:26:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/VBeqyLWfOUcd81F+GC5KCNmOgrLv9G9ZXIqmyVJltR2xZuZMrGTCcA3j4uim8jSpGzJkzd X-Received: by 2002:a63:4c04:: with SMTP id z4mr20352929pga.312.1545236798779; Wed, 19 Dec 2018 08:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545236798; cv=none; d=google.com; s=arc-20160816; b=kUkCk7SZmM5YRN3UXnhFO8jBH38C6nFG/Aw/A1Kywc/9x5InkuFj8MeLxmNRwkYiBU wXeMGqW+4fKnmx8Jq0UFQBX+QWZTuec3kjI3YCPKpXSfAa2WRHjKANShqve28Jzxflb+ 7q5ino4hBqMtXAE9JbOgoCdiQZ0LgKf6VLZvVsdpJmh+0frTmT9a6IfUhHRBE52X7NVd gaFxGu2N4f9Bst4MKTdnkz5wJLDshL6EJ3ySrSEnnTdRRBa4uGnNgNu6Vh4vkDRQx9p3 yIIugU3WXnRmWLci9ggUv7gukbuBsXtv2S8h4Wpeia4YayMn8nbNYlJnlVxMlGenO9bL 86aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=/LSjOsRNH5QRTZ7BuqhedU9db9iQlFt46tuC87SEf5Q=; b=pQrIMjAHbVMjpqh4ZH3O3R6R3FIAdlXNtI8AfiXATlmpDOl35lgykhPyfJV3xKCZ52 yB4UF3s89q6Zon9DgtcRjO0gEIwSE7OnnMUosOryaAm75UeDjbZrbWDMCIuvwoxKC+pe zduTDb8PEWzH4ZM8QOqh3Ahf8+qLJCmoPUvUIQ+7Zm7mOscDSbbmC2p0qrJ8P4l8uFby P57jBXWNKss+e0l1TVOmYs+mpMU/TfNo2qnT4qiu4E6gIw49YBpIR4VUsHa2JOf45wwO xcsk69YnwdoaoLJK/2HGRgLxXeycyNy2xxbwuJ0mQ4kepJ3NUyCR4xEuO56kdgNEz4OS jENQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=olsTHawL; 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 e4si16347165pgk.127.2018.12.19.08.26.38; Wed, 19 Dec 2018 08:26:38 -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=olsTHawL; 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 S1729356AbeLSQ0g (ORCPT + 6 others); Wed, 19 Dec 2018 11:26:36 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:33056 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727703AbeLSQ0f (ORCPT ); Wed, 19 Dec 2018 11:26:35 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBJGQUSK073976; Wed, 19 Dec 2018 10:26:30 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1545236790; bh=/LSjOsRNH5QRTZ7BuqhedU9db9iQlFt46tuC87SEf5Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=olsTHawLId0Spcsgx1AgL9sc57fQy1Zmpgl0RScXB5KjBONvBTTTtCZw7MF3UbgnY MDa6hVPDyaca0yKsikCKThZudpE5AmgqZewf4WnPiS7YbcC3enIx3vhpYjKF6rToIA DmAtBuOuf2MQZ2QtEif7nJvmwYDXZJ+IKptJxSAY= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBJGQUoH040872 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Dec 2018 10:26:30 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 19 Dec 2018 10:26:30 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 19 Dec 2018 10:26:30 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBJGQUCZ001694; Wed, 19 Dec 2018 10:26:30 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.111.148]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id wBJGQTU26344; Wed, 19 Dec 2018 10:26:29 -0600 (CST) From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH 1/2] dt: bindings: lp5024: Introduce the lp5024 and lp5018 RGB driver Date: Wed, 19 Dec 2018 10:26:25 -0600 Message-ID: <20181219162626.12297-2-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20181219162626.12297-1-dmurphy@ti.com> References: <20181219162626.12297-1-dmurphy@ti.com> 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 LP5024 and the LP5018 RGB LED device driver. The LP5024/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 Signed-off-by: Dan Murphy --- .../devicetree/bindings/leds/leds-lp5024.txt | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lp5024.txt -- 2.20.0.rc2.7.g965798d1f2 diff --git a/Documentation/devicetree/bindings/leds/leds-lp5024.txt b/Documentation/devicetree/bindings/leds/leds-lp5024.txt new file mode 100644 index 000000000000..9567aa6f7813 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lp5024.txt @@ -0,0 +1,63 @@ +* Texas Instruments - LP5024/18 RGB LED driver + +The LM3692x is an ultra-compact, highly efficient, +white-LED driver designed for LCD display backlighting. + +The main difference between the LP5024 and L5018 is the number of +RGB LEDs they support. The LP5024 supports twenty four strings while the +LP5018 supports eighteen strings. + +Required properties: + - compatible: + "ti,lp5018" + "ti,lp5024" + - reg : I2C slave address + - #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. + - led-sources : LP5024 - 0 - 7 + LP5018 - 0 - 5 + Declares the LED string or strings that the child node + will control. If ti,control-bank is set then this + property will contain multiple LED IDs. + +Optional child properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt + - ti,control-bank : Indicates that the LED strings declared in the + led-sources property are grouped within a control + bank for brightness and mixing control. + +Example: + +led-controller@28 { + compatible = "ti,lp5024"; + reg = <0x28>; + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vbatt>; + + led@0 { + reg = <0>; + led-sources = <1>; + }; + + led@1 { + reg = <1>; + led-sources = <0 6>; + ti,control-bank; + }; + +} + +For more product information please see the link below: +http://www.ti.com/lit/ds/symlink/lp5024.pdf