Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
18de842
dt-bindings: power: apple,pmp-report: add apple,sleep-wakeup-path
Ante042 Dec 1, 2026
6dcf802
pmdomain: apple: pmp-report: keep an entry on for a wakeup-path consumer
Ante042 Dec 1, 2026
a654145
arm64: dts: apple: t6000: keep dcpext1 powered through s2idle
Ante042 Dec 1, 2026
13ca415
mmc: sdhci-pci-gli: keep the card across a GL9755 power cut on resume
Ante042 Nov 28, 2026
49c2fdc
drm/apple: route a DP-alt port only once its display asserts HPD
Ante042 Dec 3, 2026
0a274fa
drm/apple: av: close an audio instance the firmware replaced while open
Ante042 Dec 3, 2026
56487b2
dt-bindings: soc: apple: sleep: add T6000
Ante042 Nov 30, 2026
9742a2e
soc: apple: sleep: add apple_t6000_sleep_described()
Ante042 Nov 30, 2026
1173566
soc: apple: rtkit: restart an idled co-processor with its buffers kept
Ante042 Nov 30, 2026
7baac87
soc: apple: rtkit: add a polled IOP idle
Ante042 Dec 1, 2026
0d68766
soc: apple: mailbox: add apple_mbox_set_send_enabled()
Ante042 Nov 30, 2026
a6a60b3
dmaengine: apple-sio: park the T6000 SIO firmware late for a deep sleep
Ante042 Nov 30, 2026
08e1d8b
dt-bindings: nvme: apple,nvme-ans: add the T6000 ANS sleep tunables
Ante042 Dec 2, 2026
12642fa
nvme: apple: put ANS's sleep-reset tunables back from the device tree
Ante042 Dec 1, 2026
a7aa4a3
PCI: apple: bring the T6000 internal ports back in the noirq resume
Ante042 Nov 30, 2026
4b097f2
PCI: apple: cut off a T6000 host whose port does not come back from s…
Ante042 Dec 1, 2026
bb447fc
pmdomain: apple: pmp-report: set or clear any request bit for a sleep
Ante042 Nov 30, 2026
0a0b335
soc: apple: pmp: withdraw the T600x requests and idle DVFS before the…
Ante042 Nov 30, 2026
492282e
soc: apple: pmp: answer a firmware that sets itself up again after a …
Ante042 Nov 30, 2026
7b77feb
dt-bindings: soc: apple: pmp: add the reset vector register
Ante042 Nov 30, 2026
c7202a2
soc: apple: pmp: put the reset vector back after a sleep
Ante042 Nov 30, 2026
79a1aee
arm64: dts: apple: t6000: keep the PMP SRAM and reset vector over sleep
Ante042 Nov 30, 2026
712a596
iommu/apple-dart: keep a T6000 DART's address filter over a sleep too
Ante042 Nov 30, 2026
56c8d0b
arm64: dts: apple: t6000: name the PMP DART's address filter
Ante042 Nov 30, 2026
14914e9
soc: apple: pmp: power-cycle the T6000 PMP for a deep sleep
Ante042 Dec 1, 2026
b4bfb14
soc: apple: sep: take the deep sleep answer wait from the SoC profile
Ante042 Nov 30, 2026
821ce58
soc: apple: sep: resume the T6000 enclave through its SEPROM
Ante042 Nov 30, 2026
875ba10
soc: apple: sep: enable the T6000 enclave's inbox before its resume
Ante042 Nov 30, 2026
27f2391
soc: apple: sleep: let a gen-1 SMC's last keys still refuse the sleep
Ante042 Dec 1, 2026
df7d1b8
soc: apple: sep: T6000: send the sleep request at the commit
Ante042 Dec 2, 2026
0daf8d0
mfd: macsmc: tell a T6000 SMC of the firmware sleep as gen 1, with pmVC
Ante042 Nov 30, 2026
b54950e
irqchip/apple-aic: keep the T6000 AICv2 across a firmware sleep
Ante042 Nov 30, 2026
ec14d06
iommu/apple-dart: poll a T8020-layout DART's TLB busy flag around a s…
Ante042 Nov 30, 2026
f6c4c36
iommu/apple-dart: restore locked DARTs after a T6000 firmware sleep
Ante042 Nov 30, 2026
f7e5cb4
HID: spi-hid-apple: no wake interrupt in a T6000 firmware sleep
Ante042 Nov 30, 2026
dde84a4
dt-bindings: usb: ti,tps6598x: add apple,sleep-ssps-rules for CD321x
Ante042 Dec 2, 2026
c5c82fb
arm64: dts: apple: t6000-j314s: put the port controllers in S3 to sleep
Ante042 Nov 30, 2026
d6736db
soc: apple: sleep: add optional profile hooks at .prepare and .end
Ante042 Nov 30, 2026
f817f4a
soc: apple: sleep: let a driver stop its coprocessor at .prepare
Ante042 Dec 1, 2026
4750fcd
soc: apple: sleep: let a driver start its coprocessor again at .finish
Ante042 Dec 1, 2026
6aa17a6
soc: apple: aop: stop the T6000 endpoints for a deep sleep at .prepare
Ante042 Dec 1, 2026
149131d
soc: apple: sleep: let a profile act right after the SMC's sleep warning
Ante042 Dec 1, 2026
5c69320
soc: apple: sleep: T6000: take the internal display and GFX port down
Ante042 Nov 30, 2026
9fadbf0
pinctrl: apple: keep the T6000 AP pins across a deep sleep
Ante042 Dec 1, 2026
f06f74c
soc: apple: sleep: add the T6000 profile
Ante042 Nov 30, 2026
a69dc06
soc: apple: sleep: T6000: route a core's IRQs away before it goes off…
Ante042 Dec 1, 2026
dc0add2
soc: apple: sleep: let a gen-1 SoC tell the SMC before its peers stop
Ante042 Nov 30, 2026
a3b959a
drm/apple: add the firmware 13.5 A500 link sleep call
Ante042 Dec 2, 2026
8a789cd
drm/apple: remember a poweron that timed out
Ante042 Dec 2, 2026
f24eb6f
soc: apple: sleep: T6000: power-cycle disp0 after a refused sleep
Ante042 Nov 30, 2026
219efd4
drm/apple: T6000: park the internal DCP for deep sleep
Ante042 Nov 30, 2026
766445b
soc: apple: sleep: T6000: take the external display blocks down too
Ante042 Dec 1, 2026
f7b1c0e
soc: apple: sleep: add a step right after the first coprocessor stops
Ante042 Dec 2, 2026
bd4da8a
soc: apple: sleep: T6000: take the GPU port down past the last refusal
Ante042 Dec 2, 2026
cedc6c1
drm/asahi: stop the T6000 GPU firmware at the sleep's commit
Ante042 Nov 30, 2026
1bbf25e
drm/apple: T6000: park the external DCPs for deep sleep too
Ante042 Dec 1, 2026
44f07e7
soc: apple: sleep: T6000: check for an interrupt again after the quiesce
Ante042 Dec 1, 2026
d2c129c
mfd: macsmc: T6000: take the wake record at the platform finish
Ante042 Dec 1, 2026
d62f9bb
PM: wakeup: Add pm_wakeup_hold()
Ante042 Dec 1, 2026
2faeb30
soc: apple: sleep: T6000: hold wakeup events from .prepare on
Ante042 Dec 1, 2026
c263886
soc: apple: sleep: T6000: give up when the last WFI falls through
Ante042 Dec 1, 2026
8c22cab
arm64: dts: apple: t6000: name the ISP DART's address filter
Ante042 Dec 2, 2026
49b66ce
arm64: dts: apple: t6000: give ANS its sleep tunables
Ante042 Dec 2, 2026
abb3e06
soc: apple: sleep: T6000: refuse a sleep without the enclave in .begin
Ante042 Dec 1, 2026
31bba74
soc: apple: sleep: T6000: take the late steps' words from the device …
Ante042 Dec 2, 2026
3323db8
drm/apple: T6000: stop a Type-C DCP's Type-C work at suspend prepare
Ante042 Dec 1, 2026
922cd85
arm64: dts: apple: t6000: add the sleep controller
Ante042 Nov 30, 2026
882f6fe
drm/apple: T6000: refuse a deep sleep when a DCP is not parked
Ante042 Dec 3, 2026
754dcee
drm/apple: T6000: set the HDMI output up again after a deep sleep
Ante042 Dec 3, 2026
a9d50dd
drm/apple: T6000: release an attached HDMI display for a deep sleep
Ante042 Dec 3, 2026
7da3391
drm/apple: T6000: park a Type-C display's crossbar output for a deep …
Ante042 Dec 3, 2026
538b824
dmaengine: apple-sio: start the parked T6000 SIO again after a sleep …
Ante042 Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Documentation/ABI/testing/sysfs-driver-apple-sep
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,13 @@ Description:
while Touch ID captures and entropy requests are held, and
"awake" otherwise. sleeps counts completed prepare/post
pairs since probe, aborted suspends included. The enclave's
power domains stay on across sleep, so every other attribute
power domains stay on across sleep, except in a T6000 deep
sleep: there the enclave is asked to sleep at the sleep's
commit, gates its own power island and is resumed through
its SEPROM once the tasks run again. If it does not answer
that request, does not gate its island or does not come
back after the wake, the driver stops using it and refuses
every later deep sleep until a reboot. Every other attribute
keeps its value over a suspend; a reader checking that the
enclave still answers after a resume reads the hwrng.

Expand Down
62 changes: 55 additions & 7 deletions Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ properties:

reg:
minItems: 2
items:
- description: NVMe controller registers, including the NVMMU
registers on SoCs without a separate NVMMU region
- description: ANS2 co-processor control registers
- description: NVMMU registers, a separate region since T8132 (and
on T604x)
maxItems: 4

reg-names:
oneOf:
Expand All @@ -62,6 +57,14 @@ properties:
- const: nvme
- const: nvmmu
- const: ans
- description: T6000. The NVMe controller and ANS2 co-processor
registers, then ANS's AXI2AF block and its storage-lane block
(ADT ans reg[4] and reg[5]).
items:
- const: nvme
- const: ans
- const: axi2af
- const: storage-lane

resets:
maxItems: 1
Expand Down Expand Up @@ -112,6 +115,29 @@ properties:
adopts that RTKit session without renegotiating it. Shared firmware
buffers must remain reserved and protected by the SART.

apple,tunable-axi2af:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
description:
The ADT's afc-aiu-ans-dual-tunables for the axi2af block, as [offset,
mask, value] entries. A deep sleep resets the block; the driver puts
them back before ANS2 starts again.
items:
items:
- description: register offset
- description: mask of the bits to clear
- description: bits to set

apple,tunable-storage-lane:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
description:
The ADT's storage-lane-common-tunables for the storage-lane block, as
[offset, mask, value] entries, put back as apple,tunable-axi2af is.
items:
items:
- description: register offset
- description: mask of the bits to clear
- description: bits to set

apple,sleep-wake-delay-ms:
description:
T6050. After a deep sleep, the time from the storage power being back
Expand Down Expand Up @@ -184,13 +210,35 @@ allOf:
minItems: 3
reg-names:
minItems: 3
else:

- if:
properties:
compatible:
not:
contains:
enum:
- apple,t6000-nvme-ans2
- apple,t6041-nvme-ans2
- apple,t6050-nvme-ans2
- apple,t8132-nvme-ans2
- apple,t8140-nvme-ans2
then:
properties:
reg:
maxItems: 2
reg-names:
maxItems: 2

- if:
properties:
compatible:
contains:
const: apple,t6000-nvme-ans2
else:
properties:
apple,tunable-axi2af: false
apple,tunable-storage-lane: false

- if:
properties:
compatible:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,15 @@ patternProperties:
switched with interrupts disabled. Setting the state takes a
spinlock and polls the acknowledgment atomically.

apple,sleep-wakeup-path:
type: boolean
description:
The consumer of this entry can keep its firmware running through a
system sleep and is then on the wakeup path. The OS keeps the entry,
and the power states it is a child of, on through system sleep while
its consumer is on the wakeup path, as apple,sleep-wakeup-path does
for a PMGR power state.

required:
- compatible
- reg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ properties:
rather than claim every view as an exclusive resource.

reg-names:
minItems: 2
items:
- const: pmp
- const: asc
- const: iorvbar
description:
The coprocessor's reset vector, which iBoot points at the firmware SRAM
and locks. A sleep that cuts its power resets it; the OS puts it back
before the firmware starts again.

mboxes:
maxItems: 1
Expand Down Expand Up @@ -179,7 +185,7 @@ allOf:
else:
properties:
reg:
maxItems: 2
maxItems: 3
power-domains:
maxItems: 1
interrupts: false
Expand Down
114 changes: 114 additions & 0 deletions Documentation/devicetree/bindings/soc/apple/apple,t8140-sleep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ description: |
properties:
compatible:
enum:
- apple,t6000-sleep
- apple,t8103-sleep
- apple,t8112-sleep
- apple,t8122-sleep
Expand Down Expand Up @@ -101,6 +102,78 @@ properties:
The DCP and the external DCPs, which must be off before a commit, in that
order.

apple,pmgr-misc:
$ref: /schemas/types.yaml#/definitions/phandle
description: |
The PMGR misc node (apple,t6000-pmgr-misc), whose "dcs-ps" and "fabric-ps"
words the sleep sets: the memory clock's and the fabric's performance state.

apple,sio:
$ref: /schemas/types.yaml#/definitions/phandle
description:
The SIO coprocessor. Its CPU (its first reg), its mailbox (mboxes) and
its DARTs (iommus) are stopped in the late steps while its CPU power word
(power-domains) is on.

apple,sleep-late-domains:
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
items:
- description: a PMGR power-state node
- description: the word written to it
description:
T6000. The PMGR power-state words the late steps write right before the
S2R timer, in that order, each with the value written; a node may appear
more than once. Restored on wake.

apple,tunable-gfx-fabric:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
items:
- description: Offset in the gfx-fabric reg.
- description: Bits to replace, always the whole word.
const: 0xffffffff
- description: Their value.
description:
The setup of the GPU's fabric port, applied in this order before its
power goes for a deep sleep, each word written as listed.

apple,tunable-disp0-fabric:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
items:
- description: Offset in the disp0-fabric reg.
- description: Bits to replace, always the whole word.
const: 0xffffffff
- description: Their value.
description:
The setup of the internal display block's fabric port, applied in this order before its
power goes for a deep sleep, each word written as listed.

apple,tunable-dispext0-fabric:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
items:
- description: Offset in the dispext0-fabric reg.
- description: Bits to replace, always the whole word.
const: 0xffffffff
- description: Their value.
description:
The setup of the first external display block's fabric port, applied in this order before its
power goes for a deep sleep, each word written as listed.

apple,tunable-dispext1-fabric:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
items:
- description: Offset in the dispext1-fabric reg.
- description: Bits to replace, always the whole word.
const: 0xffffffff
- description: Their value.
description:
The setup of the second external display block's fabric port, applied in this order before its
power goes for a deep sleep, each word written as listed.

apple,nco:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Expand All @@ -125,6 +198,47 @@ required:
- apple,display-coprocessors

allOf:
- if:
properties:
compatible:
contains:
const: apple,t6000-sleep
then:
required:
- apple,wake-enable
- apple,pmgr-misc
- apple,sio
- apple,sleep-late-domains
- apple,nco
- apple,tunable-gfx-fabric
- apple,tunable-disp0-fabric
- apple,tunable-dispext0-fabric
- apple,tunable-dispext1-fabric
properties:
reg:
minItems: 13
maxItems: 13
reg-names:
items:
- const: wake
- const: ps
- const: ps-east
- const: cpu-start
- const: wdt
- const: commit
- const: spmi-irq
- const: ptd
- const: clk-gen
- const: gfx-fabric
- const: disp0-fabric
- const: dispext0-fabric
- const: dispext1-fabric
else:
properties:
apple,tunable-gfx-fabric: false
apple,tunable-disp0-fabric: false
apple,tunable-dispext0-fabric: false
apple,tunable-dispext1-fabric: false
- if:
properties:
compatible:
Expand Down
10 changes: 10 additions & 0 deletions Documentation/devicetree/bindings/usb/ti,tps6598x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ properties:
Tell the controller the system's power state (SSPS) around a
firmware-driven suspend, S3 before it and S0 after.

apple,sleep-ssps-rules:
type: boolean
description:
Talk to the controller under the sleep's rules. A controller that does
not take S3 refuses the sleep. One that does not take S0 after it is
set up again (system power state and interrupt mask) by the driver's
controller setup recovery, and the failure is reported. A command found
done on a read made past its limit counts as done.

firmware-name:
description: |
Should contain the name of the default patch binary
Expand Down Expand Up @@ -106,6 +115,7 @@ allOf:
then:
properties:
apple,sleep-ssps: false
apple,sleep-ssps-rules: false

additionalProperties: false

Expand Down
42 changes: 42 additions & 0 deletions arch/arm64/boot/dts/apple/t6000-j314s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,44 @@
status = "okay";
};

/*
* The SMC's sleep keys and wake record: pmVC is written 0x100 between slpw and slpa, as macOS
* does; the wake reasons are the ADT's smc-pmu event_name-bitN.
*/
&smc {
apple,sleep-pmvc = <0x100>;
apple,wake-reasons = <0 8 9 10 11 12 14 40 41 42 43 44 45 48>;
apple,wake-reason-names = "pwrbtn", "lid", "charger", "codec", "wifibt",
"trackpadkeyboard", "sdconn", "acattach", "acdetach",
"USB-C_plug", "USB2_plug", "USB2_wake", "aupo", "rtc";
};

/*
* The port controllers' system power state: S3 before a firmware-driven sleep, S0 after it.
* Left in S0, a controller keeps raising events after its bus is down, and the SMC wakes the
* machine at once with acdetach. Under the sleep's rules a controller that does not take S3
* refuses the sleep, and one that does not take S0 again is set up again by the driver.
*/
&hpm0 {
apple,sleep-ssps;
apple,sleep-ssps-rules;
};

&hpm1 {
apple,sleep-ssps;
apple,sleep-ssps-rules;
};

&hpm2 {
apple,sleep-ssps;
apple,sleep-ssps-rules;
};

&hpm5 {
apple,sleep-ssps;
apple,sleep-ssps-rules;
};

/*
* From the J314s platform device tree (/arm-io/spi2/mesa): the power line
* is gpio0 pin 196 (function-mesa_pwr, active high) and the data-ready line
Expand Down Expand Up @@ -91,3 +129,7 @@
&apciec3_piodma {
status = "disabled";
};

&sleep {
status = "okay";
};
Loading
Loading