Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8c18c5f
dt-bindings: power: apple,pmgr-pwrstate: add apple,auto-managed
AxxzyWasTaken Nov 24, 2026
d5c35d6
pmdomain: apple: pmgr-pwrstate: enable auto-managed domains early at …
AxxzyWasTaken Nov 24, 2026
7a91bd4
arm64: dts: apple: t6041: describe auto-managed DCS and fabric power …
AxxzyWasTaken Nov 24, 2026
4edfe43
soc: apple: sleep: expose commit-time coprocessor and enclave hooks
AxxzyWasTaken Nov 24, 2026
1799fec
soc: apple: sep: support external EL2 sleep commit and suspend guards
AxxzyWasTaken Nov 24, 2026
fa4ee08
irqchip/apple-aic: save and restore the T6041 AIC around a firmware s…
AxxzyWasTaken Nov 24, 2026
6c13dcd
nvme-apple: support firmware sleep on T6041 and resume asynchronously
AxxzyWasTaken Nov 24, 2026
ec3ced9
soc: apple: pmp: keep the T6041 firmware data across a real sleep
AxxzyWasTaken Nov 24, 2026
fee9cd3
soc: apple: aop: T6041 sleep order
AxxzyWasTaken Nov 24, 2026
e17ca71
dmaengine: apple-sio: stop T6041 SIO at sleep commit
AxxzyWasTaken Nov 24, 2026
b5dc501
spmi: apple: drop replies left by firmware at a firmware-driven resume
AxxzyWasTaken Nov 24, 2026
c057793
pinctrl: apple: ack a level interrupt again after unmasking it
AxxzyWasTaken Nov 24, 2026
0572b09
Bluetooth: hci_bcm4377: rebind after power loss in a real sleep
AxxzyWasTaken Nov 24, 2026
c8521dd
PCI: apple: reinitialize conventional ports after firmware sleep
AxxzyWasTaken Nov 24, 2026
bcca7ba
dt-bindings: mfd: apple,smc: add apple,sleep-wake-type and apple,slee…
AxxzyWasTaken Nov 24, 2026
e4fbc2d
mfd: macsmc: write WKTP and pmVC from DT properties around sleep commit
AxxzyWasTaken Nov 24, 2026
6b6b1e6
drm/asahi: g17: enable sleep and warm firmware restart on T6041
AxxzyWasTaken Nov 24, 2026
6493300
iommu/apple-dart: add display DART keep/restore helper for T6041 S2R
AxxzyWasTaken Nov 24, 2026
f8faa80
soc: apple: display-gate: handle trees that describe disabled DISPEXT…
AxxzyWasTaken Nov 24, 2026
82c60c2
dt-bindings: display: describe T6041 host-driven sleep and display-power
AxxzyWasTaken Nov 24, 2026
4af660c
drm/apple: T6041 S2R display stop and warm restart
AxxzyWasTaken Nov 24, 2026
6cd3ffc
dt-bindings: pci: apple,pcie: allow T6041 shared storage/PHY reg windows
AxxzyWasTaken Nov 24, 2026
9213e56
dt-bindings: soc: apple: add apple,t6041-sleep binding
AxxzyWasTaken Nov 24, 2026
cd3d7cc
soc: apple: t6041-sleep: EL2 suspend-to-RAM driver for T6041
AxxzyWasTaken Nov 24, 2026
38bb772
arm64: dts: apple: t6041: wire sleep controller, PMGR domains, and di…
AxxzyWasTaken Nov 24, 2026
fc4c0a6
soc: apple: t6041-sleep: fix APCIe topo order, pcpm1 match, and auto-…
AxxzyWasTaken Nov 24, 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
15 changes: 12 additions & 3 deletions Documentation/devicetree/bindings/display/apple,dcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ properties:
apple,display-power:
$ref: /schemas/types.yaml#/definitions/phandle
description:
A node whose ps, pwrgate and pmc-dcp registers hold the display power
words this coprocessor's driver writes around a firmware restart, such
as an apple,t8140-display-power node.
A node describing the display power-state words (or PMGR power-domain
chains), power-gate retention words and pmc-dcp counter that this
coprocessor's driver writes around a firmware restart, such as an
apple,t8140-display-power or apple,t6041-display-power node.

apple,bw-scratch:
$ref: /schemas/types.yaml#/definitions/phandle-array
Expand Down Expand Up @@ -381,6 +382,14 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description: Display coprocessor index on multi-DCP systems.

apple,sleep-host-stop:
type: boolean
description:
The SoC's suspend-to-RAM needs this display coprocessor and the external
ones stopped, and their power domains lowered, by the operating system
before the sleep commit, and the internal one restarted after the wake.
The firmware doesn't take the display down for the sleep itself.

apple,typec-hybrid-first:
type: boolean
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,136 @@
$id: http://devicetree.org/schemas/display/apple,t8140-display-power.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple T8140 and T8142 display power words
title: Apple T6041, T8140 and T8142 display power words

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

description:
The words a display coprocessor's driver writes to power its domains off
and on around a restart of its firmware, as macOS does. A display
coprocessor names this node in its apple,display-power property. The words
belong to the power manager and the display block, so no driver binds it.
The words and PMGR power-state chains a display coprocessor's driver writes
to power its domains off and on around a restart of its firmware, as macOS
does. A display coprocessor names this node in its apple,display-power
property. The words belong to the power manager and the display block, so no
driver binds it.

properties:
compatible:
enum:
- apple,t6041-display-power
- apple,t8140-display-power
- apple,t8142-display-power

reg:
minItems: 2
maxItems: 3
maxItems: 5

reg-names:
minItems: 2
maxItems: 3
maxItems: 5

'#address-cells':
const: 1

'#size-cells':
const: 0

patternProperties:
'^chain@[0-9]+$':
type: object
description: |
One ordered display power-domain chain for apple,t6041-display-power,
powered down in reg order during suspend-to-RAM.
properties:
reg:
maxItems: 1

label:
description: Short name of the display chain (e.g. main, ext0..ext3).

apple,main-chain:
type: boolean
description:
Marks the internal display chain, which clears the display AXI2AF
bridge and PMC voter on stop and is restarted warm on wake.

apple,pwrgate-aux:
type: boolean
description:
Selects the pwrgate-aux register window instead of pwrgate for this
chain's power-gate retention words.

apple,gapf-offset:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Byte offset of this chain's clock-protection slice within the gapf
register window.

apple,pwrgate-offsets:
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 2
maxItems: 2
description:
Byte offsets of the pair of power-gate retention words (A, then B)
within the selected pwrgate window.

apple,fabric-domain:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Parent fabric PMGR power-state node held manually on while this chain
powers down, then returned to its previous auto-enable state.

power-domains:
minItems: 3
maxItems: 16
description: |
Ordered PMGR power-state nodes for this chain: SYS, FE, CPU, followed
by the chain's child sub-domains in parent-before-child order
(powered off in reverse).

required:
- reg
- label
- apple,gapf-offset
- apple,pwrgate-offsets
- power-domains

additionalProperties: false

required:
- compatible
- reg
- reg-names

allOf:
- if:
properties:
compatible:
const: apple,t6041-display-power
then:
properties:
reg:
items:
- description: the display PMC voter counter pair
- description: the internal display power gate retention words
- description: the external display power gate retention words
- description: the clock-protection slices for all display chains
- description: the internal display AXI2AF bridge registers
reg-names:
items:
- const: pmc-dcp
- const: pwrgate
- const: pwrgate-aux
- const: gapf
- const: axi2af
required:
- '#address-cells'
- '#size-cells'
else:
properties:
'#address-cells': false
'#size-cells': false
patternProperties:
'^chain@[0-9]+$': false
- if:
properties:
compatible:
Expand Down Expand Up @@ -70,6 +169,51 @@ allOf:
additionalProperties: false

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

display-power@5048a9c14 {
compatible = "apple,t6041-display-power";
reg = <0x5 0x048a9c14 0x0 0x8>,
<0x5 0x022a1000 0x0 0x100>,
<0x5 0x0282d000 0x0 0x1000>,
<0x5 0x00578000 0x0 0x1000>,
<0x4 0x03000100 0x0 0x10>;
reg-names = "pmc-dcp", "pwrgate", "pwrgate-aux", "gapf", "axi2af";
#address-cells = <1>;
#size-cells = <0>;

chain@0 {
reg = <0>;
label = "ext3";
apple,pwrgate-aux;
apple,gapf-offset = <0x740>;
apple,pwrgate-offsets = <0xfb4 0xfd8>;
power-domains = <&ps_dispext3_sys>, <&ps_dispext3_fe>,
<&ps_dispext3_cpu>, <&ps_dispext3_dbe>,
<&ps_dpext3>, <&ps_dispext3_gp0>,
<&ps_dispext3_gp1>, <&ps_dispext3_gpl>,
<&ps_dispext3_ppp>, <&ps_dispext3_dsc>;
};

chain@4 {
reg = <4>;
label = "main";
apple,main-chain;
apple,gapf-offset = <0x540>;
apple,pwrgate-offsets = <0x1c 0x60>;
apple,fabric-domain = <&ps_fab6_soc>;
power-domains = <&ps_disp_sys>, <&ps_disp_fe>, <&ps_disp_cpu>,
<&ps_disp_spi>, <&ps_disp_spmi>, <&ps_disp_dbe>,
<&ps_disp_dp>, <&ps_disp_gp0>, <&ps_disp_gp1>,
<&ps_disp_gpl>, <&ps_disp_cmb>, <&ps_disp_ppp>,
<&ps_disp_brc>, <&ps_disp_blc>;
};
};
};

- |
soc {
#address-cells = <2>;
Expand Down
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/mfd/apple,smc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ properties:
mboxes:
maxItems: 1

apple,sleep-wake-type:
type: boolean
description:
The SMC firmware expects the wake type key (WKTP) set to its sleep value
at the sleep commit, and cleared after a full wake. Left at the sleep
value, the SMC treats the time awake as a power nap.

apple,sleep-pmvc:
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0x100
maximum: 0x1ff
description:
The value written to the SMC's VDD_CIO rail key (pmVC) at the sleep
commit, before the sleep notice. Bit 8 is set, and bit n keeps port n's
CIO rail powered across the sleep. Which rails must stay up depends on
what the SoC's sleep sequence powers on itself. Without the property
pmVC is not written.

gpio:
oneOf:
- $ref: /schemas/gpio/apple,smc-gpio.yaml
Expand Down
61 changes: 45 additions & 16 deletions Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -694,22 +694,51 @@ allOf:
interrupts:
maxItems: 3
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,30 @@ allOf:
apple,sleep-retained: false
apple,sleep-driver-owned: false
apple,always-on: false
apple,auto-managed: false
apple,min-state: false
apple,force-disable: false
apple,force-reset: false
apple,externally-clocked: false
apple,consumer-switched: false
- if:
properties:
compatible:
contains:
const: apple,t8132-pmgr-pwrstate
required:
- compatible
then:
properties:
apple,auto-managed: false
- if:
required:
- apple,auto-managed
then:
properties:
apple,no-auto-pm: false
apple,firmware-owned: false
apple,inherited-on: false
- if:
required:
- apple,consumer-switched
Expand Down Expand Up @@ -136,6 +155,18 @@ properties:
coprocessors' CPU domains.
type: boolean

apple,auto-managed:
description: |
Hardware-managed power domain (such as a DRAM channel slice or memory
fabric) that the boot loader may leave forced on and that must be
switched to hardware automatic power management (auto-enable) early
at boot, before the PMP firmware starts.

Once switched, the hardware gates the domain by itself and it has no
software-controlled power transitions. On parts where an instance is
fused off, its power-state register reads as off.
type: boolean

apple,sleep-retained:
description:
A coprocessor keeps running in this domain across system sleep with no
Expand Down
Loading
Loading