Commit 0d705395 authored by Emil Velikov's avatar Emil Velikov Committed by Mauro Carvalho Chehab
Browse files

media: dt-bindings: Document SAMA5D4 VDEC bindings



Add devicetree binding documentation for the Hantro G1/G2 VDEC on
the Microchip SAMAS5D4 SoC.

Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 18d6c8b7
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

%YAML 1.2
---
$id: "http://devicetree.org/schemas/media/microchip,sama5d4-vdec.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Hantro G1 VPU codec implemented on Microchip SAMA5D4 SoCs

maintainers:
  - Emil Velikov <emil.velikov@collabora.com>

description:
  Hantro G1 video decode accelerator present on Microchip SAMA5D4 SoCs.

properties:
  compatible:
    const: microchip,sama5d4-vdec

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks

additionalProperties: false

examples:
  - |
        #include <dt-bindings/clock/at91.h>
        #include <dt-bindings/interrupt-controller/irq.h>

        vdec0: vdec@300000 {
                compatible = "microchip,sama5d4-vdec";
                reg = <0x00300000 0x100000>;
                interrupts = <19 IRQ_TYPE_LEVEL_HIGH 4>;
                clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
        };