* [PATCH 1/2] dt-bindings: power: supply: ltc3350-charger: Add bindings [not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.3bc97c8f-843d-4e46-84f9-469b7ba2489d@emailsignatures365.codetwo.com> @ 2024-04-08 6:49 ` Mike Looijmans 2024-04-09 8:27 ` Krzysztof Kozlowski 0 siblings, 1 reply; 3+ messages in thread From: Mike Looijmans @ 2024-04-08 6:49 UTC (permalink / raw) To: linux-pm Cc: Mike Looijmans, Conor Dooley, Krzysztof Kozlowski, Rob Herring, Sebastian Reichel, devicetree, linux-kernel The LTC3350 is a backup power controller that can charge and monitor a series stack of one to four supercapacitors. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> --- .../bindings/power/supply/ltc3350.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/ltc3350.yaml diff --git a/Documentation/devicetree/bindings/power/supply/ltc3350.yaml b/Documentation/devicetree/bindings/power/supply/ltc3350.yaml new file mode 100644 index 000000000000..607a62fd25ba --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/ltc3350.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2024 Topic Embedded Products +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/ltc3350.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Linear Technology (Analog Devices) LTC3350 Supercap Charger + +maintainers: + - Mike Looijmans <mike.looijmans@topic.nl> + +description: | + The LTC3350 is a High Current Supercapacitor Backup Controller and System + Monitor. + Specifications about the charger can be found at: + https://www.analog.com/en/products/ltc3350.html + +properties: + compatible: + enum: + - lltc,ltc3350 + + reg: + maxItems: 1 + description: I2C address of the charger. + + lltc,rsnsc-micro-ohms: + description: Capacitor charger sense resistor in microohm. + minimum: 1000 + + lltc,rsnsi-micro-ohms: + description: Input current sense resistor in microohm. + minimum: 1000 + +required: + - compatible + - reg + - lltc,rsnsc-micro-ohms + - lltc,rsnsi-micro-ohms + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + charger: battery-charger@9 { + compatible = "lltc,ltc3350"; + reg = <0x9>; + lltc,rsnsc-micro-ohms = <10000>; + lltc,rsnsi-micro-ohms = <10000>; + }; + }; -- 2.34.1 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: mike.looijmans@topic.nl W: www.topic.nl Please consider the environment before printing this e-mail ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] dt-bindings: power: supply: ltc3350-charger: Add bindings 2024-04-08 6:49 ` [PATCH 1/2] dt-bindings: power: supply: ltc3350-charger: Add bindings Mike Looijmans @ 2024-04-09 8:27 ` Krzysztof Kozlowski 2024-04-09 12:34 ` Mike Looijmans 0 siblings, 1 reply; 3+ messages in thread From: Krzysztof Kozlowski @ 2024-04-09 8:27 UTC (permalink / raw) To: Mike Looijmans, linux-pm Cc: Conor Dooley, Krzysztof Kozlowski, Rob Herring, Sebastian Reichel, devicetree, linux-kernel On 08/04/2024 08:49, Mike Looijmans wrote: > The LTC3350 is a backup power controller that can charge and monitor > a series stack of one to four supercapacitors. > > Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> > --- > > .../bindings/power/supply/ltc3350.yaml | 55 +++++++++++++++++++ Missing vendor prefix, use compatible as filename. > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/ltc3350.yaml > > diff --git a/Documentation/devicetree/bindings/power/supply/ltc3350.yaml b/Documentation/devicetree/bindings/power/supply/ltc3350.yaml > new file mode 100644 > index 000000000000..607a62fd25ba > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/ltc3350.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (C) 2024 Topic Embedded Products > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/ltc3350.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Linear Technology (Analog Devices) LTC3350 Supercap Charger > + > +maintainers: > + - Mike Looijmans <mike.looijmans@topic.nl> > + > +description: | > + The LTC3350 is a High Current Supercapacitor Backup Controller and System Just one space after 'a'. > + Monitor. > + Specifications about the charger can be found at: > + https://www.analog.com/en/products/ltc3350.html > + > +properties: > + compatible: > + enum: > + - lltc,ltc3350 > + > + reg: > + maxItems: 1 > + description: I2C address of the charger. Drop description, it is obvious. > + > + lltc,rsnsc-micro-ohms: > + description: Capacitor charger sense resistor in microohm. > + minimum: 1000 > + > + lltc,rsnsi-micro-ohms: > + description: Input current sense resistor in microohm. > + minimum: 1000 Looks like it is shunt-resistor-micro-ohms. Unless it is something different? > + > +required: > + - compatible > + - reg > + - lltc,rsnsc-micro-ohms > + - lltc,rsnsi-micro-ohms > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + charger: battery-charger@9 { > + compatible = "lltc,ltc3350"; Messed indentation. Keep it consistent. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] dt-bindings: power: supply: ltc3350-charger: Add bindings 2024-04-09 8:27 ` Krzysztof Kozlowski @ 2024-04-09 12:34 ` Mike Looijmans 0 siblings, 0 replies; 3+ messages in thread From: Mike Looijmans @ 2024-04-09 12:34 UTC (permalink / raw) To: Krzysztof Kozlowski, linux-pm Cc: Conor Dooley, Krzysztof Kozlowski, Rob Herring, Sebastian Reichel, devicetree, linux-kernel Thanks for your feedback. Will fix them all, except see below. I'll send a v2 On 09-04-2024 10:27, Krzysztof Kozlowski wrote: ... >> + >> + lltc,rsnsc-micro-ohms: >> + description: Capacitor charger sense resistor in microohm. >> + minimum: 1000 >> + >> + lltc,rsnsi-micro-ohms: >> + description: Input current sense resistor in microohm. >> + minimum: 1000 > Looks like it is shunt-resistor-micro-ohms. Unless it is something > different? It's a shunt, but different and there's two of them (akin to the ltc4162-l which has the same property with the same meaning). One to measure input, one to measure charge current. When the datasheet talks about "shunt" it means the resistor that can be used to balance or discharge the caps. So I'd rather avoid the word completely so users aren't tempted to put the wrong resistor value there. The datasheet uses "rsnsi" and "rsnsc" whenever referring to these resistors. ... -- Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: mike.looijmans@topic.nl W: www.topic.nl ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-09 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.3bc97c8f-843d-4e46-84f9-469b7ba2489d@emailsignatures365.codetwo.com>
2024-04-08 6:49 ` [PATCH 1/2] dt-bindings: power: supply: ltc3350-charger: Add bindings Mike Looijmans
2024-04-09 8:27 ` Krzysztof Kozlowski
2024-04-09 12:34 ` Mike Looijmans
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox