From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 092B43BCD0E for ; Sun, 11 Oct 2026 19:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791745848; cv=none; b=dNxK2kgA8UBgJTktY6eFicaHE9dqxL4f3OhDOnxqS79TlVesEjAZ6l6cxIETEl+7vHDBMo1YEktP2b8pNrLoA234VFFrho9EXwSQMR5YlNaCx38oC2zXpIaGx40JK6gt79+RrBuN+4y9ankiBQ1r8F2uiegtnMwccRbAYW/MTl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791745848; c=relaxed/simple; bh=wVwtf3VBmI07awCkCM8Q0hmm9lshfUUpGDDa7XJpyRE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dptjOHa3pdvEfjRaJGJvd38RC0rm5KEXI2RuHV04OfXlFRSwtSc46h4mUU/Gg6rIf32PB8gKhthv+ss2W1NaK5rFuJvkib4D5G/oROQYAhIRfFdwYoI9qXetc530FlnsM6q/H5+s7VS+lKrORMph9xcYTluhqecJT32dbyYvpv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ksjhg+Bw; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ksjhg+Bw" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-48b042c0759so835720f8f.2 for ; Sun, 11 Oct 2026 12:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791745845; x=1792350645; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fTeW0dCMannfUqmrWOxDyxXAwJxDr0EkxzUlrfb9Tgs=; b=Ksjhg+Bw5UCnBvJbkjQBwNfm4RZXZjT26jboELZrU8NbRXzPjvHybyitKNzKdfaq9E xKZ7YBiiXX4l6bm5U34dIxODeoAzcRlHuolMZaZD7vYyy3QTqSuVSY0TipV0xKtmYnE3 ce8Cjr+ca/gXO9v8SZFWdEEhzQ2Rm+MePZzG81WYBcWEGdFkzpmorbt8CKJ5pYTwttMr WGvPLRHqr86UEvmXUHzsIEcbCu6FBZYwq85pFBWLqmpT/wqL02ExXw78BISQiDvI0THu tT9kLzzqO/l4d2GRz/rHxU2YIV9NSN2DEyfB+aPtqL4d4ZPfjt6dkrzS9a+qHWmeBb3S bFHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791745845; x=1792350645; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=fTeW0dCMannfUqmrWOxDyxXAwJxDr0EkxzUlrfb9Tgs=; b=GCUW3BsJhQ0DPMJGJ0b/TDxDiOL94dXajMdEIR6DasKfhSoY1IV1Hp9GGJhzgVZ8Mr eDZ/HO8WvUyl7x8vsdW1eSnTxeC/XENzzmuraORKtE4cFhWP3k23zwm9vPJ5sweF/4rs AJMxNNqx+HoJ+W+dw/czrzg5h3wPUddz8iDI6EIGD1338nPCpxDzQKsxIRxkrvaKbKD9 KRrmA9mZxfbT2r6iNH429ciUbnfWF6FUuG+J0iDRV/4RxbpNEs5E35M1GuE6AxNKWk72 p8582/Ho+J31t94hSL9oH2vgWQ1VH3fzE241V46cCBUcUjFhJoGjr+BSTJ+g0D/bTReG oKDw== X-Forwarded-Encrypted: i=1; AKwUvBw88AqV9FNksUCKLLZjt5zK4GQQvYLJ41oZx4PlfJVhub4F8JKP73WvAUYIv2b8KmT/o+3YO2ZwiQNe@vger.kernel.org X-Gm-Message-State: AFq9FYJesPRavFNlG8DyRITXZJMQMUUAtbgET9SD/iluH6O/KNPutSOG NwvcP/AR/dC60j7MhygU2eqrb0q9SOAPBYh4svcjD0GQyxqsZXT0pCeZ X-Gm-Gg: AYBFou1sDleArBH/kcFzTasQUh2b/1fNa63PApYvVLRM+uY35gDLGqWsH0hsyVcSxrr GL0P7oUvF85/NF55JQecXqRCbFvUkytEtJjLFZo3vtPZbSOToQOdCFuVricoDlxqlB+jfqaExIT JhAsWpaQSM05IUG85iFbu3bb0+AIRLevPASNNNAP8h1BYfUmktIEo+2N4WP76cRo+1+JBkAydxY 2jBt0tj2KqqK4DonlbbINMglQIW1t6qoDC+mVP3ea5ojPHTTmxtze2b3pfKXXMyaRvblDCPZjuj xsK3h83ac75amOAecpWnNp5r7KfdjuC99VdgQTjttSqeTlV8DVciIW+ia7V6pcEsQ7Sp7POqo4B zcRoAeB9sM0DO1ng6KqNpmK9dL2bsct0uk4Os6PXGj7KbRuTCU7zdsq3mNdMmhdx+LJT9R2qR5z XL3gBmS7qV8hPgPXYzTqhF2BRGfv2Prx1qmmhfBZCUunEdfxB1e76mYACjilHhnc4iXT0zb2Jwk RkzEWmb3aBCPZ2UzbWumqaWLF2836+AYhE= X-Received: by 2002:a05:600c:e557:20b0:49f:dd9f:6038 with SMTP id 5b1f17b1804b1-4a18e4bff94mr88482415e9.25.1791745845163; Sun, 11 Oct 2026 12:10:45 -0700 (PDT) Received: from rillian-arch ([90.244.147.10]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a18bf15691sm225209795e9.6.2026.10.11.12.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2026 12:10:44 -0700 (PDT) From: Rillian Grant To: Lee Jones , Pavel Machek Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ruslan Koreev , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rillian Grant Subject: [PATCH v3 1/4] dt-bindings: leds: Document TI LM3643 dual LED flash driver Date: Sun, 11 Oct 2026 20:09:43 +0100 Message-ID: <20261011191026.149338-2-rillian.grant@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261011191026.149338-1-rillian.grant@gmail.com> References: <20261011191026.149338-1-rillian.grant@gmail.com> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document Texas Instruments LM3643 dual LED flash driver devicetree bindings. Signed-off-by: Rillian Grant --- .../devicetree/bindings/leds/ti,lm3643.yaml | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/ti,lm3643.yaml diff --git a/Documentation/devicetree/bindings/leds/ti,lm3643.yaml b/Documentation/devicetree/bindings/leds/ti,lm3643.yaml new file mode 100644 index 000000000000..63c5f09f3bd5 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/ti,lm3643.yaml @@ -0,0 +1,143 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/ti,lm3643.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments LM3643 1500mA dual LED Flash Driver + +maintainers: + - Rillian Grant + +description: | + The LM3643 is a dual LED flash driver utilizing a synchronous boost converter + to provide power to two current sources. + + The dual high-side current sources can be tied together to provide flash + currents up to 1.5A through a single LED. + + Datasheet: https://www.ti.com/lit/ds/symlink/lm3643.pdf + +properties: + compatible: + enum: + - ti,lm3643 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + enable-gpios: + description: GPIO connected to the HWEN pin. + maxItems: 1 + + flash-gpios: + description: GPIO connected to the STROBE pin. + maxItems: 1 + + vin-supply: + description: Supply connected to the IN line. + +patternProperties: + "^led@[0-1]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + maximum: 1 + + led-sources: + minItems: 1 + maxItems: 2 + items: + maximum: 1 + + flash-max-microamp: + description: | + Maximum flash current through this LED. Each high-side current source + can provide up to 1.5A. The maximum current the boost can deliver is + 1.5A across both sources. + + Valid values for an LED connected to one source: + 10900 - 1500000, step by 11725 (rounded down) + Valid values for an LED connected to both sources: + 21800 - 1500000, step by 23450 (rounded down) + minimum: 10900 + maximum: 1500000 + + led-max-microamp: + description: | + Maximum torch current through this LED. In torch mode each high-side + current source can provide up to 179mA. + + Valid values for an LED connected to one source: + 977 - 179000, step by 1400 (rounded down) + Valid values for an LED connected to both sources: + 1954 - 358000, step by 2800 (rounded down) + minimum: 977 + maximum: 358000 + + flash-max-timeout-us: + description: + The chip supports timeouts from 10ms to 100ms in increments of 10ms + and from 100ms to 400ms in increments of 50ms. The provided value + will be rounded down to a supported value. + minimum: 10000 + maximum: 400000 + + required: + - reg + - led-sources + - flash-max-microamp + - led-max-microamp + - flash-max-timeout-us + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@63 { + compatible = "ti,lm3643"; + reg = <0x63>; + + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; + flash-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; + vin-supply = <&vreg_flash>; + + led@0 { + reg = <0>; + led-sources = <0>, <1>; + + function = LED_FUNCTION_FLASH; + color = ; + + flash-max-microamp = <750000>; + led-max-microamp = <180000>; + flash-max-timeout-us = <150000>; + }; + }; + }; -- 2.56.0