Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
86 changes: 0 additions & 86 deletions arch/arm64/boot/dts/apple/t8142-j813-j815.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -429,89 +429,3 @@
reg-names = "dart", "ps-wr-dis";
apple,ps-wr-dis-bit = <6>;
};

/*
* The video encoder, its two DARTs and the VENC power tree: ADT ave behind
* dart-ave (DART + CPUDART), the same addresses, interrupts and power states
* on both boards. The boot loader hands over iBoot's preloaded firmware
* (memory regions, CRCs in /chosen) or disables the encoder when the ADT has
* no preload.
*/
&ps_venc_sys {
status = "okay";
};

&ps_venc_dma {
status = "okay";
};

&ps_venc_pipe4 {
status = "okay";
};

&ps_venc_pipe5 {
status = "okay";
};

&ps_venc_me0 {
status = "okay";
};

&ps_venc_me1 {
status = "okay";
};

&ave_dart0 {
status = "okay";
};

&ave_dart1 {
status = "okay";
};

&ave {
status = "okay";
};

/*
* The Neural Engine (ADT ane and dart-ane, the same on both boards). It stays
* off until the first request: the firmware is started then, from the preload,
* and system sleep cycles it cold. The boot loader hands the preload over by
* the engine's compatible, or disables the node when there is none.
*/
&ps_ane_sys {
status = "okay";
};

&ane_dart0 {
status = "okay";
};

&ane_dart1 {
status = "okay";
};

&ane_dart2 {
status = "okay";
};

&ane {
status = "okay";
};

/* Both JPEG engines and their DART (ADT jpeg0, jpeg1, dart-jpeg). */
&ps_jpg {
status = "okay";
};

&jpeg_dart {
status = "okay";
};

&jpeg0 {
status = "okay";
};

&jpeg1 {
status = "okay";
};
30 changes: 10 additions & 20 deletions arch/arm64/boot/dts/apple/t8142-peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
power-domains = <&ps_ane_sys>;
/* The firmware DVAs reach 0x100_xxxx_xxxx. */
apple,dma-range = <0x0 0x0 0x400 0x0>;
status = "disabled";
};

ane_dart1: iommu@421820000 {
Expand All @@ -176,7 +175,6 @@
interrupts = <AIC_IRQ 752 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_ane_sys>;
apple,dma-range = <0x0 0x0 0x400 0x0>;
status = "disabled";
};

ane_dart2: iommu@421840000 {
Expand All @@ -187,7 +185,6 @@
interrupts = <AIC_IRQ 752 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_ane_sys>;
apple,dma-range = <0x0 0x0 0x400 0x0>;
status = "disabled";
};

/*
Expand All @@ -196,6 +193,9 @@
* boot loader hands the preload over as firmware-text and firmware-data.
* PWGATE is the ADT's reg[2] (PMGR +0x24000) + 0x3640, measured under
* macOS 27.2.1.
* Every T8142 board has it (same ane/dart-ane in the J704, J813 and J815
* ADTs), so it is on by default; the boot loader hands the preload over
* by this compatible and disables the node when the ADT has none.
*/
ane: ane@420000000 {
compatible = "apple,t8142-ane";
Expand All @@ -214,7 +214,6 @@
0x3807002e8 0x3807002eb
0x38070c008 0x38070c00b
0x582668000 0x582668003>;
status = "disabled";
};

scaler0_dart: iommu@305260000 {
Expand All @@ -227,7 +226,10 @@
status = "disabled";
};

/* ADT dart-jpeg: one DART for both engines, jpeg0 on SID 0, jpeg1 on SID 1. */
/*
* ADT dart-jpeg: one DART for both engines, jpeg0 on SID 0, jpeg1 on SID 1.
* The JPEG engines need no firmware and are on every T8142 board.
*/
jpeg_dart: iommu@301020000 {
compatible = "apple,t8142-dart", "apple,t8110-dart";
reg = <0x3 0x1020000 0x0 0xc000>;
Expand All @@ -236,7 +238,6 @@
/* ADT vm-base 0x100_0000_0000, vm-size 0x300_0000_0000 */
apple,dma-range = <0x100 0x0 0x300 0x0>;
power-domains = <&ps_jpg>;
status = "disabled";
};

/*
Expand All @@ -249,7 +250,6 @@
interrupts = <AIC_IRQ 1156 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&jpeg_dart 0>;
power-domains = <&ps_jpg>;
status = "disabled";
};

jpeg1: jpeg@301060000 {
Expand All @@ -258,7 +258,6 @@
interrupts = <AIC_IRQ 1159 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&jpeg_dart 1>;
power-domains = <&ps_jpg>;
status = "disabled";
};

apr_dart: iommu@3a1020000 {
Expand Down Expand Up @@ -586,7 +585,6 @@
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "jpg";
status = "disabled";
};

/* ADT pmgr device SCODEC (id 336): the ProRes engine and its DART. */
Expand All @@ -605,7 +603,6 @@
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "ane_sys";
status = "disabled";
};

ps_msr: power-controller@2a8 {
Expand Down Expand Up @@ -637,7 +634,6 @@
#power-domain-cells = <0>;
#reset-cells = <0>;
label = "venc_sys";
status = "disabled";
};

ps_venc_dma: power-controller@8000 {
Expand All @@ -647,7 +643,6 @@
#reset-cells = <0>;
label = "venc_dma";
power-domains = <&ps_venc_sys>;
status = "disabled";
};

ps_venc_pipe4: power-controller@8008 {
Expand All @@ -657,7 +652,6 @@
#reset-cells = <0>;
label = "venc_pipe4";
power-domains = <&ps_venc_dma>;
status = "disabled";
};

ps_venc_pipe5: power-controller@8010 {
Expand All @@ -667,7 +661,6 @@
#reset-cells = <0>;
label = "venc_pipe5";
power-domains = <&ps_venc_dma>;
status = "disabled";
};

ps_venc_me0: power-controller@8018 {
Expand All @@ -677,7 +670,6 @@
#reset-cells = <0>;
label = "venc_me0";
power-domains = <&ps_venc_dma>;
status = "disabled";
};

ps_venc_me1: power-controller@8020 {
Expand All @@ -687,7 +679,6 @@
#reset-cells = <0>;
label = "venc_me1";
power-domains = <&ps_venc_me0>;
status = "disabled";
};
};

Expand Down Expand Up @@ -759,7 +750,9 @@
* preloaded by iBoot and handed over by the boot loader, which adds the
* memory regions. dart-ave is two DARTs (DART and CPUDART) on one IRQ;
* stream 12 carries the temporal filter engines and must translate
* through the encoder's domain, not bypass.
* through the encoder's domain, not bypass. On by default (same ave and
* dart-ave in the J704, J813 and J815 ADTs); the boot loader disables
* the encoder when the ADT has no preload.
*/
ave_dart0: iommu@281080000 {
compatible = "apple,t8142-dart", "apple,t8110-dart";
Expand All @@ -768,7 +761,6 @@
power-domains = <&ps_venc_sys>;
#iommu-cells = <1>;
apple,dma-range = <0x100 0x00004000 0x0 0xffffc000>;
status = "disabled";
};

ave_dart1: iommu@2810a0000 {
Expand All @@ -778,7 +770,6 @@
power-domains = <&ps_venc_sys>;
#iommu-cells = <1>;
apple,dma-range = <0x100 0x00004000 0x0 0xffffc000>;
status = "disabled";
};

ave: video-codec@281100000 {
Expand All @@ -797,7 +788,6 @@
power-domain-names = "dma", "pipe4", "pipe5", "me0", "me1";
iommus = <&ave_dart0 0>, <&ave_dart0 12>,
<&ave_dart1 0>, <&ave_dart1 12>;
status = "disabled";
};

scaler0: scaler@305000000 {
Expand Down
Loading