From patchwork Mon Jul 1 15:22:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2808371 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 44DEF9F3C3 for ; Mon, 1 Jul 2013 15:25:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 20A15200D4 for ; Mon, 1 Jul 2013 15:25:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC08620140 for ; Mon, 1 Jul 2013 15:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754426Ab3GAPZi (ORCPT ); Mon, 1 Jul 2013 11:25:38 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:51454 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754423Ab3GAPZh (ORCPT ); Mon, 1 Jul 2013 11:25:37 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MP900CLNK6H58I0@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 02 Jul 2013 00:25:36 +0900 (KST) X-AuditID: cbfee61b-b7f8e6d00000524c-07-51d19f70058c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 7F.AA.21068.07F91D15; Tue, 02 Jul 2013 00:25:36 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MP90039BK2QKU00@mmp1.samsung.com>; Tue, 02 Jul 2013 00:25:36 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: t.figa@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, myungjoo.ham@samsung.com, m.szyprowski@samsung.com, phil.carmody@partner.samsung.com, j.anaszewski@samsung.com, kyungmin.park@samsung.com, devicetree-discuss@lists.ozlabs.org, Sylwester Nawrocki Subject: [PATCH v3 08/13] ARM: dts: Add camera device nodes for Exynos4412 TRATS2 board Date: Mon, 01 Jul 2013 17:22:30 +0200 Message-id: <1372692155-17653-9-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1372692155-17653-1-git-send-email-s.nawrocki@samsung.com> References: <1372692155-17653-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsVy+t9jAd2C+RcDDbpfqlocmP2Q1aL36nNG i94FV9kszja9YbfY9Pgaq8WM8/uYLNYeuctucbtxBZvF7ldLWS0Ov2lntVg/4zWLA7fH5iX1 HudnLGT0OPhuD5NH35ZVjB6fN8kFsEZx2aSk5mSWpRbp2yVwZfyauJ+9YKpoxeX2uYwNjM/5 uxg5OSQETCRen/vABGGLSVy4t56ti5GLQ0hgEaPErgOvGCGcDiaJi5/nM4JUsQkYSvQe7QOz RQQkJZoa/jCDFDELHGOS+Nl4gx0kISwQKfHv33lWEJtFQFVi794bYA28Am4SB590sHQxcgCt U5CYM8kGJMwp4C7RtOIDWKsQUMnhAz+ZJjDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yf u4kRHHzPpHcwrmqwOMQowMGoxMOrMO9ioBBrYllxZe4hRgkOZiUR3pveQCHelMTKqtSi/Pii 0pzU4kOM0hwsSuK8B1utA4UE0hNLUrNTUwtSi2CyTBycUg2MpWX+krWn59rIrqp+X5MY7P4t accyrr0ZU5531SZITNX/LBR/vGrCZxOOWeWRLq+PelkbJd06xhlct8KPO11xhuft5+cv7en5 vyU6T7TB02+3hdCL6Zm6PVPE1s9uK7KWPcHcXtGx4dXyy19UI8p3+kYdrjv+M3ipdNED0bUz X59li0upVfRTYinOSDTUYi4qTgQAMVS7pToCAAA= 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=-6.9 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 enables the front camera using the internal camera ISP (FIMC-IS). Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- arch/arm/boot/dts/exynos4412-trats2.dts | 91 +++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index b9de3b5..e9fb3de 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -62,6 +62,15 @@ enable-active-high; }; + cam_io_reg: voltage-regulator@3 { + compatible = "regulator-fixed"; + regulator-name = "CAM_SENSOR_A"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpm0 2 0>; + enable-active-high; + }; + /* More to come */ }; @@ -472,4 +481,86 @@ gpios = <&gpj0 7 0>; }; }; + + camera { + pinctrl-names = "default"; + pinctrl-0 = <&cam_port_b_clk_active>; + status = "okay"; + + fimc_0: fimc@11800000 { + clock-frequency = <160000000>; + status = "okay"; + }; + + fimc_1: fimc@11810000 { + clock-frequency = <160000000>; + status = "okay"; + }; + + fimc_2: fimc@11820000 { + clock-frequency = <160000000>; + status = "okay"; + }; + + fimc_3: fimc@11830000 { + clock-frequency = <160000000>; + status = "okay"; + }; + + csis_1: csis@11890000 { + vddcore-supply = <&ldo8_reg>; + vddio-supply = <&ldo10_reg>; + clock-frequency = <160000000>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + /* Camera D (4) MIPI CSI-2 (CSIS1) */ + port@4 { + reg = <4>; + csis1_ep: endpoint { + remote-endpoint = <&is_s5k6a3_ep>; + data-lanes = <1>; + samsung,csis-hs-settle = <18>; + samsung,csis-wclk; + }; + }; + }; + + fimc_lite_0: fimc-lite@12390000 { + status = "okay"; + }; + + fimc_lite_1: fimc-lite@123A0000 { + status = "okay"; + }; + + fimc-is@12000000 { + pinctrl-0 = <&fimc_is_uart>; + pinctrl-names = "default"; + status = "okay"; + + i2c1_isp: i2c-isp@12140000 { + pinctrl-0 = <&fimc_is_i2c1>; + pinctrl-names = "default"; + + s5k6a3@10 { + compatible = "samsung,s5k6a3"; + reg = <0x10>; + svdda-supply = <&cam_io_reg>; + svddio-supply = <&ldo19_reg>; + clock-frequency = <24000000>; + samsung,camclk-out = <1>; + gpios = <&gpm1 6 0>; + + port { + is_s5k6a3_ep: endpoint { + remote-endpoint = <&csis1_ep>; + data-lanes = <1>; + }; + }; + }; + }; + }; + }; };