Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1678515ybi; Sat, 1 Jun 2019 02:28:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC/4sDUWju/gKz7zkIJw+F+HnZunxIZEM0/YUHytM+tPtEu/o3Q2gyv7esrPap5tj2v8F2 X-Received: by 2002:aa7:86c1:: with SMTP id h1mr1306404pfo.157.1559381290339; Sat, 01 Jun 2019 02:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559381290; cv=none; d=google.com; s=arc-20160816; b=gZLsPF+Di9IxV1cB1ghM961k5iPY5VUfM+gwCnn6MIVq/fhb1u0yZc8Ga2+6pL5stz 8+KBk40F0K1lMv60af7sw09lB7z7drUoT4wC/F3hBDHwcUkgAPRzoAqK3R5NftJ+3+ws Y3UTMbrrYWpx/11zBMEDjRKLYjvqkn+lDUliGUJhb3l13tLVbriRGTFunX1xrvwGIucl CwLJcOHDvTA7jvjz4k67UIbnVVT9pJ7Gs2rvlqYENPkCB/S/KGLcKqzUQ6q9cEDfuRgK QOGbRwaRflVMuf5GR1vsj1L1w4/AXI6GiX0wBTzzzqIG5T7pSnZCtIg81vi77Oio8oBD yXNw== 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=umDq79SnTGgl7oLbyhUdnqkfsPqMM3buuTb9EKxLS3k=; b=rFY8NrCggNNNGiL0Yjz6nwrca/xXHyDYfR1NvrTKzYKpVkl8apLKwHy4NmG/dIwj1k CFb5iHGUNZdTP+40zY0yebbMNsqJn+hLPi/hNR5i/HblXIPZem1FHB75yHZQdnfqSdoY 7vwAyQp79n3woqNEJ2rJAKCXQw+oqUaNsr0wTKI9hEYv3OOuio10LJHuhM9Gi9cWs+bH Dot/P98ZzGbrhoMZHO6UJl1npPJgaqq7ojofmk/68ELvll33IAaMAC8jCpGSRmBqdmzP qiVYONyHn+5kSWVAalfpowLVki6dC9GkmeWWavcvUlxZzuVkTlar1ZSeaCQiPhQThFwm ggrQ== 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 c83si10226599pfc.246.2019.06.01.02.27.55; Sat, 01 Jun 2019 02:28:10 -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 S1727196AbfFAJ0j (ORCPT + 99 others); Sat, 1 Jun 2019 05:26:39 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:49424 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727065AbfFAJ0g (ORCPT ); Sat, 1 Jun 2019 05:26:36 -0400 X-UUID: d7f89ad4593b450caaf03eb973212d3f-20190601 X-UUID: d7f89ad4593b450caaf03eb973212d3f-20190601 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 713051701; Sat, 01 Jun 2019 17:26:29 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Jun 2019 17:26: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; Sat, 1 Jun 2019 17:26:26 +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: [v4 5/7] drm/mediatek: add mt8183 dsi driver support Date: Sat, 1 Jun 2019 17:26:13 +0800 Message-ID: <20190601092615.67917-6-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190601092615.67917-1-jitao.shi@mediatek.com> References: <20190601092615.67917-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 18a192656a89..abf6ddec5db6 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