* [PATCH] dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible
@ 2026-09-21 23:26 Rob Herring (Arm)
2026-09-21 23:36 ` sashiko-bot
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring (Arm) @ 2026-09-21 23:26 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Lee Jones, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-kernel, mfd, devicetree
Use the hisilicon,hi6421-spmi compatible documented by the in-tree DTS
and matched by the Hi6421 SPMI PMIC driver. Also allow the GPIO
interrupt line property used by the HiKey970 PMIC node.
Assisted-by: LLM
Fixes: dee8a4e807dc ("dt-bindings: mfd: Convert hisilicon,hi6421-pmic to DT schema")
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
.../bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
index 6a824351834e..9275c561e9d4 100644
--- a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
@@ -24,7 +24,7 @@ properties:
pattern: "pmic@[0-9a-f]"
compatible:
- const: hisilicon,hi6421v600-spmi
+ const: hisilicon,hi6421-spmi
reg:
maxItems: 1
@@ -32,6 +32,9 @@ properties:
'#interrupt-cells':
const: 2
+ gpios:
+ maxItems: 1
+
interrupt-controller: true
interrupts:
@@ -66,7 +69,7 @@ examples:
#size-cells = <0>;
pmic@0 {
- compatible = "hisilicon,hi6421v600-spmi";
+ compatible = "hisilicon,hi6421-spmi";
reg = <0 SPMI_USID>;
#interrupt-cells = <2>;
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible
2026-09-21 23:26 [PATCH] dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible Rob Herring (Arm)
@ 2026-09-21 23:36 ` sashiko-bot
2026-09-23 16:33 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: sashiko-bot @ 2026-09-21 23:36 UTC (permalink / raw)
To: Rob Herring (Arm); +Cc: devicetree, lee, mfd, conor+dt, robh
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: mfd: hi6421: invalid gpios property for interrupt line
--
commit 4ce4ba18007f2f81249a1f2307d744174beb3e75
Author: Rob Herring (Arm) <robh@kernel.org>
dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible
This commit updates the device tree binding for the Hi6421 SPMI PMIC to use
the hisilicon,hi6421-spmi compatible string. It also allows the gpios
property for the GPIO interrupt line used by the HiKey970 PMIC node.
> diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
> index 6a824351834ee..9275c561e9d49 100644
> --- a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
> +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
[ ... ]
> @@ -32,6 +32,9 @@ properties:
> '#interrupt-cells':
> const: 2
>
> + gpios:
> + maxItems: 1
> +
[Severity: Medium]
Does this property legitimize a broken device tree description by using gpios
for an interrupt line?
Looking at the driver in hi6421v600_irq_probe(), it unconditionally relies on
platform_get_irq() to fetch its interrupt:
drivers/misc/hi6421v600-irq.c:hi6421v600_irq_probe() {
...
priv->irq = platform_get_irq(pmic_pdev, 0);
if (priv->irq < 0)
return priv->irq;
...
}
Because platform_get_irq() only parses the "interrupts" property, it lacks a
fallback to parse "gpios". Will this cause the driver to fail to probe when
using the HiKey970 PMIC node configuration since it cannot find the interrupt?
> interrupt-controller: true
>
> interrupts:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921232625.3131242-1-robh@kernel.org?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible
2026-09-21 23:36 ` sashiko-bot
@ 2026-09-23 16:33 ` Rob Herring
0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2026-09-23 16:33 UTC (permalink / raw)
To: sashiko-reviews; +Cc: devicetree, lee, mfd, conor+dt
On Mon, Sep 21, 2026 at 11:36:50PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] dt-bindings: mfd: hi6421: invalid gpios property for interrupt line
> --
>
> commit 4ce4ba18007f2f81249a1f2307d744174beb3e75
> Author: Rob Herring (Arm) <robh@kernel.org>
>
> dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible
>
> This commit updates the device tree binding for the Hi6421 SPMI PMIC to use
> the hisilicon,hi6421-spmi compatible string. It also allows the gpios
> property for the GPIO interrupt line used by the HiKey970 PMIC node.
>
> > diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
> > index 6a824351834ee..9275c561e9d49 100644
> > --- a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
> > +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml
> [ ... ]
> > @@ -32,6 +32,9 @@ properties:
> > '#interrupt-cells':
> > const: 2
> >
> > + gpios:
> > + maxItems: 1
> > +
>
> [Severity: Medium]
> Does this property legitimize a broken device tree description by using gpios
> for an interrupt line?
>
> Looking at the driver in hi6421v600_irq_probe(), it unconditionally relies on
> platform_get_irq() to fetch its interrupt:
>
> drivers/misc/hi6421v600-irq.c:hi6421v600_irq_probe() {
> ...
> priv->irq = platform_get_irq(pmic_pdev, 0);
> if (priv->irq < 0)
> return priv->irq;
> ...
> }
>
> Because platform_get_irq() only parses the "interrupts" property, it lacks a
> fallback to parse "gpios". Will this cause the driver to fail to probe when
> using the HiKey970 PMIC node configuration since it cannot find the interrupt?
The staging driver used 'gpios'. That was moved to interrupts, so the
gpios hunk can be dropped. And then the .dts needs to be updated.
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-23 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 23:26 [PATCH] dt-bindings: mfd: hisilicon: Fix Hi6421 SPMI compatible Rob Herring (Arm)
2026-09-21 23:36 ` sashiko-bot
2026-09-23 16:33 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox