5a674d9dc9
Scalar properties shouldn't have array constraints (minItems, maxItems, items). These constraints can simply be dropped with any constraints under 'items' moved up a level. Cc: Agathe Porte <agathe.porte@nokia.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Jean Delvare <jdelvare@suse.com> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org> Cc: Olivier Moysan <olivier.moysan@foss.st.com> Cc: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Cc: Jonathan Cameron <jic23@kernel.org> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Philipp Zabel <p.zabel@pengutronix.de> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Mark Brown <broonie@kernel.org> Cc: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Cc: Yunfei Dong <yunfei.dong@mediatek.com> Cc: Geert Uytterhoeven <geert+renesas@glider.be> Cc: linux-hwmon@vger.kernel.org Cc: alsa-devel@alsa-project.org Cc: linux-iio@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: linux-remoteproc@vger.kernel.org Cc: linux-spi@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20220413140121.3132837-1-robh@kernel.org
108 lines
2.0 KiB
YAML
108 lines
2.0 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/media/coda.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Chips&Media Coda multi-standard codec IP
|
|
|
|
maintainers:
|
|
- Philipp Zabel <p.zabel@pengutronix.de>
|
|
|
|
description: |-
|
|
Coda codec IPs are present in i.MX SoCs in various versions,
|
|
called VPU (Video Processing Unit).
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- const: fsl,imx27-vpu
|
|
- const: cnm,codadx6
|
|
- items:
|
|
- const: fsl,imx51-vpu
|
|
- const: cnm,codahx4
|
|
- items:
|
|
- const: fsl,imx53-vpu
|
|
- const: cnm,coda7541
|
|
- items:
|
|
- enum:
|
|
- fsl,imx6dl-vpu
|
|
- fsl,imx6q-vpu
|
|
- const: cnm,coda960
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
items:
|
|
- description: PER clock
|
|
- description: AHB interface clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: per
|
|
- const: ahb
|
|
|
|
interrupts:
|
|
minItems: 1
|
|
items:
|
|
- description: BIT processor interrupt
|
|
- description: JPEG unit interrupt
|
|
|
|
interrupt-names:
|
|
minItems: 1
|
|
items:
|
|
- const: bit
|
|
- const: jpeg
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
iram:
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
description: phandle pointing to the SRAM device node
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- clock-names
|
|
|
|
additionalProperties: false
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: cnm,coda960
|
|
then:
|
|
properties:
|
|
interrupts:
|
|
minItems: 2
|
|
|
|
interrupt-names:
|
|
minItems: 2
|
|
else:
|
|
properties:
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
power-domains: false
|
|
|
|
examples:
|
|
- |
|
|
vpu: video-codec@63ff4000 {
|
|
compatible = "fsl,imx53-vpu", "cnm,coda7541";
|
|
reg = <0x63ff4000 0x1000>;
|
|
interrupts = <9>;
|
|
clocks = <&clks 63>, <&clks 63>;
|
|
clock-names = "per", "ahb";
|
|
iram = <&ocram>;
|
|
};
|