]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dts: Add OV5645 camera sensor description
authorTodor Tomov <todor.tomov@linaro.org>
Thu, 31 Mar 2016 08:45:42 +0000 (11:45 +0300)
committerTodor Tomov <todor.tomov@linaro.org>
Tue, 7 Jun 2016 15:37:38 +0000 (18:37 +0300)
Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-pins.dtsi
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 1badb82923f3bde6cfc6e0d7686d05dce979924a..8fce5d1a051fdd86aebe48f5a5b77d2997db7e6d 100644 (file)
                        bias-pull-up;
                };
        };
+
+       camera_front_default: camera_front_default {
+               pinmux_pwdn {
+                       function = "gpio";
+                       pins = "gpio33";
+               };
+               pinconf_pwdn {
+                       pins = "gpio33";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+
+               pinmux_rst {
+                       function = "gpio";
+                       pins = "gpio28";
+               };
+               pinconf_rst {
+                       pins = "gpio28";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+
+               pinmux_mclk1 {
+                       function = "cam_mclk1";
+                       pins = "gpio27";
+               };
+               pinconf_mclk1 {
+                       pins = "gpio27";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+       };
 };
index 330933f4c7a8186348b5bd3db3ed3092a229ad9a..da5cb604be7d542354f682c69c524f3329a6aa33 100644 (file)
                                                clock-lanes = <1>;
                                                data-lanes = <0 2>;
                                                qcom,settle-cnt = <0xe>;
+                                               remote-endpoint = <&ov5645_ep>;
                                        };
                                };
                        };
                        status = "disabled";
                };
 
+               camera_vdddo_1v8: fixedregulator@0 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "camera_vdddo";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       regulator-always-on;
+               };
+
+               camera_vdda_2v8: fixedregulator@1 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "camera_vdda";
+                       regulator-min-microvolt = <2800000>;
+                       regulator-max-microvolt = <2800000>;
+                       regulator-always-on;
+               };
+
+               camera_vddd_1v5: fixedregulator@2 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "camera_vddd";
+                       regulator-min-microvolt = <1500000>;
+                       regulator-max-microvolt = <1500000>;
+                       regulator-always-on;
+               };
+
                blsp_i2c6: i2c@78ba000 {
                        compatible = "qcom,i2c-qup-v2.2.1";
                        reg = <0x78ba000 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        status = "disabled";
+                       camera@78 {
+                               compatible = "ovti,ov5645";
+                               reg = <0x78>;
+
+                               enable-gpios = <&msmgpio 33 0>;
+                               reset-gpios = <&msmgpio 28 1>;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&camera_front_default>;
+
+                               clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
+                               clock-names = "xclk";
+
+                               vdddo-supply = <&camera_vdddo_1v8>;
+                               vdda-supply = <&camera_vdda_2v8>;
+                               vddd-supply = <&camera_vddd_1v5>;
+
+                               port {
+                                       ov5645_ep: endpoint {
+                                               clock-lanes = <1>;
+                                               data-lanes = <0 2>;
+                                               remote-endpoint = <&csiphy1_ep>;
+                                       };
+                               };
+                       };
                };
 
                sdhc_1: sdhci@07824000 {