From 6d5ec4dd45a5b63f9c891425b09fa49acdaeadc6 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 25 Nov 2026 08:14:56 +0300 Subject: [PATCH] arm64: dts: apple: t8142-j815: Give the SEP its power domains The SEP driver stages its sleep request for the commit on the SEP's PMGR word, which it finds through the node's first power domain. The J815 node named none, so every deep sleep was refused with "irreversible request could not be staged (ENOENT)". Describe the GPIO (+0x120) and SEP (+0xc00) words from the J815 ADT, both always on, and name them on the SEP node, as J813 does. Signed-off-by: Nick --- arch/arm64/boot/dts/apple/t8142-j815.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8142-j815.dts b/arch/arm64/boot/dts/apple/t8142-j815.dts index 82e73d6dafc2b..ebb6a5270f0f6 100644 --- a/arch/arm64/boot/dts/apple/t8142-j815.dts +++ b/arch/arm64/boot/dts/apple/t8142-j815.dts @@ -358,6 +358,29 @@ * init (drivers/soc/apple/dt.rs). */ &pmgr { + /* + * From the J815 ADT, as on J813: GPIO at +0x120 and SEP at +0xc00, both + * always on (the enclave gates its own domain). The SEP driver stages its + * sleep request on the SEP word, so the node has to name it. + */ + ps_gpio: power-controller@120 { + compatible = "apple,t8142-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0x120 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "gpio"; + apple,always-on; + }; + + ps_sep: power-controller@c00 { + compatible = "apple,t8142-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; + reg = <0xc00 4>; + #power-domain-cells = <0>; + #reset-cells = <0>; + label = "sep"; + apple,always-on; + }; + ps_spi2: power-controller@440 { compatible = "apple,t8142-pmgr-pwrstate", "apple,t8103-pmgr-pwrstate"; reg = <0x440 4>; @@ -375,6 +398,7 @@ mboxes = <&sep_mbox>; mbox-names = "mbox"; iommus = <&sep_dart 0>; + power-domains = <&ps_sep>, <&ps_gpio>; status = "disabled"; };