From patchwork Wed Apr 10 13:38:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 162024 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp6221481jan; Wed, 10 Apr 2019 06:39:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIfa4GvKWa1W70wfqXpcv1rE4lKmd3E5JEjFHPd2lnQmTF46uKi2HTxiQ1XZVZYmXme28J X-Received: by 2002:a17:902:4681:: with SMTP id p1mr43597893pld.42.1554903565536; Wed, 10 Apr 2019 06:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554903565; cv=none; d=google.com; s=arc-20160816; b=ZWZStgwt6Vew4Ysf/adjzh+BlazXIaShwqTLuIiM4qRJrYyX/Jy2PVdvMC1Jw8VLb1 AGlD2swzs8Xd4vXJxxGEdJ4Lh52Vbly20nyoXXHrEXnLNVdTootVHpEd0rnssmrMzSY1 GUXFJgQE8wuO0FJX3LpZfcjWCfXoOiLeImkNljw3vuIOAVmgSur2N2vvi0BafkVXPV9C WOij5tqaPz2ANFx0zLBrXOe+ZV0H320seRLy9QiaKrqhaRcKXIkLjtaEtCtIvTPYPmXw uihNvy6IulcCG33rOvd3Pxd+nHzJCUG/vT92gmyL+ub+tz2UA3NqJWZ2MpsHv9hZFj89 cypA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J4KMGg0LH66pDLl1efalRepDHTsK+gwUtH7SvH1ZwOM=; b=AiD8xpABtC4kOo2qDFx8WoKPhq+wBGZ/RVo2ebv86kBslutllNKrOwh2/O+YNe9uVP p0FmAkm8ZFQ8tWseRZBOBK7FbJMmrsY+6niAI2jS6rATJ7nARATfpkeBJuJAT1uWBqDT YaEzpuDO927tSJsPNQFop3azEgd0vybL8HTBRQp0AOv4yiN9k6joY7R4rrMtOnIgXxSg g6DmwmKD0va8JlyHZxKokeFyWhqINhyr8j/ySAdXj5MXlZ+4VbSTN7xgPkJUoVCJWb+x woACg9DuCzBmHCtfedFIqqDb70svEb+vlV4SaSL1koSchet0uV687U0x3gH+pOzgrn56 8w8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FRLc7Ryx; 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 k193si13783609pge.150.2019.04.10.06.39.25; Wed, 10 Apr 2019 06:39:25 -0700 (PDT) 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=FRLc7Ryx; 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 S1729520AbfDJNjY (ORCPT + 1 other); Wed, 10 Apr 2019 09:39:24 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:59374 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732007AbfDJNip (ORCPT ); Wed, 10 Apr 2019 09:38:45 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3ADcZMF045470; Wed, 10 Apr 2019 08:38:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554903515; bh=J4KMGg0LH66pDLl1efalRepDHTsK+gwUtH7SvH1ZwOM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FRLc7RyxF518rddN+MwG2d0+SMkVklG674funJ38d5QV/M5BfuAQPFHWIXnDQfoNy a6SQ41NCR8Y/32wNw/3yyoj8a+8i7Pkqk1n7Eqg3M3jMsrvIeESmVN80dfu6c1d6xG rrL7DCgvo3Qxr7mL0pinNQgjXSBPqGEszAaziH+g= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3ADcZQx047606 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Apr 2019 08:38:35 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 10 Apr 2019 08:38:35 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 10 Apr 2019 08:38:34 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3ADcZ4j107200; Wed, 10 Apr 2019 08:38:35 -0500 From: Dan Murphy To: , , , , , CC: , , , Dan Murphy Subject: [PATCH v2 5/6] dt-bindings: leds: Add LED bindings for the LM36274 Date: Wed, 10 Apr 2019 08:38:32 -0500 Message-ID: <20190410133833.28859-5-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190410133833.28859-1-dmurphy@ti.com> References: <20190410133833.28859-1-dmurphy@ti.com> 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 Add the LM36274 LED specific bindings. Signed-off-by: Dan Murphy --- v2 - Changed 29-V to 29V - https://lore.kernel.org/patchwork/patch/1058779/ .../devicetree/bindings/leds/leds-lm36274.txt | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm36274.txt -- 2.21.0.5.gaeb582a983 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/leds/leds-lm36274.txt b/Documentation/devicetree/bindings/leds/leds-lm36274.txt new file mode 100644 index 000000000000..329393700191 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-lm36274.txt @@ -0,0 +1,82 @@ +* Texas Instruments LM36274 4-Channel LCD Backlight Driver w/Integrated Bias + +The LM36274 is an integrated four-channel WLED driver and LCD bias supply. +The backlight boost provides the power to bias four parallel LED strings with +up to 29V total output voltage. The 11-bit LED current is programmable via +the I2C bus and/or controlled via a logic level PWM input from 60 μA to 30 mA. + +Parent device properties are documented in ../mfd/ti_lmu.txt +Regulator properties are documented in ../regulator/lm363x-regulator.txt + +Required backlight properties: + - compatible: + "ti,lm36274-backlight" + - reg : 0 + - #address-cells : 1 + - #size-cells : 0 + - led-sources : Indicates which LED strings will be enabled. + Values from 0-3, sources is 0 based so strings will be + source value + 1. + +Optional backlight properties: + - label : see Documentation/devicetree/bindings/leds/common.txt + - linux,default-trigger : + see Documentation/devicetree/bindings/leds/common.txt + +Example: + +HVLED string 1 and 3 are controlled by control bank A and HVLED 2 string is +controlled by control bank B. + +lm36274@11 { + compatible = "ti,lm36274"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x11>; + + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + + regulators { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lm363x-regulator"; + + enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>, + <&pioC 1 GPIO_ACTIVE_HIGH>; + + vboost { + regulator-name = "lcd_boost"; + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <7150000>; + regulator-always-on; + }; + + vpos { + regulator-name = "lcd_vpos"; + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <6500000>; + }; + + vneg { + regulator-name = "lcd_vneg"; + regulator-min-microvolt = <4000000>; + regulator-max-microvolt = <6500000>; + }; + }; + + backlight { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lm36274-backlight"; + + led@0 { + reg = <0>; + led-sources = <0 2>; + label = "white:backlight_cluster"; + linux,default-trigger = "backlight"; + }; + }; +}; + +For more product information please see the link below: +http://www.ti.com/lit/ds/symlink/lm36274.pdf