xref: /freebsd/sys/contrib/device-tree/Bindings/media/rockchip,vdec.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/rockchip,vdec.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Rockchip Video Decoder (VDec)
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Heiko Stuebner <heiko@sntech.de>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |-
13c66ec88fSEmmanuel Vadot  The Rockchip rk3399 has a stateless Video Decoder that can decodes H.264,
14c66ec88fSEmmanuel Vadot  HEVC an VP9 streams.
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
185956d97fSEmmanuel Vadot    oneOf:
195956d97fSEmmanuel Vadot      - const: rockchip,rk3399-vdec
205956d97fSEmmanuel Vadot      - items:
21d5b0e70fSEmmanuel Vadot          - enum:
22d5b0e70fSEmmanuel Vadot              - rockchip,rk3228-vdec
23d5b0e70fSEmmanuel Vadot              - rockchip,rk3328-vdec
245956d97fSEmmanuel Vadot          - const: rockchip,rk3399-vdec
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  reg:
27c66ec88fSEmmanuel Vadot    maxItems: 1
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  interrupts:
30c66ec88fSEmmanuel Vadot    maxItems: 1
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  clocks:
33c66ec88fSEmmanuel Vadot    items:
34c66ec88fSEmmanuel Vadot      - description: The Video Decoder AXI interface clock
35c66ec88fSEmmanuel Vadot      - description: The Video Decoder AHB interface clock
36c66ec88fSEmmanuel Vadot      - description: The Video Decoded CABAC clock
37c66ec88fSEmmanuel Vadot      - description: The Video Decoder core clock
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  clock-names:
40c66ec88fSEmmanuel Vadot    items:
41c66ec88fSEmmanuel Vadot      - const: axi
42c66ec88fSEmmanuel Vadot      - const: ahb
43c66ec88fSEmmanuel Vadot      - const: cabac
44c66ec88fSEmmanuel Vadot      - const: core
45c66ec88fSEmmanuel Vadot
465956d97fSEmmanuel Vadot  assigned-clocks: true
475956d97fSEmmanuel Vadot
485956d97fSEmmanuel Vadot  assigned-clock-rates: true
495956d97fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  power-domains:
51c66ec88fSEmmanuel Vadot    maxItems: 1
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  iommus:
54c66ec88fSEmmanuel Vadot    maxItems: 1
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadotrequired:
57c66ec88fSEmmanuel Vadot  - compatible
58c66ec88fSEmmanuel Vadot  - reg
59c66ec88fSEmmanuel Vadot  - interrupts
60c66ec88fSEmmanuel Vadot  - clocks
61c66ec88fSEmmanuel Vadot  - clock-names
62c66ec88fSEmmanuel Vadot  - power-domains
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel VadotadditionalProperties: false
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadotexamples:
67c66ec88fSEmmanuel Vadot  - |
68c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
69c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/rk3399-cru.h>
70c66ec88fSEmmanuel Vadot    #include <dt-bindings/power/rk3399-power.h>
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadot    vdec: video-codec@ff660000 {
73c66ec88fSEmmanuel Vadot        compatible = "rockchip,rk3399-vdec";
74c66ec88fSEmmanuel Vadot        reg = <0xff660000 0x400>;
75c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
76c66ec88fSEmmanuel Vadot        clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
77c66ec88fSEmmanuel Vadot                 <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;
78c66ec88fSEmmanuel Vadot        clock-names = "axi", "ahb", "cabac", "core";
79c66ec88fSEmmanuel Vadot        power-domains = <&power RK3399_PD_VDU>;
80c66ec88fSEmmanuel Vadot        iommus = <&vdec_mmu>;
81c66ec88fSEmmanuel Vadot    };
82c66ec88fSEmmanuel Vadot
83c66ec88fSEmmanuel Vadot...
84