From nobody Wed Dec 17 17:44:49 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 460BF2DAFAE for ; Thu, 2 Oct 2025 09:20:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759396828; cv=none; b=auWje16XOR/D1VeFt5ESZ0ONmoIPsT9gLbIQNSeEAH8oJQizulR3UbvurOPSRIKYQFlGcDNJBDRtKy5af45Ju2e2R4RyuS/HgAYwslsBa0TdYB/Pxm3cI7gidAaLofhxAI2vRAatZrZKYxfIAWtkEtpZ2cXaxkkPwOyB29zEgP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759396828; c=relaxed/simple; bh=p/CzlvHEnIHNvjR2z9r9G+Y/GwV0LJ8ph30ZwmlnMSY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rd3frlJf2yp28g8LjujRt/8T0cM+BJzTq+gHa2+FEw5Xc+7IjvGuzQeVAAa0yGEdFrD8HsP1SqkLTYAFlx4kpO5FhIbcRjCbhQi+a8QurfTNJeeE6KgwRdVrW0WylCcW49fhYuIhOjG9wuOhuVlVkgzxwxPbzkiK76GqF3p1xJE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thegoodpenguin.co.uk; spf=pass smtp.mailfrom=thegoodpenguin.co.uk; dkim=pass (2048-bit key) header.d=thegoodpenguin-co-uk.20230601.gappssmtp.com header.i=@thegoodpenguin-co-uk.20230601.gappssmtp.com header.b=HL3zqh1G; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thegoodpenguin.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thegoodpenguin.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thegoodpenguin-co-uk.20230601.gappssmtp.com header.i=@thegoodpenguin-co-uk.20230601.gappssmtp.com header.b="HL3zqh1G" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-46e42fa08e4so6591835e9.3 for ; Thu, 02 Oct 2025 02:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thegoodpenguin-co-uk.20230601.gappssmtp.com; s=20230601; t=1759396822; x=1760001622; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6Zhldjp2yNaFyJXBTXpmr+HFpUJDsMOIwtutBNnd19s=; b=HL3zqh1Gp6PYLlMx7UegozuhMXecrDuAvYeABpkMpPw822uQyq69UCdbV/MYsa0fE1 QUST/COOTTCj5LJEzwtz7S/wG1aNunJgjqwAVYyolDsvCVLsZn7Rjvw8I9lcydFrakW3 +oRDcGWN3DdoKPVBPHQQccoqpFH52Mz3hT/Bt4BeVOhUg9Ktl12cyxCFEyJRuOYyddiB nZq2Amc5ApzVhHXAmmNl9+49T+Gt+YQ438RgV/eXQrEZNhVBGDHDkXYawY9qZNexGMu5 dp8gr+4Ow2jdPYDzjmJAy/3gwOgvJARAfcfcl31XT04z352FQLhJ61IU1vYqqs3gqWvM e9nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759396822; x=1760001622; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6Zhldjp2yNaFyJXBTXpmr+HFpUJDsMOIwtutBNnd19s=; b=mDYNlhde61+uP8MXjvf4sAVwpPnvgmsRKKaSUGKGKchONq7g0kP0U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OTvm4mBoHvvqmd1eud2oD5Tw== X-Received: by 2002:a05:600c:c162:b0:46e:2562:e7b8 with SMTP id 5b1f17b1804b1-46e612be8b7mr41206015e9.21.1759396822249; Thu, 02 Oct 2025 02:20:22 -0700 (PDT) Received: from [127.0.1.1] ([2a02:c7c:8a3e:8c00:3430:5fdd:d596:adae]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e6918bdebsm28958795e9.9.2025.10.02.02.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Oct 2025 02:20:22 -0700 (PDT) From: Harrison Carter Date: Thu, 02 Oct 2025 10:20:16 +0100 Subject: [PATCH 2/2] dt-bindings: leds: ti,lm3601x: Convert to DT Schema 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: <20251002-ti-leds-to-dt-v1-2-1604ae333479@thegoodpenguin.co.uk> References: <20251002-ti-leds-to-dt-v1-0-1604ae333479@thegoodpenguin.co.uk> In-Reply-To: <20251002-ti-leds-to-dt-v1-0-1604ae333479@thegoodpenguin.co.uk> To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dan Murphy Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Harrison Carter X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1759396820; l=4722; i=hcarter@thegoodpenguin.co.uk; s=20250904; h=from:subject:message-id; bh=p/CzlvHEnIHNvjR2z9r9G+Y/GwV0LJ8ph30ZwmlnMSY=; b=wsaWlczGN2Oo1pP32CuKIimm+jmjpTFON+MfTe4/22Mi2YdFJA/9D+PuBnZo1+rWMoeXSWIc6 mNScIWa/KXcDrGp0ZjHXW394A4WaD8+hKJgP5s+gUDvuOmFezQcltLG X-Developer-Key: i=hcarter@thegoodpenguin.co.uk; a=ed25519; pk=xn5ghTMMWQniDtZih4xwKCTAaBHDozflTmqNKtaKo6s= Converts the ti,lm36010 and ti,lm36011 txt to dt schema Signed-off-by: Harrison Carter --- .../devicetree/bindings/leds/leds-lm3601x.txt | 51 ----------- .../devicetree/bindings/leds/ti,lm3601x.yaml | 100 +++++++++++++++++= ++++ 2 files changed, 100 insertions(+), 51 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lm3601x.txt b/Docu= mentation/devicetree/bindings/leds/leds-lm3601x.txt deleted file mode 100644 index 17e940025dc26213314f5cfd54aa8e5bb09f86b7..000000000000000000000000000= 0000000000000 --- a/Documentation/devicetree/bindings/leds/leds-lm3601x.txt +++ /dev/null @@ -1,51 +0,0 @@ -* Texas Instruments - lm3601x Single-LED Flash Driver - -The LM3601X are ultra-small LED flash drivers that -provide a high level of adjustability. - -Required properties: - - compatible : Can be one of the following - "ti,lm36010" - "ti,lm36011" - - reg : I2C slave address - - #address-cells : 1 - - #size-cells : 0 - -Required child properties: - - reg : 0 - Indicates a IR mode - 1 - Indicates a Torch (white LED) mode - -Required properties for flash LED child nodes: - See Documentation/devicetree/bindings/leds/common.txt - - flash-max-microamp : Range from 11mA - 1.5A - - flash-max-timeout-us : Range from 40ms - 1600ms - - led-max-microamp : Range from 2.4mA - 376mA - -Optional child properties: - - function : see Documentation/devicetree/bindings/leds/common.txt - - color : see Documentation/devicetree/bindings/leds/common.txt - - label : see Documentation/devicetree/bindings/leds/common.txt (deprecat= ed) - -Example: - -#include - -led-controller@64 { - compatible =3D "ti,lm36010"; - #address-cells =3D <1>; - #size-cells =3D <0>; - reg =3D <0x64>; - - led@0 { - reg =3D <1>; - function =3D LED_FUNCTION_TORCH; - color =3D ; - led-max-microamp =3D <376000>; - flash-max-microamp =3D <1500000>; - flash-max-timeout-us =3D <1600000>; - }; -} - -For more product information please see the links below: -https://www.ti.com/product/LM36010 -https://www.ti.com/product/LM36011 diff --git a/Documentation/devicetree/bindings/leds/ti,lm3601x.yaml b/Docum= entation/devicetree/bindings/leds/ti,lm3601x.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d7d8ee44d6fe37d13ee84888c58= 11df3e15a5d02 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/ti,lm3601x.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/ti,lm3601x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments - lm3601x Single-LED Flash Driver + +description: | + The LM3601X are ultra-small LED flash drivers + that provide a high level of adjustability. + + For more product information please see the links below: + https://www.ti.com/product/LM36010 + https://www.ti.com/product/LM36011 + +maintainers: + - Dan Murphy + +properties: + compatible: + enum: + - "ti,lm36010" + - "ti,lm36011" + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "^led@[0,1]?([0-9]|[a-z])$": + type: object + $ref: common.yaml# + properties: + reg: + description: | + 0 - Indicates IR mode + 1 - Indicates Torch (white LED) mode + minimum: 0 + maximum: 1 + + flash-max-microamp: + minimum: 11 + maximum: 1500000 + + flash-max-timeout-us: + minimum: 40 + maximum: 1600000 + + led-max-microamp: + minimum: 24 + maximum: 376000 + + required: + - reg + - flash-max-microamp + - flash-max-timeout-us + - led-max-microamp + + unevaluatedProperties: true + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + led-controller@64 { + compatible =3D "ti,lm36010"; + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x64>; + + led@1 { + reg =3D <1>; + function =3D LED_FUNCTION_TORCH; + color =3D ; + led-max-microamp =3D <376000>; + flash-max-microamp =3D <1500000>; + flash-max-timeout-us =3D <1600000>; + }; + }; + }; +... + --=20 2.51.0