From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 993E6373BF4 for ; Sun, 3 May 2026 16:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777826701; cv=none; b=sNCV83VV5XFvrqFS47gxLJUOXdgCaoKVhRh6wtIQWoACF1KB4QwsOxqxRSXW1icKsSOj3tZnZvvuH0oMv0s2vWMOOiAPlPXj3IlH+zsYIicQD7AeO09pDJGNFY4fvSpDIgewIZYXDrMNi6wo6BkwX5gyUZ4lssJaooCtSVwjovY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777826701; c=relaxed/simple; bh=We6F5WQggj2X+707QRLSrq42JZKnZW3sTqiE8bDQHj0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=upkYUU1VoxV+MRKDdHl6k+UoPzsrZ4ElhFgfhvtjSIE4sYXEMVXrPdypphWxmB/jpef66rQJHJ38abp78mSSDb3VHQyQsQQCA9uIOxJiQ+bC2B5WoRp0uAca38UY3rSzBYXLXONJqhWTJXEMixWGHkYHznKkNbbb7hGw5sPfw2A= 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=d+fMtf8x; arc=none smtp.client-ip=209.85.218.52 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="d+fMtf8x" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-ba8472c1613so612888266b.0 for ; Sun, 03 May 2026 09:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777826698; x=1778431498; 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=WQAiHiX6KTDh/ntQ/qXMLOirhMuLN1OliVdEMKPofM0=; b=d+fMtf8xuuxOUb7Gfe7t5cDzXcA2E5Ylrv1XdwzVV6vQSK668JapZED7gLWCoLKdNf 6pqXy2lh+FlyQEWrv5yUlUyQC+n/n/Qoxss0aA7W/pNBGG4pEBTCEKXXTmdhd3j6lVAp DfFgDX4+MMq9OOOEsStUFB4Cfx7eWzYJ/vZfn0WrDWOWEiKbpaVV3OPeWaJVbOWnqom9 5YFRMiUAWYPNdtjSTpR8n6X2xFEJGvzhGIhCvMdP4Q8w9GN7sV/s8bjHV8vzj4sYpD+P RluhHLjWdF1NS5YFJUx7abedWPQxqnhAY3VaCEAXWkuF69a19bACZcGJDoFSjWYpt28v Y/NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777826698; x=1778431498; 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=WQAiHiX6KTDh/ntQ/qXMLOirhMuLN1OliVdEMKPofM0=; b=pYuUghfOSbhYmnNq0eNNGwZxNx16B6SxkskBUWeNZvsDJcgKu1ldK5LPJ93/9Ty8tu k0mktFfR03/+yXamKkkWm+fHzZfhEp7m2npZYSCLhh+uqUswzWClZ+0rYhZB4zGc/mDB qjJQD84qmYHe7yEKjCSveCBnV+GmX5P/xIHk4+ePrhTcdguy6MF8GRtcAgbrGMVIbQbd vB82E20v+z7bwFJEq/gft+0a0KoFWyBwbvvZaN7cdbbtSOlh41gMJDb6Tv0nhJeVR4+A W/b4/K2m6WnuPKrTnMLYJi9QyHTfSqCdTy7gfsyldMVCOCHk+a9g0bTghuXnxGjaSqng Gbrg== X-Forwarded-Encrypted: i=1; AFNElJ/k5pKFQmEs7EJm9xWAwzX6uch0kIjLTXuz0i1Pj//WSzJXnunXIYdhFqXnVnENJkmtnJmTiQL11ssp@vger.kernel.org X-Gm-Message-State: AOJu0Yzxfs4E3OLj0/SYPFK7sOzvlcYVX9zoiCXXvaTsGufAkwdxlUSO 0w/W2KVr5euYzeNPC7B2BSdipuGxb+pRina4VFgccFocJd8so7zDADt8 X-Gm-Gg: AeBDievv0200G8Gem+nxA1fdkopp/QQKVG+J/B5GiwH/VnnlZ7kuPNIkkXyIoRxgubh rHY/XZ1VUUR7TCKqMU/BkRsi0sgpD/y9QuMYhW06Gp1PY0xIIEheYe78UHb9gwrq591qX8bJ7pk uTt+yeQanrUuX/CW1GXYtjoI4y/KYrlLQxcx92DJR6jousI9pcnKY0rj5ACStQBg2aSjYy9HHsB pbRPIeGNUvmt3pvaI8/fNvN5tJKB05spAzwDADhdMabzKUaJUwAW4/r7opj7QWMoUupHK8h95nu qP7t/Q7nq5mr1FlWekiInzvL8gDLDQ7R72bUodXctfEkWBpCK6W/2q5jyP/HtNT6lMkH27FwrWh 88ACBfBVxTM8FWMnXEFhmtYVODYJF6Jcp25FN36gRVs9XB1Op7XUpoo/6sAdt0cO3uZYLRUtwKB VkIAPNguzqbxkRBW7Ja1tKUf4= X-Received: by 2002:a17:907:2dab:b0:bc2:1f0e:3fab with SMTP id a640c23a62f3a-bc21f0e404bmr57267266b.24.1777826697714; Sun, 03 May 2026 09:44:57 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bc237ef8297sm27430566b.57.2026.05.03.09.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 09:44:57 -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 v5 1/6] dt-bindings: leds: Document TI LM3560 Synchronous Boost Flash Driver Date: Sun, 3 May 2026 19:44:40 +0300 Message-ID: <20260503164445.215540-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260503164445.215540-1-clamor95@gmail.com> References: <20260503164445.215540-1-clamor95@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 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..e79de4a57f83 --- /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: 62500 + maximum: 1000000 + led-max-microamp: + minimum: 31250 + maximum: 250000 + + - 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: 56250 + maximum: 900000 + led-max-microamp: + minimum: 28125 + maximum: 225000 + +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