From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 48ADC3290DB for ; Sun, 19 Apr 2026 09:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776591278; cv=none; b=NL3ES8SphiykytQ9C3zJWM5zXQhJySzg4hE5CBdCgrkE/hUPfuzqEyT1JG30CpSw/tBsbabi+Aoza5jdyl9NynjXS4LrT7hxC82sLDgvxAZduFnRxuJjwlP7XQsQoXJuyg0AeuBcxu9Sy8RmDZFp46hN+jYL9VyOr42BvSowKjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776591278; c=relaxed/simple; bh=BK0hEglzpcSXJd/OKj+ViYaIq6REZlgwXiNFnkXSX+E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OZbMD3X5sra6rXxXyjvNYDYZTeRfHL6ayU3mDQjGSgoT87+zR81WaVEmi7iw3a9odfHe0Ycn13Jb7uxdKidGgt5iFnIP+pqF0lr+bm2ppLWYkBFxr++7wNmk3XoplnWrqCsJdbIunjCN+d/xN39NM1V6UHQUi2yKYzbBg2rD4Nk= 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=Dfxa+x+T; arc=none smtp.client-ip=209.85.208.179 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="Dfxa+x+T" Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-38df1889fb9so19848681fa.1 for ; Sun, 19 Apr 2026 02:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776591275; x=1777196075; 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=6tC+sS2x5WFciQYjGn4heKGQVAU6/El17ETWgsL8Nkk=; b=Dfxa+x+TFYxbRiPLvAOSDD5gQyWf3Neo7Fhoy7DC0EKqY8Ls5R+P/M73cNpDV6Indo nEvpzVuqnaE+PsJckN3iDmttByc1zcAR7brI+Gsl9X6LEF2lv46rtbV78ajhBW/o8V4g qNOywOdrgjhtZjhRAEF7RGlOXAxeVlmfsRnf41uhivjLFSAtIrNsA82MDN2BKhwsFYJC d/PQ7hF0DN3wvkaN25HFgecAbSN5BZSMHD6SCVE//Rg3x3Mope9cccngwrYlGx9oiSuN J4QQEPTtBo1jpxbkxfeQmoD4g5R9P7pxwHfEKmfpqzg0/qx5NAPSTsD0A4VBOyYDnvt9 6dMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776591275; x=1777196075; 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=6tC+sS2x5WFciQYjGn4heKGQVAU6/El17ETWgsL8Nkk=; b=opTU7egGgWLW+7S8xIre5I/Iayk7WtwWFdZ9+nAZT8i+oEKQnb5jty8KJQhggoVIim jTlhEu2h+YpOYLgoSR+HG3G5gnGrkCmkvWNLM8y/+97s8ncFDrMaXFZEgkgUAnjjLsIR 7cyrgv+aQEYkCIR4hAGI4lL34ZXfYNzLfBgYWzgVSfy2I8BPwlB9672O6zYpgSkfbvtQ d3IMYyV4QjLnRRJDV3gJxP79TrgYY8PF+M7LyxLudPoNeAI9A0kYnHWbJDxeTbyjYyaf Rlm8Vw3Abrt0OSSFQQoQ4SfP4iTfmPQXC4VRWRf4YMTrPU+HxO9e3KWQtvOcZTdFZGYO SjpQ== X-Forwarded-Encrypted: i=1; AFNElJ8Cx3zD82hXuTfQ+rLjrBgeizxuF23Otk/48CaSPbqvj3DE+i/jo6tE7+HiSe8jdWdX0argOcPBGa3Z@vger.kernel.org X-Gm-Message-State: AOJu0YwEnw8O4Kp1hV2fvOVIoHJ0jWnJrUum7LWPX4DPMrEqsSWF1lsj 7k5A9iGPyAX7JWsfuW23WRMwBVEJusWUHP1+G7dfyA5cq8IZH4oaz9Md X-Gm-Gg: AeBDietiQMaBh45juCoKbRjQB7GTJvHDTooeyfZUTCa8G9UMWh0KloYdK5oKPq2geqo rmIdHkCzVxoOlw2CJoY9rDwySEX7vTtMjMPR3qnZOLWBnsb74mdhWd2CtrfdgjFOO6MPo8vaKT/ EdGfLbUkKIt74l8lYju2GyqFgPBJysugTwHLH780JA6Zli+ZEvT4Sp1krl3p4WlF9FjAMh1NjfN +ulRXvW9/dCUciKKJh07VObMfjTOvqfLApHp0fWtZIKMdX8LoW3+/XGxBBUMBnBYF3/n71f/E+x Z6a7g0kkJq/nwyT+SRzDrqLGXMc2hwGgwYiTyoDD6UpvkW3QUEGnIm37r2kZ0ZvNQQb+4H5POAI K35iisTiXTyBUGosWv7qhFQ8JmWoi7W/9A4S1pBut7kr2XWVOAYtJUeEsifGFeatMN4WWMQF+wv qDhy++lwaQbVR06svcxuG7gQQ= X-Received: by 2002:a2e:a549:0:b0:38e:1ebe:95f6 with SMTP id 38308e7fff4ca-38ec7b2a3camr30908711fa.28.1776591275270; Sun, 19 Apr 2026 02:34:35 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-38ecb7613a9sm18221671fa.41.2026.04.19.02.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2026 02:34:34 -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 v2 1/5] dt-bindings: leds: Document TI LM3560 Synchronous Boost Flash Driver Date: Sun, 19 Apr 2026 12:34:08 +0300 Message-ID: <20260419093412.40796-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260419093412.40796-1-clamor95@gmail.com> References: <20260419093412.40796-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 LM3560 Synchronous Boost Flash Driver used for camera flash LEDs. 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