Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2532727ybl; Sun, 11 Aug 2019 03:41:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxodgzTu3KHvmT1RdqwzgVHijPGWykmXS17+/6AMVijiqFDWQIQUhT6Z/6claC2zuE4kpQ X-Received: by 2002:a17:90a:1904:: with SMTP id 4mr18921915pjg.116.1565520111938; Sun, 11 Aug 2019 03:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565520111; cv=none; d=google.com; s=arc-20160816; b=vUii7rWS3jAJEEq+Tjh/UGuNbrvE/AkGQwyJaMB+GbYIVPFCWDCqN/xdRjubNCmmZv m+eXZApmB29rdHkYI7BJdPriMw4ycURY3LvqnxN0nyXkQNS+wXfmybYdb8Jq4Zd3mzHT WNl9EfBoTT04nvO36ii/SKh2Wku3SqJJj643QJ9yqRMC0ofnpNfpKyrKJ2Q2q4N5bqGk TL9mID6aEmZC4ltKaFqiLE/qJFubOe1r1eZJwXpfxGize4NQElf0JTVuvoUXNu+0rge3 HFpxkDWV84aHR32Csi8Yabl8GL59Fy8yDE3NTvsMl/1WGdF6hBJ4fsW37zNU9cZx2qWq 3VqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=D9qJOmcQm/DpbsHvZUABiLxb0sh27uPA+Gtn4IUzVSk=; b=sYVWRP5BGIHt3vcnqkk54ZGSe25DfGdGcgb7viIFnhyOBQEfL9yI8TWVWUeXdEous4 kJXnSdTTYfR+62gpW7oh93XHrb4KIUYId/9zvJAwKqSfNpSOW4I7mjkwLopAz8MKIGGU nRuPAlWVl0aF1LWb09jUHQA50XZ9jbU7JyRpY+01l9enLNL81unIEEvoVAJlCbwmchvK 5HcqAjTac2hcLr7xV+dtLSX3ULPPSvcAi4r9SbbuTfe5TzDdIx/6TTlOjpWs9wutRe57 r4q1JPriw8bedYn+vCaVDTWd+hZ7PqxN/wx+akSHJ2F0SYzWBuyrpVazUqGkrmNIDoyC l4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x139si58915304pgx.251.2019.08.11.03.41.37; Sun, 11 Aug 2019 03:41:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726556AbfHKKkz (ORCPT + 99 others); Sun, 11 Aug 2019 06:40:55 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:43394 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726510AbfHKKkx (ORCPT ); Sun, 11 Aug 2019 06:40:53 -0400 X-UUID: 7cb4b3d1ac4b46bd9043762f13ec7747-20190811 X-UUID: 7cb4b3d1ac4b46bd9043762f13ec7747-20190811 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 2042052334; Sun, 11 Aug 2019 18:40:51 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 11 Aug 2019 18:40:47 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 11 Aug 2019 18:40:46 +0800 From: Jitao Shi To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , , David Airlie , Matthias Brugger CC: Jitao Shi , Thierry Reding , Ajay Kumar , Inki Dae , Rahul Sharma , Sean Paul , Vincent Palatin , Andy Yan , Philipp Zabel , Russell King , , , , , , , Sascha Hauer , , , , , , Subject: [PATCH v6 5/7] drm/mediatek: add mt8183 dsi driver support Date: Sun, 11 Aug 2019 18:40:06 +0800 Message-ID: <20190811104008.53372-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190811104008.53372-1-jitao.shi@mediatek.com> References: <20190811104008.53372-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-TM-SNTS-SMTP: 115C68D5AFF523B862A455F59293ED2A25A28DC8FC53698C637F8CF8A72DF05D2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add mt8183 dsi driver data. Enable size control and reg commit control. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 68794edecf96..b3676426aeb5 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1227,11 +1227,19 @@ static const struct mtk_dsi_driver_data mt2701_dsi_driver_data = { .reg_cmdq_off = 0x180, }; +static const struct mtk_dsi_driver_data mt8183_dsi_driver_data = { + .reg_cmdq_off = 0x200, + .has_shadow_ctl = true, + .has_size_ctl = true, +}; + static const struct of_device_id mtk_dsi_of_match[] = { { .compatible = "mediatek,mt2701-dsi", .data = &mt2701_dsi_driver_data }, { .compatible = "mediatek,mt8173-dsi", .data = &mt8173_dsi_driver_data }, + { .compatible = "mediatek,mt8183-dsi", + .data = &mt8183_dsi_driver_data }, { }, }; -- 2.21.0