Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
69c61aa
net: atlantic: a sleep after a resume that failed
7robertodantas Nov 29, 2026
ed75d5a
soc: apple: display-gate: T6041 internal DCP without a panel
7robertodantas Nov 29, 2026
665af05
drm: apple: dcp: DPAVCTRL ready on an internal processor without a panel
7robertodantas Nov 29, 2026
49dbb22
drm: apple: dcp: T6041 internal pipe the firmware took down at start
7robertodantas Nov 29, 2026
4f3ebc1
drm: apple: dcp: T6041 sleep host without a display: no power-on afte…
7robertodantas Nov 29, 2026
dd4033c
dt-bindings: display: apple,t8140-display-power: add apple,dcp to chains
7robertodantas Nov 29, 2026
8f1da28
drm: apple: dcp: T6041 external DCPs back after the wake through T604…
7robertodantas Nov 29, 2026
061e4f5
arm64: dts: apple: t6041-j575c: PCIe windows for deep sleep
7robertodantas Nov 29, 2026
97816df
arm64: dts: apple: t6041-j575c: SMC rail mask for deep sleep
7robertodantas Nov 29, 2026
0890e7f
arm64: dts: apple: t6041-j575c: system power state for the port contr…
7robertodantas Nov 29, 2026
fec6a56
arm64: dts: apple: t6041-j575c: display power chains and the sleep host
7robertodantas Nov 29, 2026
e9eef9b
dt-bindings: pci: apple,pcie: add apple,no-refclk-gating
7robertodantas Dec 1, 2026
801ddbd
PCI: apple: keep clocks ungated during S2R training and honor apple,n…
7robertodantas Dec 1, 2026
79aca93
soc: apple: t6041-sleep: wait for L2 entry and clear full REFCLKCGEN …
7robertodantas Dec 1, 2026
5c395bb
arm64: dts: apple: t6041-j575c: disable refclk gating on port 2 (AQC113)
7robertodantas Dec 1, 2026
1e0a0ba
tools/asahi: afk-compact-start-tests: stub dcp_desktop_external
7robertodantas Dec 2, 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
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ patternProperties:
Byte offsets of the pair of power-gate retention words (A, then B)
within the selected pwrgate window.

apple,dcp:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Read on T6041 only, on an external display chain. The display coprocessor
this chain powers, which is then restarted after wake as on T6040.
Without it the coprocessor is shut down for suspend-to-RAM and stays
off after wake.

apple,fabric-domain:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Expand Down
7 changes: 7 additions & 0 deletions Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ patternProperties:
pwren-gpios may be left untrained; the OS then trains it first and
adopts it the same way.

apple,no-refclk-gating:
type: boolean
description:
Do not enable dynamic REFCLK gating on this root port. Set when the
endpoint requires a continuously running reference clock (matching
the ADT no-refclk-gating property).

apple,tunable:
$ref: '#/$defs/tunable'
description: Initialization tuples relative to this port's registers.
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/apple/t6041-j575c-atc3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
<97 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "select", "sleep", "wake";
apple,event-irq-in-sleep;
apple,sleep-ssps;
/* Retimer set up before Linux keeps SuperSpeed down until replugged. */
apple,reset-inherited-usb2-connection;
apple,debug-lock-key = "575J";
Expand Down
118 changes: 115 additions & 3 deletions arch/arm64/boot/dts/apple/t6041-j575c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,8 @@
};

&smc {
/* VDD_CIO mask: bit 8 + bit 0 keeps port 0 powered for atc0_common at commit. */
apple,sleep-pmvc = <0x101>;
status = "okay";

smc_gpio_low: gpio-low {
Expand Down Expand Up @@ -1230,10 +1232,17 @@
<0x4 0x17020000 0x0 0x4000>,
<0x4 0x17024000 0x0 0x4000>,
<0x4 0x17028000 0x0 0x4000>,
<0x4 0x1702c000 0x0 0x4000>;
<0x4 0x1702c000 0x0 0x4000>,
<0x4 0x16000000 0x0 0x1000000>,
<0x4 0x15046200 0x0 0x4000>,
<0x4 0x15044000 0x0 0x4000>,
<0x4 0x17000000 0x0 0x40000>,
<0x4 0x17040000 0x0 0x28000>;
reg-names = "config", "rc",
"port0", "port1", "port2", "port3",
"phy0", "phy1", "phy2", "phy3";
"phy0", "phy1", "phy2", "phy3",
"axi2af", "cio3pll", "clkgen",
"phy-block", "phy-ip";
ranges = <0x43000000 0xb 0xc0000000 0xb 0xc0000000 0x0 0x20000000>,
<0x02000000 0x0 0x80000000 0xb 0x80000000 0x0 0x40000000>;
pinctrl-names = "default";
Expand Down Expand Up @@ -1319,11 +1328,12 @@
};
};

/* ADT pci-bridge2/lan-10gb: AQC113, PERST AP pin 6, no power */
/* ADT pci-bridge2/lan-10gb: AQC113, PERST AP pin 6, no-refclk-gating, no power */
port02: pci@2,0 {
device_type = "pci";
reg = <0x1000 0 0 0 0>;
reset-gpios = <&pinctrl 6 GPIO_ACTIVE_LOW>;
apple,no-refclk-gating;
bus-range = <3 3>;
#address-cells = <3>;
#size-cells = <2>;
Expand Down Expand Up @@ -1465,6 +1475,7 @@
<19 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "select", "sleep", "wake";
apple,event-irq-in-sleep;
apple,sleep-ssps;

typec0: connector {
compatible = "usb-c-connector";
Expand Down Expand Up @@ -1495,6 +1506,7 @@
<45 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "select", "sleep", "wake";
apple,event-irq-in-sleep;
apple,sleep-ssps;
/* Retimer set up before Linux keeps SuperSpeed down until replugged. */
apple,reset-inherited-usb2-connection;
apple,debug-lock-key = "575J";
Expand Down Expand Up @@ -1528,6 +1540,7 @@
<71 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "select", "sleep", "wake";
apple,event-irq-in-sleep;
apple,sleep-ssps;
/* Retimer set up before Linux keeps SuperSpeed down until replugged. */
apple,reset-inherited-usb2-connection;
apple,debug-lock-key = "575J";
Expand Down Expand Up @@ -2068,6 +2081,105 @@
phandle = <&display>;
};

/*
* The internal DCP runs no panel here. The boot loader hands it over all the
* same, and the display driver keeps it as the sleep host, which stops every
* display processor before the display power chains go down (the J616c's).
*/
/ {
clk_disp0: clock-disp0 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <712000000>;
clock-output-names = "disp0";
};

dcp_power: 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,dcp = <&dcpext3>;
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@1 {
reg = <1>;
label = "ext2";
apple,dcp = <&dcpext2>;
apple,pwrgate-aux;
apple,gapf-offset = <0xd80>;
apple,pwrgate-offsets = <0xb34 0xb58>;
power-domains = <&ps_dispext2_sys>, <&ps_dispext2_fe>, <&ps_dispext2_cpu>,
<&ps_dispext2_dbe>, <&ps_dpext2>, <&ps_dispext2_gp0>,
<&ps_dispext2_gp1>, <&ps_dispext2_gpl>, <&ps_dispext2_ppp>,
<&ps_dispext2_dsc>;
};

chain@2 {
reg = <2>;
label = "ext1";
apple,dcp = <&dcpext1>;
apple,pwrgate-aux;
apple,gapf-offset = <0xd00>;
apple,pwrgate-offsets = <0x6b4 0x6d8>;
power-domains = <&ps_dispext1_sys>, <&ps_dispext1_fe>, <&ps_dispext1_cpu>,
<&ps_dispext1_dbe>, <&ps_dpext1>, <&ps_dispext1_gp0>,
<&ps_dispext1_gp1>, <&ps_dispext1_gpl>, <&ps_dispext1_ppp>,
<&ps_dispext1_dsc>;
};

chain@3 {
reg = <3>;
label = "ext0";
apple,dcp = <&dcpext0>;
apple,pwrgate-aux;
apple,gapf-offset = <0x840>;
apple,pwrgate-offsets = <0x234 0x258>;
power-domains = <&ps_dispext0_sys>, <&ps_dispext0_fe>, <&ps_dispext0_cpu>,
<&ps_dispext0_dbe>, <&ps_dpext0>, <&ps_dispext0_gp0>,
<&ps_dispext0_gp1>, <&ps_dispext0_gpl>, <&ps_dispext0_ppp>,
<&ps_dispext0_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>;
};
};
};

&dcp {
apple,sleep-host-stop;
apple,display-power = <&dcp_power>;
clocks = <&clk_disp0>;
phandle = <&dcp>;
};

&disp0_piodma {
phandle = <&disp0_piodma>;
};
Expand Down
7 changes: 7 additions & 0 deletions drivers/gpu/drm/apple/dcp-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ struct dcp_t6041_chain {
unsigned int num_domains;
/* T6040: an external chain's child_saved holds what its stop found */
bool child_valid;
/*
* T6041: the external DCP this chain powers (apple,dcp), restarted after the wake as
* T6040's are; 0 if none, and that DCP stays off after the wake.
*/
phandle dcp;
};

/*
Expand Down Expand Up @@ -1130,6 +1135,8 @@ struct apple_dcp {
* started since: its D572(0) has come and gone, and a second set_power_state(0) gets none.
*/
bool pipe_off;
/* The firmware took the pipe down at start (no display) and nothing has powered it on. */
bool pipe_off_since_start;
/* Refused its idle with the display off: the firmware still runs, the display is dark. */
bool s2r_refused_off;
/* The firmware's secure mailbox, where it has one. */
Expand Down
Loading