From nobody Tue Dec 16 21:12:47 2025 Received: from lx20.hoststar.hosting (lx20.hoststar.hosting [168.119.41.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67E0F254AE6; Fri, 28 Feb 2025 10:48:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.41.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740739717; cv=none; b=mTr8N59RjHPFKkMhlBonU9Rt0MWvt/IjHQ/YioHYRxivb2SNHh32Z6M4fXU8NG0mz6OsjnGhXCujh3turEIJGnGXII+DObxD3guK+hMR6mJQd/dkCOD//9+bC41ZkxmgMgCQyraJXzRIKDQTMKTpgcvSxmMy0IMaqq/bHTkyrV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740739717; c=relaxed/simple; bh=Lkr98+j8e6uZ7EaeQxen/k1uFuQao3EzZ/bsAvEKfgM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tdt1/xCh1MirmEajIU7zdZfEqxV+YUrMR+L2Ear9Mi0WCkJjsURwtpsoY78S/LXLvHELKMDy8V42aI3g7f3zPegyMMm2s7o6pXdkBrSCGbkDtos4KnBMkJPi6I1fj4uPU4kxOhjUGgG3ao9lWvdvDdLQ4s6g7DlOfuq9NIMegMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=emfend.at; spf=pass smtp.mailfrom=emfend.at; dkim=pass (1024-bit key) header.d=emfend.at header.i=@emfend.at header.b=F3+QLMH/; arc=none smtp.client-ip=168.119.41.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=emfend.at Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=emfend.at Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=emfend.at header.i=@emfend.at header.b="F3+QLMH/" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=emfend.at; s=mail; h=Cc:To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZYyDAwDnX/ZSr9OBTEf9DBoZeTxH5uzvRHwMSrNv43A=; b=F3+QLMH/xgFo0BTjvB+ZO885V5 z37s6XxxCJHH75uZpjA9RoP0Qpc0wNVQtgpoHOJ0QIvLeapleJrdnI9xfL5pqwpG/gvC/yGgvkOib 7DxFjHMk15s9uOJwqzLqIa0s+w5EajDtNZHAFmye5Y4yMz1pqGtkCzGYQSw7w9V3KJvM=; Received: from 194-208-208-245.tele.net ([194.208.208.245]:63536 helo=[127.0.1.1]) by lx20.hoststar.hosting with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1tnxed-00Dtva-K9; Fri, 28 Feb 2025 11:31:40 +0100 From: Matthias Fend Date: Fri, 28 Feb 2025 11:31:23 +0100 Subject: [PATCH 1/2] dt-bindings: leds: add Texas Instruments TPS6131x flash LED driver Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250228-leds-tps6131x-v1-1-d1071d90f9ea@emfend.at> References: <20250228-leds-tps6131x-v1-0-d1071d90f9ea@emfend.at> In-Reply-To: <20250228-leds-tps6131x-v1-0-d1071d90f9ea@emfend.at> To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Fend , bsp-development.geo@leica-geosystems.com X-Mailer: b4 0.14.2 X-Spam-Score: -1.0 X-Spam-Bar: - X-Spam-Report: Spam detection software, running on the system "lx20.hoststar.hosting", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The TPS61310/TPS61311 is a flash LED driver with I2C interface. Its power stage is capable of supplying a maximum total current of roughly 1500mA. The TPS6131x provides three constant-current sinks, c [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address 0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict Alignment Document Texas Instruments TPS61310/TPS61311 flash LED driver devicetree bindings. Signed-off-by: Matthias Fend Reviewed-by: Conor Dooley --- .../devicetree/bindings/leds/ti,tps6131x.yaml | 123 +++++++++++++++++= ++++ 1 file changed, 123 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/ti,tps6131x.yaml b/Docu= mentation/devicetree/bindings/leds/ti,tps6131x.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c08b3cef7abcec07237d3271456= ff1f888b2b809 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/ti,tps6131x.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/ti,tps6131x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TPS6131X flash LED driver + +maintainers: + - Matthias Fend + +description: | + The TPS61310/TPS61311 is a flash LED driver with I2C interface. + Its power stage is capable of supplying a maximum total current of rough= ly 1500mA. + The TPS6131x provides three constant-current sinks, capable of sinking + up to 2 =C3=97 400mA (LED1 and LED3) and 800mA (LED2) in flash mode. + In torch mode, each sink (LED1, LED2, LED3) supports currents up to 175m= A. + + The data sheet can be found at: + https://www.ti.com/lit/ds/symlink/tps61310.pdf + +properties: + compatible: + enum: + - ti,tps61310 + - ti,tps61311 + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reset-gpios: + maxItems: 1 + description: GPIO connected to NRESET pin + + ti,valley-current-limit: + type: boolean + description: + Reduce the valley peak current limit from 1750mA to 1250mA (TPS61310= ) or + from 2480mA to 1800mA (TPS61311). + + led: + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + led-sources: + allOf: + - minItems: 1 + maxItems: 3 + items: + enum: [1, 2, 3] + + led-max-microamp: + anyOf: + - minimum: 25000 + maximum: 350000 + multipleOf: 50000 + - minimum: 25000 + maximum: 525000 + multipleOf: 25000 + + flash-max-microamp: + anyOf: + - minimum: 25000 + maximum: 800000 + multipleOf: 50000 + - minimum: 25000 + maximum: 1500000 + multipleOf: 25000 + + flash-max-timeout-us: + enum: [ 5300, 10700, 16000, 21300, 26600, 32000, 37300, 68200, 715= 00, + 102200, 136300, 170400, 204500, 340800, 579300, 852000 ] + + required: + - led-sources + - led-max-microamp + - flash-max-microamp + - flash-max-timeout-us + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + - led + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + led-controller@33 { + compatible =3D "ti,tps61310"; + reg =3D <0x33>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + reset-gpios =3D <&gpio1 0 GPIO_ACTIVE_LOW>; + + tps61310_flash: led { + function =3D LED_FUNCTION_FLASH; + color =3D ; + led-sources =3D <1>, <2>, <3>; + led-max-microamp =3D <525000>; + flash-max-microamp =3D <1500000>; + flash-max-timeout-us =3D <852000>; + }; + }; + }; --=20 2.34.1