From: Dan Murphy <dmurphy@ti.com>
To: Rob Herring <robh@kernel.org>,
Ricardo Rivera-Matos <r-rivera-matos@ti.com>
Cc: <sre@kernel.org>, <linux-pm@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 1/2] dt-bindings: power: Add the bq256xx dt bindings
Date: Tue, 18 Aug 2020 11:56:05 -0500 [thread overview]
Message-ID: <3928a95f-1f60-5f0f-2cfa-ab9b40038003@ti.com> (raw)
In-Reply-To: <20200818164305.GB3586878@bogus>
Rob
On 8/18/20 11:43 AM, Rob Herring wrote:
> On Mon, Aug 17, 2020 at 02:17:22PM -0500, Ricardo Rivera-Matos wrote:
>> Add the bindings for the bq256xx series of battery charging ICs.
>>
>> Datasheets:
>> - https://www.ti.com/lit/ds/symlink/bq25600.pdf
>> - https://www.ti.com/lit/ds/symlink/bq25601.pdf
>> - https://www.ti.com/lit/ds/symlink/bq25600d.pdf
>> - https://www.ti.com/lit/ds/symlink/bq25601d.pdf
>> - https://www.ti.com/lit/ds/symlink/bq25611d.pdf
>> - https://www.ti.com/lit/ds/symlink/bq25618.pdf
>> - https://www.ti.com/lit/ds/symlink/bq25619.pdf
>>
>> Signed-off-by: Ricardo Rivera-Matos <r-rivera-matos@ti.com>
>> ---
>> .../bindings/power/supply/bq256xx.yaml | 99 +++++++++++++++++++
>> 1 file changed, 99 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/power/supply/bq256xx.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
>> new file mode 100644
>> index 000000000000..67db4ba9fdb6
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
>> @@ -0,0 +1,99 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
>> +# Copyright (C) 2020 Texas Instruments Incorporated
>> +%YAML 1.2
>> +---
>> +$id: "http://devicetree.org/schemas/power/supply/bq256xx.yaml#"
>> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
>> +
>> +title: TI bq256xx Switch Mode Buck Charger
>> +
>> +maintainers:
>> + - Ricardo Rivera-Matos <r-rivera-matos@ti.com>
>> +
>> +description: |
>> + The bq256xx devices are a family of highly-integrated battery charge
>> + management and system power management ICs for single cell Li-ion and Li-
>> + polymer batteries.
>> +
>> + Datasheets:
>> + - https://www.ti.com/lit/ds/symlink/bq25600.pdf
>> + - https://www.ti.com/lit/ds/symlink/bq25601.pdf
>> + - https://www.ti.com/lit/ds/symlink/bq25600d.pdf
>> + - https://www.ti.com/lit/ds/symlink/bq25601d.pdf
>> + - https://www.ti.com/lit/ds/symlink/bq25611d.pdf
>> + - https://www.ti.com/lit/ds/symlink/bq25618.pdf
>> + - https://www.ti.com/lit/ds/symlink/bq25619.pdf
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - ti,bq25600
>> + - ti,bq25601
>> + - ti,bq25600d
>> + - ti,bq25601d
>> + - ti,bq25611d
>> + - ti,bq25618
>> + - ti,bq25619
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + ti,watchdog-timer:
> Poorly named since we have 'ti,watchdog-timers' already and is
> completely different.
I think you made a comment on my DT to make this ti,watchdog-timeout-ms
and then we can remove the type.
>
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + description: |
>> + Watchdog timer in milli seconds. 0 (default) disables the watchdog
> If you have units, then you should use standard unit suffix.
>
>> + minimum: 0
>> + maximum: 160000
>> + enum: [ 0, 40000, 80000, 160000]
>> +
>> + input-voltage-limit-microvolt:
>> + description: |
>> + Minimum input voltage limit in micro volts with a 100000 micro volt step
>> + minimum: 3900000
>> + maximum: 5400000
>> +
>> + input-current-limit-microamp:
>> + description: |
>> + Maximum input current limit in micro amps with a 100000 micro amp step
>> + minimum: 100000
>> + maximum: 3200000
> Aren't these properties of the battery, not the charger?
>
>> +
>> +required:
>> + - compatible
>> + - reg
> monitored-battery not required?
>
> Add:
>
> additionalProperties: false
What about using
unevaluatedProperties: false
Dan
next prev parent reply other threads:[~2020-08-18 17:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-17 19:17 [PATCH v1 0/2] Introduce the BQ256XX family of chargers Ricardo Rivera-Matos
2020-08-17 19:17 ` [PATCH v1 1/2] dt-bindings: power: Add the bq256xx dt bindings Ricardo Rivera-Matos
2020-08-18 16:36 ` Rob Herring
2020-08-18 16:43 ` Rob Herring
2020-08-18 16:56 ` Dan Murphy [this message]
2020-08-27 21:07 ` [EXTERNAL] " Ricardo Rivera-Matos
2020-08-17 19:17 ` [PATCH v1 2/2] power: supply: bq256xx: Introduce the BQ256XX charger driver Ricardo Rivera-Matos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3928a95f-1f60-5f0f-2cfa-ab9b40038003@ti.com \
--to=dmurphy@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=r-rivera-matos@ti.com \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox