From: Roman Vivchar via B4 Relay <devnull+rva333.protonmail.com@kernel.org>
To: Jassi Brar <jassisinghbrar@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Houlong Wei <houlong.wei@mediatek.com>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
Roman Vivchar <rva333@protonmail.com>
Subject: [PATCH v2 1/3] dt-bindings: mailbox: mediatek,gce-mailbox: add mt6572
Date: Mon, 07 Sep 2026 21:03:05 +0300 [thread overview]
Message-ID: <20260907-6572-gce-v2-1-412a5b037290@protonmail.com> (raw)
In-Reply-To: <20260907-6572-gce-v2-0-412a5b037290@protonmail.com>
From: Roman Vivchar <rva333@protonmail.com>
Add a compatible string and a header for the GCE constants.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
There's also 'other' subsystem which covers 0x16XXXXXX range, however
mt6572 doesn't seem to have any MMIO there. It's not included in this
patch.
---
.../bindings/mailbox/mediatek,gce-mailbox.yaml | 1 +
include/dt-bindings/mailbox/mediatek,mt6572-gce.h | 52 ++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml
index 587126d03fc6..d6e93010bb94 100644
--- a/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml
+++ b/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml
@@ -18,6 +18,7 @@ properties:
compatible:
oneOf:
- enum:
+ - mediatek,mt6572-gce
- mediatek,mt6779-gce
- mediatek,mt8173-gce
- mediatek,mt8183-gce
diff --git a/include/dt-bindings/mailbox/mediatek,mt6572-gce.h b/include/dt-bindings/mailbox/mediatek,mt6572-gce.h
new file mode 100644
index 000000000000..94eb6ea97542
--- /dev/null
+++ b/include/dt-bindings/mailbox/mediatek,mt6572-gce.h
@@ -0,0 +1,52 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) 2026 Roman Vivchar
+ */
+
+#ifndef _DT_BINDINGS_GCE_MT6572_H
+#define _DT_BINDINGS_GCE_MT6572_H
+
+/* GCE HW thread priority */
+#define CMDQ_THR_PRIO_NORMAL 0
+#define CMDQ_THR_PRIO_HIGHEST 1
+
+/* GCE SUBSYS */
+#define SUBSYS_14XXXXXX 0
+#define SUBSYS_15XXXXXX 1
+
+/* GCE HW EVENT */
+#define CMDQ_EVENT_MUTEX0 0
+#define CMDQ_EVENT_MUTEX1 1
+#define CMDQ_EVENT_MUTEX2 2
+#define CMDQ_EVENT_MUTEX3 3
+#define CMDQ_EVENT_MUTEX4 4
+#define CMDQ_EVENT_MUTEX5 5
+#define CMDQ_EVENT_MUTEX6 6
+#define CMDQ_EVENT_MUTEX7 7
+
+#define CMDQ_EVENT_DISP_WDMA_EOF 12
+#define CMDQ_EVENT_DISP_RDMA_EOF 13
+#define CMDQ_EVENT_DISP_BLS_EOF 14
+#define CMDQ_EVENT_DISP_COLOR_EOF 15
+#define CMDQ_EVENT_DISP_OVL_EOF 16
+#define CMDQ_EVENT_MDP_TDSHP_EOF 17
+#define CMDQ_EVENT_MDP_RSZ1_EOF 18
+#define CMDQ_EVENT_MDP_RSZ0_EOF 19
+#define CMDQ_EVENT_MDP_RDMA_EOF 20
+#define CMDQ_EVENT_MDP_WDMA_EOF 21
+#define CMDQ_EVENT_MDP_WROT_EOF 22
+
+#define CMDQ_EVENT_MDP_WROT_SOF 24
+#define CMDQ_EVENT_MDP_RSZ0_SOF 25
+#define CMDQ_EVENT_MDP_RSZ1_SOF 26
+#define CMDQ_EVENT_DISP_OVL_SOF 27
+#define CMDQ_EVENT_MDP_WDMA_SOF 28
+#define CMDQ_EVENT_MDP_RDMA_SOF 29
+#define CMDQ_EVENT_DISP_WDMA_SOF 30
+#define CMDQ_EVENT_DISP_COLOR_SOF 31
+#define CMDQ_EVENT_MDP_TDSHP_SOF 32
+#define CMDQ_EVENT_DISP_BLS_SOF 33
+#define CMDQ_EVENT_DISP_RDMA_SOF 34
+#define CMDQ_EVENT_CAM_MDP 35
+
+#endif
--
2.55.0
next prev parent reply other threads:[~2026-09-07 18:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 18:03 [PATCH v2 0/3] MediaTek mt6572 GCE support Roman Vivchar via B4 Relay
2026-09-07 18:03 ` Roman Vivchar via B4 Relay [this message]
2026-09-07 18:03 ` [PATCH v2 2/3] soc: mediatek: cmdq-helper: add legacy GCE ISA support Roman Vivchar via B4 Relay
2026-09-09 9:57 ` AngeloGioacchino Del Regno
2026-09-07 18:03 ` [PATCH v2 3/3] mailbox: mtk-cmdq: add mt6572 support Roman Vivchar via B4 Relay
2026-09-08 7:01 ` [PATCH v2 0/3] MediaTek mt6572 GCE support AngeloGioacchino Del Regno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260907-6572-gce-v2-1-412a5b037290@protonmail.com \
--to=devnull+rva333.protonmail.com@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=houlong.wei@mediatek.com \
--cc=jassisinghbrar@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=rva333@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox