From patchwork Wed Sep 26 13:09:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 147590 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp704715lji; Wed, 26 Sep 2018 06:10:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV63EnfcsTz/RSFInDVNqv3iQB9/hsCL0HDbhNnf1L2bHi0yARJdwTSbygqpje95aRIqJlybV X-Received: by 2002:a17:902:4d46:: with SMTP id o6-v6mr6067094plh.59.1537967413286; Wed, 26 Sep 2018 06:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537967413; cv=none; d=google.com; s=arc-20160816; b=ne4c9W5yuVdTJ/3BDQJmuPimm6huiyvJB2xhY8pv5+dXSwCbQrd8ylAisvfwOatCcL l0M3VibKa8i5xI7XgavZKUUwjruDAdpXyC2X2wW5AOb5BePmXzXRAzmNlWD/bz0pVqX+ ifCXgT+ZZhVSq3utBG1YcA69jUrWf8CU8q8pIB3jizSeFT+yfi4H5bRiHgmN9yMdeu0C gQeOKAxHPlddYwNztEkeYFn/4Rad+7X0yADhmkXjyU+F8vGEJA7LDWbJ0Ftiib6cHGlI gwF5bZXnI36TtOv2Dfx6ff4MxFtwSt27NDGGgsRaLUZW/ciRJvfcuP8tk6a0c0Dcg/e8 h6Ow== 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=SLaNrTbr5c0JIt7MHA43+1lR4bMOb4vjZXUhHH7B4oU=; b=zZXAab/Ohd7HYSWGMvU/Tpi8vTBFL6lEHRremxkD/VFZIQNhpMUbMtpCsMdYJREgBA gMwTFJ7cXJ5emnqpKzVAbpE97Rg6m9MSRmESh+ak8RE+Zx7/TZ4WjM0x/AtdmaLS/M1c PvTb1N7/9YsmcnjlmXigk0UNo1ziJzMmipPlwGE2j+m99Sv18ckw9SQjRM0e0xPpkPUW 33O6tbV7gx8YIyAgcAWmZ2W5QkT5Sighbo6Q2j/cH+fQf8k0nvvFyNIiLHr4CNukzx+2 wNzgKzwvE54VfQxHQ1iWaCzIK+5i+5JRALM5s4POtFf/F1Bkgnvf43Bj9Y27PBbpwfBb JNVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lK3Yv9cR; 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 r21-v6si5262674pgl.257.2018.09.26.06.10.12; Wed, 26 Sep 2018 06:10:13 -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=lK3Yv9cR; 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 S1728636AbeIZTXE (ORCPT + 32 others); Wed, 26 Sep 2018 15:23:04 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:41820 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728475AbeIZTWs (ORCPT ); Wed, 26 Sep 2018 15:22:48 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8QD9oot059961; Wed, 26 Sep 2018 08:09:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1537967390; bh=SLaNrTbr5c0JIt7MHA43+1lR4bMOb4vjZXUhHH7B4oU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lK3Yv9cR6pA8ITyE6rN3dwA9Zunai1tDVk2TJyhgz55Qbxjr4X3cHiAgHw8Nb0vDd mR6SXjI72dDVsA4Z8J/s+rFOHrh1pZYHwf0N2QQ780g7sFQpwbjOR27l/lTHrh0q8/ hSRvH/5lvQgErEsWk82O5qjv/PYgmXLzl9oAz5XU= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8QD9o49020255; Wed, 26 Sep 2018 08:09:50 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) 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.1466.3; Wed, 26 Sep 2018 08:09:49 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 26 Sep 2018 08:09:49 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8QD9n6I003567; Wed, 26 Sep 2018 08:09:49 -0500 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.176.238]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w8QD9mx11647; Wed, 26 Sep 2018 08:09:49 -0500 (CDT) From: Dan Murphy To: , , CC: , , , , , Dan Murphy Subject: [RFC PATCH 6/9] dt-bindings: leds: Add support for the LM3633 Date: Wed, 26 Sep 2018 08:09:18 -0500 Message-ID: <20180926130921.12329-7-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20180926130921.12329-1-dmurphy@ti.com> References: <20180926130921.12329-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 support for the TI LM3633 LED driver. This device has 9 control banks 3 high voltage LED channels and 6 low voltage LED channels. Data sheet: http://www.ti.com/lit/ds/symlink/lm3633.pdf Signed-off-by: Dan Murphy --- .../devicetree/bindings/leds/leds-lm3633.txt | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm3633.txt -- 2.19.0 diff --git a/Documentation/devicetree/bindings/leds/leds-lm3633.txt b/Documentation/devicetree/bindings/leds/leds-lm3633.txt new file mode 100644 index 000000000000..19571ad251ea --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lm3633.txt @@ -0,0 +1,69 @@ +* Texas Instruments - LM3633 Lighting Power Solution for Smartphone Handsets + +The LM3633 is a complete power source for +backlight, keypad, and indicator LEDs in smartphone +handsets. + +This device is suitable for display and keypad Lighting + +Required properties: + - compatible: + "ti,lm3633" + - 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 : 0 - HVLED is Controlled by bank A + 1 - HVLED is Controlled by bank B + 2,3,4 - LVLED1, 2 and 3 are Controlled by bank C, D and E + 5,6,7 - LVLED4, 5 and 6 are Controlled by bank F, G and H + - led-sources : Indicates which LED string is associated to which + control bank. + 0 - LED is not active in this control bank + 1 - LED string is controlled by this control bank + +Optional child properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt + +Example: + +led-controller@36 { + compatible = "ti,lm3633"; + reg = <0x36>; + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vbatt>; + + led@0 { + reg = <0>; + led-sources = <1 0 1>; + label = "white:first_backlight_cluster"; + linux,default-trigger = "backlight"; + }; + + led@1 { + reg = <1>; + led-sources = <0 1 0>; + label = "white:second_backlight_cluster"; + linux,default-trigger = "backlight"; + }; + + led@2 { + reg = <2>; + led-sources = <0 1 0>; + label = "white:indicator1"; + }; + +} + +For more product information please see the link below: +http://www.ti.com/lit/ds/symlink/lm3633.pdf