From patchwork Wed Sep 29 09:44:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Ranquet X-Patchwork-Id: 12525151 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C858BC433F5 for ; Wed, 29 Sep 2021 09:49:14 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9B3AD613CD for ; Wed, 29 Sep 2021 09:49:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9B3AD613CD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From: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=3WkaoRfrnZqhjw8HPqXtFJMk/ygICRH3yfypphy9XKI=; b=VLVsK/5W1wTinp 1hg6hy652726rUdbTrMiFMCK2nDzQG6WLirbs/bb8B75LAEtlk2JrHsxjAHSl/BWnIHkiJGMmhUuL kq64ecuA+vBMKVnqYvNfNqK5BN6Nc6qAvSqLz+GR1+LDy0Y/f6hItgwcBEi1gXM3NaCYMb9vCRMUo 8bLOrSsUYzXtErfi/SgYqdzlYfllmE0KnaNrB+WuammtQVufKB9hdSxqcB4LE9cubdL9rrddpkPYS /403UcVoCHt28+FtI8UqLaoI9sPiRU7lpfKN8AEuY8guljHzuwKPHKO+DJyFy7zwdbIu6kGUOiurZ 8LseuchoVlMdRvXE8pZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVWB0-00AbTd-Qz; Wed, 29 Sep 2021 09:46:59 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVWAv-00AbRN-E3 for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 09:46:55 +0000 Received: by mail-wm1-x333.google.com with SMTP id b192-20020a1c1bc9000000b0030cfaf18864so1249103wmb.4 for ; Wed, 29 Sep 2021 02:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=f5haxGK3EJ+q+eJBrfkQ+eXhJQ2te14AsLAThAn2/8Q=; b=GziBT42uEBOyxTzL3MaLFLjTSpM5GZ9m2UQOkiE75vbYPWzTSFqMlUjv4x4D5HYAoN QwBr+zUU1XejkIQKWoZnvkT4pFWTECoV3XgIrcEemykomZkZ7xt/WMmqln8eiVubswQq KuG5fmoFhWnutqjVSFovI49AuaLYJ09W76/V3CS0ln9hZ6xgxdZ9xZWYn2iGUpuIjdEZ Bad0A6WN0XbKHA9Kp44/IZhZ/oYdoUq/YNzJYPft46zClckn0whCBWJNnxX8Ly43+EHn 29Kzoakw/o95HU2e5T97r24sDCO9cz3B/c6nSprzQ1AmNSQzgXm57ecT+4Q+RnZFrgkd timQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=f5haxGK3EJ+q+eJBrfkQ+eXhJQ2te14AsLAThAn2/8Q=; b=2xWBYkPLlNvNznrboM2a4/1/TuPyFOH0Y8z3royGO+FGaa/yXVy5vV3bmO1UJ+R+5G 3y/CoF/vORZkucsQR3p8wUsxtienKvgyIoHJ0SJmCjsUweXMbnHSLdvGJ40xbKLu7UyB CsNIzDlFSfmdh5Ca3yiZ6f52cql/W8EGZZDB4WF6qdDt2IsbylACFBCNvT6JmFuKyZc4 blTcoxDh8t6PfaPMNZc9gmeEGjy2t1gAlbZs3fvGVjisEOCXkp6qCwPdkPFBfRTiEXXg V5reStstG4f+ASn7ppxVhxujLMcaLbNIxCYuJTBbsSQSslwvxlYCJDLkNLo/y3LML8ba 8A4A== X-Gm-Message-State: AOAM532fJ3OM+bU+0vCa//HwCzGW9TfW7eFb472s851qJui55bmZPXES u0jIEsCojfSMaqr+RYILhmwsfA== X-Google-Smtp-Source: ABdhPJyC3NRopicws5HthIY5FLBG0zqnaCsUFBkWGXqq1xclPoxEY/0J3XYfc2dYChiazXINnZJ7WQ== X-Received: by 2002:a1c:4c0d:: with SMTP id z13mr9140521wmf.58.1632908811439; Wed, 29 Sep 2021 02:46:51 -0700 (PDT) Received: from localhost.localdomain (2a02-8440-6240-2cf3-3074-96af-9642-0002.rev.sfr.net. [2a02:8440:6240:2cf3:3074:96af:9642:2]) by smtp.gmail.com with ESMTPSA id h7sm1751938wrx.14.2021.09.29.02.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 02:46:50 -0700 (PDT) From: Guillaume Ranquet To: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v1 0/4] Mediatek MT8195 HDMI Tx support Date: Wed, 29 Sep 2021 11:44:21 +0200 Message-Id: <20210929094425.745-1-granquet@baylibre.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_024653_568074_4E98EE03 X-CRM114-Status: GOOD ( 13.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi everyone. This is an attempt at porting the HDMI Tx feature from the mediatek vendor tree found here: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2912413 Note: This patch series is currently tested on v5.10 and I am currently working on testing it on v5.15. This series depends functionally on: https://lore.kernel.org/linux-mediatek/20210825144833.7757-1-jason-jh.lin@mediatek.com/ https://lore.kernel.org/linux-mediatek/20210825100531.5653-1-nancy.lin@mediatek.com/ Guillaume Ranquet (4): dt-bindings: phy: Add binding for Mediatek MT8195 HDMI PHY dt-bindings: display: mediatek: add MT8195 hdmi bindings phy: mediatek: add support for phy-mtk-hdmi-mt8195 drm/mediatek: add mt8195 hdmi TX support .../mediatek/mediatek,mt8195-hdmi-ddc.yaml | 45 + .../mediatek/mediatek,mt8195-hdmi.yaml | 98 + .../phy/mediatek,mtk8195-hdmi-phy.yaml | 70 + drivers/gpu/drm/mediatek/Kconfig | 10 + drivers/gpu/drm/mediatek/Makefile | 4 +- drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.c | 2293 +++++++++++++++++ drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.h | 128 + .../gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.c | 530 ++++ .../gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.h | 20 + .../gpu/drm/mediatek/mtk_mt8195_hdmi_regs.h | 329 +++ drivers/phy/mediatek/Makefile | 1 + drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 793 ++++++ drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h | 204 ++ 13 files changed, 4524 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mt8195-hdmi-ddc.yaml create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mt8195-hdmi.yaml create mode 100644 Documentation/devicetree/bindings/phy/mediatek,mtk8195-hdmi-phy.yaml create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.h create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.h create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_regs.h create mode 100644 drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c create mode 100644 drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h