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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 06231C433F5 for ; Tue, 12 Apr 2022 09:48:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2B77010E572; Tue, 12 Apr 2022 09:48:04 +0000 (UTC) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9711010E572 for ; Tue, 12 Apr 2022 09:48:02 +0000 (UTC) Received: by mail-oi1-x230.google.com with SMTP id r8so18461241oib.5 for ; Tue, 12 Apr 2022 02:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:user-agent:references:in-reply-to:mime-version:date:message-id :subject:to:cc; bh=RFo5F+ApZWnLYkexRefZq9HAsuEkH+9xwO0iIzMLfxs=; b=b0ApVZF5G4seGFzPNzxHvYEgSwj1oP2BFLMx5Ezxg1Hs8kjt63KfkWjzTWUgEybF9g TgWCtdBKRpiOOklTFkamAihN0rzYUtQa82xhQfpd9BU/0RImoHMR89cgH/ln/8rS+IMW Ky29Qgyal8+mqOF8FS9esw7O3ji83i1Zl7ehhI/J05YAtyDYgWRw/4X52dsbB64c8ZV7 HQQJ+i9aWmwLTnQEdrfg7e+uyzLvUdcaqVsH2qNUXUW/Y9Hob3mKmHlgoZ5LnE44JjMJ Rotdsjd+cHrZsBPBwttJnYJ/HjbsHyXR1QCslUHRJ8a0KN/Jo66b0SXHqi+CD8fqLk1t W1Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:user-agent:references:in-reply-to :mime-version:date:message-id:subject:to:cc; bh=RFo5F+ApZWnLYkexRefZq9HAsuEkH+9xwO0iIzMLfxs=; b=68vmbauQI4YW4WMlkv80Y/w2AWQZHnSXGXWE1oddh8dB+LEH/xotFI+hSQyXNSntwg FEKI1DMvaKH2ofc6/Uf6Sb9uw/TbHsXfGuF9YkLJ+UUw25oblp8heLj4A3VelAo5KZM/ 0msfRkOsA7wB/iI5PANB/KvJH0Pf3e4cp68jXwWY0U51vpSgpW6M5KXDyhfaAjeFzScQ F4c1nkzw4kot0EQ4HwYrCsq3cpqOMEszkYT0IL7p9G9L6u05PeQpfAF0nvxm4f3tXQ6l cJSVjxu2VCxQJXDZ63SA2pmrAMdxeng7MYItvVCtTBClKfNUSJ2aflGJOhGQYHqqcG4A sD7Q== X-Gm-Message-State: AOAM530atMnHrgG1B5WWsnU7sZp513snI4Z+RE9MHHKyex8mpzIvedEM OgLaXdolSqW7J2SzPkwxlWzgRLChsrBonLNyovtLdQ== X-Google-Smtp-Source: ABdhPJzHCqugNsMsLr6Wftp6HrIpgzAo3uWb177Kz7wPR0E7WlOKMoGmpLOBj60AnsALYpZhyRVjQsO2J4aLYiO+kRU= X-Received: by 2002:a05:6808:159d:b0:2da:3946:ab3d with SMTP id t29-20020a056808159d00b002da3946ab3dmr1313040oiw.248.1649756881646; Tue, 12 Apr 2022 02:48:01 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 12 Apr 2022 02:48:01 -0700 From: Guillaume Ranquet User-Agent: meli 0.7.2 References: <20220327223927.20848-1-granquet@baylibre.com> <20220327223927.20848-19-granquet@baylibre.com> <71819a10a950896a4180a4714c316617153673c5.camel@mediatek.com> In-Reply-To: <71819a10a950896a4180a4714c316617153673c5.camel@mediatek.com> MIME-Version: 1.0 Date: Tue, 12 Apr 2022 02:48:00 -0700 Message-ID: Subject: Re: [PATCH v9 18/22] drm/mediatek: Add mt8195 Embedded DisplayPort driver To: Rex-BC Chen , vkoul@kernel.org, airlied@linux.ie, angelogioacchino.delregno@collabora.com, chunfeng.yun@mediatek.com, chunkuang.hu@kernel.org, ck.hu@mediatek.com, daniel@ffwll.ch, deller@gmx.de, jitao.shi@mediatek.com, kishon@ti.com, krzk+dt@kernel.org, maarten.lankhorst@linux.intel.com, matthias.bgg@gmail.com, mripard@kernel.org, p.zabel@pengutronix.de, robh+dt@kernel.org, tzimmermann@suse.de Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, kernel test robot , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Markus Schneider-Pargmann , linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, markyacoub@google.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, 29 Mar 2022 05:34, Rex-BC Chen wrote: >On Mon, 2022-03-28 at 00:39 +0200, Guillaume Ranquet wrote: >> From: Markus Schneider-Pargmann >> >> This patch adds a DisplayPort driver for the Mediatek mt8195 SoC. >> >> It supports the mt8195, the embedded DisplayPort units. It offers >> DisplayPort 1.4 with up to 4 lanes. >> >> The driver shares its iomap range with the mtk-dp-phy driver using >> the regmap/syscon facility. >> >> This driver is based on an initial version by >> Jason-JH.Lin . >> >> Signed-off-by: Markus Schneider-Pargmann >> Signed-off-by: Guillaume Ranquet >> Reported-by: kernel test robot >> --- >> drivers/gpu/drm/mediatek/Kconfig | 8 + >> drivers/gpu/drm/mediatek/Makefile | 2 + >> drivers/gpu/drm/mediatek/mtk_dp.c | 2221 >> ++++++++++++++++++++++++ >> drivers/gpu/drm/mediatek/mtk_dp_reg.h | 568 ++++++ >> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 + >> drivers/gpu/drm/mediatek/mtk_drm_drv.h | 1 + >> 6 files changed, 2801 insertions(+) >> create mode 100644 drivers/gpu/drm/mediatek/mtk_dp.c >> create mode 100644 drivers/gpu/drm/mediatek/mtk_dp_reg.h >> >> diff --git a/drivers/gpu/drm/mediatek/Kconfig >> b/drivers/gpu/drm/mediatek/Kconfig >> index 2976d21e9a34..03ffa9b896c3 100644 >> --- a/drivers/gpu/drm/mediatek/Kconfig >> +++ b/drivers/gpu/drm/mediatek/Kconfig >> @@ -28,3 +28,11 @@ config DRM_MEDIATEK_HDMI >> select PHY_MTK_HDMI >> help >> DRM/KMS HDMI driver for Mediatek SoCs >> + >> +config MTK_DPTX_SUPPORT >> + tristate "DRM DPTX Support for Mediatek SoCs" >> + depends on DRM_MEDIATEK >> + select PHY_MTK_DP >> + select DRM_DP_HELPER >> + help >> + DRM/KMS Display Port driver for Mediatek SoCs. >> diff --git a/drivers/gpu/drm/mediatek/Makefile >> b/drivers/gpu/drm/mediatek/Makefile >> index 29098d7c8307..d86a6406055e 100644 >> --- a/drivers/gpu/drm/mediatek/Makefile >> +++ b/drivers/gpu/drm/mediatek/Makefile >> @@ -21,3 +21,5 @@ mediatek-drm-hdmi-objs := mtk_cec.o \ >> mtk_hdmi_ddc.o >> >> obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o >> + >> +obj-$(CONFIG_MTK_DPTX_SUPPORT) += mtk_dp.o >> diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c >> b/drivers/gpu/drm/mediatek/mtk_dp.c >> new file mode 100644 >> index 000000000000..7cd8459cf719 >> --- /dev/null >> +++ b/drivers/gpu/drm/mediatek/mtk_dp.c >> @@ -0,0 +1,2221 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Copyright (c) 2019 MediaTek Inc. >> + * Copyright (c) 2021 BayLibre >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include