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: 13007172 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 C0272C4332F for ; Fri, 14 Oct 2022 16:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=tVeGkGwr3GPdeR7i1EiSinttHW7VHiK035a7xfUpheg=; b=YZS+JoZhBJQOFFxqDpzGAkrsN7 pTyZ9cHus/d9pLnYTb/xDWqEGQH7bXwdW/yBY8XZM/6lyCSli/ygutchaY3XUo4v8bvCX0PWlHT2F NSQubQKpc7I8YRrflCXUXZngI3h03XCeZPeYpwRC6gcuDxL0BWa6msEc+2R5SpwWWQ+V38H20vOjT vkY7wAJbyRHu+tdgqU+Q2nMGs8Wji0pZ3XXhXI8G8pY6bvGKWLnKzKNcrDaGqJILHoF6jAdu7VPUZ 98FMySCuR9HnclTP+HiO0Bio1ZcU02AWJ5BmMcLK9g5VEeGE5lVhX3UqbqlFV2axW0J7PAqZnUsSn D9LT6a4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojN9i-00FGPd-25; Fri, 14 Oct 2022 16:03:26 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojN9g-00FGKd-Bb for linux-mediatek@bombadil.infradead.org; Fri, 14 Oct 2022 16:03:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=NrLfzvO7yWO5Zxgp497UtVCC7S UieTJ1Y7AJ77b8kmAKoQsmT8izFHqu+EBl99MPqyKoxHmoTP+F15kQDUj6loxW6z+UoVH/OFnBQj6 Zso2kFG6eNwr9MK059DeNXi+jGD29GSGomcZ63d+6EPvLToPnn0lhRZQnwjPlpYSrryXq4hbdU3KF WkKm01ZrNWVf7Isg0D5Sy/2UqexKnG3DhBYGM0gpnnP7uG2quJvT1freKp+x+jqtNOodvuYtinnZF /LFeQt0wWVhp3iibveyfZskSoUjcg1MrSLZbwvt2JfA7ez9qhDhdJwXTpfTrsFxCc2NNtFCDdjn4D 3kg9EkaQ==; Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojMU5-003RLQ-Gu for linux-mediatek@lists.infradead.org; Fri, 14 Oct 2022 15:20:28 +0000 Received: by mail-wm1-x329.google.com with SMTP id 6-20020a1c0206000000b003c6c154d528so622267wmc.4 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=1PhDJ3xQqLMm9MkP+VHbd7zeI5LdsGcdvdU2153IQptlk6uZkdd1YMerdI78t7G3E+ TA4/bs9N5pYgbJi2+rr8gjy92yWhFgQb0ZPaYmXHOIgm1lzPS0hsIDWdKlTn7s3zJJtl NkWS3Z1Pdn8r4cbewKuL5K0i+mAE1cLO5nD5DGJYosQT89kWXzIvzbMqwZHN1oPPpeVw PNUWpVW9uitxyKjZ52fZbueXKn5wZ0lbVgI0Vyk3JWvJ1wjmRRLC93Zv/6I8dIE1gYdL 79JdbiDnDQcVXDOC3Btmx05YhhXmdsQxJuHUt5LqvWz7ZzCuBqp1mUwA4gHxafQOp4pR /fxQ== X-Gm-Message-State: ACrzQf0mP0OanYl1ysSBeVqDTb4fdXd/VKsXagsCsO8roo9P4dVhUJyH McunaDviEQWlEVVgR+qy+TBaZg== 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_162026_606294_D186ECB4 X-CRM114-Status: GOOD ( 20.05 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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