Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp794855rwi; Fri, 14 Oct 2022 08:39:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YmegDyBoOyuOqic05J2FKJWdl2NYhPlXZ9RfxyL0JeptQg1TxZowW0SNl7MtFEBYnO5GW X-Received: by 2002:a05:6402:320e:b0:45c:ae50:dbca with SMTP id g14-20020a056402320e00b0045cae50dbcamr4805863eda.104.1665761991700; Fri, 14 Oct 2022 08:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665761991; cv=none; d=google.com; s=arc-20160816; b=lTe699NBSN+99w2w8PlZT681FWc7e+OBIdE4pMJEFPA2D+t38pihEjQ4i5MJ+bu9YC O9DZ1Xm8yqI674AI7nzK6aiHSYmnGGMk7GZaWllrG/TIJwaD3hGWkyrYcDnRGnYvky7j fW38Gs+uYgsmYO7M+rdyAIzdctJoyLaPSud2eQH8lkfMrNl6DAzGKk5dZSDiChxJpIbi 0sQsEoOAd26MjQjvg/2+2QPfYzMVSYzsMn8XXPMK3bZPERfbmG3SKJ3Ry+mmHhzJDZFz buuJoxrEp7qfL/hQOOuA+IGgxwqtvAXEM4ONTaF9lW7XS+G4RfvZ/ao8MH3uR2B+I5pI J0HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=tVeGkGwr3GPdeR7i1EiSinttHW7VHiK035a7xfUpheg=; b=g5QQn6FmZZGnR7PNopvDFky9+EkkjPqskgVuEE+9dY5KISGqXB7HEA8hRUR4kUm4IG wj8hUyGH+4uAhHiEYu6LBLA3DBG6cIMkFPnh26wVXyoGRNVemKpw0nhXsTUSAruDPT4W 8je4rvWZnaTKzFExVSByzVmvgd5R/N1ZtmEkYEpDAHlnfGC9Qk+WGEoR779qg9R1bYVL CUI7bex2T/GZoOeWoCexkJU8PD40+MRgQ8+xZ9Zgk0iPL3IasCr6pA5DE60DFIfUrXeU ybasJ4BMgjouuGSZ45KVuA2j4Xl7wwm348+xZuxSMwcAT4SmfDrW8lLCgZP5PN9GHJHi vYkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=InRjgTzM; 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 l8-20020a170906644800b0078315844537si2444604ejn.378.2022.10.14.08.39.25; Fri, 14 Oct 2022 08:39:51 -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=InRjgTzM; 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 S230423AbiJNPVd (ORCPT + 99 others); Fri, 14 Oct 2022 11:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbiJNPU2 (ORCPT ); Fri, 14 Oct 2022 11:20:28 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B110CE8C57 for ; Fri, 14 Oct 2022 08:20:25 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id e18so3282274wmq.3 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=dRnd7Qk7T1L/i4A7WZ+g62L3YtPulogmwMo5tvaQsdEG6OEqvfTPu50QP9Ts1/3UQU IA0qI9IokWr/MgitBHWsZejR7onu00WTr6VoJ4qApl/KN7tccY7rBTJsL0qYDFmxYXWr 8oPSITGQalY8lHGOSnUm3WHqnpXgZeojz1TjWRYlcJL1VanrWzexN6d0OGtohUKCgis2 368aog0QZ5occB1oatXamnPFBRkvFoAK8KI7bopLIp2OSaRwwFzj0NTlYJRBAQgpgFo6 nyqM/DwyVwpRjmukKW6pgoJppdOjJgL6ASVCwgcH2bAgMmAIUoVaJrT3+lZd43eDVvs0 nxvQ== X-Gm-Message-State: ACrzQf2DlS6X9C103KlC8Xv5CsZG2o6lbPX40YXblQ2ZbP5Se8Fv6hfj qbSY1H1Pen047UqoSAKHKC3z4w== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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-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=ham 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 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