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 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: 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>;