0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/media/rockchip,vdec.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Rockchip Video Decoder (VDec) Device Tree Bindings
0008
0009 maintainers:
0010 - Heiko Stuebner <heiko@sntech.de>
0011
0012 description: |-
0013 The Rockchip rk3399 has a stateless Video Decoder that can decodes H.264,
0014 HEVC an VP9 streams.
0015
0016 properties:
0017 compatible:
0018 oneOf:
0019 - const: rockchip,rk3399-vdec
0020 - items:
0021 - enum:
0022 - rockchip,rk3228-vdec
0023 - rockchip,rk3328-vdec
0024 - const: rockchip,rk3399-vdec
0025
0026 reg:
0027 maxItems: 1
0028
0029 interrupts:
0030 maxItems: 1
0031
0032 clocks:
0033 items:
0034 - description: The Video Decoder AXI interface clock
0035 - description: The Video Decoder AHB interface clock
0036 - description: The Video Decoded CABAC clock
0037 - description: The Video Decoder core clock
0038
0039 clock-names:
0040 items:
0041 - const: axi
0042 - const: ahb
0043 - const: cabac
0044 - const: core
0045
0046 assigned-clocks: true
0047
0048 assigned-clock-rates: true
0049
0050 power-domains:
0051 maxItems: 1
0052
0053 iommus:
0054 maxItems: 1
0055
0056 required:
0057 - compatible
0058 - reg
0059 - interrupts
0060 - clocks
0061 - clock-names
0062 - power-domains
0063
0064 additionalProperties: false
0065
0066 examples:
0067 - |
0068 #include <dt-bindings/interrupt-controller/arm-gic.h>
0069 #include <dt-bindings/clock/rk3399-cru.h>
0070 #include <dt-bindings/power/rk3399-power.h>
0071
0072 vdec: video-codec@ff660000 {
0073 compatible = "rockchip,rk3399-vdec";
0074 reg = <0xff660000 0x400>;
0075 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
0076 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
0077 <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;
0078 clock-names = "axi", "ahb", "cabac", "core";
0079 power-domains = <&power RK3399_PD_VDU>;
0080 iommus = <&vdec_mmu>;
0081 };
0082
0083 ...