Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2824256rwb; Mon, 19 Sep 2022 10:28:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Qk/mnemNoLabNFQxi1BzV7FEwtx5eJqearGdoFWnXJSdrxVAkL/bmIMyAeux4vZU90CO0 X-Received: by 2002:a17:90b:3b90:b0:202:80ac:467c with SMTP id pc16-20020a17090b3b9000b0020280ac467cmr30798547pjb.17.1663608492979; Mon, 19 Sep 2022 10:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663608492; cv=none; d=google.com; s=arc-20160816; b=CYaYAgXB3H+Jn8mT7I+ZtKoLHi4c8xzQ3HauWcmvDev+8bQq8wILyuZZxaMQxEt44t GFYy/FS+Abe7qB8y85nDgwYSPAaeibzqEtkeuOhtrGOwDi7nsyp7jnsP2YP6TbVbLVsl JgAlscVUODQ3pECEXq5av4YXAA78sC3+GqJjvXQaC2XvR9RyQ6414VkwSBAGzPlcnvKY KQe47yawsFcFK00Rox6NgICNDQzyoUGCfXAMLAB6WFLSITMXx6+IYkDI4cQQ3L8dI8vs kKvcLT6og46WREOw6vhGgM4QzHPLtjmITfmJAdx/bDyopdtKmmfQaxzQbKKYjKQQSdgZ 76Dw== 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=9tro2oCAbN+mbj/HKR3A46hDRnbE6tXzNt27JGPID68=; b=BW4H4a8nyXBqVgYu7M/0/BFzaBxtqRstryF6Fbu70WjBZpJY1lsaVR7/bMe67quwWN WMdL2S7I0EW8zcwvXFeAoj/rjExNx9Ra3eJqNaFxQuoYVqQ8x6UY0ePMWrZshjdcAdrT 0M29z240om4pddBLbSYclNk6U/XymIn72Pri8Dv+11w9lHq2Dsy3RuYBAJ39WJn0oI/J NoSZSnhwqUW5X/dQ7cgusGP04M+brvlMRKflwdr090rv8YWxjqLnG0h3NUAngaJVk3nO nuJSbakBEVR86xsrVQB4LSC16zGlK0aV6zpyhiErE3WAc0jprMW57Kxcs92vAJOk0kDX gz6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=3+jXsVMU; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a63b251000000b0043941e659bfsi174419pgo.865.2022.09.19.10.28.01; Mon, 19 Sep 2022 10:28:12 -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=3+jXsVMU; 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 S230155AbiISQ7s (ORCPT + 99 others); Mon, 19 Sep 2022 12:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbiISQ7q (ORCPT ); Mon, 19 Sep 2022 12:59:46 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 088A711459 for ; Mon, 19 Sep 2022 09:59:44 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id b35so221538edf.0 for ; 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=S6nWcKjwIJ23ifIlkJy40NteCP6xqzC2Paube6xVkqG4ESCAYiZYmxnP41R6g26H99 A+9YlTdWT9JzRnkVidJ1xV810PlJs2j8ixj8/L8qmMwzHFXQWUCbH1+w/xz9BHYW/9Xv RTkB/lz81hJQUC20fQzOJoSIPrtPDoLuUewfdhHW/CF2FubtsrdVgBIlwfIgPWpVr3Xo 5dagzk73RQYi+Npun/hrNNc66p1vnelF0c83+TNiGulLg0N4Gi6nGleROKDh09CGm8uL IFVSR5xIjMkuWdwhSVDMq5PUajTOR/A0R7zeqOIrjt/yJXPTqi4RV2hEMj7Xar10sN1t WIhg== X-Gm-Message-State: ACrzQf0O46LiEvWKPsQvezpvadvah2ttAgMuoZ53YpfondDg0rzGJb4A oaHhcV+YV4PrnCHqDVS9eWMIwg== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIAB6fKGMC/w3KSwqAIBAA0KvIrBPUnV0m/Aw5pAZOtRHv3iwfvAmMg5BhVxMGfsR0d4HdFKQS+o mashiccc5463XJjY72XCAjBkYdR+ipyOlvrWv9dLIU6FIAAAA= From: Guillaume Ranquet Date: Mon, 19 Sep 2022 18:55:58 +0200 Message-Id: <20220919-v1-0-4844816c9808@baylibre.com> To: Vinod Koul , Stephen Boyd , David Airlie , Rob Herring , Philipp Zabel , Krzysztof Kozlowski , Daniel Vetter , Chunfeng Yun , CK Hu , Jitao shi , Chun-Kuang Hu , Michael Turquette , Kishon Vijay Abraham I , Matthias Brugger Cc: linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, Pablo Sun , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mattijs Korpershoek , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, Guillaume Ranquet , devicetree@vger.kernel.org X-Mailer: b4 0.10.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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- Guillaume Ranquet