From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74B9B60A260B for ; Sat, 28 Nov 2026 22:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cc8xTMB5; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.a=rsa-sha256 header.s=1a1hai header.b=wHfHuW2D DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: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:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=C55kFjvkcv2uK3KDohjD3OZtHWpTzju7Qi/q4RA3e0Y=; b=cc8xTMB5DId/32 /PNUznJNTs4703kAYxWmxPmm2rPd2+B0ujZFQKAiQ0KSMMRr6P5plsa6LWXDZfXBQK/pLeChGs/IH U7ZMFqZPzHUksofiDyGBt1dC/YJcQ/LQpz2UEvCv9Brt62TvSaMQlrWWSyhAooo6oj0ptePbXbHyG HH8E6tzOII6X7ybFbFq9d4ktpt5fNtJEvVkD0juQnX4YoqUOIrVCxRirsf/IB17De9/nfoSisb71u x4rSNTX8uLBe0xPszB+lzVAD2hsFVM1RvwcL6kYqj8vDV2zGuVR5d3ym0q+QjrbRMwfHai37SERAp /rWmC7mhnC08LYJWh/1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXQVF-00000001Dyq-06EQ; Sat, 28 Nov 2026 22:02:41 +0000 Received: from qs-2001j-snip6-11.eps.apple.com ([2a01:b747:3006:201::67] helo=outbound.qs.icloud.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXQVC-00000001Dy9-2CvY for linux-arm-kernel@lists.infradead.org; Sat, 28 Nov 2026 22:02:39 +0000 Received: from outbound.qs.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-east-2d-100-percent-11 (Postfix) with ESMTPS id 6C39718001EB; Sat, 28 Nov 2026 22:02:32 +0000 (UTC) X-ICL-RepId: 01a2242e-6e32-7a1a-a6d9-b88eb83dbcb5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1795903355; x=1827439355; bh=C55kFjvkcv2uK3KDohjD3OZtHWpTzju7Qi/q4RA3e0Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:x-icloud-hme; b=wHfHuW2DfZRD3w2evU5P1phQ1XGxTvba4qyGzqbOpukRIBw2mJWS923D+pUtvV/JZuRLA2FuIADACtFqRfDBXBgrTQAsNXIAFYh4a/QDo/JdeoXoEzQz8GHCMC/h/+o4rj2lAMVBOhuNECPp8otFTRxf11Xo7BNciM4naDdVNXtRFqEJwOBf//XSluFdjaLg8eSWp0jbFoGBW7looQduWy1xxOIBkVggYVe66UOfE6oL9Iyc7mOldWL4G1tAU225hSHncnd8g0txsZozBfp2Hts3ECqDVTswHeGi/ZBsvrbU/wkmvDWoptIK8O2fCbFjr7qncFV29mnW1dETxSldCA== Received: from [127.0.0.1] (unknown [17.57.155.37]) by p00-icloudmta-asmtp-us-east-2d-100-percent-11 (Postfix) with ESMTPSA id 3553B180022E; Sat, 28 Nov 2026 22:02:30 +0000 (UTC) From: Sofus Forstreuter Date: Sat, 28 Nov 2026 23:02:20 +0100 Subject: [PATCH v4 01/17] dt-bindings: media: add apple,avd X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261128-avd-v4-1-35ad7d52c842@icloud.com> References: <20261128-avd-v4-0-35ad7d52c842@icloud.com> In-Reply-To: <20261128-avd-v4-0-35ad7d52c842@icloud.com> To: Sven Peter , Janne Grunau , Neal Gompa , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sofus Forstreuter , Philipp Zabel , Heiko Stuebner Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.16.0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI4MDA4NyBTYWx0ZWRfX6uP7n2ljpJJQ Mi+QbMtzNT92X0uJBQ93gUcz2fsa9Vyg7BuTBRQkRt3+hOZHhDAqFEHnbnVxQTo5TS59fEh7Ym3 Py50OoJwu6KcG6RLZf4pdlspzGdyTRw= X-Proofpoint-GUID: TBulYud36mj-e66NVFIG-abqdDsDkNVW X-Authority-Info-Out: v=2.4 cv=IuGL47/g c=1 sm=1 tr=0 ts=6b0b4f7a cx=c_apl:c_pps:t_out a=bsP7O+dXZ5uKcj+dsLqiMw==:117 a=bsP7O+dXZ5uKcj+dsLqiMw==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=x7bEGLp0ZPQA:10 a=kLM9Tyy99jAA:10 a=VkNPw1HP01LnGYTKEx00:22 a=AZoGnDOZhPiq548KR6q9:22 a=S9oidJ0X30WSrBQ5NySO:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=v3ZZPjhaAAAA:8 a=WCOQ0BZNcKcpk45iT-AA:9 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-ORIG-GUID: TBulYud36mj-e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puZ57VMOQFQLbCMd5pHSsM F7Rct6F0TU8QT5eo0PWVxYAgKPu7yO2s9MhJKw1UTsWl5LlMJJEYhcEbRtgtuDexKDwYck Hs304RmpnXLiwFZCFkxVXMKtjH/GHZ3PavGiy6CORNSG1fYl736jyZYDuEnr2aMBx7apxu cdhD+LzLFnwgYxVErXhJlbgpiRzYKWlhx+DBcpgLJGQ6wgM+w+IT8G0HwYYs01ooMxJrCG ncXckMtPIW6mycY/FaQ4gXcT7jEp3asQCcvdtbbyZw/UwzipWG+DOszvUW0dgNi5AQNwEE 99Hwh1FUIHr82VEviI9h0gg6sXxZNmM/4P2bgy7fwXq0trS/LxpCXG6BFpBbW1 X-Apple-Category-Label: ODA4MzgyMTIwOiRjYXRlZ29yeSRfUGVyc29uYWws X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261128_140238_655063_BE27C7DB X-CRM114-Status: GOOD ( 12.56 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Document the Apple Video Decoder. A hardware video decoder present on Apple hardware. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Neal Gompa Signed-off-by: Sofus Forstreuter --- .../devicetree/bindings/media/apple,avd.yaml | 127 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 128 insertions(+) diff --git a/Documentation/devicetree/bindings/media/apple,avd.yaml b/Documentation/devicetree/bindings/media/apple,avd.yaml new file mode 100644 index 000000000000..108b4971914a --- /dev/null +++ b/Documentation/devicetree/bindings/media/apple,avd.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/apple,avd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple Video Decoder (AVD) + +description: | + AVD is a stateless video decode IP block present on Apple devices. + Notably it includes an ARM Cortex-M3 and associated DMA controller. + AVD is capable of decoding H264, H265, VP9 and AV1 on newer SoCs. + + The IP does not change much, with changes being mostly the CM3 having more + memory and interrupts. + +maintainers: + - Sofus Forstreuter + +properties: + compatible: + oneOf: + - items: + - enum: + - apple,t6030-avd + - apple,t6031-avd + - const: apple,t8122-avd + - enum: + - apple,t6000-avd + - apple,t6020-avd + - apple,t8103-avd + - apple,t8112-avd + - apple,t8122-avd + + reg: + items: + - description: DMA control + - description: Cortex-M3 code (unsigned) + - description: Cortex-M3 sram + - description: Mailbox + - description: Video decode control + + reg-names: + items: + - const: piodma + - const: code + - const: sram + - const: mbox + - const: ctrl + + iommus: + items: + - description: Decode related + - description: DMA controller + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + interrupts: + items: + - description: mailbox 0 + - description: mailbox 1 + - description: mailbox 2 + - description: mailbox 3 + - description: flag 0 + - description: flag 1 + - description: DMA status + description: | + Notably there are no decode related interrupts. All decode related + interrupts are sent to the CM3. + + interrupt-names: + items: + - const: mbox0 + - const: mbox1 + - const: mbox2 + - const: mbox3 + - const: flag0 + - const: flag1 + - const: piodma + +required: + - compatible + - reg + - interrupts + - reg-names + - iommus + - power-domains + - resets + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + video-codec@289070000 { + compatible = "apple,t8122-avd"; + reg = <0x2 0x89070000 0x0 0x4000>, + <0x2 0x89080000 0x0 0x10000>, + <0x2 0x89092000 0x0 0x14000>, + <0x2 0x890a4000 0x0 0x4000>, + <0x2 0x89100000 0x0 0x10000>; + reg-names = "piodma", "code", "sram", "mbox", "ctrl"; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "mbox0", "mbox1", "mbox2", "mbox3", + "flag0", "flag1", "piodma"; + power-domains = <&ps_avd_sys>; + resets = <&ps_avd_sys>; + iommus = <&avd_dart 0>, <&avd_dart 1>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f72ce07a4e38..5dd197078130 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2736,6 +2736,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/media/apple,avd.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.56.0