Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp973065lqp; Thu, 23 May 2024 05:52:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVg2GDwgAx/9JDjNUgcdPwVJxl/vwXYPHyx2AzTC510B39WcnJDpNY0ok5oifvuoVGAecqQknmC6j8osOME9nJKIo7iOxb0eHbLIvUdww== X-Google-Smtp-Source: AGHT+IH+HgpNZlhwyvGVdtD4i3G5nnJQBTgtP/GsOuaXaVQs5Ej/JugJDrDDBnm5ovtbGSs51ibx X-Received: by 2002:a05:6214:2c08:b0:6a0:ae4f:cd4 with SMTP id 6a1803df08f44-6ab808f2b29mr57303706d6.40.1716468763603; Thu, 23 May 2024 05:52:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716468763; cv=pass; d=google.com; s=arc-20160816; b=OqRzR+W6tHYZAIfhUTfW+xK7WurKgWKc+9YmWV0rHe3WV2Z3mXaNaIshjwBh3T7XtO AOyu4MAPcTiavCS3IJdKifAV3shpfMTqalryUHzJ9M4PEkBnaVWOrfNfU2zNnbXHn+7b cY1ZaTYw8HcrdfbV45ypQWU2i1gLGhVHAU32eEEDuH0z7wV2DflFn5XsZr19QiHDwJUm cdjXHN2aL3xlZGZSeks9ZInHwO0NCCZs0M+N0bWVEf3llMiFtzqVXigdK5Kbd2zCmB1r 69soQA+ms32E6sb6KJGEljoDpOKinkKP6bISTTMR5Uxmt9+JQKvNstIaTrhLz1lCYSRu nBNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=oV7UBZ9+FOaGpy1Hnl2xMvcmGJrrQkTOfJMy4GT33U0=; fh=FRXQVdYRt9xiX67gjISLCyhlyUfJ1FlLESdPlQ8QEo8=; b=uyPXrMNrJoDIniOCMzQBHPPijDMA5ua/86tl2BEOTSwl6TUav6e3D1vTs2hHIYQk6/ nKRfYz5/5iEVO5VwX/9Ea3ngYZWMS+f/R+QpqVqjzoOmpUJe9Kr91LXHLeW988cmk7ua sZelhcvJfssq3GSPDKEiOPYTU717EQaUbOgz1NNeIIVK6C4sxuXKIjOzTYSKkJb4H4xp gZEUsEFyLcW/PWbqW05i1UKU5zWYsR7stLNs0AR9/H4OzL+a+dpVV4KMNBkVzrnlWE4L 6czgTAXNMI8cuYcJa19v1dIkOGE/Df+rt+kwW4j8m7Gd8/dE6KYwxTS8zoUjUpfjMG+x gX/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=1emdOe7M; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-187512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187512-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab991f4732si2438046d6.471.2024.05.23.05.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:52:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=1emdOe7M; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-187512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187512-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4AA761C20BDF for ; Thu, 23 May 2024 12:52:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 873D314A62D; Thu, 23 May 2024 12:49:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="1emdOe7M" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F188D14F9D7 for ; Thu, 23 May 2024 12:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468585; cv=none; b=AaxB2hlkkzdcBwymNIasvObh/IzXqUXlzCIsjtfoyzIc1dc+HDBuZlvWjDk0SwMvnYQfLV32Sb9mv0M7BitWS7zVUVW502QFqQdhKSSeuSnRiTFf0VGmCqEMXDfaEPDtFNL48xzszQivBSOqh4DwCj4fyncDLFBmhJ8LMJXzQo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716468585; c=relaxed/simple; bh=xvhfA+3alhUTWtLN0sSLdcw9i9/hFws1SfD/85pmVJs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BfC0xIsOlxmX7Xhi8f5mLAZ/mtzMj1t/eNMqhAiunMUGSuOYtpGx9w+OtCuslFl+u8dyaBnwRnuooezsj531Fg3c7IvXMTa+SO3zNj18zRuIfnFJcpvwBuqrz7sVALGfoTkL/2k0UYIBstM0aZlP05ZrvSkO3BaQHfN6knP60hQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=1emdOe7M; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-354df3ee1a9so1645979f8f.1 for ; Thu, 23 May 2024 05:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716468582; x=1717073382; darn=vger.kernel.org; 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=oV7UBZ9+FOaGpy1Hnl2xMvcmGJrrQkTOfJMy4GT33U0=; b=1emdOe7MKF3y8+Nly/HJQkCGkeXnpm/A+QN3AC59P53cfWj6dEyVcDYFCivfz09dh8 FXAolpxR2celuoRc/ji1h4YpCOZFFtdmPMovBg+tV2gwCYIl8fRiulpjG8CQaJuDfj2R GufyTVucdGXeK/cdkcHSLlli7bDqbo98LQIFJxx76sJ3cAcaSNtYTsrf3Vvr1gSPSvcw NBrgHXBeU3P9GQ8Cb0wP342wMSAync6wKHVuZlbRStBqncdPcl6CfbUV7hrA3rtLD0ZP X0n0BpcSTQB3+i6pzg5MtgLUSnkG5zc5Q1e7yfkn0G4hJaQJcjuR2+0qDxhlKZ6/Tr4I vIxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716468582; x=1717073382; 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=oV7UBZ9+FOaGpy1Hnl2xMvcmGJrrQkTOfJMy4GT33U0=; b=ejwCRIYG4EFfqYYxQOC6psQNgVzSvbVKeuYhlBiBVkYUkIoFztDYF660rGqOA/dxF1 W1c0HWsLowqAa2POfhtqXLvOLA0OFjIoCvECTgPDal7vWhIPe9yAkiL/ePhMq4VTcjR2 tYu1NbcR3K5oESI0cgws6663j6Hz1w7uPyBnk+Hnb86TY0uO5oACpVtZVyNWrbnx5Dmz Hv53A6VUPGBpR68b5W321gq5CznM/ZR99iwHmmJIgezOqxQS9Hq0GMK52SgeqQZeSJ0S UMyup3/DNkIyV5lxx8aLLWKsdr54K/EBeILmEKyr2HzhhXyke8PNfar7BsjmRTGqRNsE dUOA== X-Forwarded-Encrypted: i=1; AJvYcCWfURTv7RLe2bfxU1diCT/0pHuRJcBC2U6rgOSs3vlX0L5iiQNkw4jeoaWEQr6etHsNF5EmczOl05LXvUoTczSfnqhKT94iFgyWuZx3 X-Gm-Message-State: AOJu0YxoMQhQQ28mUyY+UHzstvu6KMnzy5kMh8n/a8yJS8HoJk4Nuiyk VadBGh6XzFxOzK42MXNV4f3NkRjPFWxe5twDBDLTAZlSsvNwxotJoH4rzLG8PKI= X-Received: by 2002:adf:cd11:0:b0:354:f44d:a01b with SMTP id ffacd0b85a97d-354f44da262mr2654995f8f.15.1716468582558; Thu, 23 May 2024 05:49:42 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-354faf3fa68sm1259611f8f.116.2024.05.23.05.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:49:42 -0700 (PDT) From: amergnat@baylibre.com Date: Thu, 23 May 2024 14:49:25 +0200 Subject: [PATCH v4 12/15] drm/mediatek: add MT8365 SoC support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231023-display-support-v4-12-ed82eb168fb1@baylibre.com> References: <20231023-display-support-v4-0-ed82eb168fb1@baylibre.com> In-Reply-To: <20231023-display-support-v4-0-ed82eb168fb1@baylibre.com> To: Chun-Kuang Hu , Philipp Zabel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Jitao Shi , CK Hu , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , Fabien Parent X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1708; i=amergnat@baylibre.com; h=from:subject:message-id; bh=T02ZuZj0ijmxlVVq8ULLWlzrN07sh07XViJUCnaN+hM=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBmTztTmiIN+hH5sjsyB9OiMxaQ+PFDyvdz2GQAG3OY CSOzjz6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZk87UwAKCRArRkmdfjHURUisEA Cc6FfVzLDHM6GIBiFrX5C8yWAmpB0sfQBWzm2/LiHReGOMzvEj84wrDpQJRaAHErRiZBkTOVNdb8HE z+CGacZIQhgv9SbUW3xZipNp/2egvC03hrEzaOmQPN9btFE0hSyy2vnM+C6oNN/NpYgAQdFXk1CNyM Kf0xyyH5QH7L8WRbapNjD8A83yMh2cZvoGb7Q2vsCfXWQpK1FwMhi2m4busv8/QNxNn95jSnZKFPHC Iqrfq5kV+wkCmSGBhD3/VyrESQlissctczNW0FbMrhk4mMuWYOMUdr+jSpQuw9LsuquvbbYYpBvbdQ 8Itrnr9R0jaFg2o2LCZ70PuferPP7bBi3BcJjbevQ+H0+wWU8B2MmB0Qm4nvhW6JijGLSS3RRjelak gjB8D9PsgqllVBW7ZKiEqwggDK/LCSUmduby2ppRsrCkeSEqmN1N9Dd9zSDbAhscXNZkxKoiJxaAc+ qn5/l2e1pYlPhmpm8z3+STuZE0OVZrQYSK8RsGHCGDmogWOLpQXKV8mOeThvPc8fiT4eH+QQN+HFL5 iSVPE+L/1Zr3TpF20aZB9aUESBilPV+qbtUEY+6f2GGjWMhKBpEWRVFL3nUGjOlIlmlFfdflvEP0Ey 49OgjwmNz5P82LcR+net2PCW5fGe+fHv+3Fe12bq8/wx5L/XuDF8Wvm50Mpw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 From: Fabien Parent Add DRM support for MT8365 SoC. Signed-off-by: Fabien Parent Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index ce8f3cc6e853..e1c3281651ae 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -318,6 +318,10 @@ static const struct mtk_mmsys_driver_data mt8195_vdosys1_driver_data = { .mmsys_dev_num = 2, }; +static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = { + .mmsys_dev_num = 1, +}; + static const struct of_device_id mtk_drm_of_ids[] = { { .compatible = "mediatek,mt2701-mmsys", .data = &mt2701_mmsys_driver_data}, @@ -345,6 +349,8 @@ static const struct of_device_id mtk_drm_of_ids[] = { .data = &mt8195_vdosys0_driver_data}, { .compatible = "mediatek,mt8195-vdosys1", .data = &mt8195_vdosys1_driver_data}, + { .compatible = "mediatek,mt8365-mmsys", + .data = &mt8365_mmsys_driver_data}, { } }; MODULE_DEVICE_TABLE(of, mtk_drm_of_ids); @@ -732,6 +738,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { .data = (void *)MTK_DISP_MUTEX }, { .compatible = "mediatek,mt8195-disp-mutex", .data = (void *)MTK_DISP_MUTEX }, + { .compatible = "mediatek,mt8365-disp-mutex", + .data = (void *)MTK_DISP_MUTEX }, { .compatible = "mediatek,mt8173-disp-od", .data = (void *)MTK_DISP_OD }, { .compatible = "mediatek,mt2701-disp-ovl", -- 2.25.1