From patchwork Fri Apr 5 14:55:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 161877 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp534542jan; Fri, 5 Apr 2019 07:56:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA0dCK1McUza1ce97ID7bWvV2R+5crmiWhocJlDG1sRgqqi1R97eUiRc8dTuI2LMZaiCt/ X-Received: by 2002:a63:720c:: with SMTP id n12mr12591127pgc.348.1554476173430; Fri, 05 Apr 2019 07:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554476173; cv=none; d=google.com; s=arc-20160816; b=ZRcCQx2FeGVJdIUdV/bZXRdv7Kv/T1TmpzIY+bg+gH9HN7WbdED/jIdJQvhl8eFl7b 1WgpeZ2bqzeuuzPdGKB/czciEx7m8Me+tZYrIlMsVzarCWKHa/d28Gq1eH443H80m3wF C1rHDY8twe17htrRrEF/snrbhJzD7370kDznF8UcUXiwHPA2MQhtHF7imtlG0tBfE1mV 4PtkDiVrcske4N8pojl6tu2iYulDvmcvRkRP6/eBSdUtCgwONYWJREkPFXAPSjjyOT+G ZwJkpOIch+y2YIjrABjCZErLXaRmW7zSiVmo8iPhjE2+2B/e/BG94qeyalIxIlz+k9i7 voKw== 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=+idzZiv6joofPj30lxEJyV+cnFkDcQQn26XHgM11HCk=; b=0/1xoyVsc6Ofi1RwEYHVfCwCOZ6JicPUwC0eIORnG8l0/lj1qz3WAzzQJJD+sLTxEJ pWxgQkXgwhxsAYaO4AXFYbigUyzp5Dsa5Onl3JKsIh0ulAghBfib9HzE4BClDPqQso9f NiSJSNYWZuqnT6XiryfbhczTb5Tvj9DWKUGzHg4h/4PjO7vtlNGurng87DJ/u2jNG+cr nvfLr9p+g3VBEgRPKTGu0cwinbWDLjc8NThZETYqnOphuSxJuRAIV6YFKILDqUCokJaj zaQOusOpwUx7vuMxRrxacd5PUi6k6nbGzvLdWWhoMpWMkG6ayWBoYjuJ8Gpw1+kZhKMP ljgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=imHvpbEg; 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 d17si14530889pgh.7.2019.04.05.07.56.13; Fri, 05 Apr 2019 07:56:13 -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=imHvpbEg; 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 S1731314AbfDEO4N (ORCPT + 1 other); Fri, 5 Apr 2019 10:56:13 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:44886 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731348AbfDEOz6 (ORCPT ); Fri, 5 Apr 2019 10:55:58 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x35EtrZf033732; Fri, 5 Apr 2019 09:55:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554476153; bh=+idzZiv6joofPj30lxEJyV+cnFkDcQQn26XHgM11HCk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=imHvpbEgXVgywnE/kDcx8m0y4WQqEc4+TZmtn9OWQxW/FF4WrzvAE4NX/yX82q3pX ozrZYPKvcDRqWTjPbgp3DuCxOtYOCGX4BULHnuUmF11+oNRH0zrXVYU9p3QG1ZAdrS 2EE7efgaZS4+tGwaq97h1T3c9FkvKR+7lbwyu5Xo= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x35Etrtb121244 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Apr 2019 09:55:53 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 5 Apr 2019 09:55:53 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE114.ent.ti.com (10.64.6.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; Fri, 5 Apr 2019 09:55:53 -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 x35EtrFl033347; Fri, 5 Apr 2019 09:55:53 -0500 From: Dan Murphy To: , , , CC: , , , Dan Murphy Subject: [PATCH 5/6] dt-bindings: leds: Add LED bindings for the LM36274 Date: Fri, 5 Apr 2019 09:55:39 -0500 Message-ID: <20190405145540.27703-6-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190405145540.27703-1-dmurphy@ti.com> References: <20190405145540.27703-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 --- .../devicetree/bindings/leds/leds-lm36274.txt | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-lm36274.txt -- 2.19.0 diff --git a/Documentation/devicetree/bindings/leds/leds-lm36274.txt b/Documentation/devicetree/bindings/leds/leds-lm36274.txt new file mode 100644 index 000000000000..359990d85b28 --- /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 29-V 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