From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F04CBC982DC for ; Fri, 18 Sep 2026 11:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hAfCINQkq4c3Qj05oR+XxYW7hnZ/vLbQIkKSJ1dggEk=; b=RiNTh73zPxv9oJd1Rm5dM+Ggxp vwV1mPhbQYIar2WueqnHZUHCdDZJC+3wvOoIl68zns1vhe6MnQSQ3z2ex9e8VUoqMbsk5rwv5i5FX dVI/4EV9UFYN4O+6lbv2Uo38s1QObYONU3Jz1QC07aBXWC3pXoaSwUuKEIz/CkjsyMq62ixMAaT+X I2AfZ/I4Jd5tKWl0sVftDDWg9PEiFS2hkbUzzwPN0qEE42c8Skxv6X/Ki3eOkxV9WMl6bt64eoWrm RLLgRlKB0wXmk665VPSK82xS4OxfwoX+ptdKiqfwFloa3Q3EjTH2ev+hqSYVIvtfGrkj0k6249FMa wBKnTVPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7WQe-0000000EBCw-1rnZ; Fri, 18 Sep 2026 11:06:52 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7WQd-0000000EBBh-0M90 for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2026 11:06:51 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 75A4D447CF; Fri, 18 Sep 2026 11:06:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 4CCE3C4AF0D; Fri, 18 Sep 2026 11:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789729610; bh=x45dY1rVj1cZoRbZ3WbYKT3XvBNlieNhr6jNH5/qAa4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BtA/MRhrY6yIXdyUj7yjwtGKLc6lwhCcakwdiUi0WUshQBEd1aOtzYye5BSXpb5WJ LlP+FLMhxiXrR0Inmb2Q3NHIHoYoKtVA9T7LmUtMSQYZ20XhWEatiY1S/SuOk7IXHX Qx9FkTq40U8iWMeT9sVmc2NODOh08pBnQf8y+hiyND5MFrhViHeSIkvZ8w8+7eOt1B IheF4oZrB3WIyywubaSUW8Up55iTsnE0QSEyU4IZ4a/gv9txFTqrGdVtPkPms7wamE nY83Cc3KyuJmNdXYl2Aa9nrXghAed7kv/kUbI/g6PMQvr/Wzii43Bn3TVhOXz2gewy Qc/V2n1/TpB+w== 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 2C4C6C982D9; Fri, 18 Sep 2026 11:06:50 +0000 (UTC) From: Michael Reeves via B4 Relay Date: Fri, 18 Sep 2026 21:06:45 +1000 Subject: [PATCH v2 02/10] dt-bindings: mailbox: apple: Add DockChannel mailbox MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260918-apple-mtp-keyboard-final-v2-2-a5c685e50b60@gmail.com> References: <20260918-apple-mtp-keyboard-final-v2-0-a5c685e50b60@gmail.com> In-Reply-To: <20260918-apple-mtp-keyboard-final-v2-0-a5c685e50b60@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 , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789729608; l=3526; i=michael.reeves077@gmail.com; s=fedora-20260918; h=from:subject:message-id; bh=2Ignuv/vmTwVuxidQ+JOxc1KREH4iq4mptqg1ItCXik=; b=nnLrE9aMURPR7ok122ZX/EN0I6t61pJnDpyIdEpGWN2dl5iAa76AyInFFv/1FP1DHJNGkQL7B ARpM1EkuBiTCwKGYBtSXu0v6fLLXs1QnOOiGDIZ+JL83+nMMlQbcW0q 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: michael.reeves077@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 so HID and future serial clients can use the common mailbox API. Signed-off-by: Michael Reeves Reviewed-by: Conor Dooley --- .../bindings/mailbox/apple,t8112-dockchannel.yaml | 77 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 78 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..dd2fdfa01 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/apple,t8112-dockchannel.yaml @@ -0,0 +1,77 @@ +# 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 + + 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>; + }; + }; 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