# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/qcom,venus-common.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm SoC Venus Video Encode and Decode Accelerators Common Properties

maintainers:
  - Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
  - Vikash Garodia <quic_vgarodia@quicinc.com>

description: |
  The Venus IP is a video encode and decode accelerator present
  on Qualcomm platforms

properties:
  reg:
    maxItems: 1

  clocks:
    minItems: 3
    maxItems: 7

  clock-names:
    minItems: 3
    maxItems: 7

  firmware-name:
    maxItems: 1

  interrupts:
    maxItems: 1

  iommus:
    minItems: 1
    maxItems: 20

  memory-region:
    maxItems: 1

  power-domains:
    minItems: 1
    maxItems: 4

  power-domain-names:
    minItems: 1
    maxItems: 4

  video-firmware:
    type: object
    additionalProperties: false

    description: |
      Firmware subnode is needed when the platform does not
      have TrustZone.

    properties:
      iommus:
        maxItems: 1

    required:
      - iommus

required:
  - reg
  - clocks
  - clock-names
  - interrupts
  - memory-region
  - power-domains

additionalProperties: true
