Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: "http://devicetree.org/schemas/media/qcom,sdm660-venus.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#" title: Qualcomm Venus video encode and decode accelerators maintainers: - Stanimir Varbanov <stanimir.varbanov@linaro.org> - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> description: | The Venus IP is a video encode and decode accelerator present on Qualcomm platforms properties: compatible: const: qcom,sdm660-venus reg: maxItems: 1 clocks: maxItems: 4 clock-names: items: - const: core - const: iface - const: bus - const: bus_throttle interconnects: maxItems: 2 interconnect-names: items: - const: cpu-cfg - const: video-mem interrupts: maxItems: 1 iommus: maxItems: 20 memory-region: maxItems: 1 power-domains: maxItems: 1 video-decoder: type: object properties: compatible: const: venus-decoder clocks: maxItems: 1 clock-names: items: - const: vcodec0_core power-domains: maxItems: 1 required: - compatible - clocks - clock-names - power-domains additionalProperties: false video-encoder: type: object properties: compatible: const: venus-encoder clocks: maxItems: 1 clock-names: items: - const: vcodec0_core power-domains: maxItems: 1 required: - compatible - clocks - clock-names - power-domains additionalProperties: false video-firmware: type: object additionalProperties: false description: | Firmware subnode is needed when the platform does not have TrustZone. properties: iommus: maxItems: 1 required: - iommus required: - compatible - reg - clocks - clock-names - interrupts - iommus - memory-region - power-domains - video-decoder - video-encoder additionalProperties: false examples: - | #include <dt-bindings/clock/qcom,mmcc-sdm660.h> #include <dt-bindings/interrupt-controller/arm-gic.h> video-codec@cc00000 { compatible = "qcom,sdm660-venus"; reg = <0x0cc00000 0xff000>; clocks = <&mmcc VIDEO_CORE_CLK>, <&mmcc VIDEO_AHB_CLK>, <&mmcc VIDEO_AXI_CLK>, <&mmcc THROTTLE_VIDEO_AXI_CLK>; clock-names = "core", "iface", "bus", "bus_throttle"; interconnects = <&gnoc 0 &mnoc 13>, <&mnoc 4 &bimc 5>; interconnect-names = "cpu-cfg", "video-mem"; interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; iommus = <&mmss_smmu 0x400>, <&mmss_smmu 0x401>, <&mmss_smmu 0x40a>, <&mmss_smmu 0x407>, <&mmss_smmu 0x40e>, <&mmss_smmu 0x40f>, <&mmss_smmu 0x408>, <&mmss_smmu 0x409>, <&mmss_smmu 0x40b>, <&mmss_smmu 0x40c>, <&mmss_smmu 0x40d>, <&mmss_smmu 0x410>, <&mmss_smmu 0x421>, <&mmss_smmu 0x428>, <&mmss_smmu 0x429>, <&mmss_smmu 0x42b>, <&mmss_smmu 0x42c>, <&mmss_smmu 0x42d>, <&mmss_smmu 0x411>, <&mmss_smmu 0x431>; memory-region = <&venus_region>; power-domains = <&mmcc VENUS_GDSC>; video-decoder { compatible = "venus-decoder"; clocks = <&mmcc VIDEO_SUBCORE0_CLK>; clock-names = "vcodec0_core"; power-domains = <&mmcc VENUS_CORE0_GDSC>; }; video-encoder { compatible = "venus-encoder"; clocks = <&mmcc VIDEO_SUBCORE0_CLK>; clock-names = "vcodec0_core"; power-domains = <&mmcc VENUS_CORE0_GDSC>; }; }; |