Commit 70ae805a authored by Neil Armstrong's avatar Neil Armstrong Committed by Mauro Carvalho Chehab

media: dt-bindings: media: amlogic,gx-vdec: add bindings for G12A family

Add bindings to support the Amlogic Video Decoder on the Amlogic G12A
family.

For the G12A family, a supplementary clock is needed to operate the
HEVC/VP9 decoder.
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.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 604bd5ae
...@@ -27,12 +27,15 @@ description: | ...@@ -27,12 +27,15 @@ description: |
properties: properties:
compatible: compatible:
items: oneOf:
- items:
- enum:
- amlogic,gxbb-vdec # GXBB (S905)
- amlogic,gxl-vdec # GXL (S905X, S905D)
- amlogic,gxm-vdec # GXM (S912)
- const: amlogic,gx-vdec
- enum: - enum:
- amlogic,gxbb-vdec # GXBB (S905) - amlogic,g12a-vdec # G12A (S905X2, S905D2)
- amlogic,gxl-vdec # GXL (S905X, S905D)
- amlogic,gxm-vdec # GXM (S912)
- const: amlogic,gx-vdec
interrupts: interrupts:
minItems: 2 minItems: 2
...@@ -59,13 +62,17 @@ properties: ...@@ -59,13 +62,17 @@ properties:
clocks: clocks:
minItems: 4 minItems: 4
maxItems: 5
clock-names: clock-names:
minItems: 4
maxItems: 5
items: items:
- const: dos_parser - const: dos_parser
- const: dos - const: dos
- const: vdec_1 - const: vdec_1
- const: vdec_hevc - const: vdec_hevc
- const: vdec_hevcf
amlogic,ao-sysctrl: amlogic,ao-sysctrl:
description: should point to the AOBUS sysctrl node description: should point to the AOBUS sysctrl node
...@@ -77,6 +84,31 @@ properties: ...@@ -77,6 +84,31 @@ properties:
allOf: allOf:
- $ref: /schemas/types.yaml#/definitions/phandle - $ref: /schemas/types.yaml#/definitions/phandle
allOf:
- if:
properties:
compatible:
contains:
enum:
- amlogic,gx-vdec
then:
properties:
clock-names:
maxItems: 4
- if:
properties:
compatible:
contains:
enum:
- amlogic,g12a-vdec
then:
properties:
clock-names:
minItems: 5
required: required:
- compatible - compatible
- reg - reg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment