[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241219170800.2957-1-jason-jh.lin@mediatek.com>
Date: Fri, 20 Dec 2024 01:07:53 +0800
From: Jason-JH.Lin <jason-jh.lin@...iatek.com>
To: Jassi Brar <jassisinghbrar@...il.com>, Chun-Kuang Hu
<chunkuang.hu@...nel.org>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>, Mauro Carvalho Chehab
<mchehab@...nel.org>
CC: David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>, <linux-mediatek@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-media@...r.kernel.org>,
"Jason-JH . Lin" <jason-jh.lin@...iatek.com>, Singo Chang
<singo.chang@...iatek.com>, Nancy Lin <nancy.lin@...iatek.com>, Moudy Ho
<moudy.ho@...iatek.com>, Xavier Chang <xavier.chang@...iatek.com>,
<Project_Global_Chrome_Upstream_Group@...iatek.com>, Jason-jh Lin
<jason-jh.lin@...iatek.corp-partner.google.com>
Subject: [PATCH v3 0/7] Add GCE support for MT8196
From: Jason-jh Lin <jason-jh.lin@...iatek.corp-partner.google.com>
This patch series adds support for the MediaTek MT8196 SoC in the CMDQ
driver and related subsystems. The changes include adding compatible
names and properties, updating driver data to accommodate hardware
changes, and modifying the usage of CMDQ APIs to support non-subsys ID
hardware.
---
Change in v3:
1. Merge 2 dt-bindings pathes together and add more detail commit message.
2. Change type u32 to phys_addr_t for pa_base of struct cmdq_client_reg.
3. Remove cmdq_subsys_is_valid() and subsys_num in CMDQ driver.
4. Add CMDQ_SUBSYS_INVALID to check subsys instead of using
cmdq_subsys_is_invalid().
5. Make use of CMDQ_THR_SPR0 define to the parameter of CMDQ APIs.
6. Rebase on the new MACRO in mtk-mdp3-comp.h.
Change in v2:
1. Remove the constant and fix warning in dt-bindings.
2. Remove the pa_base parameter of CMDQ APIs and related modification.
3. Move subsys checking to client drivers and use 2 alternative
CMDQ APIs to achieve the same functionality.
---
Jason-JH.Lin (7):
dt-bindings: mailbox: mediatek: Add MT8196 support for gce-mailbox
mailbox: mtk-cmdq: Add driver data to support for MT8196
soc: mediatek: mtk-cmdq: Add pa_base parsing for unsupported subsys ID
hardware
soc: mediatek: mtk-cmdq: Add mminfra_offset compatibility for DRAM
address
soc: mediatek: Add programming flow for unsupported subsys ID hardware
drm/mediatek: Add programming flow for unsupported subsys ID hardware
media: mediatek: mdp3: Add programming flow for unsupported subsys ID
hardware
.../mailbox/mediatek,gce-mailbox.yaml | 4 +
drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 33 +-
drivers/mailbox/mtk-cmdq-mailbox.c | 90 +-
.../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 18 +-
.../platform/mediatek/mdp3/mtk-mdp3-comp.h | 79 +-
drivers/soc/mediatek/mtk-cmdq-helper.c | 53 +-
drivers/soc/mediatek/mtk-mmsys.c | 14 +-
drivers/soc/mediatek/mtk-mutex.c | 11 +-
.../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1415 +++++++++++++++++
include/linux/mailbox/mtk-cmdq-mailbox.h | 2 +
include/linux/soc/mediatek/mtk-cmdq.h | 3 +
11 files changed, 1679 insertions(+), 43 deletions(-)
create mode 100644 include/dt-bindings/mailbox/mediatek,mt8196-gce.h
--
2.43.0
Powered by blists - more mailing lists