[PATCH 0/2] MIPS: SGI-IP30: power off through the RTC
From: Imre Kaloz
Date: Tue Oct 13 2026 - 08:09:36 EST
The Octane's power supply is switched by its DS1687 RTC. Patch 1 uses
it for power-off and halt. Patch 2 turns a power button press into an
orderly power-off, and adds the hook to the IOC3 RTC platform data in
drivers/mfd/ioc3.c.
Both take effect only with CONFIG_RTC_DRV_DS1685_FAMILY=y, which
ip30_defconfig sets with "MIPS: SGI-IP30: fix the defconfig defaults
for the Bridge PROM and RTC" from the "MIPS: SGI fixes" series. They
build without it, and without the rtc-ds1685 power-off fixes sent to
the RTC tree.
Tested on an Octane with poweroff, one and two power button presses,
and a stalled shutdown.
Imre Kaloz (2):
MIPS: SGI-IP30: power off through the DS1687 RTC
MIPS: SGI-IP30: shut down cleanly on a power button press
arch/mips/include/asm/sgi/heart.h | 2 ++
arch/mips/sgi-ip30/ip30-power.c | 56 +++++++++++++++++++++++++++++++
drivers/mfd/ioc3.c | 6 ++++
3 files changed, 64 insertions(+)
base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
--
2.47.3