Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp558456lqz; Sat, 30 Mar 2024 08:16:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQo7sRr4TF89SATsyumzivI5M0lDpcPnXsVitRm5wmKj5dcoExx9uUWm8fb9nxwEnsV6FpKv/FIIT5LXmw/EBf5ZxTZT8NcoN4FcZiAQ== X-Google-Smtp-Source: AGHT+IEOFgyQAjUZ999cm28fOUoYAvzZoSd+DcZM+4sGLiIH/yilV5jFTdZaE4r1jrOFChszVrDR X-Received: by 2002:a05:6a20:da9e:b0:1a5:6be8:2d70 with SMTP id iy30-20020a056a20da9e00b001a56be82d70mr7195836pzb.21.1711811811534; Sat, 30 Mar 2024 08:16:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711811811; cv=pass; d=google.com; s=arc-20160816; b=iPwSEUsnNfSBCM7w+wWsVJJAMbFDscfryyknM+ezc2Ys600LQqmeVsGTW1l7yagWE2 yGn2jaegojg50EQvAVV+7SHIYqOciB59a0hUhxneso/L9HTSapejfEze9u4ryHTFXYi4 NpZuubcWJ405XvAYoFH+Sph5bQvtWDvHpL1rWxfX+0xsST40xMFi8BtzwdjYSbApYk8r hHTnnOTWpC/AzR4AZpBJxQ5KYivwQaucKBPdQIEw7tnRXx379xgrqaN9ZctiCKhWtJqT WxSXD+TnbL86bbezMhnCuMwAddzP2cjxrjRkMDOyEQfNOLhvEAHufOVVEKM1ullOqioR wG1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature; bh=Go4W4x99X2HOhH17kh7UYaqnzZ+4KWNhtYJPVktH1yw=; fh=UkFr1e/h8aoWxUbNq1ps8SXIQbhueN2MR37cGdwnDSU=; b=suLbI/+AJ3sCFqysmXEmzRUwNrfdPtQzig06QBeMCAOUCC179UnAaEXiLeOdYBiRyl ozMZiHOahmsLZxE+zDBtPKbwBwBZMPBstCKLGRfRMp2fq8pMlk2EjybMCO5Pg9aMEpbJ 39EBB8ZMFVbT5W48tegQSDOiwwkyqoz0fXxFj/Z6CNdfa14DFkBRhr+rdphWx9PRYQyA E2F8xUrFzzgr+W6BpE+MqKhTUdzZmqJl7h9yTVQlRQos91BUTVD1DU6WXa8oSYukUtOY Gs0cAMtFNiZgdSBB9ZUOvARGgwPdwVISpnNw2f+WniG9AOZkpslPh4XINTA9ZSSn6iGF LZXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@paroga.com header.s=easyname header.b=o9yJcloz; dkim=fail header.i=@paroga.com header.s=easyname header.b=o9yJcloz; arc=pass (i=1 spf=pass spfdomain=paroga.com dkim=pass dkdomain=paroga.com dkim=pass dkdomain=paroga.com); spf=pass (google.com: domain of linux-kernel+bounces-125758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125758-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v4-20020a63f844000000b005cd811e2ffesi5938735pgj.18.2024.03.30.08.16.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 08:16:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@paroga.com header.s=easyname header.b=o9yJcloz; dkim=fail header.i=@paroga.com header.s=easyname header.b=o9yJcloz; arc=pass (i=1 spf=pass spfdomain=paroga.com dkim=pass dkdomain=paroga.com dkim=pass dkdomain=paroga.com); spf=pass (google.com: domain of linux-kernel+bounces-125758-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125758-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 33245282173 for ; Sat, 30 Mar 2024 15:16:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D442938F84; Sat, 30 Mar 2024 15:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b="o9yJcloz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b="o9yJcloz" Received: from mx107.easyname.com (mx107.easyname.com [217.74.15.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD11724B21; Sat, 30 Mar 2024 15:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.74.15.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711811802; cv=none; b=JxgTTd0UXL6azjZz6+PlSjcE0Sxzfjst7Fb1CbkbnVsRNFz/6q4w9eE+TaLj7Y7YTwJ8mnbjW87Rrk9U7xJ8+onn9QCtCxhFeHX+rLzvLxAGcsWm3hP8LF+59KxQ6lkyqZ0Rk5VSokMrFQaJ3/dcOPyLzOpkEChDS0Z+36CvsEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711811802; c=relaxed/simple; bh=VsjtTz5muZknaqVeycRxcKDvRJJw3olozx4SSH7VmsA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RoyQ+tEInDKNd+vQGqgx1Qqn8DiSqx/UBEPVUXf0CQ/9ETKdIcbjUELgwVbQIo5dYKB0KF/iDZl6Qa0nDaNRRqfUcVygR9VriA9xYB6/wqMlPCad0xq3Hx9W2FqmTU3OLrK0FjK7W0HNigeThHTEgWv2INrYR1ZbwpmTUbGe9PU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=paroga.com; spf=pass smtp.mailfrom=paroga.com; dkim=pass (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b=o9yJcloz; dkim=pass (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b=o9yJcloz; arc=none smtp.client-ip=217.74.15.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=paroga.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paroga.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=paroga.com; s=easyname; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Go4W4x99X2HOhH17kh7UYaqnzZ+4KWNhtYJPVktH1yw=; b=o9yJclozwWh6cjQARtcXqQ0rne 0ubKi0aQlOu4NYWETl1CHkyeH0fRpE/be4q1ZMXBuSAvBN4yCAJT6biVGMYfsB4vWzpsCKJ2jxuCS QVRLDP30HXncFJjpgCJWBIhzAwZOO3EevHP4VXjl58vdCsPQXA4WQ2HtiJ+vIfEDJMoTtsUkUx5lA yJH94kXu6u62C+YGfCBcxs50BJVOdNtv9bYvshxCgwuFsO1WZCl0OyLyLozlXEV1mOl0YfMiJFU8v m31J+Tlfotmsx2FphQirNQI6ydTOSqsYZT46BVx1QKpzL77joY8fEgo6HkpRvWv2qli+bf38m8l3l Lb4r7Z7Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=paroga.com; s=easyname; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Go4W4x99X2HOhH17kh7UYaqnzZ+4KWNhtYJPVktH1yw=; b=o9yJclozwWh6cjQARtcXqQ0rne 0ubKi0aQlOu4NYWETl1CHkyeH0fRpE/be4q1ZMXBuSAvBN4yCAJT6biVGMYfsB4vWzpsCKJ2jxuCS QVRLDP30HXncFJjpgCJWBIhzAwZOO3EevHP4VXjl58vdCsPQXA4WQ2HtiJ+vIfEDJMoTtsUkUx5lA yJH94kXu6u62C+YGfCBcxs50BJVOdNtv9bYvshxCgwuFsO1WZCl0OyLyLozlXEV1mOl0YfMiJFU8v m31J+Tlfotmsx2FphQirNQI6ydTOSqsYZT46BVx1QKpzL77joY8fEgo6HkpRvWv2qli+bf38m8l3l Lb4r7Z7Q==; Received: from 84-115-225-203.cable.dynamic.surfer.at ([84.115.225.203] helo=localhost.localdomain) by mx.easyname.com with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rqaBq-0002RN-95; Sat, 30 Mar 2024 15:00:18 +0000 From: Patrick Gansterer To: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Patrick Gansterer , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Sam Ravnborg , Krzysztof Kozlowski Subject: [PATCH v5 1/2] dt-bindings: backlight: Add Texas Instruments LM3509 Date: Sat, 30 Mar 2024 15:59:24 +0100 Message-ID: <20240330145931.729116-2-paroga@paroga.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240330145931.729116-1-paroga@paroga.com> References: <20240330145931.729116-1-paroga@paroga.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Easy-Autoreply: EN Add Device Tree bindings for Texas Instruments LM3509 - a High Efficiency Boost for White LED's and/or OLED Displays Signed-off-by: Patrick Gansterer Reviewed-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson --- .../bindings/leds/backlight/ti,lm3509.yaml | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml diff --git a/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml b/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml new file mode 100644 index 000000000000..b67f67648852 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/ti,lm3509.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays + +maintainers: + - Patrick Gansterer + +description: + The LM3509 current mode boost converter offers two separate outputs. + https://www.ti.com/product/LM3509 + +properties: + compatible: + const: ti,lm3509 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reset-gpios: + maxItems: 1 + + ti,brightness-rate-of-change-us: + description: Brightness Rate of Change in microseconds. + enum: [51, 13000, 26000, 52000] + + ti,oled-mode: + description: Enable OLED mode. + type: boolean + +patternProperties: + "^led@[01]$": + type: object + description: Properties for a string of connected LEDs. + + allOf: + - $ref: common.yaml# + + properties: + reg: + description: + The control register that is used to program the two current sinks. + The LM3509 has two registers (BMAIN and BSUB) and are represented + as 0 or 1 in this property. The two current sinks can be controlled + independently with both registers, or register BMAIN can be + configured to control both sinks with the led-sources property. + minimum: 0 + maximum: 1 + + label: true + + led-sources: + allOf: + - minItems: 1 + maxItems: 2 + items: + minimum: 0 + maximum: 1 + + default-brightness: + minimum: 0 + maximum: 31 + default: 18 + + max-brightness: + minimum: 0 + maximum: 31 + default: 31 + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@36 { + compatible = "ti,lm3509"; + reg = <0x36>; + reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; + + ti,oled-mode; + ti,brightness-rate-of-change-us = <52000>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + led-sources = <0 1>; + label = "lcd-backlight"; + default-brightness = <12>; + max-brightness = <31>; + }; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@36 { + compatible = "ti,lm3509"; + reg = <0x36>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + default-brightness = <12>; + }; + + led@1 { + reg = <1>; + default-brightness = <15>; + }; + }; + }; -- 2.44.0