Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp38391lfv; Tue, 12 Apr 2022 16:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+NOjOL4qlwcTEINCyxJsVygSzISPQA31FoG0Jd4YUlW25OSj8Sx4cyalmWoKRvVoHz8S X-Received: by 2002:a65:6216:0:b0:39d:5e6c:7578 with SMTP id d22-20020a656216000000b0039d5e6c7578mr9907362pgv.114.1649805604479; Tue, 12 Apr 2022 16:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805604; cv=none; d=google.com; s=arc-20160816; b=b1VJim+DnPdozL3j95lMa7HTFyeL0Sp9W2l3mUehOFhKpyrxOLJ23VZYQNwB1Eaqla qyqSdvdJLR9HkAVxhchC0X06t/gb4jx7gfNZOB5m6JS5cEDeI5penh6yLtov/C6Cv+a7 vu5E5PMc+BonIY4iAHKN/WDur9XIoaQOOwx6ptjbbv1zERtqi1zGSLXomqfSgIpZvuph VgCA2pcjG8R7iQMbl78QuLjRqPBFRZQI339pdaj1vDLjvx3JDEKqhD0al4lkkBZTLx/0 vmHkjozp+7Oy+iCXDud0Fy5qbUBIkjvv4elwHBVnkP/JfE6yH0f50nIDxcx774/QTE3T w63A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :in-reply-to:references:user-agent:from:dkim-signature; bh=RFo5F+ApZWnLYkexRefZq9HAsuEkH+9xwO0iIzMLfxs=; b=eN8tNMywhYj+1j4X4/JTiI5/P93XWKJIAlcQGqqiv34RtnCTGsZ6flyPcyxdCnc/3d YFP8yLYfwMseQHfZ/dm2MKXO9LbJxnRl90vLV2LrnflY3uqZChl3hv6DpJmxsYnjbrCb uJ0gF9S5cyFqJRY7NcnJ56XKtA2Q1f4O29Z60srohb0amH7BevwB6Y1YnfhYqAwhKqwf APurN9qJGVlnH8dCTaeSVKmWbNBY3MTGNoXv+U2Kv16dOu5BK5GDJm77+oHLdknw0X5a ry/JAldY8ZcHZl+gxsv/VqYqcHiShI8qV/5OFX2mAkRCLfMm8WPiZ1f6Qh4lEJ6A+atd pVsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=b0ApVZF5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e15-20020a170903240f00b00153b2d1648dsi13022942plo.149.2022.04.12.16.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:20:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=b0ApVZF5; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 803261960BA; Tue, 12 Apr 2022 14:11:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348347AbiDLKvZ (ORCPT + 99 others); Tue, 12 Apr 2022 06:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358935AbiDLKrK (ORCPT ); Tue, 12 Apr 2022 06:47:10 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 871BC2C664 for ; Tue, 12 Apr 2022 02:48:02 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id k10so18523560oia.0 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=YkbnEmDFgC6IcEFEYJ5K2UTj51Tle0C9ysGMlep036Vra9sLEYoKPU3Wmtn4LVhbfD GfJYoaCEqDMUOyILAcsxMQ6x272OB5utpt/3D5hDFK5HAt0kAAnrUUoSfYAyX8gCcgxq ZME0bga9koegeNCmUtfLGxhlnXKNivMxLEW1z2HEbqunWoyilAHfZgLjxpdqfF41cPxy vd9v09T7F+i1Hs2pgOEBMLsJHoXR317i8/xhbbpAq43KaHhSPP2WU28fOyUJss1aSOOG /0UoqdD+0BuN+6iIUzgPzfXYenWdFH4pOmDiieZah53vvJoz8zMDUmmVXmpNnFHqz2Kz 2esA== X-Gm-Message-State: AOAM533xDurNzmGXZiUiJgdz2opk3/ow7pz8Km5kcihAGcmWqMkqbcio DuVoXCC3NjeBK0WoamjQw+ftPI8UxyGE0DlHjcpirQ== 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 Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, markyacoub@google.com, Markus Schneider-Pargmann , kernel test robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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