devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: mfd: maxim,max8998: Convert to DT schema
Date: Sat, 22 Jul 2023 12:57:55 +0100	[thread overview]
Message-ID: <20230722-occupant-outflank-bf433bc728c5@spud> (raw)
In-Reply-To: <20230721161712.31767-1-krzysztof.kozlowski@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 2619 bytes --]

On Fri, Jul 21, 2023 at 06:17:12PM +0200, Krzysztof Kozlowski wrote:
> Convert the bindings for Maxim MAX8998, National/TI LP3974 Power
> Management IC to DT schema.  Adjust example to real DTS and make second
> interrupt optional (like on s5pv210-aries.dtsi).
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/mfd/max8998.txt       | 125 -------
>  .../bindings/mfd/maxim,max8998.yaml           | 324 ++++++++++++++++++
>  2 files changed, 324 insertions(+), 125 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/mfd/max8998.txt
>  create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max8998.yaml

> diff --git a/Documentation/devicetree/bindings/mfd/maxim,max8998.yaml b/Documentation/devicetree/bindings/mfd/maxim,max8998.yaml
> new file mode 100644
> index 000000000000..f3c3f64fd012
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/maxim,max8998.yaml
> @@ -0,0 +1,324 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/maxim,max8998.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Maxim MAX8998, National/TI LP3974 Power Management IC
> +
> +maintainers:
> +  - Krzysztof Kozlowski <krzk@kernel.org>
> +
> +description:
> +  The Maxim MAX8998 is a Power Management IC which includes voltage/current
> +  regulators, real time clock, battery charging controller and several other
> +  sub-blocks. It is interfaced using an I2C interface. Each sub-block is
> +  addressed by the host system using different i2c slave address.
> +
> +properties:
> +  compatible:
> +    enum:
> +      - maxim,max8998
> +      - national,lp3974
> +      - ti,lp3974

Should one of these be marked as deprecated?

> +  regulators:
> +    type: object
> +    additionalProperties: false
> +
> +    properties:
> +      CHARGER:
> +        type: object
> +        $ref: /schemas/regulator/regulator.yaml#
> +        unevaluatedProperties: false
> +        description:
> +          CHARGER is main battery charger current control, wrongly represented
> +          as regulator.
> +
> +        properties:
> +          regulator-min-microamp:
> +            minimum: 90000
> +            maximum: 800000
> +
> +          regulator-max-microamp:
> +            minimum: 90000
> +            maximum: 800000

Did you pull these from the datasheet, or from the dts/example?
> +
> +          regulator-min-microvolt: false
> +          regulator-max-microvolt: false


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-07-22 11:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-21 16:17 [PATCH] dt-bindings: mfd: maxim,max8998: Convert to DT schema Krzysztof Kozlowski
2023-07-22 11:57 ` Conor Dooley [this message]
2023-07-22 12:25   ` Krzysztof Kozlowski
2023-07-22 12:43     ` Conor Dooley

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=20230722-occupant-outflank-bf433bc728c5@spud \
    --to=conor@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).