From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 8AFAB15CD7E for ; Wed, 6 May 2026 06:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778050149; cv=none; b=neTqLa91oBcaG9XhNnzj55l4Hsx32Qs/qM+FlAD3vQZHrMYDCgLXIFH/WhgZVgx9UKxxCR9GpW3HUq/DLb12IIMew+WvsMv3+eHb0RK1S5NPmfJqAivEs81Z/Oza9e4wqBKUtxxGK6mrtrzjgXxLlY7xUiPlEUJxAU3sQkO9KcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778050149; c=relaxed/simple; bh=pHp6Q7knii2n+EhMdTYm6APHUxAVGaG6SjWBOs/Ltog=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k8+3oq6hl4O1+AWtbpAmrrqCCsxTvwv2yKsNlnFNDxoIXnQSuYTHJdG6qQHZJcp4gDHzPfVH/kiDEad2hZYYFd99hkTCVZ6MAYKFSccmU4sxFwVwbgaY1PHn0zgcEsflOjSv8UEwpNWCc3tN4vINSGQlpPhJIItZ2EwXudWe3Fc= 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=X/n5+3He; arc=none smtp.client-ip=209.85.128.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="X/n5+3He" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-48334ee0aeaso42926435e9.1 for ; Tue, 05 May 2026 23:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778050146; x=1778654946; 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=RtWz4md+KpJ0I5o5giTzQAfd544HTKz5u0iahZieaR0=; b=X/n5+3HesL4FqjlKALUCRo5oHbnH9MRiVj/Pmv26H3kPXroqCKXuojOg+KsKTaq0YH D1HRDvzaAssIQE8pBuOYLHTSdHGYeyQSZoN6uxzNlbNuoqI9217TuyFu3E5ExYMtvDIJ JcT3SBDqbmnMt3CgCsmXsqA3UegUpb6Ef2ULCf/r4u+PCWJG9LL3iM63SXlrMSoGLYBV xqJEH4xszgHQxig/vpJBuSdex2/0HcwbSJHoriRTD5IHE6LgxsGNc9Y63lGrcECDDV4f w3l9ELdSVyc1NBWWMnjW8fki9hSqa80EY1PSMKOl3x6wR2TVANB7uhd4j8trxJEpTSXl KghQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778050146; x=1778654946; 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=RtWz4md+KpJ0I5o5giTzQAfd544HTKz5u0iahZieaR0=; b=LVrRPdYl7h/uGYJgf//Pm7BjMh9/mJSG0YSKwXwtfktRliXlqfaUh/67baNLmkdOML p8tpjGcp3M+y0wU+vnUUkZx9zFvdt6STLgrmdFXM5ezBFYsOjbHpup76qgq599/IbDEv QKbgdoSgBs1jQO3qsArWHVA1pj1HtDaP9FkgKeyRJaORnhQBdWU7Vqq4vZ/PZPXp/SQH kJjbjtem2ztGHOIVMER9Ejdv5Bs2Ylwc9zEJAcGhBEGNqO55bOJA8BVeOff+lWWiIHzV EkeV4Zhn2tT+5YOcaiyqzV3jac6wbVj6+TKEdCHugfRhpRne/6wRjkFFdxHmBkJOoxoz 1Qsw== X-Forwarded-Encrypted: i=1; AFNElJ+Yl9upQGNlen3XZcvwXbNQKOTlQaXynxmNJbG0msvU5Ty1aeVZzdp7m9niaWoAM565jOF3ol8R14l8+Gc=@vger.kernel.org X-Gm-Message-State: AOJu0YxgVrVmXTainC7swbPTp2yza0vm3TNWlxMkjmfj0mb+S36dhDro 2VgOdYvAsm4u32q4QVTXXPro7JUFwcHYNtChhCxlu9g0absv97BQVdDc X-Gm-Gg: AeBDiesy00DLABzAI/yfiXClGZMqxrS0WHCZHqXlWNImVofPub98pvWR0S8Mb9LPgDH OAhDdeFwJCFYgifXhE9bGLZn8Gq7GcMrqvAv34j/X3spUeKuTthNjbJ3V9X6NQ+TFaCypkwA+E9 qjbfi4iMUUYc//RhNmgzcFNDvK7BugK0V0ZLL/C9+HAQCumDyk/IvihCJPRhApT4vx46xPrjHQL tCGSLeflmutv5te6tIqttd+73fAF0ZJLsCKBsAfhDYPwIM/3JiL4NsbQLLnlPDGbWX/41TufAJB S31QCNoYRogGrkaIyU33PUgYG8K/Xp11R91M0uksCm94dKcFzJm9AA6fmRLMZivaZRoklcgBTr6 bR7jRAyb4/DanrYry+fTuanhPZetoB112fMnSUW7h6Ai94x3VS3kfd5jph0XfsfUZPXZTVIWJod tdrJ3J0gJJarOU3gOYakL3RzQ= X-Received: by 2002:a05:600c:41cc:b0:489:1c1f:35e6 with SMTP id 5b1f17b1804b1-48e51e0bc24mr17870485e9.6.1778050145887; Tue, 05 May 2026 23:49:05 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e53891d62sm38398835e9.1.2026.05.05.23.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 23:49:05 -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 v6 1/6] dt-bindings: leds: Document TI LM3560 Synchronous Boost Flash Driver Date: Wed, 6 May 2026 09:48:42 +0300 Message-ID: <20260506064847.37795-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260506064847.37795-1-clamor95@gmail.com> References: <20260506064847.37795-1-clamor95@gmail.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 Document TI LM3559 and LM3560 Synchronous Boost Flash Driver used for camera flash LEDs. Signed-off-by: Svyatoslav Ryhel --- .../devicetree/bindings/leds/ti,lm3560.yaml | 163 ++++++++++++++++++ 1 file changed, 163 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..6cf8cf91ab2e --- /dev/null +++ b/Documentation/devicetree/bindings/leds/ti,lm3560.yaml @@ -0,0 +1,163 @@ +# 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. + +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 + (in case of LM3559 - 1.4A, 2.1A, 2.7A, and 3.2A). When the current limit + is reached, the LM3559/LM3560 stops switching for the remainder of the + switching cycle. + +patternProperties: + '^led@[01]$': + type: object + $ref: /schemas/leds/common.yaml# + description: LED control bank nodes. + unevaluatedProperties: false + + properties: + reg: + description: Control bank selection (0 = bank A, 1 = bank B). + maximum: 1 + + required: + - reg + - flash-max-microamp + - led-max-microamp + +allOf: + - $ref: /schemas/leds/common.yaml# + - if: + properties: + compatible: + contains: + const: ti,lm3559 + then: + properties: + ti,peak-current-microamp: + enum: [1400000, 2100000, 2700000, 3200000] + default: 1400000 + patternProperties: + '^led@[01]$': + properties: + flash-max-microamp: + minimum: 56250 + maximum: 900000 + led-max-microamp: + minimum: 28125 + maximum: 225000 + + - if: + properties: + compatible: + contains: + const: ti,lm3560 + then: + properties: + ti,peak-current-microamp: + enum: [1600000, 2300000, 3000000, 3600000] + default: 1600000 + patternProperties: + '^led@[01]$': + properties: + flash-max-microamp: + minimum: 62500 + maximum: 1000000 + led-max-microamp: + minimum: 31250 + maximum: 250000 + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + #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 = <1600000>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + + function = LED_FUNCTION_FLASH; + color = ; + + flash-max-microamp = <562500>; + led-max-microamp = <156250>; + }; + + led@1 { + reg = <1>; + + function = LED_FUNCTION_FLASH; + color = ; + + flash-max-microamp = <562500>; + led-max-microamp = <156250>; + }; + }; + }; -- 2.51.0