ARM: dts: Add camera device nodes for Exynos4412 TRATS2 board
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 5 Aug 2013 17:49:44 +0000 (02:49 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 5 Aug 2013 17:49:44 +0000 (02:49 +0900)
This patch enables the front camera using the internal
camera ISP (FIMC-IS).

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos4412-trats2.dts

index cab4c0e..5558e5a 100644 (file)
                        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 */
        };
 
                        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>;
+                                               };
+                                       };
+                               };
+                       };
+               };
+       };
 };