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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 713CFCCA47F for ; Mon, 27 Jun 2022 11:02:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234382AbiF0LC4 (ORCPT ); Mon, 27 Jun 2022 07:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234325AbiF0LCy (ORCPT ); Mon, 27 Jun 2022 07:02:54 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC1264CF; Mon, 27 Jun 2022 04:02:52 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 279376601695; Mon, 27 Jun 2022 12:02:50 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656327771; bh=UxHktqo+VivyY2Vy+6I2vmZeZfARK9nbs2Vo+6b+UlU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RudkIceJxfkSjbscPB9I0GMp/b5Dq9Vr/lvJHLA7k0Jx2oygEN8e+ULV1+iHXGpwb UoXVH8i3UEsjWY/XHLWHUb6akXyaddzvejxTjbEzFK0OEIXfXuouBbU9S+w8lbyF4f kOxSjA5Us5jdow1b6nxuZR9l06jKm4Jy9nQ8+EzJkUNkAOI+73cC/jMvPefx17t6VL fVJ6q0CCmFsH6aFFH0jKuyNqQBEeLpVwwgBrgOdltn1J/Yv0nLezaEF3nhXRSx3kE8 kpjaE0vuF2gWL6Zp2d24OVAdJrroP1TOauVmniay0URdNwNiuC1GyCfJNbSW/2oiuw pxVeaN97cxRRA== Message-ID: <835a9ce0-8f24-862d-ed39-7429f66f0239@collabora.com> Date: Mon, 27 Jun 2022 13:02:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v12 05/10] drm/mediatek: Add MT8195 Embedded DisplayPort driver Content-Language: en-US To: Rex-BC Chen , "chunkuang.hu@kernel.org" , "p.zabel@pengutronix.de" , "daniel@ffwll.ch" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "mripard@kernel.org" , "tzimmermann@suse.de" , "matthias.bgg@gmail.com" , "deller@gmx.de" , "airlied@linux.ie" Cc: "msp@baylibre.com" , "granquet@baylibre.com" , =?UTF-8?B?Sml0YW8gU2hpICjnn7PorrDmtpsp?= , "wenst@chromium.org" , =?UTF-8?B?Q0sgSHUgKOiDoeS/ig==?= =?UTF-8?B?5YWJKQ==?= , "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-fbdev@vger.kernel.org" , Project_Global_Chrome_Upstream_Group References: <20220627080341.5087-1-rex-bc.chen@mediatek.com> <20220627080341.5087-6-rex-bc.chen@mediatek.com> <269ba882-1975-7148-524a-2bb8eb8667b7@collabora.com> <5f94612c26c79604fe62550808c481c0031456e5.camel@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <5f94612c26c79604fe62550808c481c0031456e5.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 27/06/22 12:30, Rex-BC Chen ha scritto: > On Mon, 2022-06-27 at 18:07 +0800, AngeloGioacchino Del Regno wrote: >> Il 27/06/22 10:03, Bo-Chen Chen ha scritto: >>> From: Markus Schneider-Pargmann >>> >>> This patch adds a embedded 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 creates a child device for the phy. The child device >>> will >>> never exist without the parent being active. As they are sharing a >>> register range, the parent passes a regmap pointer to the child so >>> that >>> both can work with the same register range. The phy driver sets >>> device >>> data that is read by the parent to get the phy device that can be >>> used >>> to control the phy properties. >>> >>> This driver is based on an initial version by >>> Jitao shi >>> >>> Signed-off-by: Markus Schneider-Pargmann >>> Signed-off-by: Guillaume Ranquet >>> [Bo-Chen: Cleanup the drivers and modify comments from reviewers] >>> Signed-off-by: Bo-Chen Chen >>> --- >>> drivers/gpu/drm/mediatek/Kconfig | 10 + >>> drivers/gpu/drm/mediatek/Makefile | 1 + >>> drivers/gpu/drm/mediatek/mtk_dp.c | 2198 >>> ++++++++++++++++++++++++ >>> drivers/gpu/drm/mediatek/mtk_dp_reg.h | 543 ++++++ >>> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 + >>> drivers/gpu/drm/mediatek/mtk_drm_drv.h | 3 + >>> 6 files changed, 2758 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/mtk_dp.c >>> b/drivers/gpu/drm/mediatek/mtk_dp.c >>> new file mode 100644 >>> index 000000000000..9e9b516409e2 >>> --- /dev/null >>> +++ b/drivers/gpu/drm/mediatek/mtk_dp.c >>> @@ -0,0 +1,2198 @@ >>> +// SPDX-License-Identifier: GPL-2.0 >>> +/* >>> + * Copyright (c) 2019-2022 MediaTek Inc. >>> + * Copyright (c) 2022 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