From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 8C81D366553 for ; Sun, 3 May 2026 16:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777826701; cv=none; b=r9z0uihAo4Wm4iS0J8P573LfmGAoKlv1yIZA3w8ONwR8Tu5c+O4yVuyjETAZl7HEHpnvVq9ADzFnoMU3vpXAgj+CFCgwTxtcE7kl9QMDBC8nYxIVxZa6dnTUE/uqOF4ALq8SWSTpyF/4ZLryQATukVP/Kq9awqhwvB64sec4+rw= 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.50 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-f50.google.com with SMTP id a640c23a62f3a-bc1f0f48351so46714166b.1 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=lpe2TvCvStj1TXOIESOMlYFDF0AdsA8zZzCKIgvlAVE5/e6iX+spVNIUnjUVxN1S+W Ny6fYq12H4JiZJB+gmVrey8pDB7NuCHxTt2FrMGZeVRu61TDmnn5HSGHaZncI9FAiEyA 28flJyeMa/HLAI6BViXayWYotTh4ykmZXkU6bc7XW7HTu0a2h9r/MbxyUi5IGsKYa/uL JcN2pdPccOgEdmXYUg3Xwavd0fjV32wWgN9J2R0dEZa9opdcMkqKMyuaJDZez9JAMn/u wgSnM6tiiGUgkUZxYeWyWbU3oA9B/KWC1zFOgis8KkepZtiolqiiN9H05yKLWN3aLAq6 aZkQ== X-Forwarded-Encrypted: i=1; AFNElJ+QH0GaWfnfBU/YZZ2yERw+sz+d58fItv0SyYbfmwcOTxTxwOvTSydzejfyZbSDCL6LvRSXhPzPwCfNi4c=@vger.kernel.org X-Gm-Message-State: AOJu0YwvfFlATJJfNiCen9tiYnbutlcDoDyzoTHrOGuYmQsAANNVgxzu ej+s8RmbguWQ0oC2WCX33da/VTpmluX7PSzHLWtQ1tXa4pCNUqXOFZm/ X-Gm-Gg: AeBDievlQsV4wlcYKEhgx1plTb+lnwZqDasXbGKfXAhpbJ0Z5xnm+zwCAARLbQ8nlTU VUTJL0cKlJgnUOjn0+vFH6EV4BB6LOdUEUSPmGiMyCjDOMHjoxSbWcs0f55u8ln6MXeP4zGWT+K gOe+aLqynQt0m3tnyVtEpAqeDhCYYdMmf2XBNtdb/LJAxmjSfSjDyDDNq80uWmmZSfYFk5A5Rhl p4SG0g56DHiY46TJp7T9hXgjWO77bFvjnhWt4+bcFRqgsBpiV7+3scCLiQwSKc8LKILbqclpZWD nVfDo7sXRDmGtcvODfnDDRXNo1vLNJoGQGfshCWfER3eR9INeZwOcKMcIU+M9viBeykospasBr7 7o8ngeRp3EzO/VAoAP/ZvtUJ3rFyQclnNDUKhU4xIRHv7RDrBMUVWlXNC7agUBZ5F5W8Zbe2his 8GO1cQivy8bcSFJS1uVRscojM= 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: 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..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