Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
965e5b3
dt-bindings: pci: apple,pcie: allow T6030 sleep PHY and clock registe…
DjDeveloperr Dec 2, 2026
6ef9f5f
dt-bindings: soc: apple: add T6030 sleep controller binding
DjDeveloperr Dec 2, 2026
b1bb539
spmi: apple: preserve masked pending interrupts on T6030
DjDeveloperr Dec 2, 2026
a1b0a90
phy: apple: atc: mark T6030 common power domain dropped across deep s…
DjDeveloperr Dec 2, 2026
be5ed7b
mfd: macsmc: support generic SMC sleep policy and pre-SLPA pacing
DjDeveloperr Dec 2, 2026
1b0cf43
iommu/apple-dart: gate PMP DART across failed wakes
DjDeveloperr Dec 2, 2026
90f1d71
soc: apple: pmp-export: mark PMP DART sleep-managed on T6030
DjDeveloperr Dec 2, 2026
3e47212
soc: apple: sleep: add T6030 provider hooks
DjDeveloperr Dec 2, 2026
53742ef
pmdomain: apple: pmgr-pwrstate: keep provider-owned domains across sleep
DjDeveloperr Dec 2, 2026
4d410bc
soc: apple: sleep: add T6030 firmware sleep provider
DjDeveloperr Dec 2, 2026
f027342
arm64: dts: apple: add T6030 sleep controller and enable on J516s
DjDeveloperr Dec 2, 2026
6473a6c
arm64: dts: apple: t6030-j516s: name the Touch ID calibration
DjDeveloperr Dec 3, 2026
b023a0e
selftests: apple: cover the T6030 sleep hooks in host tests
DjDeveloperr Dec 3, 2026
efbb666
Merge PR #3809 (T6030 PCIe S2R host DART takeover) into feat/t6030-sl…
DjDeveloperr Dec 3, 2026
8671481
soc: apple: sleep: t6030: address review feedback on sleep provider a…
DjDeveloperr Dec 3, 2026
51a51d3
arm64: dts: apple: t6030: match ADT gpio0 skip pins and J516s SMC wak…
DjDeveloperr Dec 3, 2026
64ba2fb
soc: apple: sleep: t6030: run first-entry init in sleep_begin
DjDeveloperr Dec 3, 2026
4d76e17
soc: apple: sleep: t6030: restore J516s S2R DT invariants and probe-t…
DjDeveloperr Dec 3, 2026
f66d67e
soc: apple: sleep: t6030: gate probe on OS firmware 27.2
DjDeveloperr Dec 3, 2026
aa90ecc
Merge branch 'main' into feat/t6030-sleep-provider-v3
DjDeveloperr Dec 3, 2026
731c7e3
soc: apple: sleep: don't count T6030's ANS tables as missing
DjDeveloperr 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
70 changes: 51 additions & 19 deletions Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -747,12 +747,12 @@ allOf:
properties:
compatible:
contains:
const: apple,t6041-pcie
const: apple,t6030-pcie
then:
properties:
reg:
minItems: 10
maxItems: 15
maxItems: 18
reg-names:
minItems: 10
items:
Expand All @@ -769,25 +769,57 @@ allOf:
- const: axi2af
- const: cio3pll
- const: clkgen
- const: phy-block
- const: phy-common
- const: phy-shared
- const: phy-ip
- const: intr2axi0
- const: intr2axi1
else:
properties:
reg:
maxItems: 10
reg-names:
minItems: 3
items:
- const: config
- const: rc
- const: port0
- const: port1
- const: port2
- const: port3
- const: phy0
- const: phy1
- const: phy2
- const: phy3
if:
properties:
compatible:
contains:
const: apple,t6041-pcie
then:
properties:
reg:
minItems: 10
maxItems: 15
reg-names:
minItems: 10
items:
- const: config
- const: rc
- const: port0
- const: port1
- const: port2
- const: port3
- const: phy0
- const: phy1
- const: phy2
- const: phy3
- const: axi2af
- const: cio3pll
- const: clkgen
- const: phy-block
- const: phy-ip
else:
properties:
reg:
maxItems: 10
reg-names:
minItems: 3
items:
- const: config
- const: rc
- const: port0
- const: port1
- const: port2
- const: port3
- const: phy0
- const: phy1
- const: phy2
- const: phy3
patternProperties:
"^pci@":
properties:
Expand Down
222 changes: 222 additions & 0 deletions Documentation/devicetree/bindings/soc/apple/apple,t6030-sleep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/apple/apple,t6030-sleep.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple T6030 firmware suspend controller

maintainers:
- Diljit Singh <hey@djdev.me>

description:
Power manager, memory controller, CPU and wake register windows used for
firmware suspend on the Apple T6030 SoC.

properties:
compatible:
const: apple,t6030-sleep

reg:
minItems: 33
maxItems: 35

reg-names:
minItems: 33
items:
- const: commit
- const: pwrgate
- const: cpu-start
- const: cllt
- const: cluster
- const: ps
- const: wdt
- const: wake
- const: spmi
- const: ps-aon
- const: spmi-a0
- const: clk-mux
- const: clk-perf
- const: ps-gpu
- const: amcc0
- const: amcc1
- const: dcs0
- const: ptd
- const: cpm-e
- const: cpm-p
- const: amcc0-mc
- const: amcc1-mc
- const: dcs0-ch1
- const: dcs0-ch2
- const: dcs0-ch3
- const: dcs0-ch4
- const: dcs0-ch5
- const: dcs1-ch0
- const: dcs1-ch1
- const: dcs1-ch2
- const: dcs1-ch3
- const: dcs1-ch4
- const: dcs1-ch5
- const: pmp-mbox
- const: mca-switch

apple,display-coprocessors:
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
maxItems: 1
maxItems: 3
description: Internal and external display coprocessors in display order.

apple,display-darts:
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
maxItems: 1
maxItems: 3
description: Display IOMMU instances quiesced at display power-down.

apple,pcie-host:
$ref: /schemas/types.yaml#/definitions/phandle
description: General-purpose PCIe host parked and restored across sleep.

apple,pcie-darts:
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
maxItems: 1
maxItems: 4
description: General-purpose PCIe port IOMMU instances quiesced before sleep.

apple,pinctrl:
$ref: /schemas/types.yaml#/definitions/phandle
description: AP pin controller whose state is lost in firmware sleep.

apple,pinctrl-skip-pins:
oneOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- type: boolean
description: |
AP pins neither saved nor restored across sleep (from ADT gpio0
no-restore-gpio-pins). Empty where every pin is saved.

apple,sep-dart:
$ref: /schemas/types.yaml#/definitions/phandle
description: SEP IOMMU quiesced before requesting SEP sleep.

apple,mtp-dart:
$ref: /schemas/types.yaml#/definitions/phandle
description: MTP IOMMU quiesced after SMC AP idle acknowledgment.

apple,i2c6:
$ref: /schemas/types.yaml#/definitions/phandle
description: I2C controller saved and restored across sleep.

apple,debug-port:
$ref: /schemas/types.yaml#/definitions/phandle
description: USB-PD controller connected to the sleep debug port.

apple,wake-enable:
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 32
description: AP wake-source indices enabled by the board description.

apple,smc-sleep-policy:
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 6
maxItems: 6
description:
The SMC pmVC value, followed by the delays in microseconds from the
sleep warning to pmVC, pmVC to SLPA, SLPA to AP idle, AP idle to the
sleep timer, and the wake notice to pmVC.

patternProperties:
"^apple,seq-(prepare|notice|commit|wake-early|wake)$":
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
minItems: 4
maxItems: 4
description: |
Ordered register operations. Each four-cell entry is
<opcode block offset operand>:
- opcode bits 7:0: operation kind (0 write32, 1 read32, 2 set32,
3 clear32, 4 rewrite32, 5 wait-set32, 6 wait-clear32, 7 write16,
8 write64-hi, 9 clear64, 10 set64, 11 read64, 12 restore32,
13 restore64, 14 if-saved32, 15 if-saved64, 16 slc-off,
17 clear64-way). slc-off takes zero block, offset, and operand
and disables the system-level cache via multicast registers.
clear64-way clears one bit of a 64-bit AMCC way-mask register
and reads the matching way status register at offset + 0x1000
+ 8 * bit before and after.
- opcode bit 8: optional flag (for wait operations, ignore timeout).
- opcode bits 15:9: reserved, must be zero.
- opcode bits 31:16: timeout in milliseconds for wait operations
(0 defaults to 10 ms), or number of following entries guarded by
if-saved32/if-saved64.
- block: zero-based index into reg/reg-names.
- offset: naturally aligned byte offset within the register window.
- operand: write value, bitmask, or 0 for read/restore operations.

required:
- compatible
- reg
- reg-names
- apple,wake-enable
- apple,smc-sleep-policy

additionalProperties: false

examples:
- |
soc {
#address-cells = <2>;
#size-cells = <2>;

sleep-controller@3642d4000 {
compatible = "apple,t6030-sleep";
reg = <0x3 0x642d4000 0x0 0x4>,
<0x3 0x50724000 0x0 0x4000>,
<0x3 0x50734000 0x0 0x10>,
<0x3 0x50768000 0x0 0x40>,
<0x3 0x50780000 0x0 0x8>,
<0x3 0x50700000 0x0 0x18000>,
<0x3 0x642b0000 0x0 0x30>,
<0x3 0x64004000 0x0 0x48>,
<0x3 0x64714000 0x0 0x100>,
<0x3 0x64280000 0x0 0x4000>,
<0x3 0x64908000 0x0 0x100>,
<0x3 0x50040000 0x0 0x60>,
<0x3 0x5005c000 0x0 0x4>,
<0x2 0x90e80000 0x0 0x18000>,
<0x2 0x20000000 0x0 0xc0000>,
<0x2 0x22000000 0x0 0xc0000>,
<0x2 0x20400000 0x0 0x4000>,
<0x3 0x503c0000 0x0 0x20000>,
<0x2 0x10e40000 0x0 0xc000>,
<0x2 0x11e40000 0x0 0xc000>,
<0x2 0x201c1c00 0x0 0x4>,
<0x2 0x221c1c00 0x0 0x4>,
<0x2 0x20600000 0x0 0x1000>,
<0x2 0x20800000 0x0 0x1000>,
<0x2 0x20a00000 0x0 0x1000>,
<0x2 0x20c00000 0x0 0x1000>,
<0x2 0x20e00000 0x0 0x1000>,
<0x2 0x22400000 0x0 0x1000>,
<0x2 0x22600000 0x0 0x1000>,
<0x2 0x22800000 0x0 0x1000>,
<0x2 0x22a00000 0x0 0x1000>,
<0x2 0x22c00000 0x0 0x1000>,
<0x2 0x22e00000 0x0 0x1000>,
<0x3 0x50c08000 0x0 0x4000>,
<0x3 0x500400c0 0x0 0x10>;
reg-names = "commit", "pwrgate", "cpu-start", "cllt", "cluster",
"ps", "wdt", "wake", "spmi", "ps-aon", "spmi-a0",
"clk-mux", "clk-perf", "ps-gpu", "amcc0", "amcc1",
"dcs0", "ptd", "cpm-e", "cpm-p", "amcc0-mc", "amcc1-mc",
"dcs0-ch1", "dcs0-ch2", "dcs0-ch3", "dcs0-ch4",
"dcs0-ch5", "dcs1-ch0", "dcs1-ch1", "dcs1-ch2",
"dcs1-ch3", "dcs1-ch4", "dcs1-ch5", "pmp-mbox",
"mca-switch";
apple,wake-enable = <3 51 132 190 214>;
apple,smc-sleep-policy = <0x100 286300 4446000 560 9510 0>;
apple,seq-prepare = <8 17 0x10900 0x20000000>;
};
};
7 changes: 7 additions & 0 deletions Documentation/devicetree/bindings/spmi/apple,spmi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ properties:
controllers). Not applicable to generation 4 controllers
("apple,t8142-spmi").

apple,keep-pending-irqs:
type: boolean
description:
Preserve masked pending peripheral interrupt bits at probe and across
dispatches on buses where the firmware sleep path owns peripheral
interrupt status bits.

power-domains:
maxItems: 1

Expand Down
Loading
Loading