From patchwork Wed Jun 5 12:56:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 165876 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp7305817ili; Wed, 5 Jun 2019 05:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp85ybrd1XGtJMMK0OV4HFdj46idhOSyoDLYCi/S4wdGict1OOqLhBZ+a87As95uvDE3i+ X-Received: by 2002:a17:90a:208e:: with SMTP id f14mr6493071pjg.57.1559739402507; Wed, 05 Jun 2019 05:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559739402; cv=none; d=google.com; s=arc-20160816; b=NGePJ9L4YHpwyIIKP/oJ8RCr+Cl8Sjv3VQhwQ/EZlY6+omf1KBwa052R7lkRJ2BJcJ TxMjGhWnUlz9+CnGoJKSQc9qQEPpecxClEK2PiItLj0NMd/tJY5oXgl3uUairp0ZIcLh MrwlgY6223p7lCEj6Mrt2+sPM9hG4xXB6DusKNIWawL0RMeoqv+gcYPJSDr8FLa6gdKa VLLqyGUT2B3RzzhydVBCmxY7YLhsTvPOQIO4voE3pTzCpzz3/JbnAi7Z3z1q3OAuc53j lano3iFoXhYCUWCm6njzDdKthvvrDB1FbM6qmNjX6YgtoOpUzrmq0c8jIu2gsO+dxvYB j6hA== 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=zkjWQDLu4E4CNY/oSn7AHrndHBRdxGIbdSS+ZXLNgQ8=; b=zHhvewShZYuo4Csr10x8FZv30qMPX+5rNrRMei46HsRWsM2ovum3qq2fJ7zlbJugvC zB5ic+/lMd3YPVQMbqxmKYFnaCmsSONCbU6yiXlKA3TjOcSr8y1j/RWMCvmWiC4xhoAg 3QphO3FLz9EqH1YJ/Gx+asBUalA3TqXj68xkFnCXllbr7T/nfTNgzV9PAMUx4q3HNfJj fV2x2t2RwrUwNpKnuRTR43plSUCrtJji4IQ04ry/q6Dg69mhqyBrnceJAkqSA7KNh4hA xkjb7JmPi3GJHZwiozSjEzHyrKMotgjsO9JYhwuHihPTwEnQFB19uPNGusUB6aDxndYt Yvsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TXPo7qdr; 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 t16si29047226plm.65.2019.06.05.05.56.42; Wed, 05 Jun 2019 05:56:42 -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=TXPo7qdr; 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 S1727861AbfFEM4l (ORCPT + 1 other); Wed, 5 Jun 2019 08:56:41 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35922 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727601AbfFEM4l (ORCPT ); Wed, 5 Jun 2019 08:56:41 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x55CuapU099176; Wed, 5 Jun 2019 07:56:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1559739396; bh=zkjWQDLu4E4CNY/oSn7AHrndHBRdxGIbdSS+ZXLNgQ8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TXPo7qdrhCINec17rUyLs9jirk4iodOb6cF28lYIWPvyMcbcaFZAinpEal9CzGBKU Umkb02GqfBYkTmqh0c8dhOx8NCEqBqJKEd+haAS2TNOaDV8e3OhAn1wMdlAJ+H5Kq9 IXwTei6zntjHxmYz8K7NTPPAhbWoo5VAMEy3HuSo= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x55CuaxH012160 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Jun 2019 07:56:36 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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; Wed, 5 Jun 2019 07:56:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE104.ent.ti.com (10.64.6.25) 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, 5 Jun 2019 07:56:36 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x55CuaGU108453; Wed, 5 Jun 2019 07:56:36 -0500 From: Dan Murphy To: , , , CC: , , , Dan Murphy , Rob Herring Subject: [PATCH v6 1/5] dt-bindings: mfd: Add lm36274 bindings to ti-lmu Date: Wed, 5 Jun 2019 07:56:30 -0500 Message-ID: <20190605125634.7042-2-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190605125634.7042-1-dmurphy@ti.com> References: <20190605125634.7042-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 backlight driver with regulator support. This is a multi-function device for backlight applications. Backlight properties will be documented in it's a supplemental bindings document. Regulator support is documented in the regulator/lm363x-regulator.txt http://www.ti.com/lit/ds/symlink/lm36274.pdf Signed-off-by: Dan Murphy Reviewed-by: Rob Herring Acked-by: Lee Jones Signed-off-by: Jacek Anaszewski --- .../devicetree/bindings/mfd/ti-lmu.txt | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.21.0.5.gaeb582a983 diff --git a/Documentation/devicetree/bindings/mfd/ti-lmu.txt b/Documentation/devicetree/bindings/mfd/ti-lmu.txt index 782d3c9812ed..2296b8f24de4 100644 --- a/Documentation/devicetree/bindings/mfd/ti-lmu.txt +++ b/Documentation/devicetree/bindings/mfd/ti-lmu.txt @@ -8,6 +8,7 @@ TI LMU driver supports lighting devices below. LM3632 Backlight and regulator LM3633 Backlight, LED and fault monitor LM3695 Backlight + LM36274 Backlight and regulator Required properties: - compatible: Should be one of: @@ -15,11 +16,13 @@ Required properties: "ti,lm3632" "ti,lm3633" "ti,lm3695" + "ti,lm36274" - reg: I2C slave address. 0x11 for LM3632 0x29 for LM3631 0x36 for LM3633 0x63 for LM3695 + 0x11 for LM36274 Optional properties: - enable-gpios: A GPIO specifier for hardware enable pin. @@ -50,12 +53,14 @@ Optional nodes: - compatible: Should be one of: "ti,lm3633-fault-monitor" - leds: LED properties for LM3633. Please refer to [2]. + LED properties for LM36274. Please refer to [4]. - regulators: Regulator properties for LM3631 and LM3632. Please refer to [3]. [1] ../leds/backlight/ti-lmu-backlight.txt [2] ../leds/leds-lm3633.txt [3] ../regulator/lm363x-regulator.txt +[4] ../leds/leds-lm36274.txt lm3631@29 { compatible = "ti,lm3631"; @@ -213,3 +218,52 @@ lm3695@63 { }; }; }; + +lm36274@11 { + compatible = "ti,lm36274"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x11>; + + enable-gpios = <&pioC 2 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"; + }; + }; +};