ARM: dts: am437x-sk-evm: Add VPFE and OV2659 entries
authorBenoit Parrot <bparrot@ti.com>
Wed, 11 Dec 2019 14:07:19 +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.

The sensor clock (xvclk) is sourced from clkout1.
Add clock entries to properly select clkout1 and set its parent
clock to sys_clkin_ck.

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

index 74eaa6a3b258c8781758a505e8b93d103f75534f..25222497f82854a9edbe213c144d3a9f4daa9634 100644 (file)
                >;
        };
 
+       clkout1_pin: pinmux_clkout1_pin {
+               pinctrl-single,pins = <
+                       0x270 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* XDMA_EVENT_INTR0/CLKOUT1 */
+               >;
+       };
+
        cpsw_default: cpsw_default {
                pinctrl-single,pins = <
                        /* Slave 1 */
        pinctrl-0 = <&i2c1_pins>;
        clock-frequency = <400000>;
 
+       ov2659@30 {
+               compatible = "ovti,ov2659";
+               reg = <0x30>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&clkout1_pin>;
+
+               clocks = <&clkout1_mux_ck>;
+               clock-names = "xvclk";
+               assigned-clocks = <&clkout1_mux_ck>;
+               assigned-clock-parents = <&clkout1_osc_div_ck>;
+
+               port {
+                       ov2659_1: endpoint {
+                               remote-endpoint = <&vpfe0_ep>;
+                               link-frequencies = /bits/ 64 <70000000>;
+                       };
+               };
+       };
+
        edt-ft5306@38 {
                status = "okay";
                compatible = "edt,edt-ft5306", "edt,edt-ft5x06";
        /* Camera port */
        port {
                vpfe0_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>;