mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
dt-bindings: hwmon: pmbus: ti,lm25066: add current limit properties
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 <potin.lai.pt@gmail.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20260615-lm25066-cl-config-v3-1-decb4f5b0b77@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
efd053e3f6
commit
47afef9f4c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user