Message ID | 20220919-v2-0-8419dcf4f09d@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp238443wrs; Fri, 14 Oct 2022 08:21:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ivKR2ZJMIaVjcCJy9eEpRMFnZ0b83csdiN/ZKVaR5mQ6Fro4FzRtlzWUOdW2gGnDSX8k5 X-Received: by 2002:a05:6402:1604:b0:458:b2b7:bd5a with SMTP id f4-20020a056402160400b00458b2b7bd5amr4501039edv.73.1665760878271; Fri, 14 Oct 2022 08:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665760878; cv=none; d=google.com; s=arc-20160816; b=taGugjiMNAsAeSKA03XMlWrLX57rgKYuTzQNx9fGkPJPpi+epQB8EBboBsQXTmp84v 51mcL43Z1DQsSuAZHHCyJeWfD6I63Dwdng0//pUoKoa5IR8sGKhIS/fisFjzhPc2odcz pGFx/bcnue2aD+e+hwMzkXLDzbs+6aM4z6f+lfcjiXt03TIPnltD+s/KdaxVwp1m6I7X vir8jd2KbVj30OOHt8SDKEqj/c+fE4Gdxhw1Znrkva7u+M1csmQrGFNmmu7rHFlZln46 GKoeF8c83v1mWawzLX4YS6Kt4MZBlXTn7fSjQE5kuTcaxroeLcEdGXTvAsY4QWlH0gNG 9xgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=XC5LEu3vClkmtksdzdUgpje8SO37USDa4/NkLEkuaxk=; b=OFT+7L4sGrEa+ji0tHS7ohwXK8hkCCIyi+Q66jAWtbS8Zmak/wIcTMksL0HeNBwMkp kXcyovx2JCTEsnadmrsHeqvnIA+v21+sZb1Y+wNG8Toc+5B6xJSIUcWaLUXs89Ct2rTp bq+dVXqTFxJvWA/OEzCIjYbeSF3nIjHHfqRzqP55SFgu9aFhD6RLi99NwJOZnVRsB6VU queqVH7YXYwr+DP2bumwizLP95tn/2mBP4lQM1+kr4UgR337q9nZNj4tu7bFWMGPm93A N7KEbgglGBEv8rcWi5QjNzBZiL4ig/2CfpE7QTu+ECinRou7+cRpYpoeVqUk5cuOBVqP fusA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=ThIpzCsP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a170906280800b00782e437a368si2114739ejc.160.2022.10.14.08.20.51; Fri, 14 Oct 2022 08:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=ThIpzCsP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbiJNPUY (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 11:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbiJNPUM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 11:20:12 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B162B60C94 for <linux-kernel@vger.kernel.org>; Fri, 14 Oct 2022 08:20:03 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id l16-20020a05600c4f1000b003c6c0d2a445so3753400wmq.4 for <linux-kernel@vger.kernel.org>; Fri, 14 Oct 2022 08:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=XC5LEu3vClkmtksdzdUgpje8SO37USDa4/NkLEkuaxk=; b=ThIpzCsPF1rVHTCbtQrYisKePnMrSzk+2OLerVouDguzlws+D4XMeeA4rZGTV3rOre XEKXdHplc3i7l2jHu/vicLuSzRHcYqKKlQqEQ19bBpOKATPsXbTLdsYjdoVRlK0rXfc+ oA4iDiMUAXBGa9RY/GTLmphYivCkq8p7tLEKKbzynqie0dj1u5zkarzqdkXseGoU35PG e6h0o8PsGG53Fpl+7QXyB1ZWH1HQgbcG/32hRln18cPZJKygABPeB+hPuyLjlSUck8uX v+Fmcf6vuia//lQOL+X1G0o9W1eafCc/rGIZ4RyGEk2wLFQqZ3m0R1yRCxJX6gVw2x9+ ptlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XC5LEu3vClkmtksdzdUgpje8SO37USDa4/NkLEkuaxk=; b=KrlMptf/7fzRpJZ+4yf3Ed7IedFLU3czxa1LJbq9vlM1abuQHM4Ejgg9NHOu5RHy6l czqG25oGrROeXn+I6IY6QaC1BjfO0o9qf26SqVns/4852jjRxL8G1+XplEzRNHyhsPNR 9R6kl5cBo/QNGYtRO8oV4e0XdkYmg8LJPINO8HKJPRsUe2eDTKOQFSrtQeW/73HhyD8/ rClw7K0j4rOVml3Zl3uP8zNBHt69WhBSz1CEN//71LiNiF50tUbffV385QELvf4Txfq4 OaNX8M64camBAhEH4YGhg/jNdiF/fmImfdSont/YNIjXvRe47FgID93tDlE3wOny/dnO 1E+w== X-Gm-Message-State: ACrzQf1OBUHSetHQxW/LhoBIbM6OBJXE7pJKjErCKUDU9kcltGvX+W+R NGWSArh8tOgbhQ6fCdzZCehYRw== X-Received: by 2002:a05:600c:4f52:b0:3c6:cd82:5943 with SMTP id m18-20020a05600c4f5200b003c6cd825943mr10786580wmq.185.1665760801147; Fri, 14 Oct 2022 08:20:01 -0700 (PDT) Received: from [127.0.0.1] (2a02-8440-6241-7429-3074-96af-9642-0004.rev.sfr.net. [2a02:8440:6241:7429:3074:96af:9642:4]) by smtp.gmail.com with ESMTPSA id z11-20020a05600c0a0b00b003c6bd91caa5sm2818223wmp.17.2022.10.14.08.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 08:20:00 -0700 (PDT) Subject: [PATCH v2 00/12] Add MT8195 HDMI support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIACl9SWMC/0WMzQoCIRSFX2W46wwVCW3Ve0SEOpKX/AGdhGHw3bu0aXX4Dt85B/TQMHS4Lge0ML BjLQTytICPtrwCw5UYJJeSG2FYXDM+8/YGMpztgblmi4/klE9KVEbsW23773EIivt/PATjTGmltLh4 o7m+ObsndC2cfc3wmHN+AdU1/fiSAAAA From: Guillaume Ranquet <granquet@baylibre.com> Date: Fri, 14 Oct 2022 17:15:53 +0200 Message-Id: <20220919-v2-0-8419dcf4f09d@baylibre.com> To: Chunfeng Yun <chunfeng.yun@mediatek.com>, David Airlie <airlied@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Jitao shi <jitao.shi@mediatek.com>, CK Hu <ck.hu@mediatek.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@ti.com>, Matthias Brugger <matthias.bgg@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Chun-Kuang Hu <chunkuang.hu@kernel.org> Cc: Guillaume Ranquet <granquet@baylibre.com>, stuart.lee@mediatek.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, linux-kernel@vger.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, mac.shen@mediatek.com, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org X-Mailer: b4 0.11.0-dev X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746676878606011642?= X-GMAIL-MSGID: =?utf-8?q?1746676878606011642?= |
Series |
Add MT8195 HDMI support
|
|
Message
Guillaume Ranquet
Oct. 14, 2022, 3:15 p.m. UTC
Add support for HDMI Tx on MT8195.
This includes a split of the current "legacy" hdmi driver into a common
library of functions and a two dedicated compilation units with specific
code for mt8167 and another for the "new" mt8195 SoC.
Support for the new mt8195 hdmi phy and the dpi/drm_drv adjustements to
support hdmi.
Based on next-20221014
test branch with dts and various "in flight" patches available here:
https://gitlab.com/granquet/linux/-/tree/granquet/linux-next_HDMI
I haven't updated the vdosys/mmsys/ethdr and mutex patches in a while
in that test branch, they might be outdated..
To: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Kishon Vijay Abraham I <kishon@ti.com>
To: Vinod Koul <vkoul@kernel.org>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Matthias Brugger <matthias.bgg@gmail.com>
To: Chun-Kuang Hu <chunkuang.hu@kernel.org>
To: Philipp Zabel <p.zabel@pengutronix.de>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
To: CK Hu <ck.hu@mediatek.com>
To: Jitao shi <jitao.shi@mediatek.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-phy@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: mac.shen@mediatek.com
CC: stuart.lee@mediatek.com
Signed-off-by: Guillaume Ranquet <granquet@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 (12):
dt-bindings: phy: mediatek: hdmi-phy: Add mt8195 compatible
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 frame_colorimetry flag
drm/mediatek: hdmi: add v2 support
drm/mediatek: hdmi: v2: add audio support
phy: phy-mtk-hdmi: Add generic phy configure callback
phy: mediatek: add support for phy-mtk-hdmi-mt8195
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 | 67 +-
.../display/mediatek/mediatek,mt8195-hdmi-ddc.yaml | 51 +
.../devicetree/bindings/phy/mediatek,hdmi-phy.yaml | 1 +
drivers/gpu/drm/mediatek/Makefile | 5 +-
drivers/gpu/drm/mediatek/mtk_dpi.c | 143 +-
drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 5 +
drivers/gpu/drm/mediatek/mtk_hdmi.c | 655 +-------
drivers/gpu/drm/mediatek/mtk_hdmi.h | 16 +
drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 477 ++++++
drivers/gpu/drm/mediatek/mtk_hdmi_common.h | 224 +++
drivers/gpu/drm/mediatek/mtk_hdmi_ddc_v2.c | 367 +++++
drivers/gpu/drm/mediatek/mtk_hdmi_regs_v2.h | 309 ++++
drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 1592 ++++++++++++++++++++
drivers/gpu/drm/mediatek/mtk_hdmi_v2.h | 31 +
drivers/phy/mediatek/Makefile | 1 +
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 546 +++++++
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h | 131 ++
drivers/phy/mediatek/phy-mtk-hdmi.c | 15 +
drivers/phy/mediatek/phy-mtk-hdmi.h | 2 +
20 files changed, 4004 insertions(+), 635 deletions(-)
---
base-commit: 98035e7c0bb29bf68a2f4b650656f3a3dd07a494
change-id: 20220919-hdmi_mtk
Best regards,