Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
65e3300
arm64: dts: apple: t8132: give the internal DCP its realtime bandwidt…
RyanTheTide Nov 20, 2026
58477fd
drm/apple: dcp: run the T8132 internal DCP on firmware 27.2 with the …
RyanTheTide Nov 20, 2026
5df68cf
selftests: apple-dcp: boot: the T8132 internal DCP's 27.2 admission
RyanTheTide Nov 20, 2026
8ef008a
iommu: apple-dart: keep a 27.2 J713 internal display DART's locked ro…
RyanTheTide Nov 20, 2026
8644419
iommu: apple-dart: map a 27.2 J713 display DART's firmware segments a…
RyanTheTide Nov 20, 2026
e7ae9f6
arm64: dts: apple: t8132-j713: describe the internal panel
RyanTheTide Nov 20, 2026
0a33a08
iommu: apple-dart: test the 27.2 J713 firmware segment protection
RyanTheTide Nov 20, 2026
a50a201
iommu: apple-dart: read a 27.2 J713 DART's firmware leaves only from …
RyanTheTide Nov 21, 2026
fb86406
iommu: apple-dart: log a refused 27.2 J713 display DART as an error
RyanTheTide Nov 21, 2026
8469fa3
drm/apple: dcp: keep the J773g dcpext comment next to its code
RyanTheTide Nov 21, 2026
cd2c258
iommu: apple-dart: key a 27.2 internal display DART on its processor'…
RyanTheTide Nov 21, 2026
a912b89
drm/apple: let a 27.2 T8132 internal DCP join the DRM device on any b…
RyanTheTide Nov 21, 2026
3bd2f90
iommu: apple-dart: report the streams a display DART has enabled
RyanTheTide Nov 21, 2026
77e0841
drm/apple: dcp: stop a DCP for a deep sleep with its panel lit on eve…
RyanTheTide Nov 21, 2026
5ff9c1c
drm/apple: dcp: stop the T8132 internal DCP's 27.2 firmware, with its…
RyanTheTide Nov 21, 2026
2d60e9c
dt-bindings: display: apple,t8140-display-power: add the T8132
RyanTheTide Nov 21, 2026
c9ec13a
arm64: dts: apple: t8132-j713: the internal DCP's display power words
RyanTheTide Nov 21, 2026
b42f40f
drm/apple: dcp, iommu: apple-dart: take a DT layout's DART streams at…
RyanTheTide Nov 21, 2026
888805b
drm/apple: dcp: refuse a DT layout without its display DART streams, …
RyanTheTide Nov 22, 2026
c9f24a4
iommu: apple-dart: read a 27.2 display DART's TCR before dropping its…
RyanTheTide Nov 22, 2026
76c6464
iommu: apple-dart: name the 27.2 internal display DART after its handoff
RyanTheTide Nov 22, 2026
97085f2
iommu: apple-dart: say why a 27.2 internal display DART is refused
RyanTheTide Nov 22, 2026
df2748e
drm/apple: dcp: give the J773g dcpext hw data its comment back
RyanTheTide Nov 22, 2026
7a0110d
Merge branch 'j713-disp3/dcp272-internal' into j713-disp3/dcp272-power
RyanTheTide Nov 22, 2026
0469085
iommu: apple-dart: select a T8132 display DART's fw_mirror from its s…
RyanTheTide Nov 24, 2026
ef48113
iommu: apple-dart: give any fw_mirror DART's firmware segments their …
RyanTheTide Nov 24, 2026
d3bf182
Merge commit 'refs/airs89/pr2818' into airs89/p2819fix
RyanTheTide Nov 25, 2026
ea2c51b
Merge branch 'djdev/j773g-272-dcpext0' into j713-disp3/dcp272-internal
RyanTheTide Nov 26, 2026
20c5edc
Merge branch 'j713-disp3/dcp272-internal' into j713-disp3/dcp272-power
RyanTheTide Nov 26, 2026
c21139f
Merge pull request #2819 from aurora-silicon/j713-disp3/dcp272-power
RyanTheTide Nov 26, 2026
c03a132
Merge branch 'djdev/j773g-272-dcpext0' into j713-disp3/dcp272-internal
RyanTheTide Nov 26, 2026
d9e910e
Merge branch 'j713-disp3/dcp272-internal' (with #2819) into j713-disp…
RyanTheTide Nov 26, 2026
8e87aef
Merge branch 'main' into j713-disp3/dcp272-internal
RyanTheTide Nov 26, 2026
13e3abc
Merge branch 'main' into j713-disp3/dcp272-internal
RyanTheTide Nov 26, 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 @@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/display/apple,t8140-display-power.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

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

maintainers:
- Diljit Singh <hey@djdev.me>
Expand All @@ -21,6 +21,7 @@ properties:
enum:
- apple,t8103-display-power
- apple,t6041-display-power
- apple,t8132-display-power
- apple,t8140-display-power
- apple,t8142-display-power

Expand Down Expand Up @@ -151,7 +152,9 @@ allOf:
- if:
properties:
compatible:
const: apple,t8140-display-power
enum:
- apple,t8132-display-power
- apple,t8140-display-power
then:
properties:
reg:
Expand Down
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/apple/t8132-dcp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
iommus = <&dcp_dart 23>;
power-domains = <&ps_disp_cpu>;
dma-noncoherent;
apple,bw-scratch = <&pmgr_dcp 0 4 0>;
status = "disabled";

disp0_piodma: piodma {
Expand All @@ -79,6 +80,18 @@
};
};

/*
* The internal pipe's realtime bandwidth request slot in the PMC, 0x20000
* into the window the DCP has as disp-4: bandwidth agent 0, the one the
* ADT's disp0 bw_req interrupt names (agents are 0x4000 apart from
* 0x20000; the dcpexts' agents 3 and 4 are pmgr_dcpext's slots).
*/
pmgr_dcp: power-management@382820000 {
reg = <0x3 0x82820000 0x0 0x8>;
reg-names = "dcp-bw-scratch";
#apple,bw-scratch-cells = <3>;
};

/* The scanout frontend; it has no registers of its own. */
display: display-subsystem {
compatible = "apple,t8132-display-subsystem", "apple,t8132-display-diagnostics";
Expand Down
32 changes: 32 additions & 0 deletions arch/arm64/boot/dts/apple/t8132-j713.dts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,40 @@
apple,clock-protection = <&ps_prot 8>;
};

/*
* The words the firmware-27 stop of the internal DCP writes (by default, see
* dcp_s2r_layout_from_dt()), the same ones the deep sleep lowers: pmc-dcp, the PMGR
* power states and its power gate block.
*/
&soc {
dcp_power: display-power@3828a9c14 {
compatible = "apple,t8132-display-power";
reg = <0x3 0x828a9c14 0x0 0x4>,
<0x3 0x80700000 0x0 0x14000>,
<0x3 0x80724000 0x0 0x2000>;
reg-names = "pmc-dcp", "ps", "pwrgate";
};
};

/* Clock-protection slice 42 (ADT dart-dcp): it guards DISP_CPU's power state. */
&dcp_dart {
reg = <0x3 0x0a340000 0x0 0x20000>,
<0x3 0x8079cb80 0x0 0x4>;
reg-names = "dart", "gapf";
};

&dcp {
apple,pmc-interface = <&pmc_disp0>;
apple,display-power = <&dcp_power>;

panel: panel {
compatible = "apple,panel-j713", "apple,panel";
/* 2560x1664 at 224 ppi; 64 notch rows above the desktop. */
width-mm = <290>;
height-mm = <189>;
adj-height-mm = <181>;
apple,max-brightness = <500>;
};
};

/*
Expand Down
8 changes: 5 additions & 3 deletions drivers/gpu/drm/apple/apple_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1845,11 +1845,13 @@ static bool apple_dcp_usable(struct device_node *np)
(!of_device_is_compatible(np, "apple,t6041-dcpext") ||
dcp_t6041_ext_enabled()) &&
/*
* The T8132 main DCP is the M4 backend's, on its 26.6.2
* firmware path only (see dcp_check_firmware_version()).
* The T8132 main DCP is the M4 backend's on its 26.6.2
* firmware path, and the firmware-27 backend's wherever the
* boot loader handed it over with the 27.2 image and its
* clocks, on any board (see dcp_check_firmware_version()).
*/
(!of_device_is_compatible(np, "apple,t8132-dcp") ||
apple_t8132_firmware_path()) &&
apple_t8132_firmware_path() || apple_t8132_dcp_v27_2(np)) &&
/*
* A T8132 dcpext the M4 backend adopts is no component: its
* outputs are t8132_ext_drm.c's. One on the 27.2 image is a pipe.
Expand Down
10 changes: 10 additions & 0 deletions drivers/gpu/drm/apple/dcp-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ struct dcp_s2r_layout {
u32 disp_streams;
/* "pmc-dcp" counts the powered DCPs: T8132 and T8140 only */
bool pmc_dcp;
/*
* From the device tree (dcp_s2r_layout_from_dt()): only the @*_mask bits of a
* retention word are written, @*_off while off and the value read at probe back on.
* Zero masks: the whole words, as above.
*/
u32 ret_ff_mask, ret_ff_off, ret_ff_on;
u32 ret_mem_mask, ret_mem_off, ret_mem_on;
};

/*
Expand Down Expand Up @@ -1016,6 +1023,9 @@ struct apple_dcp {
struct dcp_t6041_power t6041_power;
struct device *s2r_disp_dart;
struct device *s2r_dcp_dart;
/* hw.s2r without a layout in its hw data: the device tree's, see dcp_s2r_layout_from_dt() */
struct dcp_s2r_layout s2r_dt_layout;
bool s2r_dt_layout_ok;

/* eDP display without DP-HDMI conversion */
bool main_display;
Expand Down
Loading
Loading