arm: dts: dra76-evm: Add CAL and OV5640 nodes
authorBenoit Parrot <bparrot@ti.com>
Wed, 11 Dec 2019 14:05:56 +0000 (08:05 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 23 Jan 2020 17:14:01 +0000 (09:14 -0800)
Add device nodes for CSI2 camera board OV5640.
Add the CAL port nodes with the necessary linkage to the ov5640 nodes.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra76-evm.dts

index 1fb6f13fb5e23c4fcb25174956cdba2a7fcf17e5..a17d4875bb2e0f290dde96a384936ab35b320f53 100644 (file)
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
        };
+
+       clk_ov5640_fixed: clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <24000000>;
+       };
 };
 
 &i2c1 {
        };
 };
 
+&i2c5 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       ov5640@3c {
+               compatible = "ovti,ov5640";
+               reg = <0x3c>;
+
+               clocks = <&clk_ov5640_fixed>;
+               clock-names = "xclk";
+
+               port {
+                       csi2_cam0: endpoint {
+                               remote-endpoint = <&csi2_phy0>;
+                               clock-lanes = <0>;
+                               data-lanes = <1 2>;
+                       };
+               };
+       };
+};
+
 &cpu0 {
        vdd-supply = <&buck10_reg>;
 };
                max-bitrate = <5000000>;
        };
 };
+
+&csi2_0 {
+       csi2_phy0: endpoint {
+               remote-endpoint = <&csi2_cam0>;
+               clock-lanes = <0>;
+               data-lanes = <1 2>;
+       };
+};