Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Frank.Li@oss.nxp.com
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	 Pengutronix Kernel Team <kernel@pengutronix.de>,
	 Fabio Estevam <festevam@gmail.com>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev,
	 linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,  Frank Li <Frank.Li@nxp.com>
Subject: [PATCH 5/8] ARM: dts: imx50-kobo-aura: convert sd2_vmmc to regulator-fixed
Date: Tue, 01 Sep 2026 18:25:39 -0400	[thread overview]
Message-ID: <20260901-arm_dts_clean1-v1-5-db741f37a1f4@nxp.com> (raw)
In-Reply-To: <20260901-arm_dts_clean1-v1-0-db741f37a1f4@nxp.com>

From: Frank Li <Frank.Li@nxp.com>

The sd2_vmmc regulator was using compatible = "regulator-gpio" with
only a single state entry (states = <3300000 0>), which violates the
gpio-regulator DT schema that requires at least two state pairs.

Since the regulator operates at a fixed 3.3 V (regulator-min-microvolt
equals regulator-max-microvolt), convert the node to regulator-fixed.

Fix below check_dtbs warnings:
  arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dtb: gpio-regulator (regulator-gpio): states: [[3300000, 0]] is too short

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dts b/arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dts
index 4725ee241cb11..4d8672ab1c42b 100644
--- a/arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dts
+++ b/arch/arm/boot/dts/nxp/imx/imx50-kobo-aura.dts
@@ -75,15 +75,14 @@ sd2_pwrseq: pwrseq {
 		reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
 	};
 
-	sd2_vmmc: gpio-regulator {
-		compatible = "regulator-gpio";
+	sd2_vmmc: regulator-sd2-vmmc {
+		compatible = "regulator-fixed";
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_sd2_vmmc>;
 		regulator-name = "vmmc";
-		states = <3300000 0>;
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
-		enable-gpios = <&gpio4 12 GPIO_ACTIVE_LOW>;
+		gpio = <&gpio4 12 GPIO_ACTIVE_LOW>;
 		startup-delay-us = <100000>;
 	};
 };

-- 
2.43.0



  parent reply	other threads:[~2026-09-01 22:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-01 22:25 [PATCH 0/8] ARM: dts: imx: cleanup some dtb check warnings Frank.Li
2026-09-01 22:25 ` [PATCH 1/8] ARM: dts: imx51-zii-rdu1: rename node name i2c-gpio to i2c-0 Frank.Li
2026-09-01 22:25 ` [PATCH 2/8] ARM: dts: imx6qdl-emcon: Remove unrecognized disable-gpio PCIe property Frank.Li
2026-09-01 22:25 ` [PATCH 3/8] ARM: dts: imx7d-nitrogen7: drop unsupported wakeup-gpios from tsc2004 Frank.Li
2026-09-01 22:25 ` [PATCH 4/8] ARM: dts: imx7d-meerkat96: disable lcdif node Frank.Li
2026-09-01 22:25 ` Frank.Li [this message]
2026-09-01 22:25 ` [PATCH 6/8] ARM: dts: imx6dl-b125v2: add touchscreen-size-x/y to exc80h60 node Frank.Li
2026-09-01 22:25 ` [PATCH 7/8] ARM: dts: imx6sll: remove unused node csi@20e8000 Frank.Li
2026-09-01 22:25 ` [PATCH 8/8] ARM: dts: imx6ul-14x14-evk: remove reduntant bus-type under csi node Frank.Li

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=20260901-arm_dts_clean1-v1-5-db741f37a1f4@nxp.com \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    /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