From patchwork Fri Oct 14 15:16:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Ranquet X-Patchwork-Id: 13007156 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 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 0555BC433FE for ; Fri, 14 Oct 2022 15:45:18 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7lF3RMeA8pI9AeKxhOL2nqPYsNHbEjU8kNbvza0witU=; b=tbaxMj872lEXhN zM1ROIqJgIXyBWw0nqzmf5W+FRZ/WXgvh4L9YQELgBjaIR1+5E0LEDlT0mrMLTJTbHmPy2Aq+Afyt /2AUPEPnS1tweqAy/6y9O3/cvlS++YCpWLBMDza3GcPtcRpjf+Zo2nFTCoJn3+nRDoRh4CofWz2aB kVww7I9eel6KFa4MUHMse8t62z+DJx3RG6QiQVyPN1xyQmzc4dCdG5t1B/A/ewIeN21/oxnBHsYFj fc6mjEo7+7rc/adDdR9Wn9wnVzPET79ngem9e56H+O9XPAljeEADdrATkDGkSbyp7b9yyg+VdfMH3 WY6RZEggNhljmzohQwPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojMs9-00FDaD-F9; Fri, 14 Oct 2022 15:45:17 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojMs8-00FDZV-DA for linux-phy@bombadil.infradead.org; Fri, 14 Oct 2022 15:45:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Cc:To:In-Reply-To:References:Message-Id :Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender :Reply-To:Content-ID:Content-Description; bh=tVeGkGwr3GPdeR7i1EiSinttHW7VHiK035a7xfUpheg=; b=JnJtnCz0POAXZbRGz2T+C0YjmJ ufoudh+uyOCAlvkux0R8QLy5TPywerW3E+V/bDsjl5F2/MQLtrFqOAmQH5988Q+Mh9D6rOQVf8S32 G0cAsg2Zwa+EwME30GJf++Y4LLpL24kYE93tzZpyMsp/kZrCAoffD5idVVxs+xQlcO7QqLuLyA1X8 qVQ6832/VpZdW+Qh+jtsOuHWIRRIaXYpLPDvKpcYW6vD3OYUDuczfYZHsa3vrOKl5LmP+c1awl8MS 4omiXIZeUKHZJol08re51XaafQ07Gc/std6GIx7HfZDnKfHq4RGZ1w1kZM5LLbEPfL5Zi/fT1IGuG 04LIbbng==; Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojMUA-007iWK-Ua for linux-phy@lists.infradead.org; Fri, 14 Oct 2022 15:20:35 +0000 Received: by mail-wm1-x32b.google.com with SMTP id n16-20020a05600c4f9000b003c17bf8ddecso5540375wmq.0 for ; Fri, 14 Oct 2022 08:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tVeGkGwr3GPdeR7i1EiSinttHW7VHiK035a7xfUpheg=; b=InRjgTzMx8XbJ1KgDcGDMbzPZR1VxxoUtvri/RCqT8YLh7f/82+k/7VKqOBPHZA6KE DjmoxFOo7cBXuluOxICdbZ6Nd777/hg9Rbgzx59EX75Ekfvw385ym4CpGVEIBf2rI0F4 2T57uC07p/giZ+1uIsZl1203TlTFHLp8RtmiKxiHcc+fnDKQvt7UKqiMUE4qyggyxSKP vjEcNJIOc+/1xrMJWbJmxzGjyqVshyoULY+TuQ3xUS7OlI77FshBULxX/Z1L2Ifgknua dtgtlXOtz+N8x9h9dBBY69SbeDIvb4jmXgFelp4ELOHm7B/0521zrF63l0q7oXpU2AeV 3fhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tVeGkGwr3GPdeR7i1EiSinttHW7VHiK035a7xfUpheg=; b=Tq7OmBguw1AOY5f9Y1eW405Dt52xwiBxtZ07WdFVBsz7Goaz5kPwDLrmB2SFko9Lw2 s4o9GDE6zhX7exKtgzIQwCZfDPiPeIGeL/EwnNNArkSefZgjelPddNzbrHbU7sXWyoBG z0YNPnLu6mOCt5/7OuOkxJID2BBJ/CRajWYPKhQa3fr1dd54AvxthTO4TXIEy+P7z2gM CsmyArv0LuDaVg4bzT4iwoIvY/7Q7NBzE83CEyI9zV3eKNXjLCW7BHqtRZucwlYm5HxJ ye7KyxRj6RDBl9AXsFim3nSfYZA5ajyG75CbX6eb5d+Y7ySOhNnsIBZfftlxRau7EFwO WoNA== X-Gm-Message-State: ACrzQf2DQcK4RZtceF172S/ylX93FkoVsxJySB8BiPh7e4JX2+6rtfIV m2YfU/ZxrsKom38aO9eU8hUkMQ== X-Google-Smtp-Source: AMsMyM7GI20M1DkrCHHPZWF7On1eDILIzgkIsk3u76ZoQXKutoYqkqtDCydpDuEe5T/fviFsBjXNiw== X-Received: by 2002:a05:600c:1c1f:b0:3c6:bfda:d485 with SMTP id j31-20020a05600c1c1f00b003c6bfdad485mr3852252wms.59.1665760823841; Fri, 14 Oct 2022 08:20:23 -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.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 08:20:23 -0700 (PDT) From: Guillaume Ranquet Date: Fri, 14 Oct 2022 17:16:05 +0200 Subject: [PATCH v2 12/12] drm/mediatek: dpi: Add mt8195 hdmi to DPI driver MIME-Version: 1.0 Message-Id: <20220919-v2-12-8419dcf4f09d@baylibre.com> References: <20220919-v2-0-8419dcf4f09d@baylibre.com> In-Reply-To: <20220919-v2-0-8419dcf4f09d@baylibre.com> To: Chunfeng Yun , David Airlie , Philipp Zabel , Jitao shi , CK Hu , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Kishon Vijay Abraham I , Matthias Brugger , Daniel Vetter , Chun-Kuang Hu Cc: Guillaume Ranquet , stuart.lee@mediatek.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , mac.shen@mediatek.com, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org X-Mailer: b4 0.11.0-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_162031_109597_B5DB3B06 X-CRM114-Status: GOOD ( 20.11 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add the DPI1 hdmi path support in mtk dpi driver Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/mtk_dpi.c | 143 ++++++++++++++++++++++++++++++-- drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 5 ++ 2 files changed, 141 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 508a6d994e83..8052b47042b8 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -14,7 +14,10 @@ #include #include #include +#include #include +#include +#include #include