From: Krzysztof Kozlowski <krzk@kernel.org>
To: Bhavin Sharma <bhavin.sharma@siliconsignals.io>,
sre@kernel.org, krzk+dt@kernel.org
Cc: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>,
Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 1/2] dt-bindings: power: supply: Add STC3117 Fuel Gauge
Date: Fri, 29 Nov 2024 12:48:34 +0100 [thread overview]
Message-ID: <4e8f9526-f7cf-46b1-bdb3-831dc04543f3@kernel.org> (raw)
In-Reply-To: <20241129114200.13351-2-bhavin.sharma@siliconsignals.io>
On 29/11/2024 12:40, Bhavin Sharma wrote:
> The STC3117 provides a simple fuel gauge via I2C.
> Add a DT schema to describe how to set it up in the device tree.
>
> Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
> Signed-off-by: Bhavin Sharma <bhavin.sharma@siliconsignals.io>
Your SoBs are odd... second patch has totally reversed path comparing to
this one. What do you want to express here?
> ---
> .../bindings/power/supply/st,stc3117.yaml | 81 +++++++++++++++++++
> 1 file changed, 81 insertions(+)
> +
> + monitored-battery:
> + description: |
> + The fuel gauge uses the following battery properties:
> + - charge-full-design-microamp-hours
> + - voltage-min-design-microvolt
> + - voltage-max-design-microvolt
> +
> + sense-resistor:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: Current sense resistor in milliohms
phandle cannot be in milliohms... Anyway, use existing widely used
property: shunt-resistor-micro-ohms
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - monitored-battery
> + - sense-resistor
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + bat: battery {
> + compatible = "simple-battery";
> + charge-full-design-microamp-hours = <2600000>;
> + voltage-min-design-microvolt = <3300000>;
> + voltage-max-design-microvolt = <4250000>;
> + };
Drop battery node, not needed for example.
> +
> + battery@70 {
> + compatible = "st,stc3117";
> + reg = <0x70>;
> + interrupt-parent = <&gpio0>;
> + interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
It does not look like you tested the bindings, at least after quick
look. Please run `make dt_binding_check` (see
Documentation/devicetree/bindings/writing-schema.rst for instructions).
Maybe you need to update your dtschema and yamllint.
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-11-29 11:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 11:40 [PATCH v5 0/2] power: supply: Add STC3117 Fuel Gauge Bhavin Sharma
2024-11-29 11:40 ` [PATCH v5 1/2] dt-bindings: " Bhavin Sharma
2024-11-29 11:48 ` Krzysztof Kozlowski [this message]
2024-11-29 12:17 ` Bhavin Sharma
2024-11-29 12:16 ` Rob Herring (Arm)
2024-11-29 11:40 ` [PATCH v5 2/2] power: supply: Add STC3117 fuel gauge unit driver Bhavin Sharma
2024-11-30 17:47 ` Christophe JAILLET
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=4e8f9526-f7cf-46b1-bdb3-831dc04543f3@kernel.org \
--to=krzk@kernel.org \
--cc=bhavin.sharma@siliconsignals.io \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hardevsinh.palaniya@siliconsignals.io \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--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