-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for LT8491 #2639
base: main
Are you sure you want to change the base?
Add support for LT8491 #2639
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/power/supply/adi,lt8491.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Linear Technology (Analog Devices) LT8491 Battery Charger | ||
|
||
maintainers: | ||
- John Erasmus Mari Geronimo <[email protected]> | ||
|
||
description: | | ||
The LT8491 is a buck-boost switching regulator battery charger that implements | ||
a constant-current constant-voltage (CCCV) charging profile used for most | ||
battery types, including sealed lead-acid (SLA), flooded, gel and lithium-ion. | ||
|
||
Specifications about the charger can be found at: | ||
https://www.analog.com/en/products/lt8491.html | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- adi,lt8491 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
adi,rsense1-micro-ohms: | ||
description: Resistance value of RSENSE1 in micro ohms. | ||
|
||
adi,rimon-out-ohms: | ||
description: Resistance value of RIMON_OUT in ohms. | ||
|
||
adi,rsense2-micro-ohms: | ||
description: Resistance value of RSENSE2 in micro ohms. | ||
|
||
adi,rdaco-ohms: | ||
description: Resistance value of RDACO1 + RDACO2 in ohms. | ||
|
||
adi,rfbout1-ohms: | ||
description: Resistance value of RFBOUT1 in ohms. | ||
|
||
adi,rfbout2-ohms: | ||
description: Resistance value of RFBOUT2 in ohms. | ||
|
||
adi,rdaci-ohms: | ||
description: Resistance value of RDACI1 + RDACI2 in ohms. | ||
|
||
adi,rfbin2-ohms: | ||
description: Resistance value of RFBIN2 in ohms. | ||
|
||
adi,rfbin1-ohms: | ||
description: Resistance value of RFBIN1 in ohms. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- adi,rsense1-micro-ohms | ||
- adi,rimon-out-ohms | ||
- adi,rsense2-micro-ohms | ||
- adi,rdaco-ohms | ||
- adi,rfbout1-ohms | ||
- adi,rfbout2-ohms | ||
- adi,rdaci-ohms | ||
- adi,rfbin2-ohms | ||
- adi,rfbin1-ohms | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to make sure. Are all these properties really mandatory? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. These are needed for the measurements of telemetry data such as temperature, voltage, current, and power. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, it seems they are... |
||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
battery-charger@10 { | ||
compatible = "adi,lt8491"; | ||
reg = <0x10>; | ||
adi,rsense1-micro-ohms = <5000>; | ||
adi,rimon-out-ohms = <124000>; | ||
adi,rsense2-micro-ohms = <3000>; | ||
adi,rdaco-ohms = <64900>; | ||
adi,rfbout1-ohms = <113000>; | ||
adi,rfbout2-ohms = <10000>; | ||
adi,rdaci-ohms = <7000>; | ||
adi,rfbin2-ohms = <3480>; | ||
adi,rfbin1-ohms = <102000>; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any constrains for the resistor values (or default values)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the actual resistor values used in the circuit/PCB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And do you need all of them for the driver to work? Very odd that you can just arbitrary values in these things. At the very least, 0 should not be possible...