ARM: dts: exynos4412-redwood: added rear camera support
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 5 Mar 2013 09:10:28 +0000 (10:10 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:42:52 +0000 (11:42 +0900)
Added:
- camera node,
- fimc nodes,
- csis_0 node,
- camera regulators,
- s5c73m3 node.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
arch/arm/boot/dts/exynos4412-redwood.dts

index 475889a..17f704e 100644 (file)
                };
        };
 
+       i2c_0: i2c@13860000 {
+               samsung,i2c-sda-delay = <100>;
+               samsung,i2c-slave-addr = <0x10>;
+               samsung,i2c-max-bus-freq = <400000>;
+               pinctrl-0 = <&i2c0_bus>;
+               pinctrl-names = "default";
+               status = "okay";
+
+               s5c73m3@3c {
+                       compatible = "samsung,s5c73m3";
+                       reg = <0x3c>;
+                       gpios = <&gpm0 1 1>, /* ISP_STANDBY */
+                               <&gpf1 3 1>; /* ISP_RESET */
+                       vdd-int-supply = <&buck9_reg>;
+                       vddio-cis-supply = <&ldo9_reg>;
+                       vdda-supply = <&ldo17_reg>;
+                       vddio-host-supply = <&ldo18_reg>;
+                       vdd-af-supply = <&cam_af_reg>;
+                       vdd-reg-supply = <&cam_io_reg>;
+                       clock-frequency = <24000000>;
+
+                       port {
+                               s5c73m3_ep: endpoint {
+                                       remote-endpoint = <&csis0_ep>;
+                               };
+                       };
+               };
+       };
+
        i2c@13890000 {
                samsung,i2c-sda-delay = <100>;
                samsung,i2c-slave-addr = <0x10>;
                enable-active-high;
        };
 
+       cam_af_reg: voltage-regulator@2 {
+               compatible = "regulator-fixed";
+               regulator-name = "CAM_AF";
+               regulator-min-microvolt = <2800000>;
+               regulator-max-microvolt = <2800000>;
+               gpio = <&gpm0 4 0>;
+               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;
+       };
+
+       cam_isp_core_reg: voltage-regulator@4 {
+               compatible = "regulator-fixed";
+               regulator-name = "CAM_ISP_CORE_1.2V_EN";
+               regulator-min-microvolt = <1200000>;
+               regulator-max-microvolt = <1200000>;
+               gpio = <&gpm0 3 0>;
+               enable-active-high;
+               regulator-always-on;
+       };
+
        fimd0_lcd: panel {
                compatible = "samsung,s6d6aa1";
                reset-gpio = <&gpf2 1 0>;
                vusb_a-supply = <&ldo12_reg>;
        };
 
+       spi_1: spi@13930000 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&spi1_bus>;
+               status = "okay";
+
+               s5c73m3_spi: s5c73m3 {
+                       compatible = "samsung,s5c73m3";
+                       spi-max-frequency = <50000000>;
+                       reg = <0>;
+                       controller-data {
+                               cs-gpio = <&gpb 5 0>;
+                               samsung,spi-feedback-delay = <2>;
+                       };
+               };
+       };
+
+       camera {
+               status = "okay";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&cam_port_a_clk_active>;
+
+               fimc_0: fimc@11800000 {
+                       clock-frequency = <176000000>;
+                       status = "okay";
+               };
+
+               fimc_1: fimc@11810000 {
+                       clock-frequency = <176000000>;
+                       status = "okay";
+               };
+
+               fimc_2: fimc@11820000 {
+                       clock-frequency = <176000000>;
+                       status = "okay";
+               };
+
+               fimc_3: fimc@11830000 {
+                       clock-frequency = <176000000>;
+                       status = "okay";
+               };
+
+               csis_0: csis@11880000 {
+                       status = "okay";
+                       vddcore-supply = <&ldo8_reg>;
+                       vddio-supply = <&ldo10_reg>;
+                       clock-frequency = <160000000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       /* Camera C (3) MIPI CSI-2 (CSIS0) */
+                       port@3 {
+                               reg = <3>;
+                               csis0_ep: endpoint {
+                                       remote-endpoint = <&s5c73m3_ep>;
+                                       data-lanes = <1 2 3 4>;
+                                       samsung,csis-hs-settle = <12>;
+                               };
+                       };
+               };
+       };
+
        mfc: codec@13400000 {
                status = "okay";