* [RFC PATCH 1/2] dt-bindings: leds: Document TI LM3643 dual LED flash driver
[not found] <20260821083620.68324-1-rillian.grant@gmail.com>
@ 2026-08-21 8:36 ` Rillian Grant
2026-08-21 8:44 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Rillian Grant @ 2026-08-21 8:36 UTC (permalink / raw)
To: lee, pavel, linux-leds
Cc: Rillian Grant, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
devicetree, linux-kernel
Document Texas Instruments LM3643 dual LED flash driver devicetree
bindings.
Signed-off-by: Rillian Grant <rillian.grant@gmail.com>
---
.../devicetree/bindings/leds/ti,lm3643.yaml | 126 ++++++++++++++++++
1 file changed, 126 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..18b08a79512f
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/ti,lm3643.yaml
@@ -0,0 +1,126 @@
+# 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 <rillian.grant@gmail.com>
+
+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
+
+required:
+ - compatible
+ - reg
+ - "#address-cells"
+ - "#size-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/leds/common.h>
+
+ 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 = <LED_COLOR_ID_IR>;
+ flash-max-microamp = <750000>;
+ led-max-microamp = <180000>;
+ flash-max-timeout-us = <150000>;
+ };
+ };
+ };
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH 1/2] dt-bindings: leds: Document TI LM3643 dual LED flash driver
2026-08-21 8:36 ` [RFC PATCH 1/2] dt-bindings: leds: Document TI LM3643 dual LED flash driver Rillian Grant
@ 2026-08-21 8:44 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-08-21 8:44 UTC (permalink / raw)
To: Rillian Grant; +Cc: devicetree, robh, lee, linux-leds, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The schema does not enforce `flash-max-microamp`, `flash-max-timeout-us`, and `led-max-microamp` as required properties for the LED child node.
--
--- Patch [1]: [RFC PATCH 1/2] dt-bindings: leds: Document TI LM3643 dual LED flash driver ---
commit 0c56365dce9a84b7387d67d8621b8beeacea7aec
Author: Rillian Grant <rillian.grant@gmail.com>
dt-bindings: leds: Document TI LM3643 dual LED flash driver
This commit documents the devicetree bindings for the Texas Instruments LM3643
dual LED flash driver, which uses a synchronous boost converter to power up to
two current sources up to 1.5A.
> diff --git a/Documentation/devicetree/bindings/leds/ti,lm3643.yaml b/Documentation/devicetree/bindings/leds/ti,lm3643.yaml
> new file mode 100644
> index 0000000000000..18b08a79512f1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/ti,lm3643.yaml
[ ... ]
> +patternProperties:
> + "^led@[0-1]$":
> + type: object
> + $ref: common.yaml#
> + unevaluatedProperties: false
[ ... ]
> + 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
[Severity: High]
Should flash-max-microamp, flash-max-timeout-us, and led-max-microamp be
included here as required properties for the LED child node?
Without these properties enforced by the schema, a device tree could omit them
and still pass validation. If omitted, will driver fallback to the controller's
absolute maximums (1.5A and 400ms) risk physically damaging connected LEDs that
have lower electrical limits?
> +
> +required:
> + - compatible
> + - reg
> + - "#address-cells"
> + - "#size-cells"
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260821083620.68324-1-rillian.grant@gmail.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-21 8:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260821083620.68324-1-rillian.grant@gmail.com>
2026-08-21 8:36 ` [RFC PATCH 1/2] dt-bindings: leds: Document TI LM3643 dual LED flash driver Rillian Grant
2026-08-21 8:44 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox