ARM: dts: am43x-epos-evm: Add VPFE and OV2659 entries
authorBenoit Parrot <bparrot@ti.com>
Wed, 11 Dec 2019 14:07:20 +0000 (08:07 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 23 Jan 2020 17:27:39 +0000 (09:27 -0800)
Add VPFE device nodes entries.
Add OmniVision OV2659 sensor device nodes and linkage.

Since Rev1.2a on this board the sensor source clock (xvclk) has a
dedicated 12Mhz oscillator instead of using clkout1.
Add 'audio_mstrclk' fixed clock object to represent it.

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

index 9531412..b0df370 100644 (file)
                        system-clock-frequency = <12000000>;
                };
        };
+
+       audio_mstrclk: clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <12000000>;
+       };
 };
 
 &am43xx_pinmux {
                IOVDD-supply = <&dcdc4>; /* V3_3D -> DCDC4 */
                DVDD-supply = <&ldo1>; /* V1_8AUD -> V1_8D -> LDO1 */
        };
+
+       ov2659@30 {
+               compatible = "ovti,ov2659";
+               reg = <0x30>;
+
+               clocks = <&audio_mstrclk>;
+               clock-names = "xvclk";
+
+               port {
+                       ov2659_1: endpoint {
+                               remote-endpoint = <&vpfe1_ep>;
+                               link-frequencies = /bits/ 64 <70000000>;
+                       };
+               };
+       };
 };
 
 &i2c2 {
 
        port {
                vpfe1_ep: endpoint {
-                       /* remote-endpoint = <&sensor>; add once we have it */
+                       remote-endpoint = <&ov2659_1>;
                        ti,am437x-vpfe-interface = <0>;
                        bus-width = <8>;
                        hsync-active = <0>;