From 0c524c0678c138fbdaaf65f047ce5a046a986c1d Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Sun, 15 Nov 2026 19:11:12 +0000 Subject: [PATCH 1/3] dt-bindings: input: apple,dockchannel-hid: allow a second DART stream The T6050 MTP firmware writes its receive ring through DART stream 1 of the MTP DART, in addition to the transport's own stream 0. Allow the transport to list two iommus entries. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- .../devicetree/bindings/input/apple,dockchannel-hid.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/apple,dockchannel-hid.yaml b/Documentation/devicetree/bindings/input/apple,dockchannel-hid.yaml index b6c9e727e5a67..bf82f4dc8b3ee 100644 --- a/Documentation/devicetree/bindings/input/apple,dockchannel-hid.yaml +++ b/Documentation/devicetree/bindings/input/apple,dockchannel-hid.yaml @@ -66,7 +66,11 @@ properties: - const: rx iommus: - maxItems: 1 + minItems: 1 + maxItems: 2 + description: + DART streams of the transport. A second stream carries the coprocessor's + writes into the receive ring on firmware that has one. apple,fifo-size: $ref: /schemas/types.yaml#/definitions/uint32 From f54655bfafc595528e28250be27ac50c4dca3262 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Sun, 15 Nov 2026 19:11:12 +0000 Subject: [PATCH 2/3] dt-bindings: soc: apple: rtk-helper-asc4: allow a second DART stream The MTP helper shares its IOMMU group with the DockChannel HID transport, and apple_dart_device_group() needs every stream of a device in one group, so the helper lists the same two streams as the transport. Allow two iommus entries. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- .../devicetree/bindings/soc/apple/apple,rtk-helper-asc4.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/apple/apple,rtk-helper-asc4.yaml b/Documentation/devicetree/bindings/soc/apple/apple,rtk-helper-asc4.yaml index 874f667ce3f61..ab3bf9925a9c6 100644 --- a/Documentation/devicetree/bindings/soc/apple/apple,rtk-helper-asc4.yaml +++ b/Documentation/devicetree/bindings/soc/apple/apple,rtk-helper-asc4.yaml @@ -63,7 +63,8 @@ properties: maxItems: 1 iommus: - maxItems: 1 + minItems: 1 + maxItems: 2 apple,rtkit-handoff: enum: From 0d1408c7df796287c43a3dc62bf85e0d7225e430 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Sun, 15 Nov 2026 19:11:12 +0000 Subject: [PATCH 3/3] arm64: dts: apple: t6050-k114-k116: give the MTP DART streams 0 and 1 to the transport With the MTP receive ring enabled on a K114c, the coprocessor wrote the ring over DART stream 1 while the transport listed stream 0 only. The DART reported "translation fault: SID:1 write BPF reject" at the ring address, the coprocessor crashed with a DMA error, and the keyboard and trackpad stopped. List both streams on the HID transport. apple_dart_device_group() needs every stream of a device in one IOMMU group, and the MTP helper shares stream 0 with the transport. With the helper on stream 0 only, the DART probe failed with -22 on a K114c boot, so the helper lists both streams too. The helper's list is set here, for the K114 and K116 boards, and not in t6050-max.dtsi, so other T6050 boards keep stream 0 only. Nothing in the base uses stream 1 yet; the ring driver change is a separate PR. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi index f7cedd1a4c854..70e2e2d633c7f 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi @@ -190,6 +190,11 @@ status = "disabled"; }; +/* The helper and its HID transport share one IOMMU group, so both list streams 0 and 1. */ +&mtp { + iommus = <&mtp_dart 0>, <&mtp_dart 1>; +}; + /* * The keyboard, trackpad and touchscreen: the HID transport on the MTP's * DockChannel FIFO, laid out as on J716c (ADT dockchannel-mtp/mtp-transport). @@ -200,7 +205,11 @@ reg = <0x8000 0x1000>, <0xc000 0x1000>, <0x0 0x1000>, <0x4000 0x1000>; reg-names = "config", "data", "rmt-config", "rmt-data"; - iommus = <&mtp_dart 0>; + /* + * The coprocessor writes the MTP receive ring over DART stream 1. Both + * streams must be in one IOMMU group, so the helper lists the same two. + */ + iommus = <&mtp_dart 0>, <&mtp_dart 1>; interrupt-parent = <&mtp_dockchannel>; interrupts = <2 IRQ_TYPE_LEVEL_HIGH>, <3 IRQ_TYPE_LEVEL_HIGH>;