From: sashiko-bot@kernel.org
To: "Martin Kepplinger-Novakovic"
<martin.kepplinger-novakovic@ginzinger.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin
Date: Thu, 03 Dec 2026 15:10:58 +0000 [thread overview]
Message-ID: <sashiko-outbox-248076@kernel.org> (raw)
In-Reply-To: <20261203145051.489939-1-martin.kepplinger-novakovic@ginzinger.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: pca9450: nxp,i2c-warm-reset encodes reboot
policy in DT
- [Low] dt-bindings: pca9450: commit message misnames SWRST as i2c-reset
pin
--
commit 6e93067008e7e3d0a4d8aec9f49f40a9c494db06
Author: Martin Kepplinger-Novakovic <martink@posteo.de>
dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin
This commit adds the nxp,i2c-warm-reset boolean property to the PCA9450
regulator Device Tree binding.
> dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin
>
> When resetting via i2c-reset pin, the pca9450 does a cold reset by default
[Severity: Low]
Does the PCA9450 have an i2c-reset pin?
Unlike WDOG_B, I2C reset is a software reset command written to
PCA9450_REG_SWRST in pca9450_i2c_restart_handler(), where software selects
the command byte rather than the hardware defaulting to cold reset.
The binding description similarly says "i2c-reset" rather than identifying
the I2C SWRST software command.
> diff --git a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml
> index ec04adfb9d1cb..e96c8873c1762 100644
> --- a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml
> +++ b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml
> @@ -133,6 +133,12 @@ properties:
> description:
> Indicates that the I2C Level Translator is used.
>
> + nxp,i2c-warm-reset:
> + type: boolean
> + description:
> + On i2c-reset, a warm reset (Toggle POR_B) will be done instead of cold
> + reset.
> +
> nxp,wdog_b-warm-reset:
> type: boolean
> description:
[Severity: Medium]
Should nxp,i2c-warm-reset be a Device Tree property rather than using
reboot_mode at runtime?
Device Tree bindings describe hardware topology and board-level constraints,
not software reboot policy, and adding this boolean creates a permanent DT
ABI for a software preference.
Unlike WDOG_B, a hardware pin whose response must be pre-configured in
PCA9450_REG_RESET_CTRL, I2C reset is triggered by software in
pca9450_i2c_restart_handler(). That SYS_OFF_MODE_RESTART handler already
receives data->mode (REBOOT_WARM vs REBOOT_COLD).
Other PMIC drivers such as tps65219_restart() in drivers/mfd/tps65219.c
select warm or cold I2C reset directly from data->mode == REBOOT_WARM
without adding a vendor DT property.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203145051.489939-1-martin.kepplinger-novakovic@ginzinger.com?part=1
prev parent reply other threads:[~2026-12-03 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:50 [PATCH 1/2] dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin Martin Kepplinger-Novakovic
2026-12-03 14:50 ` [PATCH 2/2] regulator: pca9450: Make i2c-reset a warm reset optionally Martin Kepplinger-Novakovic
2026-12-03 15:04 ` sashiko-bot
2026-12-03 15:07 ` [PATCH 1/2] dt-bindings: regulator: pca9450: add warm reset for i2c-reset pin Mark Brown
2026-12-03 15:10 ` sashiko-bot [this message]
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-248076@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=martin.kepplinger-novakovic@ginzinger.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox