From 2af92eb6f2b302fa267c9bc745fd02b8c647f423 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 01:53:29 +1100 Subject: [PATCH] arm64: dts: apple: t6050: apr1 on every T6050, both ave1 DART streams The second ProRes engine (apr1) was described only when T6050_J873S was defined. The J873s is an M5 Pro Mac mini, and its ADT (the public GravityLinux adt-collection dump, macOS 27.0) has apr1 only in the children for the M5 Max and Ultra die variants (:sotra_h17c, h17cr1, h17cr2, h17d), not for the M5 Pro (h17s). Its DART, apr1_dart, is already described for every T6050. Move the node out of the board block next to its DART, name its two windows (core, wrapper, in apr0's order) and leave it disabled: unlike apr0 it has no SCODEC aux/ctrl windows, which the T6050 ProRes variant needs. ave1's iommus listed only SID 0 of its two DARTs. That ADT's dart-ave1 has the same SIDs as dart-ave0, 0 and 12 (the temporal filter), and ave0 already lists both: do the same for ave1. ave1 stays disabled. The J873s DTB gains only reg-names on apr1. Every other T6050 DTB gains the disabled apr1 node and the two ave1 streams. Signed-off-by: Ryan Murray --- .../boot/dts/apple/t6050-peripherals.dtsi | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi b/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi index 488f3c3ee6d6e..f0f1dd2850466 100644 --- a/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-peripherals.dtsi @@ -3221,7 +3221,9 @@ , , ; - iommus = <&ave1_dart 0>, <&ave1_dart1 0>; + /* dart-ave1 has the same SIDs as dart-ave0: 0 and 12 (the temporal filter). */ + iommus = <&ave1_dart 0>, <&ave1_dart 12>, + <&ave1_dart1 0>, <&ave1_dart1 12>; power-domains = <&ps_venc1_dma>, <&ps_venc1_pipe4>, <&ps_venc1_pipe5>, <&ps_venc1_me0>, <&ps_venc1_me1>; power-domain-names = "dma", "pipe4", "pipe5", "me0", "me1"; @@ -3277,6 +3279,25 @@ status = "disabled"; }; + /* + * The second ProRes engine (ADT apr1, "apr,n1"). The ADT has it only in the children for + * the M5 Max and Ultra die variants (:sotra_h17c, h17cr1, h17cr2, h17d), not for the M5 + * Pro (h17s); its DART, dart-apr1, is described above for every T6050 the same way. The + * node stays disabled: unlike apr0 it has no SCODEC windows (aux, ctrl), which the T6050 + * ProRes variant needs. + */ + apr1: prores@230b000000 { + compatible = "apple,t6050-prores", "apple,prores"; + reg = <0x23 0xb000000 0x0 0x4000>, + <0x23 0xa000000 0x0 0x1000000>; + reg-names = "core", "wrapper"; + interrupts = , + ; + iommus = <&apr1_dart 0>; + power-domains = <&ps_prores>; + status = "disabled"; + }; + apr1_dart: iommu@230b020000 { compatible = "apple,t6050-dart", "apple,t8110-dart"; reg = <0x23 0xb020000 0x0 0xc000>, @@ -3635,25 +3656,6 @@ status = "disabled"; }; #endif - - - -#if defined(T6050_J873S) - apr1: prores@230b000000 { - compatible = "apple,t6050-prores", "apple,prores"; - reg = <0x23 0xb000000 0x0 0x4000>, - <0x23 0xa000000 0x0 0x1000000>; - interrupts = , - ; - iommus = <&apr1_dart 0>; - power-domains = <&ps_prores>; - status = "disabled"; - }; -#endif - - - - }; /*