Message ID | 20220919-v1-0-4844816c9808@baylibre.com |
---|---|
Headers | show
Return-Path: <linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 5C064ECAAD3 for <linux-phy@archiver.kernel.org>; Mon, 19 Sep 2022 17:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:Date:From:MIME-Version :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=z91gFmDEfjL2fy2gVVH5TLdKR38BEembR1OolQF3mpE=; b=nGk9n89NZ4dHOa QleF5C19w/JRZZTQhbaU4M+ySOHdaIjUSHxP3dxZqVP9cd3guj/sN1Ivj4BM4nXXLVClBspI1Dn35 FQwA6TnuGJwu3ce6zc3QPL3TMotXXKZL062Gxzcf/4zGt/hOm2oLlvrnt6DbIRxipAbL5O9iILupm L+N/EaEyls8DAwcGdjz1bKAmrS2yGc8R8DlWE7YjWNmzuxQxMBTtVbHizl0cnJk6ufZwdM2JgvCcV 2aKrw/2J1V8z0MsD5LpdCetJcJ4v7BvzD7JM6+kKBBRWq8PSGWsAJBJwLkb/v9bxamB98v0XXcnY0 1S0Dl84BhEPlcJGPbdpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaK80-00D4bG-Po; Mon, 19 Sep 2022 17:00:16 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaK7Y-00D4I8-F7 for linux-phy@lists.infradead.org; Mon, 19 Sep 2022 16:59:51 +0000 Received: by mail-ed1-x52b.google.com with SMTP id w28so121419edi.7 for <linux-phy@lists.infradead.org>; Mon, 19 Sep 2022 09:59:43 -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; bh=9tro2oCAbN+mbj/HKR3A46hDRnbE6tXzNt27JGPID68=; b=3+jXsVMUL/Ek+ltKfy4Qawu/Pw7TG6cilfl66vkc4y+DYBPaYgtZv1p4BbwPzksphk JrvJcC2YSX1q79FG93ETJekmw3tJYHSmTkJzTSb9haW1ufGrB6/zpIKUw2WjPXDUqkty mytztxw4ljT+7oFObNfw355aMnszO8HFBpZ06YiwMdxjiDP9KYGIJo+btpD+n24uVcMk 654kSXHO0di8SuPyIdU5b6g6AIBFMvuWA6WGjnZovZIIxTWOcDIRY2tP9+ZCvUX6Drj5 kun5QOWjkofHQj2/Ac6bkvQF3GxuIg8j9PewpKjOsGLg2CFIL7eItD4m+dvfX5hVs93D uP9Q== 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; bh=9tro2oCAbN+mbj/HKR3A46hDRnbE6tXzNt27JGPID68=; b=BiwbH0Qo23iJeYP3UeV8/ItT2nOGFu6nS0SCmS2o0ig8GS312yTWGS/Zi/1IQWSiAD gOIMYTqvhauy1kXpU9mc2Cn/r/M7uGnH1JqgG5bA8B1Nn5THd4XjaPcZ0gAf0g76Ww7h red5pbzmLyliGKu+/8L4GfqTtnQjj8oQMgZdJmxt6VmWCG3+gEGq/YQqkHUY4OhLalmF C4LawYXaR7QMa0wI/1XCoEzLSkq3Uu3vMNMivcWwswdOGBzBbodtVcv9odqu714uYEuN b8yIfRoD/xT1lTai1hN0t5OuYjatzdDz32MVvzxyh1oyQZsPyMVYSfWw7xkN6+kgWCXd Y97g== X-Gm-Message-State: ACrzQf1exGRpLJbdfdAb8T8RTHtspFAdZ2hL7im1MUEFOhuDcrUvwrC/ ol7bYN8Fwnutzirr28Ysn+tQaCZiARDR+A== X-Google-Smtp-Source: AMsMyM6iRL5JBprCZvHk9dT8PMtpt98i7hlA72vdPks7s4qBaJDnnZvv+4dOv8WBquTaxJ2hX5EXvQ== X-Received: by 2002:aa7:c448:0:b0:44f:c01:2fdb with SMTP id n8-20020aa7c448000000b0044f0c012fdbmr15838234edr.88.1663606782531; Mon, 19 Sep 2022 09:59:42 -0700 (PDT) Received: from [127.0.0.1] (2a02-8440-6340-f287-3074-96af-9642-0003.rev.sfr.net. [2a02:8440:6340:f287:3074:96af:9642:3]) by smtp.gmail.com with ESMTPSA id cf16-20020a0564020b9000b0044fc3c0930csm20424246edb.16.2022.09.19.09.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 09:59:42 -0700 (PDT) Subject: [PATCH v1 00/17] Add MT8195 HDMI support MIME-Version: 1.0 X-b4-tracking: H4sIAB6fKGMC/w3KSwqAIBAA0KvIrBPUnV0m/Aw5pAZOtRHv3iwfvAmMg5BhVxMGfsR0d4HdFKQS+o mashiccc5463XJjY72XCAjBkYdR+ipyOlvrWv9dLIU6FIAAAA= From: Guillaume Ranquet <granquet@baylibre.com> Date: Mon, 19 Sep 2022 18:55:58 +0200 Message-Id: <20220919-v1-0-4844816c9808@baylibre.com> To: Vinod Koul <vkoul@kernel.org>, Stephen Boyd <sboyd@kernel.org>, David Airlie <airlied@linux.ie>, Rob Herring <robh+dt@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Daniel Vetter <daniel@ffwll.ch>, Chunfeng Yun <chunfeng.yun@mediatek.com>, CK Hu <ck.hu@mediatek.com>, Jitao shi <jitao.shi@mediatek.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Kishon Vijay Abraham I <kishon@ti.com>, Matthias Brugger <matthias.bgg@gmail.com> Cc: linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, Pablo Sun <pablo.sun@mediatek.com>, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mattijs Korpershoek <mkorpershoek@baylibre.com>, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, Guillaume Ranquet <granquet@baylibre.com>, devicetree@vger.kernel.org X-Mailer: b4 0.10.0-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220919_095948_583117_1755EA35 X-CRM114-Status: GOOD ( 12.48 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list <linux-phy.lists.infradead.org> List-Unsubscribe: <https://lists.infradead.org/mailman/options/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-phy/> List-Post: <mailto:linux-phy@lists.infradead.org> List-Help: <mailto:linux-phy-request@lists.infradead.org?subject=help> List-Subscribe: <https://lists.infradead.org/mailman/listinfo/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" <linux-phy-bounces@lists.infradead.org> Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org |
Series |
Add MT8195 HDMI support
|
expand
|
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-20220919 Signed-off-by: Guillaume Ranquet <granquet@baylibre.com> --- Guillaume Ranquet (15): dt-bindings: phy: mediatek: hdmi-phy: Add mt8195 compatible dt-bindings: display: mediatek: add MT8195 hdmi bindings drm/mediatek: hdmi: use a syscon/regmap instead of iomem dt-bindings: mediatek: set the hdmi to be compatible with syscon drm/mediatek: extract common functions from the mtk hdmi driver drm/mediatek: hdmi: add cec flag drm/mediatek: hdmi: add connector flag drm/mediatek: hdmi: add frame_colorimetry flag drm/mediatek: hdmi: add mt8195 support drm/mediatek: hdmi: mt8195: 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 drm/mediatek: Add mt8195-dpi support to drm_drv Pablo Sun (2): dt-bindings: clk: mediatek: Add MT8195 DPI clocks clk: mediatek: add VDOSYS1 clock .../bindings/display/mediatek/mediatek,dpi.yaml | 1 + .../bindings/display/mediatek/mediatek,hdmi.yaml | 91 +- .../display/mediatek/mediatek,mt8195-hdmi-ddc.yaml | 45 + .../devicetree/bindings/phy/mediatek,hdmi-phy.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 +- drivers/clk/mediatek/clk-mt8195-vdo1.c | 11 + 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_drm_drv.c | 2 + drivers/gpu/drm/mediatek/mtk_hdmi.c | 647 +------- 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 | 225 +++ drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.c | 1602 ++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.h | 31 + drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.c | 539 +++++++ drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_regs.h | 329 ++++ drivers/phy/mediatek/Makefile | 1 + drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 673 ++++++++ drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h | 204 +++ drivers/phy/mediatek/phy-mtk-hdmi.c | 15 + drivers/phy/mediatek/phy-mtk-hdmi.h | 2 + include/dt-bindings/clock/mt8195-clk.h | 4 +- 24 files changed, 4429 insertions(+), 642 deletions(-) --- base-commit: ec65813678c97a05766d29f1ec40bdf1b30bc3d6 change-id: 20220919-hdmi_mtk Best regards,