From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 0C4D33DB319 for ; Mon, 15 Jun 2026 09:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781517115; cv=none; b=XJ3Xcb5zsF22FEsFZkFVM2eBFfY3Bb3PogWu5y/xCwo4wVGqmKe2DlAuQKRwhFrP+wPgZ3zG0QBlzYC7TFTTAZn9mWj2IWZNhwirFeF8F+RLYb5iiljfRsJOvCxQNiL0n0NM2UjxxhVJ4OBUzTDKVdEjstCufMKIWSUNcFuMKGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781517115; c=relaxed/simple; bh=HODmTcXqpkVz8upSr1TfFa4wg8vBwZE/zjgJ/idrByE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h3CuIjGx1s01sGRT8ALiExnelJFz0WVvH4EBQuJADidVD2UH9r21wngDG4ioRI/e7d890GPY0aDtxPJDJukTL0b8VuV/dDzlj9p9B+hvBlw2nZw1u2japkf57t90vL6yQC5mBIyQzLSmtptWWuaECZT/3M9kH2EypnhGVtK9ya4= 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=rOEMvekZ; arc=none smtp.client-ip=209.85.210.172 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="rOEMvekZ" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-8422f148dfcso1754298b3a.3 for ; Mon, 15 Jun 2026 02:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781517107; x=1782121907; 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=d/rIphLJeoUl7R3ABdw1JOIvV3ARmALyt+fJc+YgD7k=; b=rOEMvekZW+VYyyHeTkvaS4nbH9OZY663o6EfAms1hfRmJ9K8pVACcsRXU7CyfaSPGB 0o7fDFSKAxpFHnY5ifBwLlQ571E0kK6eVoAEwunlBrz2bE3Q58Wtx1xBjWEK7P1vtXf3 w0+q+UH7SohXOrKfFRuOICSpmks36IdoPT57hTK1XQ5/zAyauP/3JDrIu3hxLb1yh6DV Povi3WzLMjjNIwVGTVs1SXjFbb+q89HWQCeEZl6o66/KsC6mK7hn9ik8vPxl0PN1MQdG WwyZts9YDfJYz0qapUALIjnZ4yJ8Dmqnjc4OddsFG8QaGgPDUIY8TLp7YkG7zOC4S/4b 52Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781517107; x=1782121907; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=d/rIphLJeoUl7R3ABdw1JOIvV3ARmALyt+fJc+YgD7k=; b=VFUax/UZXZEKSoGxGk7KZrWcWPv6R6xR9vlI8ycCqG4OThruQ7DPcKT8UUetj03JdR KmzxGVakvjAMwV9GW80dcT077WkABlzaKUeM6trPJ077gPqEqWvNsOQ3ou7KaE9hMLKA Fk28u1QQbQ781THvKjGsiV3kBrEWhgFPCJYopNfoqpgDrLRuLEhfuIXFM3566TX+Dlr/ rURYyMGmsJA94ZLWeJLhx9zl4vSWwjpUeyhXPePm6Ap1OYJnLLWFP3hj+cpouGhwA/fq yUHNmuPfNkaRys//gpIT5ofRWQb3KQpCbWiSCnhsjYghsMZf+Wa+w3XlWEaBQ70Jss0Z ESbw== X-Forwarded-Encrypted: i=1; AFNElJ+pa6ZozMWOov5uog0QC+D0ECvn8M3OAz9FU+P07IIalH1UZohD75cDAickl7oT1FCZizOy9RnG/zFFNT0=@vger.kernel.org X-Gm-Message-State: AOJu0YyieDinjyjsJMmIN+v1YHWEu/ebCC4yq4F8+EzaZegMpRLXJuAi ky0sdjNMVtrIyTZOoGz/Rzz639M3+gLqQgLExHokRo9DtTrODr7ekD9P X-Gm-Gg: Acq92OHCsEqliigFNmPAyT39gHpaKv5Zg91CQgdXe1Ps1Mb3LFh71nnURuErtpBBv2m 0+LLeXZXRXgam+V8jjYx/qmpHNRV4c4e3pFTry2y4+42syXkkqx5+fUbhGAE9afdTxP2oMcutzL 16Yf8v4hBn57LoS7FjlBtMd2/5q4uefCE/EFFRzB8OkjobppK5BBNBji53DXa+w9rDJsgKRUZWa CRBUsI2wu9FVo0o0amD+IaZP0E1D1WqFynyWUApY78oZ27Zrp83oSmRMT3qX9hWPR+GYigUBnRQ 8iWRZRUvwrV4Y8Xe3UP7ytYcDinSs0FEg+pun0f0zIZ/kZytsjm5+I5Ycc+/97OmfGcktsHrRKL /WUi55uAlHkIssbW23i51Ow+dvUQC4W15MaEfOcP0h6oJtCvpfsf2PjuDW3yVyw+PK0SoT8bYjL 5oGs3ZIKZh0HcnVVwIzTLDE1kpLSDWVssYqfF46mHTmrbggTQAecqWuSMMP5bzO+V7WQ== X-Received: by 2002:a05:6a00:1993:b0:842:6004:3fd9 with SMTP id d2e1a72fcca58-8434cf1590fmr14616990b3a.29.1781517107309; Mon, 15 Jun 2026 02:51:47 -0700 (PDT) Received: from [10.10.15.228] (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8434afc8a5bsm9922207b3a.33.2026.06.15.02.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2026 02:51:46 -0700 (PDT) From: Potin Lai Date: Mon, 15 Jun 2026 17:49:16 +0800 Subject: [PATCH v3 1/2] dt-bindings: hwmon: pmbus: ti,lm25066: add current limit properties 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: 7bit Message-Id: <20260615-lm25066-cl-config-v3-1-decb4f5b0b77@gmail.com> References: <20260615-lm25066-cl-config-v3-0-decb4f5b0b77@gmail.com> In-Reply-To: <20260615-lm25066-cl-config-v3-0-decb4f5b0b77@gmail.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Zev Weiss Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Cosmo Chou , Mike Hsieh , Potin Lai , Potin Lai X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1781517101; l=1952; i=potin.lai.pt@gmail.com; s=20260522; h=from:subject:message-id; bh=HODmTcXqpkVz8upSr1TfFa4wg8vBwZE/zjgJ/idrByE=; b=7z8rPmUZMwcSfoOqG62nxNjTgm+lFLygOWMSLDLYp7uz6FWBBNI8fe3xR7e8erPbPoOuq2g3+ fdhumYCR2VFCTdegyQSO0MRCny+XZ/g7K6Vwn8b3J0nPAkg9383HH6N X-Developer-Key: i=potin.lai.pt@gmail.com; a=ed25519; pk=j3/nMxzz1ZPpp1revghyZ8IqOnwi6RWfuxXN2XrNMRE= Add a 'ti,current-range' string property to configure the device's Current Limit (CL) behavior to "high" or "low" via the register, overriding the physical CL pin setting. This configuration is supported on LM25066, LM5064, LM5066, and LM5066i. LM25056 is excluded because it does not support configuring the current limit via the DEVICE_SETUP register (bit 2 of DEVICE_SETUP is reserved). The values "low" and "high" map to the respective low/high threshold voltages of the chips: - LM25066: low = 25 mV, high = 46 mV - LM5064, LM5066, LM5066i: low = 26 mV, high = 50 mV Signed-off-by: Potin Lai --- .../devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml index a20f140dc79a..fe42daabaaa8 100644 --- a/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml +++ b/Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml @@ -46,12 +46,32 @@ properties: additionalProperties: false + ti,current-range: + description: | + Configure the current limit setting. When present, this property + overrides the hardware setting of the physical CL pin by configuring + the DEVICE_SETUP register. + - "low": maps to 25 mV (LM25066) or 26 mV (LM5064, LM5066, LM5066i) + - "high": maps to 46 mV (LM25066) or 50 mV (LM5064, LM5066, LM5066i) + $ref: /schemas/types.yaml#/definitions/string + enum: + - low + - high + required: - compatible - reg allOf: - $ref: /schemas/hwmon/hwmon-common.yaml# + - if: + properties: + compatible: + contains: + const: ti,lm25056 + then: + properties: + ti,current-range: false unevaluatedProperties: false -- 2.52.0