From patchwork Tue Sep 18 18:22:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leela Krishna Amudala X-Patchwork-Id: 1472661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 43EC33FCFC for ; Tue, 18 Sep 2012 12:28:04 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TDwr3-0007k2-1S; Tue, 18 Sep 2012 12:24:41 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TDwqv-0007hV-Tf for linux-arm-kernel@lists.infradead.org; Tue, 18 Sep 2012 12:24:36 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MAJ00J45P4Q0E90@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 18 Sep 2012 21:24:32 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FD.F7.03783.00868505; Tue, 18 Sep 2012 21:24:32 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-4d-505868005e75 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CD.F7.03783.00868505; Tue, 18 Sep 2012 21:24:32 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MAJ004DPP1JBZB0@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 18 Sep 2012 21:24:32 +0900 (KST) From: Leela Krishna Amudala To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/3] ARM: EXYNOS: add device tree based discovery support for FIMD Date: Tue, 18 Sep 2012 23:52:10 +0530 Message-id: <1347992531-27279-3-git-send-email-l.krishna@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1347992531-27279-1-git-send-email-l.krishna@samsung.com> References: <1347992531-27279-1-git-send-email-l.krishna@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsWyRsSkTpchIyLAoO+FnsWmx9dYHRg9Ni+p D2CM4rJJSc3JLEst0rdL4Mq4ebeLpeChQMXtL14NjJP4uhg5OCQETCTe9Yh2MXICmWISF+6t Z+ti5OIQEljKKHH77Cp2mJp7G+wh4osYJQ6/+s8O4Wxgktg8dRMLSDebgLHE/bmbmUAaRAS8 JZZfUwQxmQVcJHZtdQapEBYIkfj0/zYTiM0ioCrx690JRhCbV8BV4tiFlSwQNyhItC47xA5i cwq4SZw6ugSsXgiopu/BGxaIXgGJb5MPsUCcJiux6QAzyDUSAtfZJOb/e8sIMUdS4uCKGywT GIUXMDKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/dxAgMvdP/nkntYFzZYHGIUYCDUYmHN9Al PECINbGsuDL3EKMEB7OSCO/biIgAId6UxMqq1KL8+KLSnNTiQ4w+QJdMZJYSTc4HxkVeSbyh sYm5qbGppZGRmakpDmElcV7hT4EBQgLpiSWp2ampBalFMOOYODilGhgjNnbWH/K7rmeua7Sf 3ZPFZr25/e+7wR8qf3LbBksKpYX+t07ckvrlrWB+srs1mxjH/bZUA/68lMfes6ZsM5v5jbN6 ypPU02IMrq8EDuasXJ1peMGIgfsWX6GtqUf+vVdz7jxTydmYIbVI0dIjdurPRPOCSJ5f94pm xmVu1HTaYcXf6CCkrcRSnJFoqMVcVJwIAK39c+hqAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42I5/e+xgC5DRkSAwZdz6habHl9jdWD02Lyk PoAxqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdo qpJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsIYx4+bdLpaChwIVt794NTBO 4uti5OCQEDCRuLfBvouRE8gUk7hwbz1bFyMXh5DAIkaJw6/+s0M4G5gkNk/dxAJSxSZgLHF/ 7mYmkGYRAW+J5dcUQUxmAReJXVudQSqEBUIkPv2/zQRiswioSvx6d4IRxOYVcJU4dmElC8Qu BYnWZYfYQWxOATeJU0eXgNULAdX0PXjDMoGRdwEjwypG0dSC5ILipPRcQ73ixNzi0rx0veT8 3E2M4NB+JrWDcWWDxSFGAQ5GJR7eQJfwACHWxLLiytxDjBIczEoivG8jIgKEeFMSK6tSi/Lj i0pzUosPMfoAXTWRWUo0OR8Yd3kl8YbGJuamxqaWJhYmZpY4hJXEeYU/BQYICaQnlqRmp6YW pBbBjGPi4JRqYBS9ouC48PLjCGcxqamxH59WstlFmOX83vw+aBUzh+T1/A/KW3qePxLzOvLy z9k/x84fdNn2raqqYNerbd4f7jOWvQq6+GLRjXwnsT+vOIp1RSyKbjWfX/hIz0VsfdQDyaDt jb/2HxZ6Y1X/qHMXZ6qIScnkvwph6qEaLkZT7q49eTG9raXuqpQSS3FGoqEWc1FxIgCjMe17 mgIAAA== X-CFilter-Loop: Reflected X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 3.0 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: inki.dae@samsung.com, jg1.han@samsung.com, kgene.kim@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds support for device tree based discovery for Samsung's display controller. Adds DRM-Fimd plat data for smdk5250 evt1 to the corresponding dts file Signed-off-by: Leela Krishna Amudala --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 16 ++++++++++++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 3 files changed, 19 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 8a5e348..c8d32f5 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -109,4 +109,20 @@ spi_2: spi@12d40000 { status = "disabled"; }; + + lcd_fimd0: lcd_panel0 { + lcd-htiming = <4 4 4 1280>; + lcd-vtiming = <4 4 4 800>; + supports-mipi-panel; + }; + + fimd { + samsung,fimd-display = <&lcd_fimd0>; + samsung,fimd-vidout-rgb; + samsung,fimd-inv-vclk; + samsung,fimd-frame-rate = <60>; + samsung,default-window = <0>; + samsung,fimd-win-bpp = <32>; + }; + }; diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index b2021bd..dd9cea3 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -174,6 +174,7 @@ #define EXYNOS4_PA_MIPI_CSIS1 0x11890000 #define EXYNOS4_PA_FIMD0 0x11C00000 +#define EXYNOS5_PA_FIMD 0x14400000 #define EXYNOS4_PA_HSMMC(x) (0x12510000 + ((x) * 0x10000)) #define EXYNOS4_PA_DWMCI 0x12550000 diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index e707eb1..0d35d31 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -64,6 +64,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "exynos-gsc.2", NULL), OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC3, "exynos-gsc.3", NULL), + OF_DEV_AUXDATA("samsung,exynos5-fimd", EXYNOS5_PA_FIMD, + "exynos5-fb.1", NULL), {}, };