From patchwork Mon May 29 14:31:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Ranquet X-Patchwork-Id: 100313 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1566723vqr; Mon, 29 May 2023 07:46:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xektmN8YAvM4ZXUZ1bXTWQCWu68dEch0vso+tFEG+Y0d7GbS4qbx9Gm6/1OpiivNFBW3c X-Received: by 2002:a17:90a:4f0d:b0:256:2ccf:45aa with SMTP id p13-20020a17090a4f0d00b002562ccf45aamr11833672pjh.25.1685371601409; Mon, 29 May 2023 07:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685371601; cv=none; d=google.com; s=arc-20160816; b=T+ziL/miOOb1OEN6PHvTMySByMQIYBDT7W2aAoq7FuuQDpW3aBxyG/UwdBsHvAJa4m 7LQmphxX5kHzFOVXKIVG7J5+Evtw1grfaSzEAJAWbif50TRQIqrIZ8TxQ78aF90jEft8 LS+S6aehyrcenfICFx0c+KZUdwgKOSsBL7Vw+fWThFBpsmVJZZFa1GwdhAJLMRKxp9SM NpjsvMmIp2uUJKSk0couYfPOoXj4mj+dqCZxEqtoTkrR57bnIV5ov6KilN6FAM6I6iix 0MQRXlo+OdTrGpj4tHofIG1bF+egAOisEfAlieb35xqJEpzDiwQuNs6GuAXMevj3lVQO pOzw== 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=DtIowCWArhNAKDJ21t/Gz3FuvkA8KEPefFaFjHCeQr4=; b=dHwQAR53fsETdbRF8pUKCbskoP62PixSW09FHlnJOOefqPN4oTJw7/zVMubPtR5qpj d17M/gQSzuIejAL9UckLx8fPdrwEVbFe1NJZOVjmJT0bAcbJJGTqpvLARPf0D10w/oK9 nZqyaXC6DD8Z45AUSbCtdJIF70yRuUTXW7iXyUhJQG3rvmISBgW3XihBIcuC+5YLWUZh aVY0MhsYCszdPy3HYjIlOZdLnRcM6gzJLItyaVwhdkXzXvAxLihxpcxMLSaUDgOEgzOu qPYh8wpwd44abkCcudddhwaMbaqmsE1Poz+cJd41br6ecCTYnSdbxVdVd0H1zwZhvMw2 Jzhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=pCTcRPHf; 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 pi2-20020a17090b1e4200b00244a45cb5c0si5534338pjb.42.2023.05.29.07.46.29; Mon, 29 May 2023 07:46:41 -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.20221208.gappssmtp.com header.s=20221208 header.b=pCTcRPHf; 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 S230259AbjE2OhZ (ORCPT + 99 others); Mon, 29 May 2023 10:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbjE2OhL (ORCPT ); Mon, 29 May 2023 10:37:11 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85032100 for ; Mon, 29 May 2023 07:36:52 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-97392066d04so502477066b.3 for ; Mon, 29 May 2023 07:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1685371010; x=1687963010; 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=DtIowCWArhNAKDJ21t/Gz3FuvkA8KEPefFaFjHCeQr4=; b=pCTcRPHfX3X1QhvHwCBNVTgzfn/Qm28cgRWSmlzGAohNnkVN4gHRNa/q16pJEcvXt1 /APenx4ADuC8k13hFw2PBKaCGpcgNcI/Wm2A3tnb2ElOQIN30A2r3Pc53PRSkb1jZDJR x5S2w6uSizNScE+h8CbPJxfbCLKHyrVTlHoUwiuwEqna9V4iwK9zxQcqOwdh6ACNuuxb YEwOiYh/EosOeCa1PIdL+Fo/4FOAe8VYrg7mGRK9/G3PC/25h7GnTFW0xrECMTtn3Wzv HumEx6HtlqHcbYLNMVSdzc/wWFd/y5upyJFYNQvrpekQp8iQbhSQvEEtv8HChwIWgkOJ nvew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685371010; x=1687963010; 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=DtIowCWArhNAKDJ21t/Gz3FuvkA8KEPefFaFjHCeQr4=; b=H8NfWgCCiLMyCZ3Kh5l4eg8yMsTNrNT5mmVhFu5bsHsFFZEyzWx20kYYnpVumA1PCO GEln95Yykt1dmH/jSPu85U7c1NF8azx4LEELc0hWd8MY7hAB1B34SqHaJTCRM4fguc2b fE3L6/QLrZMp2qF5bzlfAoNOW6wYY8MQOPyB7hqqMwGPAHTHlQ6yCQOS4XZtUUX0wSC7 JTVZm3mph0PAp0EfU6m48zACQInYpU5j9kYOn5i4sT/dpd+8X/BhuWnHYZNK0JfR2X4A wjkxmOQMLPYbud8Kwy97571G++WFazc5BnyrCzms7AjxrkhO46Edr+Zc4G2NKBcb8uq2 J6vw== X-Gm-Message-State: AC+VfDwVIiKrlRqHXWYSHgLC4dkvOkvtW2vAF2SiPYE9MXdHpjYto8Bl QiOMBfrP52uOEQiF5xaqffMdTQ== X-Received: by 2002:a17:907:c09:b0:971:eb29:a086 with SMTP id ga9-20020a1709070c0900b00971eb29a086mr13291571ejc.75.1685371010136; Mon, 29 May 2023 07:36:50 -0700 (PDT) Received: from [127.0.0.1] (abordeaux-655-1-129-86.w90-5.abo.wanadoo.fr. [90.5.10.86]) by smtp.gmail.com with ESMTPSA id le8-20020a170907170800b0096f803afbe3sm5993654ejc.66.2023.05.29.07.36.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 07:36:49 -0700 (PDT) From: Guillaume Ranquet Date: Mon, 29 May 2023 16:31:05 +0200 Subject: [PATCH v4 8/8] drm/mediatek: dpi: Add mt8195 hdmi to DPI driver MIME-Version: 1.0 Message-Id: <20220919-v4-8-687f09a06dd9@baylibre.com> References: <20220919-v4-0-687f09a06dd9@baylibre.com> In-Reply-To: <20220919-v4-0-687f09a06dd9@baylibre.com> To: Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Jitao shi Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Krzysztof Kozlowski , AngeloGioacchino Del Regno , mac.shen@mediatek.com, stuart.lee@mediatek.com, Guillaume Ranquet X-Mailer: b4 0.13-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, T_SCC_BODY_TEXT_LINE 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?1767240212132963262?= X-GMAIL-MSGID: =?utf-8?q?1767240212132963262?= Add the DPI1 hdmi path support in mtk dpi driver Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/mtk_dpi.c | 121 ++++++++++++++++++++++++++++++-- drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 5 ++ 2 files changed, 119 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 948a53f1f4b3..b83a38e8bd60 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -9,12 +9,15 @@ #include #include #include +#include #include #include #include #include #include #include +#include +#include #include #include