mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 11:53:41 +00:00

Reference common hwmon schema in the bindings which have and customize the "shunt-resistor-micro-ohms" property. While this does not make the binding smaller, it brings common definition of that property and also allows generic "label" (parsed by Linux hwmon core code). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240224-dt-bindings-hwmon-common-v2-5-b446eecf5480@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/hwmon/pmbus/ti,lm25066.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: National Semiconductor/Texas Instruments LM250x6/LM506x power-management ICs
|
|
|
|
maintainers:
|
|
- Zev Weiss <zev@bewilderbeest.net>
|
|
|
|
description: |
|
|
The LM25066 family of power-management ICs (a.k.a. hot-swap
|
|
controllers or eFuses in various contexts) are PMBus devices that
|
|
offer temperature, current, voltage, and power monitoring.
|
|
|
|
Datasheet: https://www.ti.com/lit/ds/symlink/lm25066.pdf
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- ti,lm25056
|
|
- ti,lm25066
|
|
- ti,lm5064
|
|
- ti,lm5066
|
|
- ti,lm5066i
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
shunt-resistor-micro-ohms:
|
|
description:
|
|
Shunt (sense) resistor value in micro-Ohms
|
|
default: 1000
|
|
|
|
regulators:
|
|
type: object
|
|
|
|
properties:
|
|
vout:
|
|
$ref: /schemas/regulator/regulator.yaml#
|
|
type: object
|
|
|
|
unevaluatedProperties: false
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
allOf:
|
|
- $ref: /schemas/hwmon/hwmon-common.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pmic@40 {
|
|
compatible = "ti,lm25066";
|
|
reg = <0x40>;
|
|
shunt-resistor-micro-ohms = <675>;
|
|
};
|
|
};
|