From patchwork Tue Dec 5 20:46:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 120755 Delivered-To: patch@linaro.org Received: by 10.80.152.193 with SMTP id j59csp2638748edb; Tue, 5 Dec 2017 12:46:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMZYLfewA0TRDmWq+wyFFve2ax8JTdXi+3dl/U5hdEMu40todvVaMEQLGW+/vppjsjJQnER2 X-Received: by 10.159.231.15 with SMTP id w15mr19848124plq.410.1512506809363; Tue, 05 Dec 2017 12:46:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512506809; cv=none; d=google.com; s=arc-20160816; b=ZssfRcxs1m2yHh3zgsRlCITelQjcrpoR+ZbquqDO+mPRtw8uE6OSLzz5lr+J+gPO1z eQoVGwM7IhqIUlgHd78zgbb0GlFuvWreJxgwdjzQ2S2tVl8RuRP/sjBIK2C61x8IiySD ZxUD39jXkNK2terrLzlInfV4CVBkLGmLhw2FP6/zosn7oeiEf4aRlCIFNL/3hRG/TSm9 UQrkYTBbocniugSGck2zVHTQllyFJ4yp9kO5IE0os71l2C0Yturr3qiX8YW1yA5MeYYW 4QNcU/HdRBn5L8rLbLc5DWrmXzVAaCN419Y3DLj5uUCXdcTRHUuLbH0kesmUGszh5xd1 RMQg== 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=KUMCH1BX/hVt1DkL5NsPrVeKgEigXumKUdBEl1PowEE=; b=KsNw0mD4XupdAyabmVEFBOluCouC2hxN5JXCM6UjfIOqZgx5/puw3aE1DXaqNuNAPZ b7oZSb5pH0VJlYj5FIix5DdK/6njS4yh772SIQC/hW6nv6bfEwP7xj5M4lqjq+nVnknf ZJQNgS1eJ48yR/EVYm8X+NgJoQ3cAkGYd5utfbJNeWGeC635s6RL4K+zmBSKJgglZedp FpvdEskAH8nmwt0XQVI8ie4Qsx9bVZNL9vKqBJy3asrHbTDOdlahiRFlbAleAc8elKc1 QX+/V61DABvkPvN7SNTvOzpFNUUZDZ6RawWAsD3VAKzWWuDHGPR541nwU2gnbpQfEDNA s2aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t5rLDzsg; 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 w12si626983pld.479.2017.12.05.12.46.48 for ; Tue, 05 Dec 2017 12:46:49 -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=t5rLDzsg; 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 S1751473AbdLEUqs (ORCPT ); Tue, 5 Dec 2017 15:46:48 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:36638 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbdLEUqr (ORCPT ); Tue, 5 Dec 2017 15:46:47 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id vB5KkXWW020728; Tue, 5 Dec 2017 14:46:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1512506793; bh=x1auxlOdby/Nv0jl15gVzZOowfGVWKX8sKLTmJCaEy0=; h=From:To:CC:Subject:Date; b=t5rLDzsg0PwuxSRZkRxMYwSdYhiNJOrz9XfVms71alzKBYuRBlLDxEzawzs7cioYH lgJqa3CyHR/R/XK7UUsYuspAakbVcXogSyETPtQ9kFNgaABdDKZQVP9xoNp1dj71ZS QOLzMRB3VfCpZqXMn7YHc51mPMUtHdz+9s6F/Dwk= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB5KkXvS016953; Tue, 5 Dec 2017 14:46:33 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 5 Dec 2017 14:46:32 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 5 Dec 2017 14:46:32 -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 vB5KkWDl011698; Tue, 5 Dec 2017 14:46:32 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.93.77]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id vB5KkW325252; Tue, 5 Dec 2017 14:46:32 -0600 (CST) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v8 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver Date: Tue, 5 Dec 2017 14:46:29 -0600 Message-ID: <20171205204630.12267-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 --- 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 | 47 ++++++++++++++++++++++ 1 file changed, 47 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..84f69342d879 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lm3692x.txt @@ -0,0 +1,47 @@ +* 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: + - label : see Documentation/devicetree/bindings/leds/common.txt + - enable-gpios : gpio pin to enable/disable the device. + - vled-supply : LED supply + - linux,default-trigger : (optional) + see Documentation/devicetree/bindings/leds/common.txt + +Required child properties: + - reg : 0 + +Example: + +lm3692x@36 { + compatible = "ti,lm3692x"; + reg = <0x36>; + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vbatt>; + + backlight: backlight@0 { + reg = <0>; + label = "backlight_cluster"; + linux,default-trigger = "backlight"; + }; +} + +For more product information please see the link below: +http://www.ti.com/lit/ds/snvsa29/snvsa29.pdf