From patchwork Mon Aug 18 08:21:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 4732771 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 69E339F377 for ; Mon, 18 Aug 2014 08:21:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5BA772012E for ; Mon, 18 Aug 2014 08:21:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6966A20148 for ; Mon, 18 Aug 2014 08:21:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752017AbaHRIVi (ORCPT ); Mon, 18 Aug 2014 04:21:38 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54241 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbaHRIVg (ORCPT ); Mon, 18 Aug 2014 04:21:36 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAH00IVATVYGXA0@mailout2.samsung.com>; Mon, 18 Aug 2014 17:21:34 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 17.A2.13863.D87B1F35; Mon, 18 Aug 2014 17:21:34 +0900 (KST) X-AuditID: cbfee690-b7f526d000003627-0a-53f1b78dc946 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 96.81.04943.D87B1F35; Mon, 18 Aug 2014 17:21:33 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.83.67]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAH003BITVX8V40@mmp2.samsung.com>; Mon, 18 Aug 2014 17:21:33 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-samsung-soc@vger.kernel.org, a.hajda@samsung.com, kgene.kim@samsung.com, Inki Dae Subject: [PATCH 1/5] drm/exynos: mipi-dsi: add Exynos3 SoC support Date: Mon, 18 Aug 2014 17:21:29 +0900 Message-id: <1408350093-26220-2-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1408350093-26220-1-git-send-email-inki.dae@samsung.com> References: <1408350093-26220-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsWyRsSkRLdv+8dggxsdzBa31p1jteg9d5LJ Yv4RIOvK1/dsFv1vFrJanHu1ktFi0v0JLBa9C66yWcw4v4/JYun1i0wWE6avZbFo3XuE3YHH Y828NYwel/t6mTxWLv/C5rFpVSebx/ZvD1g97ncfZ/Lo27KK0ePzJrkAjigum5TUnMyy1CJ9 uwSujOamI0wFT/kr3hz/wN7AuIm3i5GTQ0LARGJf20ZWCFtM4sK99WxdjFwcQgJLGSXufbzE BFN08tARZojEdEaJW0+fs0I43UwSbRtmMoJUsQmoSkxccZ8NxBYRUJb4O3EVI0gRs8BMJomt S+YDJTg4hAWcJB4+cwCpYQGqv/7qKlg9r4CLxN4f+5hBSiQEFCTmTLIBCXMKuEqcebEJ7Doh oJLe2Y9YQEZKCFxjl9j68CEjxBwBiW+TD7FA9MpKbDrADHG0pMTBFTdYJj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qQWgTTx8TBKdXA6PIn ukLrc8sXwVvZ5/LmsW8W0LhR2SXpKdXOemJtr+Cj7y9LNy358Sq6aKpy7dLp3/qcPhW3HZ50 xTJumiTb+b2yM54K5agnrF3GveJi/w3d3qcpPHtdJafnOPN6logxxXW+ufvSweHh15m73+V5 ue+bvEC++seUXuMTZ7qvff03V9N+ylS1DUosxRmJhlrMRcWJAIKGxUPgAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds Exynos3250/3472 SoCs support. Signed-off-by: Inki Dae Reviewed-by: Andrzej Hajda --- .../devicetree/bindings/video/exynos_dsim.txt | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/video/exynos_dsim.txt b/Documentation/devicetree/bindings/video/exynos_dsim.txt index 31036c6..e74243b 100644 --- a/Documentation/devicetree/bindings/video/exynos_dsim.txt +++ b/Documentation/devicetree/bindings/video/exynos_dsim.txt @@ -2,6 +2,7 @@ Exynos MIPI DSI Master Required properties: - compatible: value should be one of the following + "samsung,exynos3250-mipi-dsi" /* for Exynos3250/3472 SoCs */ "samsung,exynos4210-mipi-dsi" /* for Exynos4 SoCs */ "samsung,exynos5410-mipi-dsi" /* for Exynos5410/5420/5440 SoCs */ - reg: physical base address and length of the registers set for the device diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 9a186c0..a8c0c4f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -304,6 +304,12 @@ struct exynos_dsi { #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host) #define connector_to_dsi(c) container_of(c, struct exynos_dsi, connector) +static struct exynos_dsi_driver_data exynos3_dsi_driver_data = { + .plltmr_reg = 0x50, + .has_freqband = 1, + .has_clklane_stop = 1, +}; + static struct exynos_dsi_driver_data exynos4_dsi_driver_data = { .plltmr_reg = 0x50, .has_freqband = 1, @@ -315,6 +321,8 @@ static struct exynos_dsi_driver_data exynos5_dsi_driver_data = { }; static struct of_device_id exynos_dsi_of_match[] = { + { .compatible = "samsung,exynos3250-mipi-dsi", + .data = &exynos3_dsi_driver_data }, { .compatible = "samsung,exynos4210-mipi-dsi", .data = &exynos4_dsi_driver_data }, { .compatible = "samsung,exynos5410-mipi-dsi",