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 B9592C71135 for ; Wed, 11 Jun 2025 20:20:15 +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=sHdPC2GigwDqO7nvpXDeNAlSGT3QU8dH1VQUyQyKEX4=; b=1EM8C5M3sjgGwzv4Mzh7xTynFU 44MDYbl+2np4eMBTTpnZfzOXWRKC8qvqaku8OgfU9E7UKqPTJX/QQTRq/EJJHKOkb4w+ZPFVLvPxL /ifqJp4N5aOuNCY1WZx3Um72UNVqdGiK5NpIQi7o5LvbrEmMbndjVGRj2SwxHiTFtobWslBTMrRH4 aPt9NGhwFO9MU8P56dbV3Y/aFUs12fd5P4AT2oRAHCho2fj3zDMTF4mD8cemfxMsCUUCvey5ktcih HnKOTssB1PhJ7YThnWSXmvAO7bJqa/gU934kpZmkXhcCKx9m070vI+cE9HUBZPVVgYPGkE6gCVJPO lH3UfiFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPRvd-0000000B9PU-2RSI; Wed, 11 Jun 2025 20:20:09 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPPJY-0000000Aj36-1T0j for linux-arm-kernel@lists.infradead.org; Wed, 11 Jun 2025 17:32:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 8AD8A4A2EB; Wed, 11 Jun 2025 17:32:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 51EACC4CEEF; Wed, 11 Jun 2025 17:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749663159; bh=lcbMxrel7jx7H3y2U/66hGI1tYz6FmYR34nQgwcBN2Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=kWj8PxcURxZLp+4hHH80cNJbL7cscBcB93cLT7OfHvIuAl9j/UdQi2VS1cKxWqEF4 wJdhdWRm5f4VZdieIMl/Lou+KnIy1bA02E+MRBAr/ZUyy6gkHmqubmAv5rHOQQ3YGR 4iFRb5HW4PjA6m0G997za7Cy5V5ffXjrBk9EyQ+YeVmwAsthezkkLuXB26KP0Gxo9U AlZD7xOOoXPy5kS4hhozbZtsxRNDxyHViFS3e9RWHFX7qi9C+q8HkjmWlxMa1S3QYc O34PBLmhz6XTb0hOgawcj0g0cgxyStgQ9cUs9uzbqe7nbeobkWnE+jor/jB042D8a5 VK1Rr3BryBiWw== 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 40AD6C71136; Wed, 11 Jun 2025 17:32:39 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Wed, 11 Jun 2025 19:32:16 +0200 Subject: [PATCH 1/2] dt-bindings: Add Apple SoC GPU MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250611-sgx-dt-v1-1-7a11f3885c60@gmail.com> References: <20250611-sgx-dt-v1-0-7a11f3885c60@gmail.com> In-Reply-To: <20250611-sgx-dt-v1-0-7a11f3885c60@gmail.com> To: Sven Peter , Janne Grunau , Alyssa Rosenzweig , Neal Gompa , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sasha Finkelstein X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749663157; l=3999; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=fi+oFwK6grJuET9s6/XgeNUQBtm3aO0V1TI3cLg1XnI=; b=4rOCqcuSkCjByfXaVGa1rq66T4eyMIn9G13fhEP67cMYbjEegt7HIvdyosrmn19Exxa0b3VKC pOjhh0AHclmDaUU8QD/412/FnmibHIF5nfPnZlRLOmsDEFBQsRde4pC X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=aSkp1PdZ+eF4jpMO6oLvz/YfT5XkBUneWwyhQrOgmsU= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20241124 with auth_id=283 X-Original-From: Sasha Finkelstein X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250611_103240_437208_3FDFDE8D X-CRM114-Status: GOOD ( 12.81 ) 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: fnkl.kernel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sasha Finkelstein Add bindings for the GPU present in Apple SoCs Signed-off-by: Sasha Finkelstein --- Documentation/devicetree/bindings/gpu/apple,agx.yaml | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 96 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/apple,agx.yaml b/Documentation/devicetree/bindings/gpu/apple,agx.yaml new file mode 100644 index 0000000000000000000000000000000000000000..23df3ebd689b1e885eb99ca573343fe7f2d09dc4 --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/apple,agx.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpu/apple,agx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SoC GPU + +maintainers: + - Sasha Finkelstein + +properties: + compatible: + oneOf: + - items: + - const: apple,agx-g13g + - items: + - enum: + - apple,agx-g13s + - apple,agx-g13c + - apple,agx-g13d + - const: apple,agx-g13x + - items: + - const: apple,agx-g14g + reg: + items: + - description: ASC coprocessor control + - description: GPU block MMIO registers + + reg-names: + items: + - const: asc + - const: sgx + + power-domains: + maxItems: 1 + + mboxes: + maxItems: 1 + + memory-region: + items: + - description: Region containing GPU MMU TTBs + - description: Region containing GPU MMU page tables + - description: + Region containing a shared handoff structure for VM + management coordination + - description: Driver-opaque calibration blob + - description: Calibration blob + - description: Shared global variables with GPU firmware + + memory-region-names: + items: + - const: ttbs + - const: pagetables + - const: handoff + - const: hw-cal-a + - const: hw-cal-b + - const: globals + + apple,firmware-compat: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 3 + description: + MacOS version the current firmware is paired with, used to pick + the version of firmware ABI to be used. + Bootloader will overwrite this + +required: + - compatible + - reg + - mboxes + - memory-region + - apple,firmware-compat + +additionalProperties: false + +examples: + - | + #include + gpu@6400000 { + compatible = "apple,agx-g13g"; + reg = <0x6400000 0x40000>, + <0x4000000 0x1000000>; + reg-names = "asc", "sgx"; + mboxes = <&agx_mbox>; + power-domains = <&ps_gfx>; + memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>, + <&gpu_hw_cal_a>, <&gpu_hw_cal_b>, <&gpu_globals>; + memory-region-names = "ttbs", "pagetables", "handoff", + "hw-cal-a", "hw-cal-b", "globals"; + + apple,firmware-compat = <0 0 0>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index a92290fffa163f9fe8fe3f04bf66426f9a894409..2a32c9c4ee355a1109a3e2031ea3663c39cc8c68 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2331,6 +2331,7 @@ F: Documentation/devicetree/bindings/arm/apple/* F: Documentation/devicetree/bindings/clock/apple,nco.yaml F: Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml F: Documentation/devicetree/bindings/dma/apple,admac.yaml +F: Documentation/devicetree/bindings/gpu/apple,agx.yaml F: Documentation/devicetree/bindings/i2c/apple,i2c.yaml F: Documentation/devicetree/bindings/input/touchscreen/apple,z2-multitouch.yaml F: Documentation/devicetree/bindings/interrupt-controller/apple,* -- 2.49.0