From patchwork Thu Aug 20 06:03:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqiang Niu X-Patchwork-Id: 11725563 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7798815E4 for ; Thu, 20 Aug 2020 06:06:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FCA6207DE for ; Thu, 20 Aug 2020 06:06:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AwIuAOwC"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="H50p1cLS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FCA6207DE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=fy4SOUUvZGwxXGyVNHKXqfHV/1nJnfKuh0wPyiOe9Fg=; b=AwIuAOwC/LrnRQUYJMpeElAXwM fSMmS43SDWngf70KgQMHx/SQF2IkTPwvW9dtAVdHICG+HSQ+iOwh4zx4sUQw7wBi8LljwKX9IlzZE Nub95u5e1yq9/1W/FMTsud/DKfjl3lqyu3rUpfHAjAarZhZT+i63Z4SYVA+ZFJ27FhXgasQj8Cwsh 62mecuWnLeuz1kJe0sfNj3oT9ZN+id9DxkHaTjrGKz/5C/dvOGaIvocdGajMWeLjXlFW361Zt8pXM 9KMtRXb07By1SIX8q0ZeNwlC9PQo/9EomGYwlWk4uaQZrksEMcWG63jVo6wV0DOGcOgpnCqYtxkEy VAiBD6Dg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8diB-00058Y-S0; Thu, 20 Aug 2020 06:06:08 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8dhn-0004wm-P5; Thu, 20 Aug 2020 06:05:47 +0000 X-UUID: 02087acb25b0470c8c44cd8337619f79-20200819 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=eMCqHf5VNCtvq/O+QRSOEtg5Xwd+1FDGSGsrpAcq+Zw=; b=H50p1cLSaa6yZkxGMAOBt95ilGFI8Sf1kEmNVRDSikomonml6E72LPaIXeztiyFmhmMMk97ecVFs3MG0Z5eXQrVrpZFYd8amO0b2Pw3ohFccb7wkwggVAqFsUsLMWZT99T2haxjp+NKeqWBamsiU0NE/PIriewX+rnfNlvp2gUw=; X-UUID: 02087acb25b0470c8c44cd8337619f79-20200819 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1791903434; Wed, 19 Aug 2020 22:05:35 -0800 Received: from mtkmbs05n1.mediatek.inc (172.21.101.15) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 19 Aug 2020 23:05:33 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 14:05:31 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Aug 2020 14:05:30 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , "Rob Herring" , Matthias Brugger Subject: [PATCH v1 00/21] add drm support for MT8192 Date: Thu, 20 Aug 2020 14:03:57 +0800 Message-ID: <1597903458-8055-1-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_020544_012119_ED070949 X-CRM114-Status: GOOD ( 15.19 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Yongqiang Niu , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Daniel Vetter , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org Changes in v1: - add some more ddp component - add mt8192 mmsys support - add ovl mount on support - add 2 more clock into mutex device - fix ovl smi_id_en and fb null software bug - fix ddp compoent size config bug - add mt8192 drm support - add ddp bypass shadow register function - add 8192 dts description Yongqiang Niu (21): drm/mediatek: add component OVL_2L2 drm/mediatek: add component POSTMASK drm/mediatek: add component RDMA4 mtk-mmsys: add mt8192 mmsys support mtk-mmsys: add ovl mout on support drm/mediatek: add disp config and mm 26mhz clock into mutex device drm/mediatek: enable OVL_LAYER_SMI_ID_EN for multi-layer usecase drm/mediatek: check if fb is null drm/mediatek: fix aal size config drm/mediatek: fix dither size config drm/mediatek: fix gamma size config drm/mediatek: fix ccorr size config drm/mediatek: add support for mediatek SOC MT8192 drm/mediatek: add bypass shadow register function call for ddp component drm/mediatek: add color bypass shadow register function drm/mediatek: add ovl bypass shadow register function drm/mediatek: add rdma bypass shadow register function drm/mediatek: add dither bypass shadow register function drm/mediatek: add aal bypass shadow register function drm/mediatek: add ccorr bypass shadow register function arm64: dts: mt8192: add display node arch/arm64/boot/dts/mediatek/mt8192.dtsi | 126 +++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_disp_color.c | 22 ++++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 41 ++++++- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 27 +++++ drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 3 + drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 84 +++++++++++-- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 80 +++++++++++- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 8 ++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 48 ++++++++ drivers/soc/mediatek/mmsys/Makefile | 1 + drivers/soc/mediatek/mmsys/mt8192-mmsys.c | 182 ++++++++++++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 8 ++ include/linux/soc/mediatek/mtk-mmsys.h | 6 + 13 files changed, 623 insertions(+), 13 deletions(-) create mode 100644 drivers/soc/mediatek/mmsys/mt8192-mmsys.c