Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp461491rdb; Mon, 15 Jan 2024 03:06:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGN546hV4Zto7+lHj5gZ8QjG4RXQ+wCQurgBwZqjrh2aI69cp89mTjnG9/wKlxi5olQlpHL X-Received: by 2002:a05:6512:108b:b0:50e:aa1e:d994 with SMTP id j11-20020a056512108b00b0050eaa1ed994mr2765116lfg.91.1705316802201; Mon, 15 Jan 2024 03:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705316802; cv=none; d=google.com; s=arc-20160816; b=ME9ANLB7BJclwBlKlfLVRNPtZPUDTYfdcs0Fi36Nh7kfPmhbFIuTnpQXJq1eZdnQnE 0XZ/lPI4SI7CDiHO3tYgddQSGu6VHrN/+LYIXkh8/jjKRG9uVaCIMYSrdl6D7cYUQCVG Vbt5NV8eCd4pQveVI0thSTJorF+6WN8Cgp/E1UeprV3KMH4Q3Vq/7BUlWVg9M2tEPlIL XCnRg2B4x2blmzbojLsMW8YQkNE2IwA65Cuth+InoNEQ8nyxWl9FeMDqbnmUYGB3bccv lzacULzWu/sCROWopKPfsMpvu3Lp5QyUtbxAMMfSjG6vJJDEvEhcf7jO0PA1P4do8Fhg 9/yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=A626LluLqavc8Rba7QE8gq+rDsxDvpizm68IdXwWAE8=; fh=P7chEm57ogBgn8xOEjjFoeoOYT3xCSk+faQl+o8h+J0=; b=TFZ71DMa/JvPhYVQ9+rkQ77//MuEqj5VOJT/DUKGo2qQ063Y7/8eVg212qoKGdI7C/ 7rNEJYP2I5H8FpRNcdrCuB8xRkuWX06by9VHbNfpPt68KYQntlcoBQf2iIjq/atZ0ukC By2y/5ozEEqySp6U6x/vOFwByT38kgRV3/wJ4o72OeL+x+u0nlCy46VCkEh2waIA3KjS OqNUXdLtU57fRGNuKh2GwR8++MtQATN1wa291Exr8o9St2vBoPN3wGG7akyusNku/RKb Qze0RT7AgI6BhRVloDqZJfOxYk2bIEXAvIElLLiklZkjvsaqox5DQplzmGMKa9+9jimF 0eGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BrASkF+H; spf=pass (google.com: domain of linux-kernel+bounces-25912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ew8-20020a056402538800b005596fb6fc7esi111044edb.607.2024.01.15.03.06.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 03:06:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BrASkF+H; spf=pass (google.com: domain of linux-kernel+bounces-25912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E995C1F22259 for ; Mon, 15 Jan 2024 11:06:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0AE02BB04; Mon, 15 Jan 2024 11:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="BrASkF+H" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C4DE1E86A; Mon, 15 Jan 2024 11:06:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705316784; bh=9McWAV60PkhZi7zD5efm3VtPNye+yEcAzKdSklegtGg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BrASkF+HM2Gm7Wsa52sDK8N9HzfyyrdcZxgzb42a/CyxwcT2wUo9E+pQdDnc9Cn4b Rdc+Ajh+t8fQH/aPj2vvCSsFvsk+knr+fDDupQ30g+kf3iktme0u3B77VWK9FQku+A rFjz1wbp8RJHLUrljs90IBQmOQh/hMYW+FCBQbrOfD+95GLrwz6+Bd/bBR0RCaXVf7 SiOpewF/4s7ZnjYHWvkfgfCWaVbXlareuQxg1VJScbj/pKDlax2SByf4jA0AJSiu/b 5V4MLbyCwlpb92VXdI1DQLPCAqYQTS2Ujv7/a3in5QPR08c+G9ow0WUMxBwzkzJhuN Hh5Zwaj6/cgow== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (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 madrid.collaboradmins.com (Postfix) with ESMTPSA id 0FACE378134F; Mon, 15 Jan 2024 11:06:22 +0000 (UTC) Message-ID: <2b28421b-d3a9-46f5-a60e-bed84191c9f8@collabora.com> Date: Mon, 15 Jan 2024 12:06:22 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 0/8] Add MT8195 HDMI support Content-Language: en-US To: Guillaume Ranquet , Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Jitao shi Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Krzysztof Kozlowski , mac.shen@mediatek.com, stuart.lee@mediatek.com References: <20220919-v4-0-687f09a06dd9@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220919-v4-0-687f09a06dd9@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 29/05/23 16:30, Guillaume Ranquet ha scritto: > Add support for HDMI Tx on MT8195. > > This includes a split of the current "legacy" hdmi driver into a common > library of functions and two dedicated compilation units with specific > code for mt8167 and another for the "v2" mt8195 SoC. > > Support for the new mt8195 dpi/drm_drv adjustments to support hdmi. > > Based on next-20230523 > > Still in my TODO-list for v5: Hello, sorry for bumping a year old topic; are you still interested in upstreaming this? Cheers, Angelo > > - Removal of the 'is_internal_hdmi' flag in mtk_dpi. [1] > I Couldn't find a way to get rid of it with the way things are done > in mtk_drm_drv/mtk_ddp_comp. > - Do not use a "virtual" device for the ddc v2 hw as it is embedded in > the hdmi IP. [2] > Seems that a lot of work is done by the framework when using a > proper device-tree entry that can be linked as the ddc-i2c-bus of > the hdmi-connector. > I will keep the virtual device unless I find a way to avoid > rewriting the framework code that handles this. > > [1] : https://lore.kernel.org/all/988b0a7a-69bb-34e4-e777-1d9516221077@collabora.com/ > [2] : https://lore.kernel.org/all/7da1e73a0cca6867a060d5b69d45e8d4dfc89748.camel@mediatek.com/ > > Signed-off-by: Guillaume Ranquet > --- > > Changes in v4: > - Split phy related patches to another series (merged) > - Removed regmap wrappers in mtk_hdmi > - Removed colorimetry related changes as this initial version only > support one color depth > - Fixed dt-bindings properties > - Removed some now useless clocks from mtk_hdmi_v2 and mtk_dpi > - Link to v3: https://lore.kernel.org/r/20220919-v3-0-a803f2660127@baylibre.com > > Changes in v3: > - phy: Grouped register and bit definition together to add clarity > - dt-bindings: Addressed comments > - Link to v2: https://lore.kernel.org/r/20220919-v2-0-8419dcf4f09d@baylibre.com > > Changes in v2: > - Removed syscon requirement from the hdmi node > - Use as much as possible bit FIELD_PREP/FIELD_GET macros across all the > patches > - Make cec optional dynamically instead of hardcoded with a flag > - Renamed hdmi variants to v1 (legacy) and v2 (mt8195) while waiting for > a better name > - Rework hdmi v2 code to use a connector (same as v1) > - Remove "magic" 0x43 addr special handling in hdmi ddc code > - Link to v1: https://lore.kernel.org/r/20220919-v1-0-4844816c9808@baylibre.com > > --- > Guillaume Ranquet (8): > dt-bindings: display: mediatek: add MT8195 hdmi bindings > drm/mediatek: hdmi: use a regmap instead of iomem > drm/mediatek: extract common functions from the mtk hdmi driver > drm/mediatek: hdmi: make the cec dev optional > drm/mediatek: hdmi: add v2 support > drm/mediatek: hdmi: v2: add audio support > dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8195 > drm/mediatek: dpi: Add mt8195 hdmi to DPI driver > > .../bindings/display/mediatek/mediatek,dpi.yaml | 1 + > .../bindings/display/mediatek/mediatek,hdmi.yaml | 59 +- > .../display/mediatek/mediatek,mt8195-hdmi-ddc.yaml | 45 + > drivers/gpu/drm/mediatek/Kconfig | 2 + > drivers/gpu/drm/mediatek/Makefile | 5 +- > drivers/gpu/drm/mediatek/mtk_dpi.c | 121 +- > drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 5 + > drivers/gpu/drm/mediatek/mtk_hdmi.c | 773 ++---------- > drivers/gpu/drm/mediatek/mtk_hdmi.h | 18 + > drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 437 +++++++ > drivers/gpu/drm/mediatek/mtk_hdmi_common.h | 208 ++++ > drivers/gpu/drm/mediatek/mtk_hdmi_ddc_v2.c | 362 ++++++ > drivers/gpu/drm/mediatek/mtk_hdmi_regs_v2.h | 276 +++++ > drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 1303 ++++++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_hdmi_v2.h | 32 + > 15 files changed, 2955 insertions(+), 692 deletions(-) > --- > base-commit: c8a64c6a78c54887da437098d97dc2accc689e89 > change-id: 20220919-hdmi_mtk > > Best regards,