ARM: dts: exynos4210-trats: add s5k5baf sensor support
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 10 May 2013 13:16:07 +0000 (15:16 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:42:44 +0000 (11:42 +0900)
Added:
- i2c-gpio bus for the sensor,
- required regulators,
- MIPI-CSIS1 node,
- sensor node.

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

index 5c68f44..a399016 100644 (file)
                        gpio = <&gpe2 5 0>;
                        enable-active-high;
                };
+
+               vt_core_15v_reg: regulator@5 {
+                       compatible = "regulator-fixed";
+                       reg = <5>;
+                       regulator-name = "VT_CORE_1.5V";
+                       regulator-min-microvolt = <1500000>;
+                       regulator-max-microvolt = <1500000>;
+                       gpio = <&gpe2 2 0>;
+                       enable-active-high;
+               };
        };
 
        sdhci_emmc: sdhci@12510000 {
                };
        };
 
+       i2c-gpio {
+               compatible = "i2c-gpio";
+               gpios = <&gpc1 0 0>, <&gpc1 2 0>;
+               i2c-gpio,delay-us = <2>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "okay";
+
+               s5k5bafx@2d {
+                       compatible = "samsung,s5k5baf";
+                       reg = <0x2d>;
+                       vdda-supply = <&cam_io_en_reg>;
+                       vdd_reg-supply = <&vt_core_15v_reg>;
+                       vddio-supply = <&vtcam_reg>;
+                       gpios = <&gpl2 1 1>,
+                               <&gpl2 0 1>;
+                       clock-frequency = <24000000>;
+
+                       port {
+                               s5k5bafx_ep: endpoint {
+                                       remote-endpoint = <&csis1_ep>;
+                               };
+                       };
+               };
+       };
+
        i2c@13860000 {
                samsung,i2c-sda-delay = <100>;
                samsung,i2c-max-bus-freq = <400000>;
                                     regulator-always-on;
                                };
 
+                               vtcam_reg: LDO12 {
+                                    regulator-name = "VT_CAM_1.8V";
+                                    regulator-min-microvolt = <1800000>;
+                                    regulator-max-microvolt = <1800000>;
+                               };
+
                                vcclcd_reg: LDO13 {
                                     regulator-name = "VCC_3.3V_LCD";
                                     regulator-min-microvolt = <3300000>;
                                };
                        };
                };
+
+               csis_1: csis@11890000 {
+                       status = "okay";
+                       vddcore-supply = <&vusb_reg>;
+                       vddio-supply = <&vmipi_reg>;
+                       clock-frequency = <160000000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       /* MIPI-CSIS1 */
+                       port@4 {
+                               reg = <4>;
+                               csis1_ep: endpoint {
+                                       remote-endpoint = <&s5k5bafx_ep>;
+                                       data-lanes = <1>;
+                                       samsung,csis-hs-settle = <6>;
+                               };
+                       };
+               };
        };
 
        mfc: codec@13400000 {