Skip to content
Merged
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
5f1cb74
dt-bindings: iommu: apple,dart: document apple,t8152-disp-isoc-dart
sithglan Nov 29, 2026
c364868
iommu/dart: support cold T8152 display isochronous DARTs
sithglan Nov 29, 2026
254e66e
dt-bindings: dma: apple,admac: document T8152 display ADMAC
sithglan Nov 29, 2026
2950694
dmaengine: apple-admac: add T8152 display ADMAC support
sithglan Nov 29, 2026
20a11de
dt-bindings: sound: apple,t6030-dpaudio: add apple,t8152-dpaudio
sithglan Nov 29, 2026
12f9421
dt-bindings: display: apple,t8152-dcp-iboot: allow audio ports
sithglan Nov 29, 2026
d597446
drm/apple: t8152: fix Firmware 27 GetDriveSettings and retrain after …
sithglan Nov 29, 2026
476e9d6
drm/apple: enable DisplayPort/HDMI audio on T8152 iBoot DCPs
sithglan Nov 29, 2026
65f2b05
arm64: dts: apple: t8152-j873: enable DisplayPort and HDMI audio
sithglan Nov 29, 2026
4b986e3
drm/apple: fix T8152 audio build guards and standalone probe/unbind r…
sithglan Nov 29, 2026
b119fa9
Merge branch 'main' into feat/t8152-j873-dpaudio
sithglan Nov 29, 2026
ed0fdb1
drm/apple: gate iBoot avep_init on audio/hdmi_audio, fix ref leak, up…
sithglan Nov 29, 2026
e4f3beb
drm/apple: defer standalone dpaudio device_link_add until iBoot DCP b…
sithglan Nov 29, 2026
d3b3ade
drm/apple: quiesce standalone dpaudio teardown and exit on disabled a…
sithglan Nov 29, 2026
3ff2527
drm/apple: release standalone dpaudio TX DMA channel on remove
sithglan Nov 29, 2026
0773d03
selftests: apple-dcp: add audio_cb_rwsem to cec-only-av-endpoint stub
sithglan Nov 29, 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 @@ -216,6 +216,13 @@ properties:

ranges: true

ports:
$ref: /schemas/graph.yaml#/properties/ports
properties:
port@0:
$ref: /schemas/graph.yaml#/properties/port
description: Connection to the DisplayPort/HDMI audio interface.

patternProperties:
"^usb-c@[0-9a-f]+$":
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ properties:
- enum:
- apple,t6050-admac-control
- apple,t8142-admac-control
- apple,t8152-admac-control
- const: apple,admac-control

reg:
Expand Down
12 changes: 8 additions & 4 deletions Documentation/devicetree/bindings/dma/apple,admac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ allOf:
properties:
compatible:
contains:
const: apple,t6050-display-admac
enum:
- apple,t6050-display-admac
- apple,t8152-display-admac
then:
properties:
apple,admac-control: false
Expand Down Expand Up @@ -58,10 +60,12 @@ properties:
- const: apple,t6050-admac
- const: apple,t8140-admac
- description:
A T6050 or T8142 display engine's own ADMAC (ADT "self-actuated"),
which feeds the engine's DisplayPort audio.
A display engine's own ADMAC (ADT "self-actuated"), which
feeds the engine's DisplayPort/HDMI audio.
oneOf:
- const: apple,t6050-display-admac
- enum:
- apple,t6050-display-admac
- apple,t8152-display-admac
- items:
- const: apple,t8142-display-admac
- const: apple,t6050-display-admac
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/iommu/apple,dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ properties:
- apple,t8152-acio-dart
- apple,t8152-pciec-dart
- apple,t8152-avd-dart
- apple,t8152-disp-isoc-dart
- items:
- const: apple,t8140-ane-dart
- const: apple,t8140-dart
Expand Down Expand Up @@ -389,6 +390,7 @@ allOf:
- apple,t8152-acio-dart
- apple,t8152-pciec-dart
- apple,t8152-avd-dart
- apple,t8152-disp-isoc-dart
then:
description:
The T8152 Gen3 DARTs in front of the display coprocessors and their
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ select:
- apple,t6050-dpaudio
- apple,t8140-dpaudio
- apple,t8142-dpaudio
- apple,t8152-dpaudio
required:
- compatible

Expand All @@ -41,6 +42,7 @@ properties:
- apple,t6050-dpaudio
- apple,t8140-dpaudio
- apple,t8142-dpaudio
- apple,t8152-dpaudio
- const: apple,dpaudio

dmas:
Expand Down
235 changes: 235 additions & 0 deletions arch/arm64/boot/dts/apple/t8152-j873-dpaudio.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* J873g DisplayPort/HDMI audio: each display engine's dp-audio takes its
* samples from that engine's own self-actuated display ADMAC
* (admac-disp0 / admac-dispext0 / admac-dispext1, behind its unlocked
* Gen3 isochronous DART on SID 30, 1 TiB / 64 GiB DMA window), gated by
* its DISP*_ADMA power domain.
*/

/ {
aliases {
admac-disp0-control = &admac_disp0_ced_ssw;
admac-dispext0-control = &admac_dispext0_ced_ssw;
admac-dispext1-control = &admac_dispext1_ced_ssw;
};

dpaudio0: audio-controller-0 {
compatible = "apple,t8152-dpaudio", "apple,dpaudio";
dmas = <&admac_disp0 0>;
dma-names = "tx";
power-domains = <&ps_disp_adma>;
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
dpaudio0_dcp: endpoint {
remote-endpoint = <&dcp_iboot_audio>;
};
};
};
};

dpaudio1: audio-controller-1 {
compatible = "apple,t8152-dpaudio", "apple,dpaudio";
dmas = <&admac_dispext0 0>;
dma-names = "tx";
power-domains = <&ps_dispext0_adma>;
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
dpaudio1_dcpext0: endpoint {
remote-endpoint = <&dcpext_iboot_audio>;
};
};
};
};

dpaudio2: audio-controller-2 {
compatible = "apple,t8152-dpaudio", "apple,dpaudio";
dmas = <&admac_dispext1 0>;
dma-names = "tx";
power-domains = <&ps_dispext1_adma>;
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
dpaudio2_dcpext1: endpoint {
remote-endpoint = <&dcpext1_iboot_audio>;
};
};
};
};
};

&pmgr {
ps_dispext1_adma: power-controller@a40 {
compatible = "apple,t8152-pmgr-pwrstate",
"apple,t8103-pmgr-pwrstate";
reg = <0xa40 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "dispext1_adma";
};

ps_dispext0_adma: power-controller@da0 {
compatible = "apple,t8152-pmgr-pwrstate",
"apple,t8103-pmgr-pwrstate";
reg = <0xda0 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "dispext0_adma";
};

ps_disp_adma: power-controller@141c0 {
compatible = "apple,t8152-pmgr-pwrstate",
"apple,t8103-pmgr-pwrstate";
reg = <0x141c0 4>;
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "disp_adma";
};
};

&disp0_isoc_dart {
apple,dma-range = /bits/ 64 <0x10000000000 0x1000000000>;
power-domains = <&ps_disp_adma>;
status = "okay";
};

&dispext0_isoc_dart {
apple,dma-range = /bits/ 64 <0x10000000000 0x1000000000>;
power-domains = <&ps_dispext0_adma>;
status = "okay";
};

&dispext1_isoc_dart {
apple,dma-range = /bits/ 64 <0x10000000000 0x1000000000>;
power-domains = <&ps_dispext1_adma>;
status = "okay";
};

/ {
soc {
admac_disp0: dma-controller@286140000 {
compatible = "apple,t8152-display-admac";
reg = <0x2 0x86140000 0x0 0x44000>;
dma-channels = <1>;
interrupts-extended = <&aic AIC_IRQ 906 IRQ_TYPE_LEVEL_HIGH>,
<0>, <0>, <0>;
iommus = <&disp0_isoc_dart 30>;
#dma-cells = <1>;
power-domains = <&ps_disp_adma>;
apple,dma-range = /bits/ 64 <0x10000000000 0x1000000000>;
apple,admac-control = <&admac_disp0_ced_ssw>;
status = "okay";
};

admac_disp0_ced_ssw: dma-control@2862ec000 {
compatible = "apple,t8152-admac-control", "apple,admac-control";
reg = <0x2 0x862ec000 0x0 0x4000>,
<0x2 0x861e0000 0x0 0x4000>;
interrupts = <AIC_IRQ 908 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

admac_dispext0: dma-controller@32a140000 {
compatible = "apple,t8152-display-admac";
reg = <0x3 0x2a140000 0x0 0x44000>;
dma-channels = <1>;
interrupts-extended = <&aic AIC_IRQ 1044 IRQ_TYPE_LEVEL_HIGH>,
<0>, <0>, <0>;
iommus = <&dispext0_isoc_dart 30>;
#dma-cells = <1>;
power-domains = <&ps_dispext0_adma>;
apple,dma-range = /bits/ 64 <0x10000000000 0x1000000000>;
apple,admac-control = <&admac_dispext0_ced_ssw>;
status = "okay";
};

admac_dispext0_ced_ssw: dma-control@32a2ec000 {
compatible = "apple,t8152-admac-control", "apple,admac-control";
reg = <0x3 0x2a2ec000 0x0 0x4000>,
<0x3 0x2a1e0000 0x0 0x4000>;
interrupts = <AIC_IRQ 1046 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

admac_dispext1: dma-controller@502140000 {
compatible = "apple,t8152-display-admac";
reg = <0x5 0x02140000 0x0 0x44000>;
dma-channels = <1>;
interrupts-extended = <&aic AIC_IRQ 1120 IRQ_TYPE_LEVEL_HIGH>,
<0>, <0>, <0>;
iommus = <&dispext1_isoc_dart 30>;
#dma-cells = <1>;
power-domains = <&ps_dispext1_adma>;
apple,dma-range = /bits/ 64 <0x10000000000 0x1000000000>;
apple,admac-control = <&admac_dispext1_ced_ssw>;
status = "okay";
};

admac_dispext1_ced_ssw: dma-control@5022ec000 {
compatible = "apple,t8152-admac-control", "apple,admac-control";
reg = <0x5 0x022ec000 0x0 0x4000>,
<0x5 0x021e0000 0x0 0x4000>;
interrupts = <AIC_IRQ 1122 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
};
};

&dcp_iboot {
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
dcp_iboot_audio: endpoint {
remote-endpoint = <&dpaudio0_dcp>;
};
};
};
};

&dcpext_iboot {
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
dcpext_iboot_audio: endpoint {
remote-endpoint = <&dpaudio1_dcpext0>;
};
};
};
};

&dcpext1_iboot {
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
dcpext1_iboot_audio: endpoint {
remote-endpoint = <&dpaudio2_dcpext1>;
};
};
};
};
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/apple/t8152-j873g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@
#include "t8152-j873-ethernet.dtsi"
#include "t8152-j873-audio.dtsi"
#include "t8152-j873-dcp.dtsi"
#include "t8152-j873-dpaudio.dtsi"
#include "t8152-j873-avd.dtsi"
#include "t8152-j873-thermal.dtsi"
#include "t8152-j873-usb4.dtsi"
18 changes: 12 additions & 6 deletions arch/arm64/boot/dts/apple/t8152-peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@
};

disp0_isoc_dart: iommu@2861c0000 {
compatible = "apple,t8152-dart", "apple,t8110-dart";
reg = <0x2 0x861c0000 0x0 0x20000>;
compatible = "apple,t8152-disp-isoc-dart";
reg = <0x2 0x861c0000 0x0 0x20000>,
<0x2 0x00000400 0x0 0x10>;
reg-names = "dart", "tlbi";
interrupts = <AIC_IRQ 907 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
status = "disabled";
Expand All @@ -171,8 +173,10 @@
};

dispext0_isoc_dart: iommu@32a1c0000 {
compatible = "apple,t8152-dart", "apple,t8110-dart";
reg = <0x3 0x2a1c0000 0x0 0x20000>;
compatible = "apple,t8152-disp-isoc-dart";
reg = <0x3 0x2a1c0000 0x0 0x20000>,
<0x2 0x00000480 0x0 0x10>;
reg-names = "dart", "tlbi";
interrupts = <AIC_IRQ 1045 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
status = "disabled";
Expand All @@ -196,8 +200,10 @@
};

dispext1_isoc_dart: iommu@5021c0000 {
compatible = "apple,t8152-dart", "apple,t8110-dart";
reg = <0x5 0x21c0000 0x0 0x20000>;
compatible = "apple,t8152-disp-isoc-dart";
reg = <0x5 0x21c0000 0x0 0x20000>,
<0x2 0x00000500 0x0 0x10>;
reg-names = "dart", "tlbi";
interrupts = <AIC_IRQ 1121 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
status = "disabled";
Expand Down
7 changes: 7 additions & 0 deletions drivers/dma/apple-admac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,14 @@ static const struct admac_hw admac_t8152_hw = {
.t8152_layout = true,
};

/* The T8152 display ADMACs: T8152's 0x40000 channel layout with the display profile */
static const struct admac_hw admac_t8152_display_hw = {
.t8152_layout = true,
.display = true,
};

static const struct of_device_id admac_of_match[] = {
{ .compatible = "apple,t8152-display-admac", .data = &admac_t8152_display_hw },
{ .compatible = "apple,t6050-display-admac", .data = &admac_t6050_display_hw },
{ .compatible = "apple,t8152-admac", .data = &admac_t8152_hw },
{ .compatible = "apple,t8140-admac", .data = &admac_t8140_hw },
Expand Down
Loading
Loading