From patchwork Tue Oct 9 23:08:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 1570111 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 994063FE80 for ; Tue, 9 Oct 2012 14:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754284Ab2JIOE5 (ORCPT ); Tue, 9 Oct 2012 10:04:57 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:33867 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262Ab2JIOE4 (ORCPT ); Tue, 9 Oct 2012 10:04:56 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBM0075WPS6N150@mailout3.samsung.com>; Tue, 09 Oct 2012 23:04:54 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 42.D1.03860.60F24705; Tue, 09 Oct 2012 23:04:54 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-17-50742f068451 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 91.D1.03860.60F24705; Tue, 09 Oct 2012 23:04:54 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBM00L01PPREKA0@mmp2.samsung.com>; Tue, 09 Oct 2012 23:04:54 +0900 (KST) From: Ajay Kumar To: linux-samsung-soc@vger.kernel.org, linux-fbdev@vger.kernel.org, jg1.han@samsung.com, devicetree-discuss@lists.ozlabs.org Cc: FlorianSchandinat@gmx.de, sylvester.nawrocki@gmail.com, tomasz.figa@gmail.com, thomas.ab@samsung.com Subject: [PATCH V4 1/2] video: exynos_dp: Add device tree support to DP driver Date: Wed, 10 Oct 2012 04:38:20 +0530 Message-id: <1349824101-32574-2-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1349824101-32574-1-git-send-email-ajaykumar.rs@samsung.com> References: <1349824101-32574-1-git-send-email-ajaykumar.rs@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsWyRsSkVpdNvyTAYMMWNYsTfR9YLWac38fk wOTxeZNcAGMUl01Kak5mWWqRvl0CV8aTr39YC3baVBxZdZq9gbHVqIuRk0NCwERiY99BJghb TOLCvfVsXYxcHEICSxklLn5sYIMp+jn3NgtEYjqjxJVvt1khnHYmiZXz5zKDVLEJaEtsm36T BcQWEaiT2L/9BCuIzSyQJTHtdhtYjbCAn8ShU1/B4iwCqhJn77SD2bwCHhITXk1jhNimING6 7BA7iM0p4Clxbs0nsBohoJr1yy9B9QpIfJt8CGgXB1C9rMSmA8wg90gI3GaTmLWygRlijqTE wRU3WCYwCi9gZFjFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJERiOp/89k97BuKrB4hCjAAej Eg/vh6jiACHWxLLiytxDjBIczEoivAkKJQFCvCmJlVWpRfnxRaU5qcWHGH2ALpnILCWanA+M lbySeENjE3NTY1NLIyMzU1McwkrivM0eKQFCAumJJanZqakFqUUw45g4OKUaGHuqXVpvrP2S +4/9in2+WI14/ksFpW/m1zzcnmi3+fbVLXeZYrbPwWr17UUnV9+P6DvaoTgnWMDh9PFr5lWF xsdyd1hFXTkQ/dZLquCtVGok05nPsyX+XPJ5+W3d0vg5i9OW2DyZllZy6t7T2MMvNM781siN ZD59mf3w5R9VPm8vL1x7SUHk4zslluKMREMt5qLiRAAuT638dAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jQV02/ZIAg8+3RCxO9H1gtZhxfh+T A5PH501yAYxRDYw2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4B um6ZOUCjlRTKEnNKgUIBicXFSvp2mCaEhrjpWsA0Ruj6hgTB9RgZoIGENYwZT77+YS3YaVNx ZNVp9gbGVqMuRk4OCQETiZ9zb7NA2GISF+6tZ+ti5OIQEpjOKHHl221WCKedSWLl/LnMIFVs AtoS26bfBOsQEaiT2L/9BCuIzSyQJTHtdhtYjbCAn8ShU1/B4iwCqhJn77SD2bwCHhITXk1j hNimING67BA7iM0p4Clxbs0nsBohoJr1yy+xTmDkXcDIsIpRNLUguaA4KT3XSK84Mbe4NC9d Lzk/dxMjONifSe9gXNVgcYhRgINRiYf3Q1RxgBBrYllxZe4hRgkOZiUR3gSFkgAh3pTEyqrU ovz4otKc1OJDjD5AV01klhJNzgdGYl5JvKGxibmpsamliYWJmSUOYSVx3maPlAAhgfTEktTs 1NSC1CKYcUwcnFINjGsCDDWer3LN026XUlbl+3ej77QF85IfgjLVpjmPA5Vzbs4vWxFSvmXH 4+iLayuncfJsm2uaf6/X59L6U067eHVfTK0+dO5NnNY0/ti7ntMWHstYe+HEwbsdRTrrOcxu dk04rL25fsnJN25NZzdX7/kpsvTHuxPrn3BEzFo7a2X4ZtZ5r49oT2xTYinOSDTUYi4qTgQA 0ISwq6MCAAA= X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This patch enables device tree based discovery support for DP driver. The driver is modified to handle platform data in both the cases: with DT and non-DT. DP-PHY should be regarded as a seperate device node while being passed from device tree list, and device node for DP should contain DP-PHY as child node with property name "samsung,dp_phy" associated with it. Signed-off-by: Ajay Kumar --- drivers/video/exynos/exynos_dp_core.c | 168 ++++++++++++++++++++++++++++++--- drivers/video/exynos/exynos_dp_core.h | 2 + 2 files changed, 156 insertions(+), 14 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index cdc1398..74f18f2 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -18,6 +18,7 @@ #include #include #include +#include #include