From patchwork Fri Nov 4 14:09:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Ranquet X-Patchwork-Id: 15578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp430532wru; Fri, 4 Nov 2022 07:17:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eGfr6HIg3V4PhGX0bUxINwM1fUlWnXQzl9Ew3uAzQC89/Mma32wwtzruip8N+DPwGC+WF X-Received: by 2002:a17:906:9bd5:b0:7ad:939d:79a9 with SMTP id de21-20020a1709069bd500b007ad939d79a9mr34005109ejc.479.1667571422310; Fri, 04 Nov 2022 07:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667571422; cv=none; d=google.com; s=arc-20160816; b=BHzzuUhb9LQ3b9bzsUc0GvmzfWg/erN3UAeqJW+qYICX/Gb4fUWBWLc/2dhWOgkAg6 cvtHh/Y6Jv6X1pm0yH6c1vKitUkhqMC/ZTEOVyBG0aVt0Wt5tNP3TBEnF+vWAO4gyts/ ZOySY4kQGy5m10ezYSJsA1ZrnYJFmYQFdptkOuXE/jlAAzVOUM/bSvPCm0X++VwF6RS+ MbhRKTOgAdyFOUt5M/lfNC0cnDNAcMXLT9BOIwucr8LjtefbIQhN2L56iwE4/8keyz0N +BiHAjqPSMjetNXE7e9f9EFuCRjeA6+cL3KqTOKpa02mPq/tJ/DpQfda1+ewTjqefnEM TdJw== 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=Ra8xYERnvv48ed+8Epn27VTCdKgwdZ3MVrW+w7P2wIDugbVGE8Tyj+FATIF3W1119g nE/cPuB6snzVH/X4ndMybS4XAo8Ty0qExJW6+BcryQ4VPhXy41rvRMzeJ4VNI6VXwb1l AGlcVc1ZOxEDc1xZKk9+j3XgemCYE/NvyR4DUBUFL4QtXt4ucjnQOsRiIYqpzHNQ/ryX uCP8bRN9hO+z9ewLdzUdXlfgyiE6x+olgZYU6DIlqcoku0bxSJeHo+Y1WJWk7785F/KI SI9AYOOF6QOgIAILH+F9XbmhxawIpgMiVmjYwhytDuAtgDYX05yYGKB3br43fbI1KVfE PpEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=RCyBPJvw; 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 i20-20020a1709064fd400b0078de8d119d5si5872194ejw.899.2022.11.04.07.16.37; Fri, 04 Nov 2022 07:17:02 -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=RCyBPJvw; 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 S232022AbiKDOPM (ORCPT + 99 others); Fri, 4 Nov 2022 10:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbiKDOOd (ORCPT ); Fri, 4 Nov 2022 10:14:33 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2E6B2F3B4 for ; Fri, 4 Nov 2022 07:14:31 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id v1so7212529wrt.11 for ; Fri, 04 Nov 2022 07:14:31 -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=RCyBPJvwhOLCj3/RNokf2JgooAwJHyvwVSCM4BwunHJzPhtOJ+SzN1fHjOfDHEEXHQ Nl2GB0ZYTF37W75Vuk5Y6W+JulQXsQVyHvbSGUdcdgc5GDVr1g7q3HtKQy6d4FayZ9v9 qRRlKVKKmJOQ1Gq2ZVn/nkN+0QrQzLAMp61xAfPFGhiAOpwC3EafcseuFNslK+2WC7OU eElhNkMrjNfLwYBnas75Xnya45p6jl07sGY1JFq6+LjWccvUqXgJeAI2K9SmpvmxzHDp xZadrFGOJPXBhFaBl36XHSwx3z1gC4jlaef/IKvmFuo28U76lUPMkgA7CmuT8mqJ2tCJ YM/g== 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=EwezasG1kUXmLiNNp51/y37Y5k0FF2uitm53t9r5KMZIRpCC+XYQl+nHGLiOGcrPDe 3iuMxmcbCihkBjFYjRqsV19zzTMHGP0iQ9Lo/3KUqwekUifVWAL3k1B/M2mS5RYuqgpR Q07QC8kt69VVQya4zg5I2Y9Ky1amymQt3xCvo3ci+LIvu/WTP5aTKEhQfiy44UZXRbMZ aLCDQONiJqlBTjkqbbYmXaTzYIuxoUcZp/5uFzhXtkGEki+hEN3A8944RkGQwteq5hDD s+Iyn5iinH02xg55kc6nFfwhmiZaT86S3V5RPEZuzpSOVC6phaJfNyG/M2+qatiwJtg2 8xCQ== X-Gm-Message-State: ACrzQf0RH1WuuQVDvV7dXO2zTKARnOFQImIBCccunUsFt4nEoj6IB42C cy/N05ncG/FHX7YHnnYzhftjSQ== X-Received: by 2002:a05:6000:381:b0:236:f075:d2a9 with SMTP id u1-20020a056000038100b00236f075d2a9mr9823911wrf.65.1667571269624; Fri, 04 Nov 2022 07:14:29 -0700 (PDT) Received: from [127.0.0.1] (2a02-8440-6440-7fff-3074-96af-9642-0003.rev.sfr.net. [2a02:8440:6440:7fff:3074:96af:9642:3]) by smtp.gmail.com with ESMTPSA id bj9-20020a0560001e0900b002365cd93d05sm3594512wrb.102.2022.11.04.07.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 07:14:29 -0700 (PDT) From: Guillaume Ranquet Date: Fri, 04 Nov 2022 15:09:58 +0100 Subject: [PATCH v3 12/12] drm/mediatek: dpi: Add mt8195 hdmi to DPI driver MIME-Version: 1.0 Message-Id: <20220919-v3-12-a803f2660127@baylibre.com> References: <20220919-v3-0-a803f2660127@baylibre.com> In-Reply-To: <20220919-v3-0-a803f2660127@baylibre.com> To: Rob Herring , Chun-Kuang Hu , Chunfeng Yun , Jitao shi , Matthias Brugger , Vinod Koul , CK Hu , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Philipp Zabel , Kishon Vijay Abraham I Cc: Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, stuart.lee@mediatek.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Guillaume Ranquet , mac.shen@mediatek.com, linux-phy@lists.infradead.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=unavailable 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?1748575372041162427?= X-GMAIL-MSGID: =?utf-8?q?1748575372041162427?= 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