Commit e2dbaa65 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Guenter Roeck
Browse files

dt-bindings: hwmon: lltc,ltc4151: convert to dtschema



Convert the LTC4151 current and voltage sensor bindings to DT schema
format.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210921102832.143352-4-krzysztof.kozlowski@canonical.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 4c423789
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/lltc,ltc4151.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: LTC4151 High Voltage I2C Current and Voltage Monitor

maintainers:
  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

properties:
  compatible:
    const: lltc,ltc4151

  reg:
    maxItems: 1

  shunt-resistor-micro-ohms:
    description:
      Shunt resistor value in micro-Ohms
    default: 1000

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        sensor@6e {
            compatible = "lltc,ltc4151";
            reg = <0x6e>;
            shunt-resistor-micro-ohms = <1500>;
        };
    };
+0 −18
Original line number Diff line number Diff line
LTC4151 High Voltage I2C Current and Voltage Monitor

Required properties:
- compatible: Must be "lltc,ltc4151"
- reg: I2C address

Optional properties:
- shunt-resistor-micro-ohms
	Shunt resistor value in micro-Ohms
	Defaults to <1000> if unset.

Example:

ltc4151@6e {
	compatible = "lltc,ltc4151";
	reg = <0x6e>;
	shunt-resistor-micro-ohms = <1500>;
};