Hantro G1 VPU codecs implemented on Rockchip SoCs

Schema identifier ($id): "http://devicetree.org/schemas/media/rockchip-vpu.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ezequiel Garcia <ezequiel@collabora.com>"

Hantro G1 video encode and decode accelerators present on Rockchip SoCs.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "rockchip,rk3036-vpu", "rockchip,rk3066-vpu", "rockchip,rk3288-vpu", "rockchip,rk3328-vpu", "rockchip,rk3399-vpu", "rockchip,px30-vpu", "rockchip,rk3568-vpu", "rockchip,rk3588-av1-vpu"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3128-vpu", "rockchip,rk3188-vpu"

Item 2

Exact value (const): "rockchip,rk3066-vpu"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3228-vpu"

Item 2

Exact value (const): "rockchip,rk3399-vpu"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3588-vpu121"

Item 2

Exact value (const): "rockchip,rk3568-vpu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "vdpu"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "vepu"

Item 2

Exact value (const): "vdpu"

clocks — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Maximum number of items (maxItems): 2

Rule 2

Maximum number of items (maxItems): 4

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "hclk"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "aclk_vdpu"

Item 2

Exact value (const): "hclk_vdpu"

Item 3

Exact value (const): "aclk_vepu"

Item 4

Exact value (const): "hclk_vepu"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

AXI reset line

Item 2

AXI bus interface unit reset line

Item 3

APB reset line

Item 4

APB bus interface unit reset line

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3288-power.h>

video-codec@ff9a0000 {
    compatible = "rockchip,rk3288-vpu";
    reg = <0xff9a0000 0x800>;
    interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "vepu", "vdpu";
    clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
    clock-names = "aclk", "hclk";
    power-domains = <&power RK3288_PD_VIDEO>;
    iommus = <&vpu_mmu>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page