From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 4EB95372EF3 for ; Sun, 19 Apr 2026 09:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776591278; cv=none; b=Ynr3dP+TAMVfoE62M0pljEg1zHvR3JJc3anHgSBd7XqpYNfBVeY6bf9tjm1xJNhG13gbzPDKk0du92N9vOelFAW+X0uQ6lNUV9Kq0sIQ2eFTMzxKjtsh4V8S08wjsT49KLSP3G8cfUOnh3ABpqMrOfIdodOCEFenPfr+EDjWCXs= 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.176 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-f176.google.com with SMTP id 38308e7fff4ca-38e9653b580so21221531fa.2 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=DqbqcKuKScHmjgTUCitIELcHvDlatKGq14p0/1+h3L8FkALQDi8wTxa28CCJ4SFrdj 1kDh9R55MceNj1j60nCFvGW9Ejdbw0n8vJlWRpjDPjQLqfx1XlTPZvpCTK50nYaKTRTj TywF+fenAE9X0xFVIjThEQ8d45ZLfdISWyKk+CRpYzJcsBCoGGhJjJE0FB7JsWjZgFcE UgcHthd2Yb6zXqgEYmx28BUS0lPhVssTwy6lVFWvteupPtQVquY7ksfIOPM8tziCxEIu Sprqu9QipmPSLDdtGxs9O3XnVoE4zWrb/SGPMV+60NhG5jY5rGUYu1Gm7JrnNVGEi0dT Is0w== X-Forwarded-Encrypted: i=1; AFNElJ+SrlG7e6P3CRK44j9m7rYMqojQCiOCwoKHBED79DDFP6SXmSzmuXIbc8nE6sOEJD0Esqt9gAG+tUp/HQ8=@vger.kernel.org X-Gm-Message-State: AOJu0YwQiUVwQbwVxPa8vsc9Om/s8uflO/1yi2mA8ubEf8Bk2hihRhYQ bnKDyru2TU1iUfvwHMeMeB4hpGE48/jrhlLeOppJlq2J6Ua1fcUht4rw X-Gm-Gg: AeBDieuwL2Ffz3vZQQCa/EABsYx84Llizs46hgS6l7WSIEep3F60Qy6x08fZhmmcslw X1di3zHRnQZxRF16qP8OlJMi2x/9zUozfxCxezd02HoDdwtPn1USUh29QHb/+MfARkMGl256mRH +ep0DrEdssdDj60o/FQThix2y2m4bBNYiCoZ/LkJysxZjKZNWyNhFBbBgdSesGR/701iBPaotgU 0Lg1amGCdSN2J8UT5n4UFFsyE/LwyeCi/+aAuZD/AjYLtFE2OrV8LV4co7qsSPJ6n3gTutjmL4u pQSxeYm3DYs3IUHOvhMKAiI3LWvITc8QqccUXpR+sbrqku0xWA4nAFpulggyciezzCl75KiVEOp alR5s1zNr9lFKe+YKFy63j1SsB+iAd7AtAnrALQmFrQycjHlZW10L4hKOsJYr2NAOe5s/ulHumA u0K0XBW23RtGT5+aV6jNn5E5o= 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: linux-kernel@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