From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD56C48095B; Fri, 25 Sep 2026 12:09:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790338177; cv=none; b=SFdbmx+4cRF5caXj86Q2VYzQix3mY4yqdc2hjZHI5HN3vs5HueYf/nCZlXVaz2Pp3O5nT01vI2PsIMpIv+aGih/F94qtuuv+Laiym9H9qrmae1jcTKNAUrSjYYbtkYqBqWzqmEdaRwIN5ROhVLFRjdgOTm/aqKA8F29vCKBtn6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790338177; c=relaxed/simple; bh=Kf9gvIhCBn9QevLLq2R3J3WgNziUXLOXSzIqFtO+NZ0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Tqzl94XnYuxX/hIkDtVyH/DF0xXfZNiY0JtqmJcfe8ZVYpeqgUYUa31rEiTFEpddubWom3yb1JjfD913FXsLW5B5Ga1xNs3AdP1gxRn39KGF8tYsKorHnzQD7OwgZG/jeeCNz48O7/QPQ5KomD3yZd7spo4STbH5OCUoQTIDY7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jHW7HLKR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jHW7HLKR" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5571AC2BCF7; Fri, 25 Sep 2026 12:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790338177; bh=Kf9gvIhCBn9QevLLq2R3J3WgNziUXLOXSzIqFtO+NZ0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jHW7HLKRvuByMk8Q3nZg7C8JKlwBtgT9n8XlYkF66clvxRb+oPU4Y3LZjpcab/ZVL DQD4uX2bVPt/9WpWfcz/QujatwTkjF3Zqw67T3IMSIt/AMSRzKncEJ5p5TMz8Tgw1t kYdtxHqmOqRVM9GIsvNr++Xe3d80nE1pRHQYdNhm6JmvLSBDTlRXJ2TcXtWKJoyhrg QUKhAer+dKm/tLXF0CZtKsQQv1Jz/06lSYr4VaD9lxYyYdOf1V14sz2fVYlwubpWVK +wIqb5JR/gIkAucxIWerH7a7eJCHJDLm4l9HC/0MPRUtaBBIrnnpwuR2a8lZlAO+qf NjPTzmJdIbwQQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35575C98321; Fri, 25 Sep 2026 12:09:37 +0000 (UTC) From: Michael Reeves via B4 Relay Date: Fri, 25 Sep 2026 22:09:29 +1000 Subject: [PATCH v4 02/10] dt-bindings: mailbox: apple: Add DockChannel mailbox Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260925-apple-mtp-keyboard-final-v4-2-304c267518f4@gmail.com> References: <20260925-apple-mtp-keyboard-final-v4-0-304c267518f4@gmail.com> In-Reply-To: <20260925-apple-mtp-keyboard-final-v4-0-304c267518f4@gmail.com> To: Sven Peter , Janne Grunau , Neal Gompa , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hector Martin , Michael Reeves , "Joerg Roedel (AMD)" , Will Deacon , Robin Murphy , Dmitry Torokhov , Jiri Kosina , Benjamin Tissoires Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev, linux-input@vger.kernel.org, Yureka Lilian , Julian Braha , Sasha Finkelstein X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790338174; l=4166; i=michael.reeves077@gmail.com; s=fedora-20260918; h=from:subject:message-id; bh=wjuQxiC5MrfndsNZKrsbL/Dah8aA7f3onm2i59wCOVU=; b=VAYTSP6K0OKOMzv+cyPoo938TMLqzJBtlKtq6tqC0BYzoSiLhfVXE337qS+z9c6Dr7+xJQ0DM LOEqe92zLGqBMFs4C9fcaiVPVplBj3XRAphaVMC16eZk4lZgrDgS8is X-Developer-Key: i=michael.reeves077@gmail.com; a=ed25519; pk=VJ0TvyQ9TvfzYZa908YSE9kpkjFLLD5luv0bERu+boc= X-Endpoint-Received: by B4 Relay for michael.reeves077@gmail.com/fedora-20260918 with auth_id=1035 X-Original-From: Michael Reeves Reply-To: michael.reeves077@gmail.com From: Michael Reeves DockChannel is a FIFO and interrupt block used by Apple coprocessors to exchange byte-stream traffic with the AP. Describe it as a mailbox provider for HID and serial clients. The FIFO interrupt pair is configurable because MTP and DebugUSB use different pairs. Suggested-by: Yureka Lilian Signed-off-by: Michael Reeves --- Conor's v3 Reviewed-by is not carried forward because this version adds the apple,irq-index property. --- .../bindings/mailbox/apple,t8112-dockchannel.yaml | 88 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 89 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/apple,t8112-dockchannel.yaml b/Documentation/devicetree/bindings/mailbox/apple,t8112-dockchannel.yaml new file mode 100644 index 000000000..9afd58613 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/apple,t8112-dockchannel.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/apple,t8112-dockchannel.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple DockChannel FIFO Mailbox + +maintainers: + - Michael Reeves + +description: + DockChannel is a hardware FIFO and interrupt block used on Apple SoCs for + low-latency byte stream communication with co-processors. + +properties: + compatible: + oneOf: + - items: + - const: apple,t8112-dockchannel + - items: + - enum: + - apple,t6020-dockchannel + - apple,t6030-dockchannel + - apple,t6031-dockchannel + - apple,t8122-dockchannel + - const: apple,t8112-dockchannel + + reg: + items: + - description: Interrupt control registers + - description: FIFO configuration registers + - description: FIFO data registers + + reg-names: + items: + - const: irq + - const: config + - const: data + + interrupts: + maxItems: 1 + + "#mbox-cells": + const: 0 + + apple,irq-index: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 15 + default: 1 + description: | + Index of the FIFO interrupt pair in the interrupt control registers. + TX uses bit (2 * index) and RX uses bit (2 * index + 1). The configuration + and data register resources must describe the corresponding FIFO. + If absent, pair 1 is used for compatibility with older keyboard nodes. + + nonposted-mmio: true + +required: + - compatible + - reg + - reg-names + - interrupts + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + mailbox@24eb14000 { + compatible = "apple,t8112-dockchannel"; + reg = <0x2 0x4eb14000 0x0 0x4000>, + <0x2 0x4eb30000 0x0 0x4000>, + <0x2 0x4eb34000 0x0 0x4000>; + reg-names = "irq", "config", "data"; + interrupt-parent = <&aic>; + interrupts = ; + #mbox-cells = <0>; + apple,irq-index = <1>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 3b2eb2a7a..0183c3e1c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2643,6 +2643,7 @@ F: Documentation/devicetree/bindings/iommu/apple,dart.yaml F: Documentation/devicetree/bindings/iommu/apple,sart.yaml F: Documentation/devicetree/bindings/leds/backlight/apple,dwi-bl.yaml F: Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml +F: Documentation/devicetree/bindings/mailbox/apple,t8112-dockchannel.yaml F: Documentation/devicetree/bindings/mfd/apple,smc.yaml F: Documentation/devicetree/bindings/net/bluetooth/brcm,bcm4377-bluetooth.yaml F: Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml -- 2.55.0