devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: "Sebastian Reichel" <sre@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	"Orson Zhai" <orsonzhai@gmail.com>,
	"Baolin Wang" <baolin.wang@linux.alibaba.com>,
	"Chunyan Zhang" <zhang.lyra@gmail.com>,
	"Pali Rohár" <pali@kernel.org>, "Andrew F. Davis" <afd@ti.com>,
	"Artur Rojek" <contact@artur-rojek.eu>,
	"Matti Vaittinen" <matti.vaittinen@fi.rohmeurope.com>,
	"Markus Laine" <markus.laine@fi.rohmeurope.com>,
	"Mikko Mutanen" <mikko.mutanen@fi.rohmeurope.com>,
	linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: power: supply: expect specific type for monitored-battery
Date: Mon, 31 Oct 2022 14:26:17 -0500	[thread overview]
Message-ID: <20221031192617.GA3283833-robh@kernel.org> (raw)
In-Reply-To: <20221028231255.565363-1-krzysztof.kozlowski@linaro.org>

On Fri, Oct 28, 2022 at 07:12:55PM -0400, Krzysztof Kozlowski wrote:
> Core schema does not define type of monitored-battery, so the schemas
> are expected to reference proper type.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/power/supply/bq27xxx.yaml    | 2 +-
>  .../devicetree/bindings/power/supply/ingenic,battery.yaml      | 1 +
>  .../devicetree/bindings/power/supply/rohm,bd99954.yaml         | 1 +
>  .../devicetree/bindings/power/supply/sc2731-charger.yaml       | 2 +-
>  Documentation/devicetree/bindings/power/supply/sc27xx-fg.yaml  | 3 ++-
>  5 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml b/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml
> index 65fc6049efc1..b04c86ed0f58 100644
> --- a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml
> @@ -59,6 +59,7 @@ properties:
>      description: integer, I2C address of the fuel gauge.
>  
>    monitored-battery:
> +    $ref: /schemas/types.yaml#/definitions/phandle
>      description: |
>         phandle of battery characteristics node.
>         The fuel gauge uses the following battery properties:
> @@ -66,7 +67,6 @@ properties:
>         - charge-full-design-microamp-hours
>         - voltage-min-design-microvolt
>         Both or neither of the *-full-design-*-hours properties must be set.
> -       See Documentation/devicetree/bindings/power/supply/battery.yaml
>  
>    power-supplies: true
>  
> diff --git a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
> index 46527038bf22..8bdacc30e9d8 100644
> --- a/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
> @@ -27,6 +27,7 @@ properties:
>      const: battery
>  
>    monitored-battery:
> +    $ref: /schemas/types.yaml#/definitions/phandle

We should not have a type definition multiple times for the same 
property. We need to add a common schema defining the type instead.

Rob

  reply	other threads:[~2022-10-31 19:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-28 23:12 [PATCH] dt-bindings: power: supply: expect specific type for monitored-battery Krzysztof Kozlowski
2022-10-31 19:26 ` Rob Herring [this message]
2022-10-31 22:56   ` Sebastian Reichel
2022-11-02 17:45     ` Krzysztof Kozlowski

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=20221031192617.GA3283833-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=afd@ti.com \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=contact@artur-rojek.eu \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=markus.laine@fi.rohmeurope.com \
    --cc=matti.vaittinen@fi.rohmeurope.com \
    --cc=mikko.mutanen@fi.rohmeurope.com \
    --cc=orsonzhai@gmail.com \
    --cc=pali@kernel.org \
    --cc=sre@kernel.org \
    --cc=zhang.lyra@gmail.com \
    /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).