1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/media/qcom,sm8250-venus.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Qualcomm SM8250 Venus video encode and decode accelerators 8 9maintainers: 10 - Stanimir Varbanov <stanimir.varbanov@linaro.org> 11 12description: | 13 The Venus IP is a video encode and decode accelerator present 14 on Qualcomm platforms 15 16allOf: 17 - $ref: qcom,venus-common.yaml# 18 19properties: 20 compatible: 21 const: qcom,sm8250-venus 22 23 power-domains: 24 minItems: 2 25 maxItems: 3 26 27 power-domain-names: 28 minItems: 2 29 items: 30 - const: venus 31 - const: vcodec0 32 - const: mx 33 34 clocks: 35 maxItems: 3 36 37 clock-names: 38 items: 39 - const: iface 40 - const: core 41 - const: vcodec0_core 42 43 iommus: 44 maxItems: 1 45 46 interconnects: 47 maxItems: 2 48 49 interconnect-names: 50 items: 51 - const: cpu-cfg 52 - const: video-mem 53 54 resets: 55 maxItems: 2 56 57 reset-names: 58 items: 59 - const: bus 60 - const: core 61 62 video-decoder: 63 type: object 64 65 properties: 66 compatible: 67 const: venus-decoder 68 69 required: 70 - compatible 71 72 additionalProperties: false 73 74 video-encoder: 75 type: object 76 77 properties: 78 compatible: 79 const: venus-encoder 80 81 required: 82 - compatible 83 84 additionalProperties: false 85 86required: 87 - compatible 88 - power-domain-names 89 - interconnects 90 - interconnect-names 91 - iommus 92 - resets 93 - reset-names 94 - video-decoder 95 - video-encoder 96 97unevaluatedProperties: false 98 99examples: 100 - | 101 #include <dt-bindings/interrupt-controller/arm-gic.h> 102 #include <dt-bindings/clock/qcom,videocc-sm8250.h> 103 #include <dt-bindings/interconnect/qcom,sm8250.h> 104 #include <dt-bindings/clock/qcom,gcc-sm8250.h> 105 #include <dt-bindings/power/qcom-rpmpd.h> 106 107 venus: video-codec@aa00000 { 108 compatible = "qcom,sm8250-venus"; 109 reg = <0x0aa00000 0xff000>; 110 interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; 111 power-domains = <&videocc MVS0C_GDSC>, 112 <&videocc MVS0_GDSC>, 113 <&rpmhpd SM8250_MX>; 114 power-domain-names = "venus", "vcodec0", "mx"; 115 116 clocks = <&gcc GCC_VIDEO_AXI0_CLK>, 117 <&videocc VIDEO_CC_MVS0C_CLK>, 118 <&videocc VIDEO_CC_MVS0_CLK>; 119 clock-names = "iface", "core", "vcodec0_core"; 120 121 interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_VENUS_CFG>, 122 <&mmss_noc MASTER_VIDEO_P0 &mc_virt SLAVE_EBI_CH0>; 123 interconnect-names = "cpu-cfg", "video-mem"; 124 125 iommus = <&apps_smmu 0x2100 0x0400>; 126 memory-region = <&video_mem>; 127 128 resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>, 129 <&videocc VIDEO_CC_MVS0C_CLK_ARES>; 130 reset-names = "bus", "core"; 131 132 video-decoder { 133 compatible = "venus-decoder"; 134 }; 135 136 video-encoder { 137 compatible = "venus-encoder"; 138 }; 139 }; 140