* [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees
@ 2026-07-01 10:52 Sherry Sun (OSS)
2026-07-01 10:52 ` [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node Sherry Sun (OSS)
` (6 more replies)
0 siblings, 7 replies; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
This series integrates the PCI pwrctrl framework into the pci-imx6
driver and updates i.MX EVK board device trees to support it.
Patches 2-8 update device trees for i.MX EVK boards which maintained
by NXP to move power supply properties from the PCIe controller node
to the Root Port child node, which is required for pwrctrl framework.
Affected boards:
- i.MX6Q/DL SABRESD
- i.MX6SX SDB
- i.MX8MM EVK
- i.MX8MP EVK
- i.MX8MQ EVK
- i.MX8DXL/QM/QXP EVK
- i.MX95 15x15/19x19 EVK
The driver maintains legacy regulator handling for device trees that
haven't been updated yet. Both old and new device tree structures are
supported.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
Changes in V5:
1. Legacy power supply property is retained for backward compatibility
in patch 1-6.
Changes in V4:
1. Fix the CHECK_DTBS warnings.
2. Drop pci-imx6 pwrctrl support patch as it got applied.
Changes in V3:
1. Rebased on top of latest 7.1.0-rc4
Changes in V2:
1. After commit 2d8c5098b847 ("PCI/pwrctrl: Do not power off on pwrctrl
device removal"), the pwrctrl drivers no longer power off devices
during removal. Update pci-imx6 driver's shutdown callback in patch#1
to explicitly call pci_pwrctrl_power_off_devices() before
pci_pwrctrl_destroy_devices() to ensure devices are properly powered
off.
---
Sherry Sun (7):
arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node
arm: dts: imx6sx-sdb: Add power supply property to Root Port node
arm64: dts: imx8mm-evk: Add power supply property to Root Port node
arm64: dts: imx8mp-evk: Add power supply properties to Root Port node
arm64: dts: imx8mq-evk: Add power supply properties to Root Port node
arm64: dts: imx8dxl/qm/qxp: Add power supply properties to Root Port
node
arm64: dts: imx95: Move power supply properties to Root Port node
arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi | 2 ++
arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi | 2 ++
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 3 +++
arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 2 ++
arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 3 +++
arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 3 +++
arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 3 +++
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 3 +++
arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts | 4 ++--
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 8 ++++----
10 files changed, 27 insertions(+), 6 deletions(-)
base-commit: be5c93fa674f0fc3c8f359c2143abce6bbb422e6
--
2.50.1
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 11:04 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 2/7] arm: dts: imx6sx-sdb: " Sherry Sun (OSS)
` (5 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Add the power supply property to the Root Port child node to support the
new PCI pwrctrl framework.
Legacy power supply property is retained for backward compatibility with
existing kernels. New device trees should specify power supply at the
Root Port level to utilize the pwrctrl framework.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
index fe9046c03ddd..60fe0f973668 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
@@ -756,12 +756,14 @@ &pcie {
pinctrl-0 = <&pinctrl_pcie>;
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcie>;
status = "okay";
};
&pcie_port0 {
reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcie>;
};
&pwm1 {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V5 2/7] arm: dts: imx6sx-sdb: Add power supply property to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
2026-07-01 10:52 ` [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 11:10 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 3/7] arm64: dts: imx8mm-evk: " Sherry Sun (OSS)
` (4 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Add the power supply property to the Root Port child node to support the
new PCI pwrctrl framework.
Legacy power supply property is retained for backward compatibility with
existing kernels. New device trees should specify power supply at the
Root Port level to utilize the pwrctrl framework.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi
index 338de4d144b2..2d3521ea0caa 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi
@@ -284,12 +284,14 @@ &pcie {
pinctrl-0 = <&pinctrl_pcie>;
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&gpio2 0 GPIO_ACTIVE_LOW>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcie_gpio>;
status = "okay";
};
&pcie_port0 {
reset-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcie_gpio>;
};
&lcdif1 {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V5 3/7] arm64: dts: imx8mm-evk: Add power supply property to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
2026-07-01 10:52 ` [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node Sherry Sun (OSS)
2026-07-01 10:52 ` [PATCH V5 2/7] arm: dts: imx6sx-sdb: " Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 10:56 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 4/7] arm64: dts: imx8mp-evk: Add power supply properties " Sherry Sun (OSS)
` (3 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Add the power supply property to the Root Port child node to support the
new PCI pwrctrl framework.
Legacy power supply property is retained for backward compatibility with
existing kernels. New device trees should specify power supply at the
Root Port level to utilize the pwrctrl framework.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
index e03aba825c18..ec49cbbfd9ce 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
@@ -542,6 +542,7 @@ &pcie0 {
assigned-clock-rates = <10000000>, <250000000>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
<&clk IMX8MM_SYS_PLL2_250M>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcie0>;
supports-clkreq;
status = "okay";
@@ -562,6 +563,7 @@ &pcie0_ep {
&pcie0_port0 {
reset-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcie0>;
};
&sai2 {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V5 4/7] arm64: dts: imx8mp-evk: Add power supply properties to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
` (2 preceding siblings ...)
2026-07-01 10:52 ` [PATCH V5 3/7] arm64: dts: imx8mm-evk: " Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 11:02 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 5/7] arm64: dts: imx8mq-evk: " Sherry Sun (OSS)
` (2 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Add the power supply properties to the Root Port child nodes to support
the new PCI pwrctrl framework.
Legacy power supply properties are retained for backward compatibility
with existing kernels. New device trees should specify power supplies at
the Root Port level to utilize the pwrctrl framework.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
index a7f3acdc36d1..ca09a929ba0a 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts
@@ -772,6 +772,7 @@ &pcie0 {
pinctrl-0 = <&pinctrl_pcie0>;
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&gpio2 7 GPIO_ACTIVE_LOW>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcie0>;
vpcie3v3aux-supply = <®_pcie0>;
supports-clkreq;
@@ -786,6 +787,8 @@ &pcie0_ep {
&pcie0_port0 {
reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcie0>;
+ vpcie3v3aux-supply = <®_pcie0>;
};
&pwm1 {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V5 5/7] arm64: dts: imx8mq-evk: Add power supply properties to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
` (3 preceding siblings ...)
2026-07-01 10:52 ` [PATCH V5 4/7] arm64: dts: imx8mp-evk: Add power supply properties " Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 11:01 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 6/7] arm64: dts: imx8dxl/qm/qxp: " Sherry Sun (OSS)
2026-07-01 10:52 ` [PATCH V5 7/7] arm64: dts: imx95: Move " Sherry Sun (OSS)
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Add the power supply properties to the Root Port child nodes to support
the new PCI pwrctrl framework.
Legacy power supply properties are retained for backward compatibility
with existing kernels. New device trees should specify power supplies at
the Root Port level to utilize the pwrctrl framework.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index b9b03416aa39..1f07f1089026 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -403,6 +403,7 @@ &pcie1 {
<&pcie0_refclk>,
<&clk IMX8MQ_CLK_PCIE2_PHY>,
<&clk IMX8MQ_CLK_PCIE2_AUX>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcie1>;
vpcie3v3aux-supply = <®_pcie1>;
vph-supply = <&vgen5_reg>;
@@ -422,6 +423,8 @@ &pcie1_ep {
&pcie1_port0 {
reset-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcie1>;
+ vpcie3v3aux-supply = <®_pcie1>;
};
&pgc_gpu {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V5 6/7] arm64: dts: imx8dxl/qm/qxp: Add power supply properties to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
` (4 preceding siblings ...)
2026-07-01 10:52 ` [PATCH V5 5/7] arm64: dts: imx8mq-evk: " Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 10:57 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 7/7] arm64: dts: imx95: Move " Sherry Sun (OSS)
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Add the power supply properties to the Root Port child nodes to support
the new PCI pwrctrl framework.
Legacy power supply properties are retained for backward compatibility
with existing kernels. New device trees should specify power supplies at
the Root Port level to utilize the pwrctrl framework.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 3 +++
arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 3 +++
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 3 +++
3 files changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
index 78e8d41e6791..0ede0c7ed422 100644
--- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
@@ -677,6 +677,7 @@ &pcie0 {
pinctrl-names = "default";
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcieb>;
vpcie3v3aux-supply = <®_pcieb>;
status = "okay";
@@ -692,6 +693,8 @@ &pcie0_ep {
&pcieb_port0 {
reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcieb>;
+ vpcie3v3aux-supply = <®_pcieb>;
};
&sai0 {
diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
index f706c86137c0..9e49ac377162 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
+++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
@@ -812,6 +812,7 @@ &pciea {
pinctrl-names = "default";
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pciea>;
vpcie3v3aux-supply = <®_pciea>;
supports-clkreq;
@@ -820,6 +821,8 @@ &pciea {
&pciea_port0 {
reset-gpios = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pciea>;
+ vpcie3v3aux-supply = <®_pciea>;
};
&pcieb {
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
index 2af32eca612a..857a6e512228 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
+++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts
@@ -732,6 +732,7 @@ &pcie0 {
pinctrl-names = "default";
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
+ /* This property is deprecated, use power supply from the Root Port node. */
vpcie-supply = <®_pcieb>;
vpcie3v3aux-supply = <®_pcieb>;
supports-clkreq;
@@ -748,6 +749,8 @@ &pcie0_ep {
&pcieb_port0 {
reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcieb>;
+ vpcie3v3aux-supply = <®_pcieb>;
};
&scu_key {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH V5 7/7] arm64: dts: imx95: Move power supply properties to Root Port node
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
` (5 preceding siblings ...)
2026-07-01 10:52 ` [PATCH V5 6/7] arm64: dts: imx8dxl/qm/qxp: " Sherry Sun (OSS)
@ 2026-07-01 10:52 ` Sherry Sun (OSS)
2026-07-01 11:06 ` sashiko-bot
6 siblings, 1 reply; 15+ messages in thread
From: Sherry Sun (OSS) @ 2026-07-01 10:52 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, Frank.Li, s.hauer, kernel, festevam,
lpieralisi, kwilczynski, mani, bhelgaas, hongxing.zhu, l.stach
Cc: imx, linux-pci, linux-arm-kernel, devicetree, linux-kernel,
sherry.sun
From: Sherry Sun <sherry.sun@nxp.com>
Move the power supply properties from the PCIe controller nodes to the
Root Port child nodes to support the new PCI pwrctrl framework.
Since i.MX95 is the new platform that under development phase, it should
be fine to simply move the power supply properties.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts | 4 ++--
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts b/arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts
index 7d820a0f80b2..6aedcbbe915a 100644
--- a/arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts
@@ -555,8 +555,6 @@ &pcie0 {
pinctrl-names = "default";
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&gpio5 13 GPIO_ACTIVE_LOW>;
- vpcie-supply = <®_m2_pwr>;
- vpcie3v3aux-supply = <®_m2_pwr>;
supports-clkreq;
status = "disabled";
};
@@ -570,6 +568,8 @@ &pcie0_ep {
&pcie0_port0 {
reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_m2_pwr>;
+ vpcie3v3aux-supply = <®_m2_pwr>;
};
&sai1 {
diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
index 2e463bc7c601..340ab0253ec2 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
@@ -542,8 +542,6 @@ &pcie0 {
pinctrl-names = "default";
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&i2c7_pcal6524 5 GPIO_ACTIVE_LOW>;
- vpcie-supply = <®_pcie0>;
- vpcie3v3aux-supply = <®_pcie0>;
supports-clkreq;
status = "okay";
};
@@ -557,6 +555,8 @@ &pcie0_ep {
&pcie0_port0 {
reset-gpios = <&i2c7_pcal6524 5 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_pcie0>;
+ vpcie3v3aux-supply = <®_pcie0>;
};
&pcie1 {
@@ -564,8 +564,6 @@ &pcie1 {
pinctrl-names = "default";
/* This property is deprecated, use reset-gpios from the Root Port node. */
reset-gpio = <&i2c7_pcal6524 16 GPIO_ACTIVE_LOW>;
- vpcie-supply = <®_slot_pwr>;
- vpcie3v3aux-supply = <®_slot_pwr>;
status = "okay";
};
@@ -578,6 +576,8 @@ &pcie1_ep {
&pcie1_port0 {
reset-gpios = <&i2c7_pcal6524 16 GPIO_ACTIVE_LOW>;
+ vpcie3v3-supply = <®_slot_pwr>;
+ vpcie3v3aux-supply = <®_slot_pwr>;
};
&sai1 {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH V5 3/7] arm64: dts: imx8mm-evk: Add power supply property to Root Port node
2026-07-01 10:52 ` [PATCH V5 3/7] arm64: dts: imx8mm-evk: " Sherry Sun (OSS)
@ 2026-07-01 10:56 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 10:56 UTC (permalink / raw)
Cc: imx, devicetree, robh, Frank.Li, conor+dt, linux-pci
> From: Sherry Sun <sherry.sun@nxp.com>
>
> Add the power supply property to the Root Port child node to support the
> new PCI pwrctrl framework.
>
> Legacy power supply property is retained for backward compatibility with
> existing kernels. New device trees should specify power supply at the
> Root Port level to utilize the pwrctrl framework.
>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=3
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V5 6/7] arm64: dts: imx8dxl/qm/qxp: Add power supply properties to Root Port node
2026-07-01 10:52 ` [PATCH V5 6/7] arm64: dts: imx8dxl/qm/qxp: " Sherry Sun (OSS)
@ 2026-07-01 10:57 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 10:57 UTC (permalink / raw)
Cc: linux-pci, Frank.Li, devicetree, imx, robh, conor+dt
> From: Sherry Sun <sherry.sun@nxp.com>
>
> Add the power supply properties to the Root Port child nodes to support
> the new PCI pwrctrl framework.
>
> Legacy power supply properties are retained for backward compatibility
> with existing kernels. New device trees should specify power supplies at
> the Root Port level to utilize the pwrctrl framework.
>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=6
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V5 5/7] arm64: dts: imx8mq-evk: Add power supply properties to Root Port node
2026-07-01 10:52 ` [PATCH V5 5/7] arm64: dts: imx8mq-evk: " Sherry Sun (OSS)
@ 2026-07-01 11:01 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 11:01 UTC (permalink / raw)
Cc: devicetree, linux-pci, Frank.Li, imx, robh, conor+dt
> From: Sherry Sun <sherry.sun@nxp.com>
>
> Add the power supply properties to the Root Port child nodes to support
> the new PCI pwrctrl framework.
>
> Legacy power supply properties are retained for backward compatibility
> with existing kernels. New device trees should specify power supplies at
> the Root Port level to utilize the pwrctrl framework.
>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=5
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V5 4/7] arm64: dts: imx8mp-evk: Add power supply properties to Root Port node
2026-07-01 10:52 ` [PATCH V5 4/7] arm64: dts: imx8mp-evk: Add power supply properties " Sherry Sun (OSS)
@ 2026-07-01 11:02 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 11:02 UTC (permalink / raw)
Cc: conor+dt, devicetree, robh, Frank.Li, imx, linux-pci
> From: Sherry Sun <sherry.sun@nxp.com>
>
> Add the power supply properties to the Root Port child nodes to support
> the new PCI pwrctrl framework.
>
> Legacy power supply properties are retained for backward compatibility
> with existing kernels. New device trees should specify power supplies at
> the Root Port level to utilize the pwrctrl framework.
>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=4
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node
2026-07-01 10:52 ` [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node Sherry Sun (OSS)
@ 2026-07-01 11:04 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 11:04 UTC (permalink / raw)
Cc: imx, devicetree, linux-pci, Frank.Li, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Missing error check for pwrseq_power_on() in slot_pwrctrl_power_on() leads to potential kernel panic.
--
commit 4b51e513820a111cd03554e7f701a9ce808be27b
Author: Sherry Sun <sherry.sun@nxp.com>
arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node
This commit adds the power supply property to the Root Port child node to
support the new PCI pwrctrl framework. The legacy power supply property is
retained for backward compatibility.
> diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
> index fe9046c03ddd6..60fe0f973668b 100644
> --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
> +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
> @@ -756,12 +756,14 @@ &pcie {
> pinctrl-0 = <&pinctrl_pcie>;
> /* This property is deprecated, use reset-gpios from the Root Port node. */
> reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>;
> + /* This property is deprecated, use power supply from the Root Port node. */
> vpcie-supply = <®_pcie>;
> status = "okay";
> };
>
> &pcie_port0 {
> reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
> + vpcie3v3-supply = <®_pcie>;
[Severity: High]
This is a pre-existing issue, but does enabling the pwrctrl framework here
expose a regression where error checks are missing in the core code?
Looking at drivers/pci/pwrctrl/generic.c:slot_pwrctrl_power_on(), it drops
the error code from pwrseq_power_on() and unconditionally returns 0:
drivers/pci/pwrctrl/generic.c:slot_pwrctrl_power_on() {
...
if (slot->pwrseq) {
pwrseq_power_on(slot->pwrseq);
return 0;
}
...
}
If the power sequencer fails to power on the slot, the PCI subsystem is
falsely notified that the slot is ready. The PCI core will then enumerate
the bus and attempt to access the configuration space of the unpowered
device.
On ARM/ARM64 platforms, couldn't accessing unpowered PCIe registers result
in a synchronous external abort (SError) and an immediate kernel panic?
> };
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=1
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V5 7/7] arm64: dts: imx95: Move power supply properties to Root Port node
2026-07-01 10:52 ` [PATCH V5 7/7] arm64: dts: imx95: Move " Sherry Sun (OSS)
@ 2026-07-01 11:06 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 11:06 UTC (permalink / raw)
Cc: robh, devicetree, Frank.Li, conor+dt, linux-pci, imx
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The transition to the new PCI pwrctrl framework is incomplete across the i.MX95 platform. Several other i.MX95 board definitions were omitted from this migration and still retain the legacy `vpcie-supply` property in the host controller node instead of moving them to the Root Port child nodes.
--
commit b94f7498d750422b57ec34a9401c66058aec3470
Author: Sherry Sun <sherry.sun@nxp.com>
arm64: dts: imx95: Move power supply properties to Root Port node
Move the power supply properties from the PCIe controller nodes to the
Root Port child nodes to support the new PCI pwrctrl framework.
> Move the power supply properties from the PCIe controller nodes to the
> Root Port child nodes to support the new PCI pwrctrl framework.
>
> Since i.MX95 is the new platform that under development phase, it should
> be fine to simply move the power supply properties.
[Severity: Low]
Are there other i.MX95 boards that should be included in this migration?
The transition to the new PCI pwrctrl framework appears incomplete across the
i.MX95 platform. Several other i.MX95 board definitions were omitted from this
migration and still retain the legacy vpcie-supply property in the host
controller node instead of moving them to the Root Port child nodes.
For example, arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts retains the
legacy power supply property in the host controller node:
&pcie0 {
...
vpcie-supply = <®_m2_mkey_pwr>;
...
};
Similar omissions appear in arch/arm64/boot/dts/freescale/imx95-19x19-frdm-pro.dts:
&pcie0 {
...
vpcie-supply = <®_m2_mkey_1_pwr>;
...
};
And in arch/arm64/boot/dts/freescale/imx95-19x19-verdin-evk.dts:
&pcie0 {
...
vpcie-supply = <®_pcie0>;
...
};
Should these boards also be updated to ensure consistent power management
behavior across the i.MX95 platform and allow future cleanup of the legacy
code?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=7
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH V5 2/7] arm: dts: imx6sx-sdb: Add power supply property to Root Port node
2026-07-01 10:52 ` [PATCH V5 2/7] arm: dts: imx6sx-sdb: " Sherry Sun (OSS)
@ 2026-07-01 11:10 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-07-01 11:10 UTC (permalink / raw)
Cc: devicetree, linux-pci, conor+dt, Frank.Li, imx, robh
> From: Sherry Sun <sherry.sun@nxp.com>
>
> Add the power supply property to the Root Port child node to support the
> new PCI pwrctrl framework.
>
> Legacy power supply property is retained for backward compatibility with
> existing kernels. New device trees should specify power supply at the
> Root Port level to utilize the pwrctrl framework.
>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260701105234.198987-1-sherry.sun@oss.nxp.com?part=2
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2026-07-01 11:10 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 10:52 [PATCH V5 0/7]PCI: imx6: Integrate pwrctrl API and update device trees Sherry Sun (OSS)
2026-07-01 10:52 ` [PATCH V5 1/7] arm: dts: imx6qdl-sabresd: Add power supply property to Root Port node Sherry Sun (OSS)
2026-07-01 11:04 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 2/7] arm: dts: imx6sx-sdb: " Sherry Sun (OSS)
2026-07-01 11:10 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 3/7] arm64: dts: imx8mm-evk: " Sherry Sun (OSS)
2026-07-01 10:56 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 4/7] arm64: dts: imx8mp-evk: Add power supply properties " Sherry Sun (OSS)
2026-07-01 11:02 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 5/7] arm64: dts: imx8mq-evk: " Sherry Sun (OSS)
2026-07-01 11:01 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 6/7] arm64: dts: imx8dxl/qm/qxp: " Sherry Sun (OSS)
2026-07-01 10:57 ` sashiko-bot
2026-07-01 10:52 ` [PATCH V5 7/7] arm64: dts: imx95: Move " Sherry Sun (OSS)
2026-07-01 11:06 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox