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 63958CA101F for ; Fri, 12 Sep 2025 18:38: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: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-Owner; bh=SYOU/8VrDAp+vsF12aSnGJc7uo89fJ6a5IP9fscM8+4=; b=r6k9e/Zs2vilhaFhTzRkH3jat0 hX3yd3y7/qA0BlqkpWnnEAtevjCth5KteXmKm70bIanw2a5o1cQi3Wfu7bLy0EWaigglv7x1FPUfv Vk6R6NFKk9iZsQtzqTtMeaHOvBgs2RO8F5RwVThVEkpoEftpY9PuUI/SE56IQ6ajEl+bRjETfkfeV agKVa2SaIuYLw83uByOq3kNRyC6IDM61CfFBqygB93EYrcZwcezjqSvu2zUy6wo9vK2EGn1MwJdlM KwfrJMqDtMC8a/QK/b3oZSSl3hcrF6bXnFyCrUCS38BIVmW8iZ6gy7zb1q+4iN4hONiUkeKd7+SnN YHyeTeuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ux8ev-0000000B2IJ-1F0I; Fri, 12 Sep 2025 18:38:09 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ux8es-0000000B2Eh-2O4K; Fri, 12 Sep 2025 18:38:07 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1757702274; cv=none; d=zohomail.com; s=zohoarc; b=G5NKDoUWA7fUF6oU8rPcNYu1AON7niiwV0XRbLDfvWv39oQmjol/MEgnDxzCbLF3rLpjubQ0wdGFouwFIKxbnzxpBEo/yAYFJCPYoiwdMIBIQa7+7POL2gCNxqdBS/X+0BdZXSh4E804/8eIoQamDJumfRxcSWJdPO5y6VmM488= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1757702274; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=SYOU/8VrDAp+vsF12aSnGJc7uo89fJ6a5IP9fscM8+4=; b=Mhn2Iz3Pwacrnc73OySUCJ3IcbZV/iwS6tcIkrVH3XXhToBnbPcm0VBKhArr2rqeVXXiyvGbalfAkiYlncqjhJRQyQ8oyVJae1JmJBGc1Xp9E1/aQtgW/gJPaQJKh7ATmN5VWesf3cGrpeJHGvz2cuwqcvPI8Zhcv5sJSzj3hM4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1757702274; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=SYOU/8VrDAp+vsF12aSnGJc7uo89fJ6a5IP9fscM8+4=; b=UmNxMtxocGD6PV00JP1QPGSyhPJ08T0XNONQcW7XeB9I/zcWsuP6q+ZQTPyGjuSj R9Bz0dCHNHYisE4k/Zm+8DCnakmDvUjuB9HIDX9McEhDPtcFuUtzFJLYG5ALvWKZlZz y1qTNZPe9gcyCVB7dfk4Ffa6XcuPF5XLLV6AO8Bc= Received: by mx.zohomail.com with SMTPS id 1757702273859380.4056309139387; Fri, 12 Sep 2025 11:37:53 -0700 (PDT) From: Nicolas Frattaroli Date: Fri, 12 Sep 2025 20:37:03 +0200 Subject: [PATCH v2 04/10] dt-bindings: mailbox: Add MT8196 GPUEB Mailbox MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250912-mt8196-gpufreq-v2-4-779a8a3729d9@collabora.com> References: <20250912-mt8196-gpufreq-v2-0-779a8a3729d9@collabora.com> In-Reply-To: <20250912-mt8196-gpufreq-v2-0-779a8a3729d9@collabora.com> To: AngeloGioacchino Del Regno , Boris Brezillon , Steven Price , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Jassi Brar , Kees Cook , "Gustavo A. R. Silva" , Chia-I Wu , Chen-Yu Tsai Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-hardening@vger.kernel.org, Nicolas Frattaroli X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250912_113806_713464_AD88C99E X-CRM114-Status: GOOD ( 13.69 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MediaTek MT8196 SoC includes an embedded MCU referred to as "GPUEB", acting as glue logic to control power and frequency of the Mali GPU. This MCU runs special-purpose firmware for this use, and the main application processor communicates with it through a mailbox. Add a binding that describes this mailbox. Signed-off-by: Nicolas Frattaroli --- .../mailbox/mediatek,mt8196-gpueb-mbox.yaml | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/mediatek,mt8196-gpueb-mbox.yaml b/Documentation/devicetree/bindings/mailbox/mediatek,mt8196-gpueb-mbox.yaml new file mode 100644 index 0000000000000000000000000000000000000000..56508f406fce88c7c1699aa67b57394fc7b1c357 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/mediatek,mt8196-gpueb-mbox.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/mediatek,mt8196-gpueb-mbox.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MFlexGraphics GPUEB Mailbox Controller + +maintainers: + - Nicolas Frattaroli + +properties: + compatible: + enum: + - mediatek,mt8196-gpueb-mbox + + reg: + items: + - description: mailbox data registers + - description: mailbox control registers + + reg-names: + items: + - const: data + - const: ctl + + clocks: + items: + - description: main clock of the GPUEB MCU + + interrupts: + items: + - description: fires when a new message is received + + "#mbox-cells": + const: 1 + description: + The number of the mailbox channel. + +required: + - compatible + - reg + - reg-names + - clocks + - interrupts + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + #include + #include + #include + + gpueb_mbox: mailbox@4b09fd80 { + compatible = "mediatek,mt8196-gpueb-mbox"; + reg = <0x4b09fd80 0x280>, + <0x4b170000 0x7c>; + reg-names = "data", "ctl"; + clocks = <&topckgen CLK_TOP_MFG_EB>; + interrupts = ; + #mbox-cells = <1>; + }; -- 2.51.0