mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
The Qualcomm SoC Iris video codec is an evolution of previous Venus and it comes with its own Iris Linux drivers. These new drivers were accepted under condition they actually improve state of afairs, instead of duplicating old, legacy solutions. Unfortunately binding still references common parts of Venus without actual need and benefit. For example Iris does not use fake "video-firmware" device node (fake because there is no actual device underlying it and it was added only to work around some Linux issues with IOMMU mappings). Stop referencing venus-common schema in the new Qualcomm Iris bindings and move all necessary properties, except unused "video-firmware" (no driver usage, no DTS). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Vikash Garodia <quic_vgarodia@quicinc.com> Reviewed-by: Bryan O'Donoghue <bod@kernel.org> [bod: Changed title order to dt-bindings: media] Signed-off-by: Bryan O'Donoghue <bod@kernel.org> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
200 lines
4.7 KiB
YAML
200 lines
4.7 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/media/qcom,sm8550-iris.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Qualcomm iris video encode and decode accelerators
|
|
|
|
maintainers:
|
|
- Vikash Garodia <quic_vgarodia@quicinc.com>
|
|
- Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
|
|
|
|
description:
|
|
The iris video processing unit is a video encode and decode accelerator
|
|
present on Qualcomm platforms.
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- enum:
|
|
- qcom,sa8775p-iris
|
|
- qcom,x1e80100-iris
|
|
- const: qcom,sm8550-iris
|
|
- enum:
|
|
- qcom,qcs8300-iris
|
|
- qcom,sm8550-iris
|
|
- qcom,sm8650-iris
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
power-domains:
|
|
maxItems: 4
|
|
|
|
power-domain-names:
|
|
items:
|
|
- const: venus
|
|
- const: vcodec0
|
|
- const: mxc
|
|
- const: mmcx
|
|
|
|
clocks:
|
|
maxItems: 3
|
|
|
|
clock-names:
|
|
items:
|
|
- const: iface
|
|
- const: core
|
|
- const: vcodec0_core
|
|
|
|
firmware-name:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
interconnects:
|
|
maxItems: 2
|
|
|
|
interconnect-names:
|
|
items:
|
|
- const: cpu-cfg
|
|
- const: video-mem
|
|
|
|
resets:
|
|
minItems: 1
|
|
maxItems: 3
|
|
|
|
reset-names:
|
|
minItems: 1
|
|
items:
|
|
- const: bus
|
|
- const: xo
|
|
- const: core
|
|
|
|
iommus:
|
|
maxItems: 2
|
|
|
|
dma-coherent: true
|
|
|
|
memory-region:
|
|
maxItems: 1
|
|
|
|
operating-points-v2: true
|
|
|
|
opp-table:
|
|
type: object
|
|
|
|
required:
|
|
- compatible
|
|
- power-domain-names
|
|
- interconnects
|
|
- interconnect-names
|
|
- resets
|
|
- reset-names
|
|
- iommus
|
|
- dma-coherent
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- qcom,sm8650-iris
|
|
then:
|
|
properties:
|
|
resets:
|
|
minItems: 3
|
|
reset-names:
|
|
minItems: 3
|
|
else:
|
|
properties:
|
|
resets:
|
|
maxItems: 1
|
|
reset-names:
|
|
maxItems: 1
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/qcom,rpmh.h>
|
|
#include <dt-bindings/clock/qcom,sm8550-gcc.h>
|
|
#include <dt-bindings/clock/qcom,sm8450-videocc.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/interconnect/qcom,icc.h>
|
|
#include <dt-bindings/interconnect/qcom,sm8550-rpmh.h>
|
|
#include <dt-bindings/power/qcom-rpmpd.h>
|
|
#include <dt-bindings/power/qcom,rpmhpd.h>
|
|
|
|
video-codec@aa00000 {
|
|
compatible = "qcom,sm8550-iris";
|
|
reg = <0x0aa00000 0xf0000>;
|
|
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
power-domains = <&videocc VIDEO_CC_MVS0C_GDSC>,
|
|
<&videocc VIDEO_CC_MVS0_GDSC>,
|
|
<&rpmhpd RPMHPD_MXC>,
|
|
<&rpmhpd RPMHPD_MMCX>;
|
|
power-domain-names = "venus", "vcodec0", "mxc", "mmcx";
|
|
|
|
clocks = <&gcc GCC_VIDEO_AXI0_CLK>,
|
|
<&videocc VIDEO_CC_MVS0C_CLK>,
|
|
<&videocc VIDEO_CC_MVS0_CLK>;
|
|
clock-names = "iface", "core", "vcodec0_core";
|
|
|
|
interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS
|
|
&config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ALWAYS>,
|
|
<&mmss_noc MASTER_VIDEO QCOM_ICC_TAG_ALWAYS
|
|
&mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
|
|
interconnect-names = "cpu-cfg", "video-mem";
|
|
|
|
memory-region = <&video_mem>;
|
|
|
|
resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>;
|
|
reset-names = "bus";
|
|
|
|
iommus = <&apps_smmu 0x1940 0x0000>,
|
|
<&apps_smmu 0x1947 0x0000>;
|
|
dma-coherent;
|
|
|
|
operating-points-v2 = <&iris_opp_table>;
|
|
|
|
iris_opp_table: opp-table {
|
|
compatible = "operating-points-v2";
|
|
|
|
opp-240000000 {
|
|
opp-hz = /bits/ 64 <240000000>;
|
|
required-opps = <&rpmhpd_opp_svs>,
|
|
<&rpmhpd_opp_low_svs>;
|
|
};
|
|
|
|
opp-338000000 {
|
|
opp-hz = /bits/ 64 <338000000>;
|
|
required-opps = <&rpmhpd_opp_svs>,
|
|
<&rpmhpd_opp_svs>;
|
|
};
|
|
|
|
opp-366000000 {
|
|
opp-hz = /bits/ 64 <366000000>;
|
|
required-opps = <&rpmhpd_opp_svs_l1>,
|
|
<&rpmhpd_opp_svs_l1>;
|
|
};
|
|
|
|
opp-444000000 {
|
|
opp-hz = /bits/ 64 <444000000>;
|
|
required-opps = <&rpmhpd_opp_turbo>,
|
|
<&rpmhpd_opp_turbo>;
|
|
};
|
|
|
|
opp-533333334 {
|
|
opp-hz = /bits/ 64 <533333334>;
|
|
required-opps = <&rpmhpd_opp_turbo_l1>,
|
|
<&rpmhpd_opp_turbo_l1>;
|
|
};
|
|
};
|
|
};
|
|
...
|