aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2018-11-02 12:44:38 +0530
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2018-11-02 16:18:26 +0530
commitc78e610e24f9f5676f35db81e4dcab1fc980187c (patch)
tree143fa1da9b4f2eff6aeb09138bd71e8e4efd4946
parentcc03149567b8bdbc399320c3cc0f6cd4fc5f12af (diff)
download96b-common-hisi_v4l2.tar.gz
arm64: dts: hisilicon: hikey960: Add OV5645 camera sensorhisi_v4l2
Since there is no ISP I2C available yet, bind the OV5645 camera sensor under I2C0 available at LS header. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r--arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index c98bcbc8dfba..e00705a90efe 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -196,6 +196,12 @@
method = "smc";
};
};
+
+ cam0_clk: cam0-clk {
+ compatible = "fixed-clock";
+ clock-frequency = <24000000>;
+ #clock-cells = <0>;
+ };
};
/*
@@ -521,6 +527,26 @@
/* On Low speed expansion */
label = "LS-I2C0";
status = "okay";
+
+ ov5645: ov5645@78 {
+ compatible = "ovti,ov5645";
+ reg = <0x78>;
+
+ enable-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
+ reset-gpios = <&gpio6 4 GPIO_ACTIVE_LOW>;
+
+ clocks = <&cam0_clk>;
+ clock-names = "xclk";
+ clock-frequency = <23880000>;
+
+ port {
+ ov5645_ep: endpoint {
+ clock-lanes = <1>;
+ data-lanes = <0 2>;
+ remote-endpoint = <&csiphy0_ep>;
+ };
+ };
+ };
};
&i2c1 {