-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: hwmon: Add lltc ltc4286 driver bindings
Add a device tree bindings for ltc4286 device. Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20231123015440.199822-2-Delphine_CC_Chiu@Wiwynn.com [groeck: Fixed path to ltc4286.rst] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
- Loading branch information
Delphine CC Chiu
authored and
Guenter Roeck
committed
Dec 12, 2023
1 parent
29a9ac6
commit 7707cf8
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/hwmon/lltc,ltc4286.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: LTC4286 power monitors | ||
|
||
maintainers: | ||
- Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- lltc,ltc4286 | ||
- lltc,ltc4287 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
adi,vrange-low-enable: | ||
description: | ||
This property is a bool parameter to represent the | ||
voltage range is 25.6 volts or 102.4 volts for this chip. | ||
The default is 102.4 volts. | ||
type: boolean | ||
|
||
shunt-resistor-micro-ohms: | ||
description: | ||
Resistor value micro-ohms. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
power-monitor@40 { | ||
compatible = "lltc,ltc4286"; | ||
reg = <0x40>; | ||
adi,vrange-low-enable; | ||
shunt-resistor-micro-ohms = <300>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters