Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1768950ybd; Thu, 27 Jun 2019 01:04:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxieUEOPoUXlDvhGBmsakMCi7KspBvJxHBBXkSim7FXH+Su5usRGufRfzaqq5h2aLTv3hMi X-Received: by 2002:a17:902:aa03:: with SMTP id be3mr3092729plb.240.1561622681765; Thu, 27 Jun 2019 01:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561622681; cv=none; d=google.com; s=arc-20160816; b=QcsGPU/fN/lXgLTxJS2bYkQXidDaPatmy5LZCLOz/F8bRikY9zB25aUtu/i8z7EhZ1 UMh8PNZwVMf0TZVrBfOX9lHjoe4jGq4vxcnmX8aZp3ZdQKIWcQqRQn+ETGqAmYhHTB2X 077loyMvbzWnncos9n1i7/JCHXUkb+MvNmgpRL4WMjEKogy281owHT+kGJSTGK/UXu+O Hn5GmKxULcG0SPNaYovEajOV9KFg2rbBf0aOcsOlcZnD01kaRIpQXIbRC2eVPdkPSKGq HGlkL6ISlpBjc9NRpS35VR8lhL9mV+byWw42Q7pi6NjW5BF8j24MTV41yUbDZsNs3hDD M7/A== 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=SvNLl6AtIXV9/Mg/w+PcacPpmENyDuSFSitf5oCaYZk=; b=uneK9/DuuqbztbapoJsXgOk7fqUAflMwo9YX+jcaEOwyBL33KZprBGuev2GdmQku63 +rQsJACY6kS8+Atr3nunTjmZ1B+gQqE8XFmQjzJXhRlC0Vh/+OffJU/hreyymBKPdyZd T23gvwcsC3Fh4GhuEwKnLfHlHD6bA+IUyu+hT922EIPp2ylBYaDuemqbvNCVPUQXox8w VDQHsmOTPXv+bDAS2yhfajgGlmEnwOyjHCIdWmJDvSgE6mSNilU1Iapr0f6EzzF8Xu5F ao8v2c9rnCgcjZeno27PZzonZf6T5nP4wpz09L4vp4Kf8rwGc+MdPCy8ZzoxvfITC3iF 53Cg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si4520783pjv.99.2019.06.27.01.03.50; Thu, 27 Jun 2019 01:04:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbfF0IBe (ORCPT + 99 others); Thu, 27 Jun 2019 04:01:34 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:65201 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726101AbfF0IBe (ORCPT ); Thu, 27 Jun 2019 04:01:34 -0400 X-UUID: 3d83f87573874adbbd5a1b035c8cdb1a-20190627 X-UUID: 3d83f87573874adbbd5a1b035c8cdb1a-20190627 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 101541769; Thu, 27 Jun 2019 16:01:28 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Jun 2019 16:01:27 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Jun 2019 16:01:25 +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: [v5 5/7] drm/mediatek: add mt8183 dsi driver support Date: Thu, 27 Jun 2019 16:01:13 +0800 Message-ID: <20190627080116.40264-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190627080116.40264-1-jitao.shi@mediatek.com> References: <20190627080116.40264-1-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 45e331055842..1621e8cdacc2 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1225,11 +1225,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