From patchwork Wed Jul 24 13:17:20 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: 2832722 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F0B72C0319 for ; Wed, 24 Jul 2013 13:19:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 704C2201B4 for ; Wed, 24 Jul 2013 13:19:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32D682018B for ; Wed, 24 Jul 2013 13:19:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751222Ab3GXNTe (ORCPT ); Wed, 24 Jul 2013 09:19:34 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:27641 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902Ab3GXNTd (ORCPT ); Wed, 24 Jul 2013 09:19:33 -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 <0MQF00G2BZO8HR30@mailout2.samsung.com>; Wed, 24 Jul 2013 22:19:32 +0900 (KST) X-AuditID: cbfee61b-b7efe6d000007b11-1d-51efd464ef0c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F2.67.31505.464DFE15; Wed, 24 Jul 2013 22:19:32 +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 <0MQF004OOZLALE70@mmp1.samsung.com>; Wed, 24 Jul 2013 22:19:32 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sylwester Nawrocki Subject: [PATCH v4 08/13] ARM: dts: Add camera device nodes for Exynos4412 TRATS2 board Date: Wed, 24 Jul 2013 15:17:20 +0200 Message-id: <1374671845-30373-9-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1374671845-30373-1-git-send-email-s.nawrocki@samsung.com> References: <1374671845-30373-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42I5/e+xgG7KlfeBBuvPiljMP3KO1aJ3wVU2 i7NNb9gtNj2+xmox4/w+JovDb9pZHdg8Ni+p9+jbsorR4/MmuQDmKC6blNSczLLUIn27BK6M JRM7mAqWi1U8O7mIrYHxjkAXIyeHhICJxI0751kgbDGJC/fWs3UxcnEICSxilDhxsZERwulg kvh/5xc7SBWbgKFE79E+RhBbREBSoqnhDzNIEbPAZkaJ5o0vmEASwgKRErdXXAezWQRUJXb/ 2wXWzCvgJjF190OgOAfQOgWJOZNsQExOAXeJm3sSQUwhoIoJ9xMnMPIuYGRYxSiaWpBcUJyU nmukV5yYW1yal66XnJ+7iREcMs+kdzCuarA4xCjAwajEw1sw612gEGtiWXFl7iFGCQ5mJRFe q/nvA4V4UxIrq1KL8uOLSnNSiw8xSnOwKInzHmy1DhQSSE8sSc1OTS1ILYLJMnFwSjUwVk4S toiuOFU/3z+8fl9+YkDM5C3xHa3qt1l9815zr3woxzJlJdMq2YBVE9b6VVzXu1bwuLdN/ev2 axubt/zLDHiq/Jfhe9CtqZ8vnL28QUXy8YnzNQ/fFjv9EUws7LxcM+3e5B9zNjxMXzPtXl7Y O0/b2G3VAvkOMmfl1h2Z0jfz5MMlVvdeTFBiKc5INNRiLipOBACZY7ziFQIAAA== 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 Reviewed-by: Tomasz Figa --- Changes since v3: - #address-cells/#size-cells properties in csis nodes moved to exynos4.dtsi, - added clock properties to s5k6a3 sensor node, - s/voltage-regulator@3/voltage-regulator-1. --- arch/arm/boot/dts/exynos4412-trats2.dts | 88 +++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index cab4c0e..5558e5a 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-1 { + 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,83 @@ gpios = <&gpj0 7 0>; }; }; + + camera { + pinctrl-0 = <&cam_port_b_clk_active>; + pinctrl-names = "default"; + status = "okay"; + + fimc_0: fimc@11800000 { + status = "okay"; + }; + + fimc_1: fimc@11810000 { + status = "okay"; + }; + + fimc_2: fimc@11820000 { + status = "okay"; + }; + + fimc_3: fimc@11830000 { + status = "okay"; + }; + + csis_1: csis@11890000 { + vddcore-supply = <&ldo8_reg>; + vddio-supply = <&ldo10_reg>; + clock-frequency = <160000000>; + 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>; + /* CAM_B_CLKOUT */ + clocks = <&clock_cam 1>; + clock-names = "mclk"; + samsung,camclk-out = <1>; + gpios = <&gpm1 6 0>; + + port { + is_s5k6a3_ep: endpoint { + remote-endpoint = <&csis1_ep>; + data-lanes = <1>; + }; + }; + }; + }; + }; + }; };