aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2018-11-20 14:01:20 +0530
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2018-11-20 14:07:00 +0530
commitbf5e4d262fd3d0c08b4b4de8477e3eac171d0ac5 (patch)
tree73e193852ce590877e38463edafd7f26f143853e
parent7b9be3d2747bcc65225010574e7556d827a7698c (diff)
download96b-common-bf5e4d262fd3d0c08b4b4de8477e3eac171d0ac5.tar.gz
arm64: dts: hikey960: Add OV5645 camera
Add OV5645 camera under LS-I2C0 to be used with Deltavision Mezzanine. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r--arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts54
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index c6999624ed8a..62aa789b9417 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -190,6 +190,36 @@
enable-active-high;
};
+ 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;
+ };
+
+ cam0_clk: cam0-clk {
+ compatible = "fixed-clock";
+ clock-frequency = <23880000>;
+ #clock-cells = <0>;
+ };
+
firmware {
optee {
compatible = "linaro,optee-tz";
@@ -521,6 +551,30 @@
/* On Low speed expansion */
label = "LS-I2C0";
status = "okay";
+
+ ov5645: ov5645@3c {
+ compatible = "ovti,ov5645";
+ reg = <0x3c>;
+
+ enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
+ reset-gpios = <&gpio9 3 GPIO_ACTIVE_LOW>;
+
+ clocks = <&cam0_clk>;
+ clock-names = "xclk";
+ clock-frequency = <23880000>;
+
+ 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 = <&csiphy0_ep>;
+ };
+ };
+ };
};
&i2c1 {