* [PATCH v4] ARM: dts: aspeed: clemente: add gpio line name to io expander
@ 2025-11-25 5:42 Kimi Chen via B4 Relay
2025-11-27 0:37 ` Andrew Jeffery
0 siblings, 1 reply; 2+ messages in thread
From: Kimi Chen via B4 Relay @ 2025-11-25 5:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
Andrew Jeffery
Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
george.kw.lee, Kimi Chen
From: Kimi Chen <kimi.zy.chen@fii-foxconn.com>
The chassis power cycle process requires a forced shutdown before
cutting off the standby power. The SCM CPLD implements a hard shutdown
host function that is controlled through the IO expander in the
Clemente platform.
This change adds a new GPIO line named "shdn_force_l_cpld" to the
PCA9555 IO expander's gpio-line-names at index 10. When asserted,
this GPIO signals the CPLD to pull the HPM's SHDN_FORCE_L pin low,
which triggers a forced host shutdown.
Signed-off-by: Kimi Chen <kimi.zy.chen@fii-foxconn.com>
---
Changes in v4:
- Rebased onto latest kernel; corrected "shdn_force_l_cpld" positioning
in gpio-line-names from line 6 (v3) to index 10 (dts array index, not device pin).
- Updated commit message to clarify "index 10" refers to gpio-line-names
array position, not PCA9555 device pin.
- Link to v3: https://lore.kernel.org/r/20251120-dts-add-gpio-to-io-expander-v3-1-cb650ac76f85@fii-foxconn.com
Changes in v3:
- Improve commit message clarity: restructure the description to clarify the
complete signal flow (BMC → IO expander → "shdn_force_l_cpld" GPIO → CPLD →
SHDN_FORCE_L pin → HPM → forced host shutdown).
- Rename GPIO line to match the schematics net naming convention.
- Add rationale: The current standby-AC power cycling process is suboptimal.
When HSC power is turned off while host power remains active, the FPGA may
detect a power fault. During this fault window, the FPGA—sustained by holdup
capacitance—asserts power brake and initiates power-down sequence. A forced
shutdown before cutting standby power ensures the FPGA properly handles the
AC cycle event without spurious fault assertions. This patch enables the BMC
to perform forced shutdown via the IO expander GPIO, thereby optimizing the
standby-AC power cycling process.
- Link to v2: https://lore.kernel.org/r/20251107-dts-add-gpio-to-io-expander-v2-1-585d48845546@fii-foxconn.com
Changes in v2:
- Add "hard_shutdown_host" GPIO line name to PCA9555 IO expander for Clemente platform.
- Link to v1: https://lore.kernel.org/r/20251106-dts-add-gpio-to-io-expander-v1-1-b4765c092ebe@fii-foxconn.com
---
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
index 885c50a7d665..dfe8f6d0eeef 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
@@ -1013,7 +1013,7 @@ io_expander4: gpio@4f {
"",
"",
"",
- "",
+ "shdn_force_l_cpld",
"",
"",
"",
---
base-commit: f5f4511ccb747e01ed5364e9eec7be8b62020c4b
change-id: 20251106-dts-add-gpio-to-io-expander-a4c32ccf56aa
Best regards,
--
Kimi Chen <kimi.zy.chen@fii-foxconn.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v4] ARM: dts: aspeed: clemente: add gpio line name to io expander
2025-11-25 5:42 [PATCH v4] ARM: dts: aspeed: clemente: add gpio line name to io expander Kimi Chen via B4 Relay
@ 2025-11-27 0:37 ` Andrew Jeffery
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Jeffery @ 2025-11-27 0:37 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Kimi Chen
Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel, george.kw.lee
On Tue, 25 Nov 2025 13:42:50 +0800, Kimi Chen wrote:
> The chassis power cycle process requires a forced shutdown before
> cutting off the standby power. The SCM CPLD implements a hard shutdown
> host function that is controlled through the IO expander in the
> Clemente platform.
>
> This change adds a new GPIO line named "shdn_force_l_cpld" to the
> PCA9555 IO expander's gpio-line-names at index 10. When asserted,
> this GPIO signals the CPLD to pull the HPM's SHDN_FORCE_L pin low,
> which triggers a forced host shutdown.
>
> [...]
Thanks, I've applied this to the BMC tree.
--
Andrew Jeffery <andrew@codeconstruct.com.au>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-27 0:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-25 5:42 [PATCH v4] ARM: dts: aspeed: clemente: add gpio line name to io expander Kimi Chen via B4 Relay
2025-11-27 0:37 ` Andrew Jeffery
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®