From patchwork Thu May 10 12:27:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 135410 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp947792lji; Thu, 10 May 2018 05:27:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrIIrJR29dbDXZCjT5ZdVsfTXBdzbgaInLI6wyP9SzqWsOcn0E842IIG36sMGgUtXL4n++8 X-Received: by 2002:a17:902:6ac3:: with SMTP id i3-v6mr1197155plt.378.1525955255005; Thu, 10 May 2018 05:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525955255; cv=none; d=google.com; s=arc-20160816; b=aMc/LGzgw1Jd59xYy4CLNaiMtHqbbfIMEgBUjOZ7XsQW8c6pcOQKMZw4cDZDNgS9jG 82ez78ARMlxEQHXMWbjDm5tvQ1QXyJ9g7YjfH8ShdnuPbgt0NHBpShcIi3dOF/IPjWah K3FMKvj0LGVBZLRWPrdsmrSDbvrOGZY5ns8oJYm6rcrI1GyVai1eQyuMEjs5PEG7JlFv ZlDMe1UHzPvecMO3lzBGZrYDmHn2ew4+f01rEP6CnQhtez5Bn00mg76Shvb4tNm2olU6 eAb622B8HT4yN2bjETde+ptcyBrJ1PnXfCJ7hKR8v0Mv+z/Nz2WbJzAvKQcglJ46IIK0 WYkA== 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=Nw7i7L2Bn6qTNuIDfkCX7uvmNJuHGLKAHwnyFu/6N4g=; b=O1J15ztCtVbu2qCLM/zLxoWOzKCNxWJEwBwLCl9hpWeCUjbi5zAv2r2o+vw5zkrj4c dP89LaQkkFcuAcCdMtOtVikatpF465JOqpOn/6A2PZdD4rf95udUv1FZQ2XgjEvqMTmA wc8OxGLbrjwXdTdISxErP0eNZuBEFOlk+Gli9HH5fZS/ihjL54yH/Cge1doV3o4WPU13 KCwbDw/gZIeap0/ARDIwxjiiz7y0qK4OmejiVgNAbRfIYQ8ysXBzdFsB1j3u9psrjnw9 n444JfBaesxGm8KtHMKCLn+D6odcU2nyJvEiiwBlrBdsDeknDoKp5P6b6dCyHaym1w1u nn0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=lGemkYS+; 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=fail (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 j67-v6si573397pgc.509.2018.05.10.05.27.34; Thu, 10 May 2018 05:27:34 -0700 (PDT) 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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=lGemkYS+; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757319AbeEJM1c (ORCPT + 6 others); Thu, 10 May 2018 08:27:32 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:41571 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757317AbeEJM1b (ORCPT ); Thu, 10 May 2018 08:27:31 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4ACRODK004388; Thu, 10 May 2018 07:27:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1525955244; bh=OVNqZ/8wqomT7QYPIwdvkooIZVqjwYsk3ezTLwLD/NQ=; h=From:To:CC:Subject:Date; b=lGemkYS+ykW+4j0HW7r4sQsODTX/N1nna3Jwhv8hXwA4LQR38Nr/GgmWB1NXjcxTf u0RH8AjtHW4n25oABSNYSRNAIBY34oVkWQHhA9Ye/ixJCUwzAekl/vwa9NYRzBFG5W F14Hy4qD9tHJhY/ERWkD/AdAepJd2ur50bxivmmE= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4ACRO0B030140; Thu, 10 May 2018 07:27:24 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 10 May 2018 07:27:23 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 10 May 2018 07:27:23 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4ACRNSb029436; Thu, 10 May 2018 07:27:23 -0500 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.166.14]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w4ACRNx09007; Thu, 10 May 2018 07:27:23 -0500 (CDT) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v4 1/2] dt: bindings: lm3601x: Introduce the lm3601x driver Date: Thu, 10 May 2018 07:27:17 -0500 Message-ID: <20180510122718.8413-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Introduce the device tree bindings for the lm3601x family of LED torch, flash and IR drivers. Signed-off-by: Dan Murphy --- v4 - Added " " around "=", changed strobe to flash on label, removed "support and register" comment and change ir lable to ir:torch - See v2 patchworks for comments v3 - Removed wildcard compatible - https://patchwork.kernel.org/patch/10386241/ v2 - No changes - https://patchwork.kernel.org/patch/10384587/ .../devicetree/bindings/leds/leds-lm3601x.txt | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm3601x.txt -- 2.17.0.582.gccdcbd54c -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/leds/leds-lm3601x.txt b/Documentation/devicetree/bindings/leds/leds-lm3601x.txt new file mode 100644 index 000000000000..697e5e3a1d4c --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lm3601x.txt @@ -0,0 +1,50 @@ +* Texas Instruments - lm3601x Single-LED Flash Driver + +The LM3601X are ultra-small LED flash drivers that +provide a high level of adjustability. + +Required properties: + - compatible : Can be one of the following + "ti,lm36010" + "ti,lm36011" + - reg : I2C slave address + - #address-cells : 1 + - #size-cells : 0 + +Required child properties: + - reg : 0 - Indicates a torch interface + 1 - Indicates a flash interface + 2 - Indicates an infrared interface + +Optional child properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + +Example: +led-controller@64 { + compatible = "ti,lm36010"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x64>; + + led@0 { + reg = <0>; + label = "white:torch"; + led-max-microamp = <10000>; + }; + + led@1 { + reg = <1>; + label = "white:flash"; + flash-max-microamp = <10000>; + flash-max-timeout-us = <800>; + }; + + led@2 { + reg = <2>; + label = "ir:torch"; + }; +} + +For more product information please see the links below: +http://www.ti.com/product/LM36010 +http://www.ti.com/product/LM36011