Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
60d2415
ci: mask the pattern list of unmatched-property dt-schema messages
fbalazsy Nov 14, 2026
c8666fb
dt-bindings: apple: T6040 sleep controller, ProRes, PCIe, ATC PHY, DP…
fbalazsy Nov 10, 2026
12f467f
arm64: dts: apple: t6040: J616s sleep controller, ProRes, JPEG and DP…
fbalazsy Nov 10, 2026
d7c68ac
arm64: dts: apple: t6040: give each USB4 router its Type-C PHY
fbalazsy Nov 10, 2026
ff6a5d2
arm64: dts: apple: put every AP pin back after a T6040 S2R
fbalazsy Nov 10, 2026
3e32012
arm64: dts: apple: name the T8140 driver instead of its pull request
RyanTheTide Nov 12, 2026
152b2c0
arm64: dts: apple: enable the sleep controller per board
fbalazsy Nov 12, 2026
dd04dd7
dt-bindings: power: apple,t6040-sleep: describe the node and add appl…
fbalazsy Nov 12, 2026
6e41315
MAINTAINERS: describe the T6040 part as it is
fbalazsy Nov 12, 2026
8842a1f
dt-bindings: display: Add Apple T6041 display power words
fbalazsy Nov 12, 2026
8f54ea6
arm64: dts: apple: t6040: describe what the boot loader adds
fbalazsy Nov 12, 2026
9257f40
arm64: dts: apple: t6040: give the sleep controller its unit address
fbalazsy Nov 12, 2026
7f78dbc
dt-bindings: soc: apple: move the T6040 sleep controller next to T8140
fbalazsy Nov 12, 2026
05bc00c
dt-bindings: chosen: document aurora,s2r-mailbox
fbalazsy Nov 12, 2026
9953429
dt-bindings: chosen: document the aura hibernation layout
fbalazsy Nov 12, 2026
c4404fc
dt-bindings: soc: apple: t6040-sleep: require the register blocks
fbalazsy Nov 13, 2026
eedb5c2
dt-bindings: soc: apple: t6040-sleep: size the power word pages
fbalazsy Nov 13, 2026
5983f84
arm64: dts: apple: t6040: size the sleep controller's power word pages
fbalazsy Nov 13, 2026
9caa407
dt-bindings: soc: apple: describe the sleep controllers in one schema
fbalazsy Nov 13, 2026
d05b2d3
arm64: dts: apple: t6040: name the sleep controller's blocks as the T…
fbalazsy Nov 13, 2026
fae0858
dt-bindings: thunderbolt: apple: name the router's Type-C PHY in phys
fbalazsy Nov 13, 2026
a37cf5d
arm64: dts: apple: t6040: give the USB4 routers their PHY in phys
fbalazsy Nov 13, 2026
c44d77b
PM: hibernate: tell drivers a restored image from a failed one, and a…
fbalazsy Nov 10, 2026
95ba8c3
arm64: hibernate and spin-table CPUs at EL2 on M4 Pro (T6040)
fbalazsy Nov 10, 2026
11e47b6
soc: apple: hibernation under aura's fixed layout and RTKit coprocess…
fbalazsy Nov 10, 2026
240d753
KVM: arm64: keep the guests' counters when the physical counter start…
fbalazsy Nov 12, 2026
9db5869
arm64: share the sleep registry so one kernel builds both controllers
RyanTheTide Nov 12, 2026
a6f9c1d
PM: hibernate: mark a restored kernel without testing the error
fbalazsy Nov 12, 2026
b135dad
arm64: hibernate: put the boot layout comment above its function
fbalazsy Nov 12, 2026
2e3101d
arm64: smp_spin_table: say what still needs the platform power ops
fbalazsy Nov 12, 2026
e9c9a50
soc: apple: rtkit-helper: say why a self-started session keeps running
fbalazsy Nov 12, 2026
6c51807
arm64: hibernate: compute the boot layout once on restore
fbalazsy Nov 12, 2026
5236e29
arm64: smp_spin_table: name the pen's physical address in a local
fbalazsy Nov 12, 2026
22ce23a
soc: apple: rtkit-helper: report restore failures with dev_err()
fbalazsy Nov 12, 2026
2e64582
soc: apple: rtkit-helper: build hibernation callbacks unconditionally
fbalazsy Nov 12, 2026
f11a999
soc: apple: rtkit-helper: adopt by one buffer rule at probe and restore
fbalazsy Nov 12, 2026
50547e3
arm64: errata: drop the apple_pmuv3_traps boot parameter
fbalazsy Nov 12, 2026
500a847
soc: apple: rtkit-helper: test the coprocessor's run bit in one place
fbalazsy Nov 12, 2026
9fe3970
soc: apple: rtkit: add an AP idle notice for use with interrupts off
fbalazsy Nov 13, 2026
f6e50ad
soc: apple: aura-hibernate: probe again through the aura reprobe helper
fbalazsy Nov 13, 2026
48b0af4
soc: apple: rtkit: report an idle that kept the firmware's memory apa…
fbalazsy Nov 13, 2026
06cd2c4
arm64: build every sleep controller and drop two symbols
fbalazsy Nov 13, 2026
5b71214
PM: hibernate: tell drivers that an image is being loaded
fbalazsy Nov 13, 2026
db30c72
PM: hibernate: let the architecture clean the pages of a loaded image
fbalazsy Nov 13, 2026
02db30e
PM: hibernate: let the platform refuse hibernation through a hook
fbalazsy Nov 13, 2026
71d768d
arm64: hibernate: take platform facts from a hook, not from aura
fbalazsy Nov 13, 2026
e8f7126
PM: hibernate: tell the restored kernel whether another boot loaded it
fbalazsy Nov 13, 2026
93b3ce4
PM: hibernate: recover devices when no image was created
fbalazsy Nov 13, 2026
cf056cc
soc: apple: rtkit: drop the restore callbacks' checks for an abandone…
fbalazsy Nov 13, 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
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/arm/apple/apple,pmgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ properties:
reg:
maxItems: 1

nonposted-mmio: true

"#address-cells":
const: 1

Expand Down
64 changes: 64 additions & 0 deletions Documentation/devicetree/bindings/chosen/aura,hibernate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/chosen/aura,hibernate.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Memory layout a boot object keeps the same on every boot

maintainers:
- František Balázsy <frantisekbalazsy@gmail.com>

description: |
A hibernation image puts every saved page back into the frame it was taken
from, so the boot that resumes an image has to give the kernel the same RAM,
and keep the same ranges from it, as the boot that wrote the image. On Apple
silicon the boot firmware loads the boot object at an address that changes
from boot to boot, and what the boot object keeps alive after the hand-off
moves with it. A boot object that instead keeps everything from the start of
RAM up to a fixed end from the kernel, at the same addresses on every boot,
says so with aura,hibernate-layout. Without it the kernel neither hibernates
nor resumes.

The boot firmware still places some firmware segments anew on every boot,
inside that range, and a kernel restored from an image holds the device tree
of the boot that wrote the image. The boot object therefore puts the device
tree of every boot at one address inside the range, given in
aura,hibernate-dt. The image does not contain that memory, so the restored
kernel reads there what the resuming boot placed.

The properties are named after aura, the boot loader that defined them and
whose released versions publish them.

select:
properties:
$nodename:
const: chosen
required:
- $nodename

properties:
$nodename:
const: chosen

aura,hibernate-layout:
$ref: /schemas/types.yaml#/definitions/uint64-array
description:
The range of RAM that is kept from the kernel and laid out the same on
every boot.
items:
- description: Physical address of the start of RAM.
- description: Physical address of the end of the range, exclusive.

aura,hibernate-dt:
$ref: /schemas/types.yaml#/definitions/uint64
description:
Physical address, inside the range of aura,hibernate-layout, of the
device tree the kernel is started with. The kernel reads at most 2 MiB
there.

dependencies:
aura,hibernate-dt: [ 'aura,hibernate-layout' ]

additionalProperties: true
...
48 changes: 48 additions & 0 deletions Documentation/devicetree/bindings/chosen/aurora,s2r-mailbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/chosen/aurora,s2r-mailbox.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Return path of a boot object that owns the CPU reset vectors

maintainers:
- František Balázsy <frantisekbalazsy@gmail.com>

description: |
On Apple silicon the boot firmware locks every CPU's reset vector to the
boot object it started. A CPU that comes back from a power-off, and every
CPU after a suspend to RAM, therefore restarts in the boot object, not in the
kernel. A boot object that sends such a CPU back to the kernel says so with
this property: a secondary CPU returns through its spin-table release
address, and the boot CPU of a resume jumps, at EL2 with the MMU off, to the
address the kernel left in the mailbox. Its presence also tells the kernel
that its spin-table CPUs may leave the kernel and come back.

The mailbox is four 64-bit words in the CPU's byte order:
0: the magic value 0x3152325341525541 ("AURAS2R1"), written by the boot
object before the kernel starts
1: the MPIDR of the only CPU that may take the resume address
2: the resume address, set by the kernel before it suspends and cleared
by the boot object when a CPU takes it
3: how many times the resume address was taken

select:
properties:
$nodename:
const: chosen
required:
- $nodename

properties:
$nodename:
const: chosen

aurora,s2r-mailbox:
$ref: /schemas/types.yaml#/definitions/uint64
description:
Physical address of the mailbox, inside the boot object's own memory,
which the kernel does not use.

additionalProperties: true
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/apple,t6041-display-power.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple T6040 display power words

maintainers:
- František Balázsy <frantisekbalazsy@gmail.com>

description: |
The words a T6040 (M4 Pro) display coprocessor's driver writes to lower
its power domains after it stops the firmware for a suspend-to-RAM and to
raise them again on the wake. 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 internal display coprocessor has its power-state words in the SoC's
east power manager block, the external ones in the west block, each at its
own offsets; the display PMC word that counts the powered coprocessors is
shared by all three. The boot loader publishes one node for the internal
coprocessor and one that both external coprocessors name.

properties:
compatible:
const: apple,t6041-display-power

reg:
items:
- description: a register window, named by reg-names
- description: a register window, named by reg-names

reg-names:
description:
pmc-dcp is the display PMC word that counts the powered coprocessors,
ps the power manager block that holds the coprocessors' power-state
words. The two may come in either order.
oneOf:
- items:
- const: pmc-dcp
- const: ps
- items:
- const: ps
- const: pmc-dcp

required:
- compatible
- reg
- reg-names

additionalProperties: false

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

display-power@5048a9c14 {
compatible = "apple,t6041-display-power";
reg = <0x5 0x048a9c14 0x0 0x8>,
<0x5 0x02280000 0x0 0x14000>;
reg-names = "pmc-dcp", "ps";
};

display-power@502800000 {
compatible = "apple,t6041-display-power";
reg = <0x5 0x02800000 0x0 0x14000>,
<0x5 0x048a9c14 0x0 0x8>;
reg-names = "ps", "pmc-dcp";
};
};
6 changes: 5 additions & 1 deletion Documentation/devicetree/bindings/media/apple,prores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,12 @@ allOf:
maxItems: 1
iommus:
maxItems: 1
resets:
description:
The shared codec reset. It also clears the
translations of the engine's DART, so a board may
leave it out and have a hung engine refused instead.
required:
- resets
- reg-names
- if:
properties:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ allOf:
properties:
reg:
minItems: 8
maxItems: 8
maxItems: 9
interrupts:
minItems: 6
maxItems: 6
Expand Down
28 changes: 28 additions & 0 deletions Documentation/devicetree/bindings/phy/apple,t6040-atcphy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,29 @@ properties:
$ref: "#/$defs/apple,tunable"
description: USB2 host tunables, applied to the bank0 region.

apple,tunable-cio-lane0:
$ref: "#/$defs/apple,tunable"
description: >
Lane 0 receiver defaults for CIO (USB4/Thunderbolt) mode, applied to the
core region when the port enters USB4 or Thunderbolt. CIO mode is offered
only when both lane tables are present.

apple,tunable-cio-lane1:
$ref: "#/$defs/apple,tunable"
description: Lane 1 receiver defaults for CIO mode, applied to the core region.

apple,tunable-cio-uc-regs:
$ref: "#/$defs/apple,tunable"
description: Optional PHY microcontroller defaults for CIO mode, core region.

apple,tunable-cio-lane0-eq:
$ref: "#/$defs/apple,tunable"
description: Optional lane 0 receiver equalization for CIO mode, core region.

apple,tunable-cio-lane1-eq:
$ref: "#/$defs/apple,tunable"
description: Optional lane 1 receiver equalization for CIO mode, core region.

required:
- compatible
- reg
Expand Down Expand Up @@ -199,6 +222,11 @@ allOf:
mode-switch: false
port: false
ports: false
apple,tunable-cio-lane0: false
apple,tunable-cio-lane1: false
apple,tunable-cio-uc-regs: false
apple,tunable-cio-lane0-eq: false
apple,tunable-cio-lane1-eq: false

additionalProperties: false

Expand Down
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description: The number of pins in this GPIO controller.

apple,resume-restore-all:
type: boolean
description:
After a sleep that powers the block down, every pin's configuration is
written back, not only the pins a driver has claimed, as the vendor
firmware does for this block. The pins in gpio-reserved-ranges are left
as the wake found them.

gpio-reserved-ranges: true

interrupts:
Expand Down
Loading
Loading