From patchwork Tue Dec 12 17:00:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 121568 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4372125qgn; Tue, 12 Dec 2017 09:01:13 -0800 (PST) X-Google-Smtp-Source: ACJfBovV2lxRz0sbSDe2qu5gcfp1gxDkcO5g9w1zG2fnlFVNYF8iOBAvetblxN54vy54l/Uv4H6y X-Received: by 10.99.43.5 with SMTP id r5mr2673437pgr.348.1513098073871; Tue, 12 Dec 2017 09:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513098073; cv=none; d=google.com; s=arc-20160816; b=EbyQAOwo/pSJ0cdqjThAZSewZszj5wQxpnI+X6eSyHjot88D2BMMzxGIWn0n3bP0B9 U6rtDGjUSRPIul+IyGiIWUE9upV3ND403Y+wol+6sKXWBOqxZ6WfHTTh9+BAENV+logN e510aBQauDGivIxg8IOP7TwG+FTGiIgCIQ5uNmLl5tYiy946ONhSGgTbiQQAERjDV1zE kiY58mrq5GijLwJsBdU+0IrbCyZzj/srLL5SCyhDcTa/6rJEPYBkcvAK/YO2uQAITTC0 sNQqAzInCdHl4cETzw4HWxEMHb5qQATS5r6vrthc23UAy8j1rMzFaogObF21E06K7gv3 tCpw== 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:arc-authentication-results; bh=grgJobwf2d2eRWknvGWXsSrKEexNwI76KxGAIQ+ViIM=; b=lO7gVTQmiIdaXideNLYA8Ocio2lU1dRAD+VaPWiySG/CD1mSbcGOymFYj8efpPJf5/ YUWuc4p3rh1Kl/YAz+QPryI2dkF0YWuvOc1NwANaZR4fOOcCY38mK3lG3upMhEkVwAC9 JXQsLKiWhizbVxNeLb/Hp1Ei5iuR8DPHeojzRNX8FkXl7jmyVHwr19t62GSrqmwgv4WS eBlTJ6fydA/o+sqZQH7MDw9T/6vV4eqzrJHhc3596II1uoEgbhQmBCogPVnTPml8fX1C btWv4mOBFDz7Unu3epSaPKh7RhZwksnDjWKnavdBhfT0RHbfy/ew/Q4yikTz23YI8ckd H2pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Geugv8MG; 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 bg1si5630695plb.748.2017.12.12.09.01.13; Tue, 12 Dec 2017 09:01:13 -0800 (PST) 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=Geugv8MG; 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 S1752321AbdLLRBK (ORCPT + 11 others); Tue, 12 Dec 2017 12:01:10 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:55445 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbdLLRBF (ORCPT ); Tue, 12 Dec 2017 12:01:05 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBCH0hhM017382; Tue, 12 Dec 2017 11:00:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513098043; bh=zpAvfMMA8+iqzEHkpD+AJc2fcabZi+tc35srZvz03X0=; h=From:To:CC:Subject:Date; b=Geugv8MGqWHe1rSwUEh32SUEC/ArRU2jSikUn+xeop2HAup1JTZwPYs9noYpgK7jC vP8kJIK/SgRy2M/gpGBHkbi8wetp2n8BI0leI5WDHxy2axkXGAnk5nB7HemcJcUOE7 lzMF+pXGgkJf9ni9qjPaPlBLhOHtmTMTUIPzD7qc= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBCH0hhW005708; Tue, 12 Dec 2017 11:00:43 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 12 Dec 2017 11:00:43 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 12 Dec 2017 11:00:43 -0600 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 vBCH0hSx018745; Tue, 12 Dec 2017 11:00:43 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.104.103]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id vBCH0gx13286; Tue, 12 Dec 2017 11:00:42 -0600 (CST) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v10 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver Date: Tue, 12 Dec 2017 11:00:39 -0600 Message-ID: <20171212170040.16777-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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the devicetree bindings for the LM3692x I2C LED string driver. Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- v10 - Changed label to add color - https://patchwork.kernel.org/patch/10105649/ v9 - Moved 2 nodes to Optional Child and renamed node names to device type https://patchwork.kernel.org/patch/10093757/ v8 - Added address-cells and size-cells as well as child node reg - https://patchwork.kernel.org/patch/10091259/ v7 - No changes - https://patchwork.kernel.org/patch/10087475/ v6 - No changes -https://patchwork.kernel.org/patch/10085567/ v5 - No Changes - https://patchwork.kernel.org/patch/10081071/ v4 - Fix example node, added trigger entry, removed ambiguous x for compatible and added common.txt pointer for label - https://patchwork.kernel.org/patch/10060107 v3 - No changes v2 - No changes - https://patchwork.kernel.org/patch/10056677/ .../devicetree/bindings/leds/leds-lm3692x.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm3692x.txt -- 2.15.0.124.g7668cbc60 diff --git a/Documentation/devicetree/bindings/leds/leds-lm3692x.txt b/Documentation/devicetree/bindings/leds/leds-lm3692x.txt new file mode 100644 index 000000000000..6c9074f84a51 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lm3692x.txt @@ -0,0 +1,49 @@ +* Texas Instruments - LM3692x Highly Efficient White LED Driver + +The LM3692x is an ultra-compact, highly efficient, +white-LED driver designed for LCD display backlighting. + +The main difference between the LM36922 and LM36923 is the number of +LED strings it supports. The LM36922 supports two strings while the LM36923 +supports three strings. + +Required properties: + - compatible: + "ti,lm36922" + "ti,lm36923" + - 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 + +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,lm3692x"; + reg = <0x36>; + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vbatt>; + + led@0 { + reg = <0>; + label = "white:backlight_cluster"; + linux,default-trigger = "backlight"; + }; +} + +For more product information please see the link below: +http://www.ti.com/lit/ds/snvsa29/snvsa29.pdf