From ae94c46cb3332d4b188b30dbe1b6b2de1d149055 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 3 Dec 2026 04:24:42 +1100 Subject: [PATCH] soc: apple: sleep-t8122: cover ANE, ISP, and fpwm1 domains at sleep entry t8122_ps_all[] omitted the four ANE subdomain power states present in t8122-pmgr.dtsi (ps_ane_mpm 0xc000, ps_ane_cpu 0xc008, ps_ane_td 0xc010, ps_ane_base 0xc018), and t8122_stray[] did not include the ISP sensor and set domains (0x180..0x198, 0x4000..0x4060), ANE domains (0xc000..0xc018, 0x438), or fpwm1 (0x220) that can remain powered at deep-sleep entry on J615. Add the four ANE power states to t8122_ps_all[] and list the ISP, ANE, and fpwm1 domains in child-before-parent order in t8122_stray[] so apple_sleep_lower_stray() turns them off before commit and restores them in reverse order on refusal or wake. Domains already off are untouched, and dry runs perform no power writes. Signed-off-by: Ryan Murray --- drivers/soc/apple/sleep-t8122.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/soc/apple/sleep-t8122.h b/drivers/soc/apple/sleep-t8122.h index ad2d2661cf47d..bc5d6104777b3 100644 --- a/drivers/soc/apple/sleep-t8122.h +++ b/drivers/soc/apple/sleep-t8122.h @@ -103,7 +103,8 @@ static const u32 t8122_ps_all[] = { 0x438, 0x440, 0x448, 0x450, 0x458, 0x460, 0x468, 0x470, 0x478, 0x480, 0x488, 0x490, 0x498, 0x4a0, 0x4a8, 0x4b0, 0x4b8, 0x4c0, 0xc00, 0x4000, 0x4008, 0x4010, 0x4018, 0x4020, 0x4028, 0x4030, 0x4038, 0x4040, 0x4048, 0x4050, - 0x4058, 0x4060, 0x8000, 0x8008, 0x8010, 0x8018, 0x8020, 0x10000, + 0x4058, 0x4060, 0x8000, 0x8008, 0x8010, 0x8018, 0x8020, 0xc000, + 0xc008, 0xc010, 0xc018, 0x10000, }; /* @@ -138,7 +139,15 @@ static const u32 t8122_ps_aon_wake_order[] = { 0x90 }; * lowering turns children off first and reverse restore raises parents first. */ static const struct apple_sleep_word t8122_stray[] = { - { "isp_sys", 0x1e8 }, { "fpwm0", 0x218 }, { "i2c1", 0x238 }, { "i2c2", 0x240 }, + { "ispsens0", 0x180 }, { "ispsens1", 0x188 }, { "ispsens2", 0x190 }, + { "ispsens3", 0x198 }, { "isp_set12", 0x4060 }, { "isp_set11", 0x4058 }, + { "isp_set10", 0x4050 }, { "isp_set8", 0x4048 }, { "isp_set7", 0x4040 }, + { "isp_set6", 0x4038 }, { "isp_set5", 0x4030 }, { "isp_set9", 0x4028 }, + { "isp_set4", 0x4020 }, { "isp_fe", 0x4018 }, { "isp_set2", 0x4010 }, + { "isp_set1", 0x4008 }, { "isp_set0", 0x4000 }, { "isp_sys", 0x1e8 }, + { "ane_base", 0xc018 }, { "ane_td", 0xc010 }, { "ane_cpu", 0xc008 }, + { "ane_mpm", 0xc000 }, { "ane_sys", 0x438 }, { "fpwm0", 0x218 }, + { "fpwm1", 0x220 }, { "i2c1", 0x238 }, { "i2c2", 0x240 }, { "i2c3", 0x248 }, { "i2c4", 0x250 }, { "aes", 0x290 }, { "spi2", 0x2a8 }, { "qspi", 0x2c8 }, { "sio_cpu", 0x210 }, { "venc_me1", 0x8020 }, { "venc_me0", 0x8018 }, { "venc_pipe5", 0x8010 }, { "venc_pipe4", 0x8008 }, { "venc_dma", 0x8000 },