brintos

brintos / linux-shallow public Read only

0
0
Text · 2.5 KiB · 5cec1d0 Raw
126 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/qcom,sc7180-venus.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Qualcomm SC7180 Venus video encode and decode accelerators8 9maintainers:10  - Stanimir Varbanov <stanimir.varbanov@linaro.org>11 12description: |13  The Venus IP is a video encode and decode accelerator present14  on Qualcomm platforms15 16allOf:17  - $ref: qcom,venus-common.yaml#18 19properties:20  compatible:21    const: qcom,sc7180-venus22 23  power-domains:24    minItems: 225    maxItems: 326 27  power-domain-names:28    minItems: 229    items:30      - const: venus31      - const: vcodec032      - const: cx33 34  clocks:35    maxItems: 536 37  clock-names:38    items:39      - const: core40      - const: iface41      - const: bus42      - const: vcodec0_core43      - const: vcodec0_bus44 45  iommus:46    maxItems: 147 48  memory-region:49    maxItems: 150 51  interconnects:52    maxItems: 253 54  interconnect-names:55    items:56      - const: video-mem57      - const: cpu-cfg58 59  operating-points-v2: true60  opp-table:61    type: object62 63  video-decoder:64    type: object65 66    properties:67      compatible:68        const: venus-decoder69 70    required:71      - compatible72 73    additionalProperties: false74 75  video-encoder:76    type: object77 78    properties:79      compatible:80        const: venus-encoder81 82    required:83      - compatible84 85    additionalProperties: false86 87required:88  - compatible89  - power-domain-names90  - iommus91  - video-decoder92  - video-encoder93 94unevaluatedProperties: false95 96examples:97  - |98    #include <dt-bindings/interrupt-controller/arm-gic.h>99    #include <dt-bindings/clock/qcom,videocc-sc7180.h>100 101    venus: video-codec@aa00000 {102        compatible = "qcom,sc7180-venus";103        reg = <0x0aa00000 0xff000>;104        interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;105        power-domains = <&videocc VENUS_GDSC>,106                        <&videocc VCODEC0_GDSC>;107        power-domain-names = "venus", "vcodec0";108        clocks = <&videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,109                 <&videocc VIDEO_CC_VENUS_AHB_CLK>,110                 <&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>,111                 <&videocc VIDEO_CC_VCODEC0_CORE_CLK>,112                 <&videocc VIDEO_CC_VCODEC0_AXI_CLK>;113        clock-names = "core", "iface", "bus",114                      "vcodec0_core", "vcodec0_bus";115        iommus = <&apps_smmu 0x0c00 0x60>;116        memory-region = <&venus_mem>;117 118        video-decoder {119            compatible = "venus-decoder";120        };121 122        video-encoder {123            compatible = "venus-encoder";124        };125    };126