Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp543141pxu; Tue, 6 Oct 2020 12:35:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/AFc3T3P08CBHanQtZ2IlqI6qusHCMWaFICwBQTHVmY/zStffAZIm/ocN1m9V96tOIvYg X-Received: by 2002:aa7:c9c3:: with SMTP id i3mr7413479edt.236.1602012928115; Tue, 06 Oct 2020 12:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602012928; cv=none; d=google.com; s=arc-20160816; b=WUxQwmJAfSeU5nzpazNglLtu3gTQeNot/9WkVm+hVdZxRf2TM5s8ieQUrysRelY4QS nfzy3IXErkVO7WfT3a6GVo+C60KmJHEh6aKjB4OmzZO4Bbslrs1tbyy47uEtC2vcux80 j0br4DRPgAWLLVFTFr7tAf9T9onCgYlK36b9jI3ABOgaNn5DbX/IktDJJhFt+4czj19W lKOVdBh5mWDVvGSGcfu+31MHDz+wLhywl9vvgkKDfMrce6bwuCebCHwAN/rBJhRI0/ry J9SBwfAJEZot/c616eOo9VQpeZn3umRns4zOHLOiOGuspbPBVV5afDMtI1YWHWn4/xAV dpdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TU8QB7gSWkIPNu40hZMdRO3FvETHdmwdFezLX5EFGHU=; b=wXRqghP3i3A7zmpiDp5iC5Pi6aNL/jooswFdh71UJ7cRTPPx7Gn2QFzn3PiZG51msk 7RaTLfXR6+A/C0HeEV8lT1305kAHx8IZVJiHSpbB+Jj56yXXczJeYwMlKdzSVLZOhW2i HkABgiJ0ydPQRWN0b7FgB728mdvRjjs3pkrXy8XVu0xMr5X6/upnkxsg6ARLf6LpN/jz f+IUQ+6NIoYJrmd+ZxVH6Bh7IG7pIE5wdamLf0c/bctyW4rcKUo21m0unPuyh+F9bOnM lp3m2bpi56h6cuZWZs+zFVtS3jRVneSPXFt2/r9mJW8WCJWDJFg2IgyVKx6nfLHfAEIB XHvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si3142222edv.507.2020.10.06.12.35.01; Tue, 06 Oct 2020 12:35:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727158AbgJFTd3 (ORCPT + 99 others); Tue, 6 Oct 2020 15:33:29 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38180 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbgJFTd3 (ORCPT ); Tue, 6 Oct 2020 15:33:29 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 6FABC28A7A9 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , yongqiang.niu@mediatek.com, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, chunkuang.hu@kernel.org, CK Hu , Daniel Vetter , David Airlie , Philipp Zabel , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/4] soc: mediatek: Prepare MMSYS for DDP routing using tables Date: Tue, 6 Oct 2020 21:33:16 +0200 Message-Id: <20201006193320.405529-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear all, The following series are intended to prepare the mtk-mmsys driver to allow different DDP (Data Display Path) routing tables per SoC. Note that the series has been tested only on MT8173 platform and could break the display on MT2701 and MT2712 based devices. I kindly ask for someone having these devices to provide a tested routing table (unfortunately I didn't have enough documentation to figure out this myself). For the other devices (MT8183, MT6779 and MT6797) DRM support is not in mainline yet so nothing will break. Thanks, Enric CK Hu (2): soc: mediatek: mmsys: Create struct mtk_mmsys to store context data soc: mediatek: mmsys: Use an array for setting the routing registers Enric Balletbo i Serra (1): soc: mediatek: mmsys: Use devm_platform_ioremap_resource() Yongqiang Niu (1): soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 34 +- drivers/soc/mediatek/mtk-mmsys.c | 429 +++++++++++--------- include/linux/soc/mediatek/mtk-mmsys.h | 33 ++ 3 files changed, 263 insertions(+), 233 deletions(-) -- 2.28.0