media: dt-bindings: mediatek,vcodec: Allow single clock for mt8183
MT8173 and MT8183 have different clocks, and consequently clock-names. Relax the number of clocks and set clock-names based on compatible. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
251301e283
commit
93b9368de8
@ -27,18 +27,12 @@ properties:
|
|||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
clocks:
|
clocks:
|
||||||
|
minItems: 1
|
||||||
maxItems: 8
|
maxItems: 8
|
||||||
|
|
||||||
clock-names:
|
clock-names:
|
||||||
items:
|
minItems: 1
|
||||||
- const: vcodecpll
|
maxItems: 8
|
||||||
- const: univpll_d2
|
|
||||||
- const: clk_cci400_sel
|
|
||||||
- const: vdec_sel
|
|
||||||
- const: vdecpll
|
|
||||||
- const: vencpll
|
|
||||||
- const: venc_lt_sel
|
|
||||||
- const: vdec_bus_clk_src
|
|
||||||
|
|
||||||
assigned-clocks: true
|
assigned-clocks: true
|
||||||
|
|
||||||
@ -88,6 +82,15 @@ allOf:
|
|||||||
required:
|
required:
|
||||||
- mediatek,scp
|
- mediatek,scp
|
||||||
|
|
||||||
|
properties:
|
||||||
|
clocks:
|
||||||
|
minItems: 1
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
clock-names:
|
||||||
|
items:
|
||||||
|
- const: vdec
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
@ -99,6 +102,22 @@ allOf:
|
|||||||
required:
|
required:
|
||||||
- mediatek,vpu
|
- mediatek,vpu
|
||||||
|
|
||||||
|
properties:
|
||||||
|
clocks:
|
||||||
|
minItems: 8
|
||||||
|
maxItems: 8
|
||||||
|
|
||||||
|
clock-names:
|
||||||
|
items:
|
||||||
|
- const: vcodecpll
|
||||||
|
- const: univpll_d2
|
||||||
|
- const: clk_cci400_sel
|
||||||
|
- const: vdec_sel
|
||||||
|
- const: vdecpll
|
||||||
|
- const: vencpll
|
||||||
|
- const: venc_lt_sel
|
||||||
|
- const: vdec_bus_clk_src
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
|
Reference in New Issue
Block a user