提交 355e9472 编写于 作者: Y Yunfei Dong 提交者: Mauro Carvalho Chehab

media: dt-bindings: media: mediatek: vcodec: adapt to the 'clock-names' of different platforms

mt8195 and mt8192 have different clock numbers, separate 'clock-names'
according to compatible name.
Signed-off-by: NYunfei Dong <yunfei.dong@mediatek.com>
Signed-off-by: NAllen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: NAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Reviewed-by: NChen-Yu Tsai <wenst@chromium.org>
Tested-by: NChen-Yu Tsai <wenst@chromium.org>
Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 fa87b061
...@@ -110,15 +110,12 @@ patternProperties: ...@@ -110,15 +110,12 @@ patternProperties:
Refer to bindings/iommu/mediatek,iommu.yaml. Refer to bindings/iommu/mediatek,iommu.yaml.
clocks: clocks:
minItems: 4
maxItems: 5 maxItems: 5
clock-names: clock-names:
items: minItems: 4
- const: sel maxItems: 5
- const: soc-vdec
- const: soc-lat
- const: vdec
- const: top
assigned-clocks: assigned-clocks:
maxItems: 1 maxItems: 1
...@@ -160,6 +157,38 @@ then: ...@@ -160,6 +157,38 @@ then:
required: required:
- interrupts - interrupts
allOf:
- if:
properties:
compatible:
contains:
enum:
- mediatek,mt8192-vcodec-dec
then:
properties:
clock-names:
items:
- const: sel
- const: soc-vdec
- const: soc-lat
- const: vdec
- const: top
- if:
properties:
compatible:
contains:
enum:
- mediatek,mt8195-vcodec-dec
then:
properties:
clock-names:
items:
- const: sel
- const: vdec
- const: lat
- const: top
additionalProperties: false additionalProperties: false
examples: examples:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册