From patchwork Tue Dec 12 18:15:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 121621 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4459549qgn; Tue, 12 Dec 2017 10:17:18 -0800 (PST) X-Google-Smtp-Source: ACJfBousrf81qNFYmrSkZoKZ3YiErox9m+FoV5acNPzKN08ytS8h0Vqq0LhiNdSqYVydk2jaCRCa X-Received: by 10.98.80.85 with SMTP id e82mr3094893pfb.87.1513102636830; Tue, 12 Dec 2017 10:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513102636; cv=none; d=google.com; s=arc-20160816; b=Incf9usFyHRiT9QBYsIAAyj5SmP1DGeQJIySF86o6kCULWXHQOxa8Heef6AG0Q3R5Q O97Dct0EG8NqF4YHvfZnvR9Yy13QmzcFFvpUMg0R2d6O3ZpCgKaijfMK3jwDPNyxVqrT vJ+2GU+H2jkfXJiUUqd3/7e0Yiog6YhPMQiAdbHV/laxDgrQehriDgYg4Ehr+gp4F9nu zsANCInzaOif1Qogody50IqLfxEqqd1CSB8U0YBz9UqXVypKYLgo5oc6T5Kz6DvfSia0 4FAz/Lgl4kVyITGFA8LoBrGvoD98s8rPX/lVnLNl9MfTd3aamBXaEuZ+gC8zVh2wTZ62 IbRA== 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=wMaWPvx1B+UEOnSBCqNg0d1QpPSd8xhu6Xx/Ip2dt6M=; b=f40GxyueRpDXyZlH+BaUH1UiTIcf4rh0PvNxCtqW+ko7DmisHD4pyPXhfG0yJJH7A4 UkE81ELSxt3hXM3wkLB3C4AUN5jnbn/N/4mVtK+I9+o1F+FzVyDEEha0fxcURRDBHQiA BLBvmtnyWj/Pa5/2VKqNE7OYxfbu2d310reh+B/or476yLXIPBVPjGtHl6WTM9l4HNiC WHWrsULKcGXKvlp3bE+YMcRnevhTkZ3UqE55clDtKgUaR7rZAbDEQ9cTSJpGlsy31r05 hQK/7g6zcCyJHoZDf0Vwb99Zmh0s4FKKmjwvnyOpcsxH9o6D/8o+z5vZOtOVoMGlSCKt HbOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Sx+H7W89; 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 f67si11861696pgc.492.2017.12.12.10.17.16 for ; Tue, 12 Dec 2017 10:17:16 -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=Sx+H7W89; 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 S1752277AbdLLSRQ (ORCPT ); Tue, 12 Dec 2017 13:17:16 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:48794 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbdLLSRP (ORCPT ); Tue, 12 Dec 2017 13:17:15 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBCIG0Qj011926; Tue, 12 Dec 2017 12:16:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513102560; bh=0KIs864UdEBTcHReIJ6S4bAU5oNqDbJxdSim4oqZtMg=; h=From:To:CC:Subject:Date; b=Sx+H7W895EBccRPh95RrKuZSBQCzpXWL9sgrEEk/X0IBBMl0cuhO1qFHEV0jsDDME xWP3F2YB7ZmeBWCiQExznf2fPD9zu9LvUb3xB1h6WFcb5rQvWJ6yJLh4mI3egQRkVu CmG1Ifq9Z9+hS3Q3n00QUA8yS85DOoZwnQgubiGg= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBCIFtpx020286; Tue, 12 Dec 2017 12:15:55 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE110.ent.ti.com (10.64.6.31) 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 12:15:55 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE113.ent.ti.com (10.64.6.34) 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 12:15:55 -0600 Received: from legion.dal.design.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 vBCIFtfX032043; Tue, 12 Dec 2017 12:15:55 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.69.253]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id vBCIFsx21299; Tue, 12 Dec 2017 12:15:54 -0600 (CST) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v11 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver Date: Tue, 12 Dec 2017 12:15:49 -0600 Message-ID: <20171212181550.22677-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-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This adds the devicetree bindings for the LM3692x I2C LED string driver. Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- v11 - No changes - https://patchwork.kernel.org/patch/10107893/ 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