From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.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 72E2635C19D for ; Fri, 24 Apr 2026 07:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777015373; cv=none; b=dDsYCmW1TVVzyAMr2FKMoZrcV4+B592UqN0OQyX0u+Kh3RP6NsX2HgXjrMCvnKUwG9Nk9in2gTGBoVkB1sLUPWODP/G1MVdJ5OiKUW44e4Nwl1rEP/PNf3NxtYP96avC0o7L6beQeiYRr7frhS4Q0jq4yQmjNyJgvrJXt9on8Oo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777015373; c=relaxed/simple; bh=bWAZFqT4Tb+5f7uG8o8PjY4H1stxGUURcl/qaAWT79w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ugfc+oaf4FjA505Su3+SEeJH45ejTLs9semoBOaYITjKT0tg1MiuK1cC15nNjMZP6/sTnDU0ojSED8KGWo3LloNm50LyJOB5AU7THHV067dwqLaUbgbFNHh2im13nV+HVsPsp5s8HI8R/gXEM9KsZUoRHaxJeC51n6SFkWwFCNU= 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=RCdC0Kru; arc=none smtp.client-ip=209.85.167.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="RCdC0Kru" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5a0faa0d15cso7428673e87.0 for ; Fri, 24 Apr 2026 00:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777015370; x=1777620170; 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; bh=mvT9+z0qrm3nOaQPxnVgMXtZ+9QDwe2OUg9PjPNYysQ=; b=RCdC0Kru4royx0BZdUrMH9ls8fgbpqKDQkfQM+SNEgJNanwSN7adI30eNeo0pi56aM d4jByxsFpZF0ewz/jJrawTZpXyT9edfXPFHXbx3qZXEtqziF0OD0bhkyyx0m952ayvip K8hLsJmRDyPObHH/4OYmmAVipK/AQTbSFS0gEmdL+9iBkoGwUSbYsFs9i7zxHEgrBjWe UyC557ivmy6SDLMTbTsfU6yE9HqWmkNefLaa2oY636yGW0rP+uX6zAOa+b92J2x3jBKT xZ9dUTxuLCUWuginnzwRWG+nHu+F/TtB0wU4kEpFw6maYphcDQW+xhbp5cPiDMf2EFdj KvEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777015370; x=1777620170; 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; bh=mvT9+z0qrm3nOaQPxnVgMXtZ+9QDwe2OUg9PjPNYysQ=; b=M0y2ILOvXZRYr0i0XDkogymyCfE1XevdqQ4aaiQAvup1NZ9GrmG7hX+QsTqpQ3HpKU +wY0JZ6h6oaY0phvXIGhFbjRqu5JlUjebBlIi3ZDBsF/qJs0I0e4YZ3v3lWFj3VHy4Be TdXN07SwbjwPL4wRQegSuDt23kXox2Ne59oeIS2osYePnBVvWrfI0tW8AmZUOJjwosU0 yqoVllXUfSP5VOEuO/l7pFf7SlkZxDxlT/2Mz5jMIiCCt86y9Ide8Thulsv4tgtX31ca 8CYKH0MwftebuaIcaapJ/O5YmnxyRhFhE8cBInyJJIjU30QoZowdGrAW3KV7EjNNlnKL iZhg== X-Forwarded-Encrypted: i=1; AFNElJ98qAI6mexUKehAW6lCHi+yoNWTC/iCrjGLcFZKh3Zeew84AZHn5bTjteru8JDYSkuaymtJqlO1utPW@vger.kernel.org X-Gm-Message-State: AOJu0YxjTDRTar39hxBwiGeNa2NsIHswJLDruJtLmbyoHNIkWNwGVQ/3 TY3m52CAaqo8ujkMdcjldG9TQ2bH7ScG1rc9EmbORmPLHJjdsiy/wF6O X-Gm-Gg: AeBDiesSmkCFQN9S1AKKML+Hdgbx5qA9alLd9Way/u5pYz8uL11TkSM7nU/vR0H7Pia 1eponMM4hR64rvj/QDREGjfXgAMr4gQcS8oMKck94vWJ6gD3MbQj7uuQKM5lH86hAj/nYnWh+TV FWBMdCyLUuFzcggS2oHS059Y8Zl7xbV6BbZqKiOI0RQKi3a4qKF1vL+a2FK9G4U86eEsTGlSnla BUIg5xKGdyhwhWqKBxhcYSrr9i0Ic17L7eTZLxA6/SO93+tbHVQx7D23ZvztbeDEFGjwa/7rdGs 81e6Lqx7QDcoCqhIyTh7D69XFjnYU55PO7oVQmUcY0XlvGVTcGuemvkKkKCn99fiL+g36kJlKfY XWndylBqGPpKrHF/H+v733LGX3/e7WrNjEKydWXaqi0x11eC6yzv065mcP8MK0tlfj9JVZAyy97 +38fyu7Oum2mWsJY9l8HN335c= X-Received: by 2002:a05:6512:3b26:b0:5a3:ffd1:fbcf with SMTP id 2adb3069b0e04-5a4172cb91emr12006284e87.17.1777015369570; Fri, 24 Apr 2026 00:22:49 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a41a238563sm5612550e87.55.2026.04.24.00.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2026 00:22:49 -0700 (PDT) From: Svyatoslav Ryhel To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Mauro Carvalho Chehab , Svyatoslav Ryhel Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v3 1/5] dt-bindings: leds: Document TI LM3560 Synchronous Boost Flash Driver Date: Fri, 24 Apr 2026 10:22:26 +0300 Message-ID: <20260424072230.90354-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260424072230.90354-1-clamor95@gmail.com> References: <20260424072230.90354-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document TI LM3560 Synchronous Boost Flash Driver used for camera flash LEDs. The TI LM3559 documented in this schema requires a separate compatible, as it utilizes a different programming model — specifically regarding the handling of voltage ranges. Signed-off-by: Svyatoslav Ryhel --- .../devicetree/bindings/leds/ti,lm3560.yaml | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/ti,lm3560.yaml diff --git a/Documentation/devicetree/bindings/leds/ti,lm3560.yaml b/Documentation/devicetree/bindings/leds/ti,lm3560.yaml new file mode 100644 index 000000000000..c6c553ad23f9 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/ti,lm3560.yaml @@ -0,0 +1,131 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/ti,lm3560.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI LM3560 Synchronous Boost Flash Driver + +maintainers: + - Svyatoslav Ryhel + +description: + The LM3560 is a 2-MHz fixed frequency synchronous boost converter with two + 1000-mA constant current drivers for high-current white LEDs. The dual high- + side current sources allow for grounded cathode LED operation and can be + tied together for providing flash currents at up to 2 A through a single LED. + An adaptive regulation method ensures the current for each LED remains in + regulation and maximizes efficiency. + +allOf: + - $ref: /schemas/leds/common.yaml + +properties: + compatible: + enum: + - ti,lm3559 + - ti,lm3560 + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + enable-gpios: + description: GPIO connected to the HWEN pin. + maxItems: 1 + + vin-supply: + description: Supply connected to the IN line. + + flash-max-timeout-us: + minimum: 32000 + maximum: 1024000 + default: 32000 + + ti,peak-current-microamp: + description: + The LM3560 features 4 selectable current limits 1.6A, 2.3A, 3A, and 3.6A. + When the current limit is reached, the LM3560 stops switching for the + remainder of the switching cycle. + enum: [16000000, 23000000, 30000000, 36000000] + default: 16000000 + +patternProperties: + '^led@[01]$': + description: LED control bank nodes. + $ref: /schemas/leds/common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Control bank selection (0 = bank A, 1 = bank B). + maximum: 1 + + flash-max-microamp: + minimum: 62500 + maximum: 1000000 + + led-max-microamp: + minimum: 31250 + maximum: 250000 + + required: + - reg + - flash-max-microamp + - led-max-microamp + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@53 { + compatible = "ti,lm3560"; + reg = <0x53>; + + enable-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>; + vin-supply = <&vdd_3v3_sys>; + + flash-max-timeout-us = <1024000>; + ti,peak-current-microamp = <16000000>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + + label = "white::flash"; + linux,default-trigger = "flash"; + + flash-max-microamp = <562500>; + led-max-microamp = <156250>; + }; + + led@1 { + reg = <1>; + + label = "yellow::flash"; + linux,default-trigger = "flash"; + + flash-max-microamp = <562500>; + led-max-microamp = <156250>; + }; + }; + }; -- 2.51.0