Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Marek Szyprowski" <m.szyprowski@samsung.com>,
	devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] arm64: dts: exynos: tm2: fix wm5110 reset/ldoena GPIO properties
Date: Mon, 26 Oct 2026 11:04:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-185048@kernel.org> (raw)
In-Reply-To: <20261026102658.968138-1-m.szyprowski@samsung.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] arm64: dts: exynos: undocumented wlf,reset-gpios and wlf,ldoena-gpios in tm2
--

commit d7eced1233f0545ac05280c98b1abea17e17ed8c
Author: Marek Szyprowski <m.szyprowski@samsung.com>

arm64: dts: exynos: tm2: fix wm5110 reset/ldoena GPIO properties

This commit renames the wlf,reset and wlf,ldoena properties in the wm5110
audio-codec node of exynos5433-tm2-common.dtsi to wlf,reset-gpios and
wlf,ldoena-gpios.

> diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
> index 0ad02a098765d..44e03e38c2c43 100644
> --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
> +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
> @@ -1346,8 +1346,8 @@ wm5110: audio-codec@0 {
>  		wlf,gpsw = <0x1>;
>  		wlf,inmode = <2 0 2 0>;
>  
> -		wlf,reset = <&gpc0 7 GPIO_ACTIVE_HIGH>;
> -		wlf,ldoena = <&gpf0 0 GPIO_ACTIVE_HIGH>;
> +		wlf,reset-gpios = <&gpc0 7 GPIO_ACTIVE_HIGH>;
> +		wlf,ldoena-gpios = <&gpf0 0 GPIO_ACTIVE_HIGH>;

[Severity: Medium]
Does renaming these properties to wlf,reset-gpios and wlf,ldoena-gpios cause
a dtbs_check schema validation regression for exynos5433-tm2.dtb and
exynos5433-tm2e.dtb?

The wm5110 node (compatible = "wlf,wm5110") is validated against
Documentation/devicetree/bindings/mfd/wlf,arizona.yaml, which references
Documentation/devicetree/bindings/regulator/wlf,arizona.yaml and sets
unevaluatedProperties: false.

In Documentation/devicetree/bindings/mfd/wlf,arizona.yaml, the standard
reset property is reset-gpios (without the vendor prefix), while wlf,reset
is marked deprecated:

  reset-gpios:
    maxItems: 1

  wlf,reset:
    description:
      GPIO specifier for the GPIO controlling RESET
    deprecated: true
    $ref: /schemas/types.yaml#/definitions/phandle-array
    maxItems: 1

Similarly, Documentation/devicetree/bindings/regulator/wlf,arizona.yaml only
defines wlf,ldoena:

  wlf,ldoena:
    description:
      GPIO specifier for the GPIO controlling LDOENA.
    $ref: /schemas/types.yaml#/definitions/phandle-array
    maxItems: 1

Neither schema defines wlf,reset-gpios or wlf,ldoena-gpios. In
drivers/mfd/arizona-core.c, arizona_dev_init() requests "reset" for the
standard reset-gpios binding:

	if (!arizona->pdata.reset) {
		/* Start out with /RESET low to put the chip into reset */
		arizona->pdata.reset = devm_gpiod_get(arizona->dev, "reset",
						      GPIOD_OUT_LOW);

while arizona_of_get_core_pdata() only requests "wlf,reset" as a fallback for
the old non-standard wlf,reset property via of_find_gpio_rename() in
drivers/gpio/gpiolib-of.c.

Also, can the Kconfig mismatch described in the commit message actually
occur? In drivers/gpio/gpiolib-of.c, of_find_gpio_rename() guards the
"wlf,reset" and "wlf,ldoena" rename entries with:

#if IS_ENABLED(CONFIG_MFD_ARIZONA)
		{ "wlf,reset",	NULL,		NULL },
#endif

and:

#if IS_ENABLED(CONFIG_REGULATOR_ARIZONA_LDO1)
		{ "wlf,ldoena",	NULL,		NULL },
#endif

The consumers in drivers/mfd/arizona-core.c and
drivers/regulator/arizona-ldo1.c are built under the exact same Kconfig
options in drivers/mfd/Makefile and drivers/regulator/Makefile:

obj-$(CONFIG_MFD_ARIZONA)	+= arizona.o
obj-$(CONFIG_REGULATOR_ARIZONA_LDO1) += arizona-ldo1.o

When CONFIG_MFD_ARIZONA or CONFIG_REGULATOR_ARIZONA_LDO1 is disabled, the
corresponding driver is not built at all, and when enabled (either built-in
or as a module), IS_ENABLED() evaluates to true in gpiolib-of.c.

Should wlf,reset instead be replaced with the documented reset-gpios property
 while keeping wlf,ldoena matching the binding schema?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261026102658.968138-1-m.szyprowski@samsung.com?part=1

      reply	other threads:[~2026-10-26 11:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20261026102708eucas1p1dd4e054f4891f6ec94a16e9e53aa30b0@eucas1p1.samsung.com>
2026-10-26 10:26 ` [PATCH] arm64: dts: exynos: tm2: fix wm5110 reset/ldoena GPIO properties Marek Szyprowski
2026-10-26 11:04   ` 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-185048@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=m.szyprowski@samsung.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