Texas Instruments DRA7x Video Input Port (VIP)

Schema identifier ($id): "http://devicetree.org/schemas/media/ti,vip.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yemike Abhilash Chandra <y-abhilashchandra@ti.com>"

Video Input Port (VIP) can be found on devices such as DRA7xx and provides the system interface and the processing capability to connect parallel image-sensor as well as BT.656/1120 capable encoder chip to DRA7x device.

Each VIP instance supports 2 independently configurable external video input capture slices (Slice 0 and Slice 1) each providing up to two video input ports (Port A and Port B).

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,dra7-vip"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

IRQ index 0 is used for Slice0 interrupts

Item 2

IRQ index 1 is used for Slice1 interrupts

ti,ctrl-module — required here #

Reference to the device control module that provides clock-edge inversion control for VIP ports. These controls allow the VIP to sample pixel data on the correct clock edge.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Array item rules (items)

Item 1

phandle to device control module

Item 2

offset to the CTRL_CORE_SMA_SW_1 register

Item 3

Bit field to slice 0 port A

Item 4

Bit field to slice 0 port B

Item 5

Bit field to slice 1 port A

Item 6

Bit field to slice 1 port B

Maximum number of items (maxItems): 1

ports — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties matching a name pattern (patternProperties) #

^port@[0-3]$ — name matches this regular expression

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Each VIP instance supports 2 independently configurable external video input capture slices (Slice 0 and Slice 1) each providing up to two video input ports (Port A and Port B). These ports represent the following port@0 -> Slice 0 Port A port@1 -> Slice 0 Port B port@2 -> Slice 1 Port A port@3 -> Slice 1 Port B

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

bus-width — not listed as required here

Allowed values (enum): 8, 16, 24

Default value (default): 8

Required in this object (required): "compatible", "reg", "interrupts", "ti,ctrl-module", "ports"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

video@48970000 {
  compatible = "ti,dra7-vip";
  reg = <0x48970000 0x1000>;
  interrupts = <GIC_SPI 351 IRQ_TYPE_LEVEL_HIGH>,
               <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH>;
  ti,ctrl-module = <&scm_conf 0x534 0x0 0x2 0x1 0x3>;

  ports {
    #address-cells = <1>;
    #size-cells = <0>;

    vin1a: port@0 {
      reg = <0>;

      vin1a_ep: endpoint {
        remote-endpoint = <&camera1>;
        hsync-active = <1>;
        vsync-active = <1>;
        pclk-sample = <0>;
        bus-width = <8>;
      };
    };

    vin1b: port@1 {
      reg = <1>;

      vin1b_ep: endpoint {
        remote-endpoint = <&camera2>;
        hsync-active = <1>;
        vsync-active = <1>;
        pclk-sample = <0>;
        bus-width = <8>;
      };
    };

    vin2a: port@2 {
      reg = <2>;

      vin2a_ep: endpoint {
        remote-endpoint = <&camera3>;
        hsync-active = <1>;
        vsync-active = <1>;
        pclk-sample = <0>;
        bus-width = <16>;
      };
    };

    vin2b: port@3 {
      reg = <3>;

      vin2b_ep: endpoint {
        remote-endpoint = <&camera4>;
        hsync-active = <1>;
        vsync-active = <1>;
        pclk-sample = <0>;
        bus-width = <8>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2025 Texas Instruments Incorporated - http://www.ti.com/

Edit this page