Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1498461lqb; Sun, 26 May 2024 04:10:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXebKzG3RgfhjHcYF/4iyFC0i7zQZoR0eYv58zHQXYV1CAF/glHZ+hyTmkiSR4ikVj87VQ7XemmeW7Ck70ipUPc/z7y/jn96u3TDW6nEQ== X-Google-Smtp-Source: AGHT+IG1dJZUpkMtmXiShYNOn2N5u3DcPuOOtqqN7kZpKxg5ms8v0C8JVD808FUpLX4OKCHGq8pU X-Received: by 2002:ac8:5f89:0:b0:43d:f37a:dbe4 with SMTP id d75a77b69052e-43fb0e3f3b9mr86311881cf.8.1716721847050; Sun, 26 May 2024 04:10:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716721847; cv=pass; d=google.com; s=arc-20160816; b=U60lmLwKtours/zqen1uX0+cKaQrYNbnJpdyW+PHa4wtKbRDGY+7PmertL9XXfybs3 WafJKTRgmFYhdZkIDU/5fa9ys/cvspiKjZyNKtTfUvo8LTC9maBUY0WIegHcBwdGwlg6 5yZDvKgUIUs2H4WnDtEi0et0/Sx7ADJhbWpZHrJMLrpAHeCclS3z+QWXH0x8vDJfyKpg UAF9kmovZtyzz0fb879FJqbQTHfL6SUOIHPicKpM374L5RJrnH5wf2VRPy+e1ieBeFzQ lZk0dM5rsTHiO9DzffteZ3gZM9ZMvFXudd5H1ey1RrzDDUut5zYUXP2uCyjfjR7lNjts wRMQ== 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=TXVzlDmNhLCq95/mMjyunngNK+mLMLLWMLMstZdKwDc=; fh=UkFr1e/h8aoWxUbNq1ps8SXIQbhueN2MR37cGdwnDSU=; b=KY/TlaCB++dOS4ar/hwhg9GeSw8Oz6flys8PJDnooNW56E9PptSzk+VHrXrBJmYQxC fXVXL9fb3YgejLdlvK+sSg3YKH+qkmoU+LKZtqkLfAwUb2F05SkIHw6HBi3+9zaBjNSo ThYi7Vb+DHnx7/Buyc5ty6+42RLAIh3iM7B5kqekQicPi5XKNT/eCsMQiaQgRcf8hH1m oyN0oTDm5Kl5p41WedU3R7qYu3ioG5YMEMIc5uMv65j8gb+iWEXvGiKFby30ZmqUEZju 2fjjpJfVFXzgrqQKWN4jcZNx266CIr7sBMpoUG8D7HqyBkK1vsQfloG/DCx1KWEPaXQ8 m6qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@paroga.com header.s=easyname header.b=N8TXraIw; dkim=fail header.i=@paroga.com header.s=easyname header.b=N8TXraIw; 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-189717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189717-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17bd4b8si57837881cf.145.2024.05.26.04.10.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 04:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@paroga.com header.s=easyname header.b=N8TXraIw; dkim=fail header.i=@paroga.com header.s=easyname header.b=N8TXraIw; 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-189717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189717-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B5EB91C20E00 for ; Sun, 26 May 2024 11:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49236C147; Sun, 26 May 2024 11:10:39 +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="N8TXraIw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b="N8TXraIw" Received: from mx101.easyname.com (mx101.easyname.com [217.74.15.6]) (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 F12468C1F; Sun, 26 May 2024 11:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.74.15.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716721838; cv=none; b=LoVyBcNnR+brLyWFSG05BQNZYLpYd5ViLY76N6KLo89xdqGVpaNtR3eaEMVgU0caeVtLJqaJM5OciLsaa0Mkx+F3Zl5LG/HjgBx8l/cdkRxHarRE5tMEM/2AbV04714eVgJXSOjNNPXVU67mfuAL7Upz+nGvVV62Ct+nvjTBlRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716721838; c=relaxed/simple; bh=HY1XGPRrGqBxDcvdxT1bi7hAHQ+KaBmx83f1g1P+lH0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SbwWmoNXi7MQZbIu4BGz/oLBZBVeHaLIou3wVvAv+Teaw0Kip1uSFN2iISK9zMGNThseyrYR0cdQx/gkWM9BKXJHYh2Wv6yfE3iHmBlAYRnmdwfx0af1R1qqxxzhaOfO33t3TZqB+/yUkf29O097jh09zgjWmK5RVKdAFkN0QX0= 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=N8TXraIw; dkim=pass (2048-bit key) header.d=paroga.com header.i=@paroga.com header.b=N8TXraIw; arc=none smtp.client-ip=217.74.15.6 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=TXVzlDmNhLCq95/mMjyunngNK+mLMLLWMLMstZdKwDc=; b=N8TXraIwOC2y+kydJ70DzvW0uS AZTB3Gi5ydGCdlnLyXdSwQmiY/uguhznTruMwtdSiF1h/CyvGHWJjDFDkdIgONPLPcx5l+7rrvTma 5G6qr2Lzo5rAu4f6i38Kz/WushONNwzk5h4xWebTwLLONb97e1rJNL1HV0PcVACqxzJ/zJlc4kzlw lcknmQhsZrKFiivjc7wx1TNGh035FpF9E0g5CrqtispiMkelO4radvvPbePzY4aP/WzCnC4OSdVak 6DuNoeDfgy/qxqF8Fej8MPzEjCNSUcypwfCSSwHIeEKgcvR8GuUkQ6JMV0UNpolo3l4cREaGEDvh3 VAhCKJew==; 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=TXVzlDmNhLCq95/mMjyunngNK+mLMLLWMLMstZdKwDc=; b=N8TXraIwOC2y+kydJ70DzvW0uS AZTB3Gi5ydGCdlnLyXdSwQmiY/uguhznTruMwtdSiF1h/CyvGHWJjDFDkdIgONPLPcx5l+7rrvTma 5G6qr2Lzo5rAu4f6i38Kz/WushONNwzk5h4xWebTwLLONb97e1rJNL1HV0PcVACqxzJ/zJlc4kzlw lcknmQhsZrKFiivjc7wx1TNGh035FpF9E0g5CrqtispiMkelO4radvvPbePzY4aP/WzCnC4OSdVak 6DuNoeDfgy/qxqF8Fej8MPzEjCNSUcypwfCSSwHIeEKgcvR8GuUkQ6JMV0UNpolo3l4cREaGEDvh3 VAhCKJew==; Received: from 84-115-225-171.cable.dynamic.surfer.at ([84.115.225.171] helo=localhost.localdomain) by mx.easyname.com with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBBTv-00073L-Ts; Sun, 26 May 2024 10:52:08 +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 v6 1/2] dt-bindings: backlight: Add Texas Instruments LM3509 Date: Sun, 26 May 2024 12:51:29 +0200 Message-ID: <20240526105136.721529-2-paroga@paroga.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240526105136.721529-1-paroga@paroga.com> References: <20240526105136.721529-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 | 136 ++++++++++++++++++ 1 file changed, 136 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..482fae71dd53 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml @@ -0,0 +1,136 @@ +# 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. + $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: + 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.45.1