# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/fsl,imx-capture-subsystem.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale i.MX Media Video Device

description:
  This is the media controller node for video capture support. It is a
  virtual device that lists the camera serial interface nodes that the
  media device will control

maintainers:
  - Frank Li <Frank.Li@nxp.com>

properties:
  compatible:
    const: fsl,imx-capture-subsystem

  ports:
    $ref: /schemas/types.yaml#/definitions/phandle-array
    description:
      Should contain a list of phandles pointing to camera
      sensor interface ports of IPU devices.

required:
  - compatible

additionalProperties: false

examples:
  - |
    capture-subsystem {
        compatible = "fsl,imx-capture-subsystem";
        ports = <&ipu1_csi0>, <&ipu1_csi1>;
    };
