arm: dts: dra72-evm-common: Add entries for the CSI2 cameras
authorBenoit Parrot <bparrot@ti.com>
Wed, 11 Dec 2019 14:05:54 +0000 (08:05 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 23 Jan 2020 17:13:50 +0000 (09:13 -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/dra72-evm-common.dtsi

index 9eabfd1502da1b423fd6b3fde3ef6bc873f399dd..01558a86af82f0fe96f36e326b5dba50099ab2bd 100644 (file)
                gpio = <&gpio5 8 GPIO_ACTIVE_HIGH>;
                enable-active-high;
        };
+
+       clk_ov5640_fixed: clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <24000000>;
+       };
 };
 
 &dra7_pmx_core {
                        line-name = "vin6_sel_s0";
                };
        };
+
+       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>;
+                       };
+               };
+       };
+
 };
 
 &uart1 {
 &pcie1_rc {
        status = "okay";
 };
+
+&csi2_0 {
+       csi2_phy0: endpoint {
+               remote-endpoint = <&csi2_cam0>;
+               clock-lanes = <0>;
+               data-lanes = <1 2>;
+       };
+};