From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 226A9492E24 for ; Mon, 28 Sep 2026 09:43:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790588621; cv=none; b=czmydoeZh49cmKECUgyyGPiUjmrTG+WWdacp5GG3Rk1w7MrZqrw8Zl1VDrs0Ea9Z6mAQTBNowNgxj2bHTh9OfvXkVecMa//3y7cBYJRZUQMD/2FSIWpICRGcWWicFQDAuaU87MrgsO0V45vVkJpqH4nwB9rSuutz8kCUbwsYZW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790588621; c=relaxed/simple; bh=fNTKonUy0/FAhs8my66xZF7DW3W7vEBYzduyDViRLv8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GdzJzeFd8vKs9NLmkTWh86VlwtM2Mq88xTUPN7DG5liBYE2hInEkSA4sIOhpiwIOFWVecl+dj9qcEP0udV7RpXeqQAHvc42UMYoctR7qvXL0oyoaugdmvxXFDkcKiW4yA7RTkrcpVck1PYjkvqOxlQCsunnegUxSDQRMrStsgwA= 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=RrPtMj0X; arc=none smtp.client-ip=74.125.225.141 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="RrPtMj0X" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e79a408deso16728605e9.2 for ; Mon, 28 Sep 2026 02:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790588617; x=1791193417; 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=elEzk/snbsv6yNIQrza//d+cx8Ge2QxQ0RhCb2xVBrc=; b=RrPtMj0XUH775GnjDf6ILQGuJUsLCd3ewrbjz2ZqB+jpEVMF+QvhkCGjLzVdW0S9iZ ulsyUGaslbx+rMVzpr32tRJ9SWP4GsZRwCvQyIFGQSQV4+Pmo/QINIFvK4DPi5O7Qgln y9gBJTYNXpDwfjn/9evLZVsSDBysvsIUUYk8NcYzJXt1ET6E7pdOSnP/QdI0FS5THtFz ZmezKFXx2PGl5gI6s/k5XDaKZnD8zBES7BKdBYXUFmHFJS0rxPbecPRMLnRo17i4R/2E rMTzNEdlXMKaEhXPTpc1HrSixU4zy257maUNCwD3jtGLyvbUhmA1Hla6+K0s35+u8P9m 8JDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790588617; x=1791193417; 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=elEzk/snbsv6yNIQrza//d+cx8Ge2QxQ0RhCb2xVBrc=; b=VI+bFqs6Q9osQLX4ApZhsdthf/pwg1IEFnn8v1pd7rieqq49QvpTZl5cDHcauhjzYy kEQQd037+OqdUqK45aYnMxi0F0vSMgbcwKo5x4c5/FA17wdipgCgRei2gwZvgQ+oUQ1Y RDv0BbBkWEfXMzSIgGzthTVeZ3yGb+2ca7RuW9QTwLkMkhCgVMzLjkVr4SFFgcKlR6uj hwAOiPnlDVRMEl8/T3bpGNWkfoKyrdNfFdhjXjqDzZOprICqvg7CzIurBVl+5K4Moagf D2RmhKJIf8nGEAYgXQQtaFra0KMdMBsXs/Xpj4BA9vna8Zn27xkO7P1o6ETepOTyVzWu w9Ew== X-Forwarded-Encrypted: i=1; AKwUvBzuywFNrH5L1IpMHM6NoRMYQNd+DVayhCFuUUhcpIDXZBNOAvkWaEqw9GD9Y9VHy/y+K4bdTWv6QqCQ@vger.kernel.org X-Gm-Message-State: AFuF++lxvqtpAJe0NDOrri3+4Ut8+hap8tWyrWT13/qsarL8k0quBN49 VoZvPxRM5ywQ7KAJJZwpMV6MDQtAJ7ptfLcw2av3cCkDeIQllc9824wp X-Gm-Gg: AYBFou3E5WGTUhGP0w08uulAFCzMeA9UxUhARDdyVzCELt/MwDIE9oAItItM4s48j+m tXR9adjMI6vL0KDgPqA19rVuIANO+CZYft7RSX93rVj9n6AZ+l6vYqonIJOjvAqZcg/PuKuLzte Hci/Mx2nXbJPM2xCZx3Qrbvf8xMNoHoUsG2LwFSOlPzuPZ7z5CAut9QKdhkEIrefgI5hiDnYWAn zUr3wjG1ymVEFCnObvDvU5/HAtNZcRrmC3KqfMmkY99ICGKOzN6f/GGE0QpM/8AC/Id0mmzazjc fwK62Lq9917Ski4RzWhrcvAp041RbmWU0jTZ9Av9Ot7I5YzBh9cUdsBnsV1gZdPdz3DdEFJhbH8 H7mkTbW/yBOVWlKlgoLveVH+DvLN9uTlOKQZxM0uufxuqHxbXr+u36Ht2NG10Q3t0SRGoX1k4jA abJ/VQV0i6/EBCsDassJ6GButt469W5bAYn2G4hvcVeTAZhXhVSrXrNsQ37SgbJQGeZIgI2mqTX Fpai+2J8mgmifn+n3oTydbnRbL0/E2YCjnmc2QyITsK X-Received: by 2002:a05:600c:4ec7:b0:49f:ff6b:bc82 with SMTP id 5b1f17b1804b1-49fff6bc143mr74538605e9.20.1790588617153; Mon, 28 Sep 2026 02:43:37 -0700 (PDT) Received: from rillian-arch.home ([2a00:23a8:8f4:6a01:5ffc:da36:c891:cd3c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a0019057cfsm169401315e9.11.2026.09.28.02.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2026 02:43:36 -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 v2 1/4] dt-bindings: leds: Document TI LM3643 dual LED flash driver Date: Mon, 28 Sep 2026 10:42:34 +0100 Message-ID: <20260928094302.86966-2-rillian.grant@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260928094302.86966-1-rillian.grant@gmail.com> References: <20260928094302.86966-1-rillian.grant@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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 | 129 ++++++++++++++++++ 1 file changed, 129 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..c212f2345d92 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/ti,lm3643.yaml @@ -0,0 +1,129 @@ +# 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 + +patternProperties: + "^led@[0-1]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 1 + + led-sources: + minItems: 1 + maxItems: 2 + items: + minimum: 0 + 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 + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + flash-led-controller@63 { + compatible = "ti,lm3643"; + reg = <0x63>; + #address-cells = <1>; + #size-cells = <0>; + + 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.55.0