All of lore.kernel.org
 help / color / mirror / Atom feed
From: amergnat@baylibre.com
To: "Chun-Kuang Hu" <chunkuang.hu@kernel.org>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Jitao Shi" <jitao.shi@mediatek.com>,
	"CK Hu" <ck.hu@mediatek.com>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Will Deacon" <will@kernel.org>
Cc: dri-devel@lists.freedesktop.org,
	linux-mediatek@lists.infradead.org,  devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org,
	 linux-clk@vger.kernel.org,
	Alexandre Mergnat <amergnat@baylibre.com>,
	 Fabien Parent <fparent@baylibre.com>
Subject: [PATCH v2 15/18] drm/mediatek: add MT8365 SoC support
Date: Tue, 16 Apr 2024 17:53:16 +0200	[thread overview]
Message-ID: <20231023-display-support-v2-15-33ce8864b227@baylibre.com> (raw)
In-Reply-To: <20231023-display-support-v2-0-33ce8864b227@baylibre.com>

From: Fabien Parent <fparent@baylibre.com>

Add DRM support for MT8365 SoC.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 74832c213092..427b601309c4 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -230,6 +230,22 @@ static const unsigned int mt8195_mtk_ddp_ext[] = {
 	DDP_COMPONENT_DP_INTF1,
 };
 
+static const unsigned int mt8365_mtk_ddp_main[] = {
+	DDP_COMPONENT_OVL0,
+	DDP_COMPONENT_RDMA0,
+	DDP_COMPONENT_COLOR0,
+	DDP_COMPONENT_CCORR,
+	DDP_COMPONENT_AAL0,
+	DDP_COMPONENT_GAMMA,
+	DDP_COMPONENT_DITHER0,
+	DDP_COMPONENT_DSI0,
+};
+
+static const unsigned int mt8365_mtk_ddp_ext[] = {
+	DDP_COMPONENT_RDMA1,
+	DDP_COMPONENT_DPI0,
+};
+
 static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = {
 	.main_path = mt2701_mtk_ddp_main,
 	.main_len = ARRAY_SIZE(mt2701_mtk_ddp_main),
@@ -317,6 +333,14 @@ static const struct mtk_mmsys_driver_data mt8195_vdosys1_driver_data = {
 	.mmsys_dev_num = 2,
 };
 
+static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = {
+	.main_path = mt8365_mtk_ddp_main,
+	.main_len = ARRAY_SIZE(mt8365_mtk_ddp_main),
+	.ext_path = mt8365_mtk_ddp_ext,
+	.ext_len = ARRAY_SIZE(mt8365_mtk_ddp_ext),
+	.mmsys_dev_num = 1,
+};
+
 static const struct of_device_id mtk_drm_of_ids[] = {
 	{ .compatible = "mediatek,mt2701-mmsys",
 	  .data = &mt2701_mmsys_driver_data},
@@ -344,6 +368,8 @@ static const struct of_device_id mtk_drm_of_ids[] = {
 	  .data = &mt8195_vdosys0_driver_data},
 	{ .compatible = "mediatek,mt8195-vdosys1",
 	  .data = &mt8195_vdosys1_driver_data},
+	{ .compatible = "mediatek,mt8365-mmsys",
+	  .data = &mt8365_mmsys_driver_data},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_drm_of_ids);
@@ -729,6 +755,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = {
 	  .data = (void *)MTK_DISP_MUTEX },
 	{ .compatible = "mediatek,mt8195-disp-mutex",
 	  .data = (void *)MTK_DISP_MUTEX },
+	{ .compatible = "mediatek,mt8365-disp-mutex",
+	  .data = (void *)MTK_DISP_MUTEX },
 	{ .compatible = "mediatek,mt8173-disp-od",
 	  .data = (void *)MTK_DISP_OD },
 	{ .compatible = "mediatek,mt2701-disp-ovl",
@@ -793,6 +821,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = {
 	  .data = (void *)MTK_DSI },
 	{ .compatible = "mediatek,mt8188-dsi",
 	  .data = (void *)MTK_DSI },
+	{ .compatible = "mediatek,mt8365-dpi",
+	  .data = (void *)MTK_DPI },
 	{ }
 };
 

-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: amergnat@baylibre.com
To: "Chun-Kuang Hu" <chunkuang.hu@kernel.org>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Jitao Shi" <jitao.shi@mediatek.com>,
	"CK Hu" <ck.hu@mediatek.com>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Will Deacon" <will@kernel.org>
Cc: dri-devel@lists.freedesktop.org,
	linux-mediatek@lists.infradead.org,  devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org,
	 linux-clk@vger.kernel.org,
	Alexandre Mergnat <amergnat@baylibre.com>,
	 Fabien Parent <fparent@baylibre.com>
Subject: [PATCH v2 15/18] drm/mediatek: add MT8365 SoC support
Date: Tue, 16 Apr 2024 17:53:16 +0200	[thread overview]
Message-ID: <20231023-display-support-v2-15-33ce8864b227@baylibre.com> (raw)
In-Reply-To: <20231023-display-support-v2-0-33ce8864b227@baylibre.com>

From: Fabien Parent <fparent@baylibre.com>

Add DRM support for MT8365 SoC.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 74832c213092..427b601309c4 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -230,6 +230,22 @@ static const unsigned int mt8195_mtk_ddp_ext[] = {
 	DDP_COMPONENT_DP_INTF1,
 };
 
+static const unsigned int mt8365_mtk_ddp_main[] = {
+	DDP_COMPONENT_OVL0,
+	DDP_COMPONENT_RDMA0,
+	DDP_COMPONENT_COLOR0,
+	DDP_COMPONENT_CCORR,
+	DDP_COMPONENT_AAL0,
+	DDP_COMPONENT_GAMMA,
+	DDP_COMPONENT_DITHER0,
+	DDP_COMPONENT_DSI0,
+};
+
+static const unsigned int mt8365_mtk_ddp_ext[] = {
+	DDP_COMPONENT_RDMA1,
+	DDP_COMPONENT_DPI0,
+};
+
 static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = {
 	.main_path = mt2701_mtk_ddp_main,
 	.main_len = ARRAY_SIZE(mt2701_mtk_ddp_main),
@@ -317,6 +333,14 @@ static const struct mtk_mmsys_driver_data mt8195_vdosys1_driver_data = {
 	.mmsys_dev_num = 2,
 };
 
+static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = {
+	.main_path = mt8365_mtk_ddp_main,
+	.main_len = ARRAY_SIZE(mt8365_mtk_ddp_main),
+	.ext_path = mt8365_mtk_ddp_ext,
+	.ext_len = ARRAY_SIZE(mt8365_mtk_ddp_ext),
+	.mmsys_dev_num = 1,
+};
+
 static const struct of_device_id mtk_drm_of_ids[] = {
 	{ .compatible = "mediatek,mt2701-mmsys",
 	  .data = &mt2701_mmsys_driver_data},
@@ -344,6 +368,8 @@ static const struct of_device_id mtk_drm_of_ids[] = {
 	  .data = &mt8195_vdosys0_driver_data},
 	{ .compatible = "mediatek,mt8195-vdosys1",
 	  .data = &mt8195_vdosys1_driver_data},
+	{ .compatible = "mediatek,mt8365-mmsys",
+	  .data = &mt8365_mmsys_driver_data},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_drm_of_ids);
@@ -729,6 +755,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = {
 	  .data = (void *)MTK_DISP_MUTEX },
 	{ .compatible = "mediatek,mt8195-disp-mutex",
 	  .data = (void *)MTK_DISP_MUTEX },
+	{ .compatible = "mediatek,mt8365-disp-mutex",
+	  .data = (void *)MTK_DISP_MUTEX },
 	{ .compatible = "mediatek,mt8173-disp-od",
 	  .data = (void *)MTK_DISP_OD },
 	{ .compatible = "mediatek,mt2701-disp-ovl",
@@ -793,6 +821,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = {
 	  .data = (void *)MTK_DSI },
 	{ .compatible = "mediatek,mt8188-dsi",
 	  .data = (void *)MTK_DSI },
+	{ .compatible = "mediatek,mt8365-dpi",
+	  .data = (void *)MTK_DPI },
 	{ }
 };
 

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2024-04-16 15:53 UTC|newest]

Thread overview: 106+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-16 15:53 [PATCH v2 00/18] Add display support for the MT8365-EVK board Alexandre Mergnat
2024-04-16 15:53 ` Alexandre Mergnat
2024-04-16 15:53 ` [PATCH v2 01/18] dt-bindings: display: mediatek: aal: add compatible for MT8365 SoC Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:43   ` Rob Herring
2024-04-17 18:43     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 02/18] dt-bindings: display: mediatek: ccorr: " Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:43   ` Rob Herring
2024-04-17 18:43     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 03/18] dt-bindings: display: mediatek: color: " Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:43   ` Rob Herring
2024-04-17 18:43     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 04/18] dt-bindings: display: mediatek: dither: " Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:43   ` Rob Herring
2024-04-17 18:43     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 05/18] dt-bindings: display: mediatek: dsi: " Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:21   ` AngeloGioacchino Del Regno
2024-04-17 10:21     ` AngeloGioacchino Del Regno
2024-04-17 18:44   ` Rob Herring
2024-04-17 18:44     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 06/18] dt-bindings: display: mediatek: dpi: add power-domains property amergnat
2024-04-16 15:53   ` amergnat
2024-04-17 10:15   ` AngeloGioacchino Del Regno
2024-04-17 10:15     ` AngeloGioacchino Del Regno
2024-04-17 18:44   ` Rob Herring
2024-04-17 18:44     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 07/18] dt-bindings: display: mediatek: dpi: add compatible for MT8365 Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:14   ` AngeloGioacchino Del Regno
2024-04-17 10:14     ` AngeloGioacchino Del Regno
2024-04-16 15:53 ` [PATCH v2 08/18] dt-bindings: display: mediatek: gamma: add compatible for MT8365 SoC Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:47   ` Rob Herring
2024-04-17 18:47     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 09/18] dt-bindings: display: mediatek: ovl: " Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:47   ` Rob Herring
2024-04-17 18:47     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 10/18] dt-bindings: display: mediatek: rdma: " Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 18:48   ` Rob Herring
2024-04-17 18:48     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 11/18] dt-bindings: pwm: mediatek,pwm-disp: add power-domains property Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17  8:01   ` Uwe Kleine-König
2024-04-17  8:01     ` Uwe Kleine-König
2024-04-17  8:06     ` Alexandre Mergnat
2024-04-17  8:06       ` Alexandre Mergnat
2024-04-17 10:19   ` AngeloGioacchino Del Regno
2024-04-17 10:19     ` AngeloGioacchino Del Regno
2024-04-17 13:25     ` Uwe Kleine-König
2024-04-17 13:25       ` Uwe Kleine-König
2024-04-17 13:50       ` AngeloGioacchino Del Regno
2024-04-17 13:50         ` AngeloGioacchino Del Regno
2024-04-16 15:53 ` [PATCH v2 12/18] dt-bindings: pwm: mediatek,pwm-disp: add compatible for mt8365 SoC Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17  8:06   ` Uwe Kleine-König
2024-04-17  8:06     ` Uwe Kleine-König
2024-04-18  9:46     ` Alexandre Mergnat
2024-04-18  9:46       ` Alexandre Mergnat
2024-04-18 16:05       ` Uwe Kleine-König
2024-04-18 16:05         ` Uwe Kleine-König
2024-04-17 18:48   ` Rob Herring
2024-04-17 18:48     ` Rob Herring
2024-04-16 15:53 ` [PATCH v2 13/18] drm/mediatek: dsi: Improves the DSI lane setup robustness Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-16 15:53 ` [PATCH v2 14/18] drm/mediatek: add mt8365 dpi support Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:14   ` AngeloGioacchino Del Regno
2024-04-17 10:14     ` AngeloGioacchino Del Regno
2024-04-16 15:53 ` amergnat [this message]
2024-04-16 15:53   ` [PATCH v2 15/18] drm/mediatek: add MT8365 SoC support amergnat
2024-04-16 15:53 ` [PATCH v2 16/18] arm64: defconfig: enable display connector support Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-16 15:53 ` [PATCH v2 17/18] arm64: dts: mediatek: add display blocks support for the MT8365 SoC Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:27   ` AngeloGioacchino Del Regno
2024-04-17 10:27     ` AngeloGioacchino Del Regno
2024-04-16 15:53 ` [PATCH v2 18/18] arm64: dts: mediatek: add display support for mt8365-evk Alexandre Mergnat
2024-04-16 15:53   ` Alexandre Mergnat
2024-04-17 10:27   ` AngeloGioacchino Del Regno
2024-04-17 10:27     ` AngeloGioacchino Del Regno
2024-04-18 13:02     ` Alexandre Mergnat
2024-04-18 13:02       ` Alexandre Mergnat
2024-04-17  7:58 ` [PATCH v2 00/18] Add display support for the MT8365-EVK board Uwe Kleine-König
2024-04-17  7:58   ` Uwe Kleine-König
2024-04-17  8:12   ` Alexandre Mergnat
2024-04-17  8:12     ` Alexandre Mergnat

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=20231023-display-support-v2-15-33ce8864b227@baylibre.com \
    --to=amergnat@baylibre.com \
    --cc=airlied@gmail.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=catalin.marinas@arm.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=ck.hu@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fparent@baylibre.com \
    --cc=jitao.shi@mediatek.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mripard@kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=tzimmermann@suse.de \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=will@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.