From: sashiko-bot@kernel.org
To: "Armandas Kvietkus" <armandas.kvietkus@proton.me>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Maxim DS28E16
Date: Tue, 24 Nov 2026 17:50:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-231749@kernel.org> (raw)
In-Reply-To: <20261124-ds28e16-v1-1-bed431df0578@proton.me>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: power: supply: maxim,ds28e16 models 1-Wire slave
as GPIO node
--
commit e42cb4a20cd773ad55f015ac68fc65ab57afeaf9
Author: Armandas Kvietkus <armandas.kvietkus@proton.me>
dt-bindings: power: supply: Add Maxim DS28E16
This commit adds a Device Tree binding schema for the Maxim DS28E16
1-Wire battery pack authenticator.
> diff --git a/Documentation/devicetree/bindings/power/supply/maxim,ds28e16.yaml b/Documentation/devicetree/bindings/power/supply/maxim,ds28e16.yaml
> new file mode 100644
> index 0000000000000..b381bdf68239a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/maxim,ds28e16.yaml
> @@ -0,0 +1,39 @@
[ ... ]
> +properties:
> + compatible:
> + const: maxim,ds28e16
> +
> + onewire-gpios:
> + maxItems: 1
> + description: GPIO used as the 1-Wire data line.
> +
> +required:
> + - compatible
> + - onewire-gpios
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + battery-id {
> + compatible = "maxim,ds28e16";
> + onewire-gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
> + };
[Severity: Medium]
Should maxim,ds28e16 be modeled as a child node under a 1-Wire bus master
controller rather than taking a custom onewire-gpios property directly?
The DS28E16 is a 1-Wire slave device, while the GPIO belongs to the host
acting as a bitbanged 1-Wire bus master (covered by
Documentation/devicetree/bindings/w1/w1-gpio.yaml). Per
Documentation/devicetree/bindings/w1/w1.txt and existing 1-Wire battery
bindings such as Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml,
1-Wire slave devices are placed as sub-nodes of their 1-Wire bus master
node so the binding reflects the hardware bus topology.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-ds28e16-v1-0-bed431df0578@proton.me?part=1
next prev parent reply other threads:[~2026-11-24 17:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:43 [PATCH 0/2] Add Maxim DS28E16 battery cycle counter Armandas Kvietkus
2026-11-24 17:43 ` Armandas Kvietkus via B4 Relay
2026-11-24 17:43 ` [PATCH 1/2] dt-bindings: power: supply: Add Maxim DS28E16 Armandas Kvietkus
2026-11-24 17:43 ` Armandas Kvietkus via B4 Relay
2026-11-24 17:50 ` sashiko-bot [this message]
2026-11-24 17:43 ` [PATCH 2/2] power: supply: Add Maxim DS28E16 battery cycle counter driver Armandas Kvietkus
2026-11-24 17:43 ` Armandas Kvietkus via B4 Relay
2026-11-24 17:58 ` sashiko-bot
2026-11-25 11:38 ` Uwe Kleine-König
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=sashiko-outbox-231749@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=armandas.kvietkus@proton.me \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.