brintos

brintos / linux-shallow public Read only

0
0
Text · 1.8 KiB · 08b02ec Raw
84 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/rockchip,vdec.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip Video Decoder (VDec)8 9maintainers:10  - Heiko Stuebner <heiko@sntech.de>11 12description: |-13  The Rockchip rk3399 has a stateless Video Decoder that can decodes H.264,14  HEVC an VP9 streams.15 16properties:17  compatible:18    oneOf:19      - const: rockchip,rk3399-vdec20      - items:21          - enum:22              - rockchip,rk3228-vdec23              - rockchip,rk3328-vdec24          - const: rockchip,rk3399-vdec25 26  reg:27    maxItems: 128 29  interrupts:30    maxItems: 131 32  clocks:33    items:34      - description: The Video Decoder AXI interface clock35      - description: The Video Decoder AHB interface clock36      - description: The Video Decoded CABAC clock37      - description: The Video Decoder core clock38 39  clock-names:40    items:41      - const: axi42      - const: ahb43      - const: cabac44      - const: core45 46  assigned-clocks: true47 48  assigned-clock-rates: true49 50  power-domains:51    maxItems: 152 53  iommus:54    maxItems: 155 56required:57  - compatible58  - reg59  - interrupts60  - clocks61  - clock-names62  - power-domains63 64additionalProperties: false65 66examples:67  - |68    #include <dt-bindings/interrupt-controller/arm-gic.h>69    #include <dt-bindings/clock/rk3399-cru.h>70    #include <dt-bindings/power/rk3399-power.h>71 72    vdec: video-codec@ff660000 {73        compatible = "rockchip,rk3399-vdec";74        reg = <0xff660000 0x400>;75        interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;76        clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,77                 <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;78        clock-names = "axi", "ahb", "cabac", "core";79        power-domains = <&power RK3399_PD_VDU>;80        iommus = <&vdec_mmu>;81    };82 83...84