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: 2737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp239956wrs; Fri, 14 Oct 2022 08:24:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5dUPW1HWz7JJ+i1ZtQZf6D12CV7oqyBJr1LuM7L9v4gtjb0s/CvmubV4/7Ko7pMn3BPhRS X-Received: by 2002:a63:5243:0:b0:43c:96a:8528 with SMTP id s3-20020a635243000000b0043c096a8528mr4975850pgl.47.1665761054264; Fri, 14 Oct 2022 08:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665761054; cv=none; d=google.com; s=arc-20160816; b=lvDo/B6PJFJcBFfmYEuZvHqiX6tJksoWdCMGYt8YxLhzvjGYsdZN3uKwkSyjMTKFC0 u3iczPtBKkw8iSHL5h4QRX/S4jfsDvYUbZNfjt/57oZyu/fpXoiuX238Dgxov1RVhuNf 5y7hobVQbLji7fKtoNFIA+IRhU4vSU9SrwL3iqcJIYoPa9EgrMp0aRFkuYOXa+rRQG9O YnpKkXHjwfX6wa1zTLcF8QfGaEqWszSTAChjXnL7t/xxZW399888EXSO/SGwOooAXhQo z6kmhx5crShmddiALQM9brJYYEUzd66cTU4NowE1mYy2Hije+Sc02iPykztVKKmAaYHE 9SRw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a056a000c8d00b00546ce9189b1si3555113pfv.65.2022.10.14.08.24.00; Fri, 14 Oct 2022 08:24:14 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746677063453803297?= X-GMAIL-MSGID: =?utf-8?q?1746677063453803297?= 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