Rockchip SoC display controller (VOP2)

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

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

VOP2 (Video Output Processor v2) is the display controller for the Rockchip series of SoCs which transfers the image data from a video memory buffer to an external LCD interface.

Maintainers (maintainers): "Sandy Huang <hjc@rock-chips.com>", "Heiko Stuebner <heiko@sntech.de>", "Andy Yan <andyshrk@163.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3566-vop", "rockchip,rk3568-vop", "rockchip,rk3576-vop", "rockchip,rk3588-vop"

reg — required here #

Array item rules (items) #

Item 1

Must contain one entry corresponding to the base address and length of the register space.

Item 2

Can optionally contain a second entry corresponding to the CRTC gamma LUT address.

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "vop"

Item 2

Exact value (const): "gamma-lut"

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

For VOP version under rk3576, the interrupt is shared by several interrupt sources, such as frame start (VSYNC), line flag and other interrupt status. For VOP version from rk3576 there is a system interrupt for bus error, and every video port has it's independent interrupts for vsync and other video port related error interrupts.

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "sys"

Item 2

Exact value (const): "vp0"

Item 3

Exact value (const): "vp1"

Item 4

Exact value (const): "vp2"

clocks — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

Clock for ddr buffer transfer via axi.

Item 2

Clock for the ahb bus to R/W the regs.

Item 3

Pixel clock for video port 0.

Item 4

Pixel clock for video port 1.

Item 5

Pixel clock for video port 2.

Item 6

This rule adds no constraints.

Item 7

This rule adds no constraints.

Item 8

This rule adds no constraints.

Item 9

This rule adds no constraints.

clock-names — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "dclk_vp0"

Item 4

Exact value (const): "dclk_vp1"

Item 5

Exact value (const): "dclk_vp2"

Item 6

This rule adds no constraints.

Item 7

This rule adds no constraints.

Item 8

This rule adds no constraints.

Item 9

This rule adds no constraints.

rockchip,grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to GRF regs used for control the polarity of dclk/hsync/vsync of DPI, also used for query vop memory bisr enable status, etc.

rockchip,vo1-grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to VO GRF regs used for control the polarity of dclk/hsync/vsync of hdmi on rk3588.

rockchip,vop-grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to VOP GRF regs used for control data path between vopr and hdmi/edp.

rockchip,pmu — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to PMU GRF used for query vop memory bisr status on rk3588.

ports — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties matching a name pattern (patternProperties) #

^port@[0-3]$ — name matches this regular expression

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Output endpoint of VP0/1/2/3.

Required in this object (required): "port@0"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3566-vop", "rockchip,rk3568-vop"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Maximum number of items (maxItems): 5

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

false — Not permitted by this property rule.

ports — not listed as required here

Required in this object (required): "port@0", "port@1", "port@2"

rockchip,vo1-grf — not listed as required here

false — Not permitted by this property rule.

rockchip,vop-grf — not listed as required here

false — Not permitted by this property rule.

rockchip,pmu — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "rockchip,grf"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3576-vop"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

This rule adds no constraints.

Item 2

This rule adds no constraints.

Item 3

This rule adds no constraints.

Item 4

This rule adds no constraints.

Item 5

This rule adds no constraints.

Item 6

Alternative pixel clock provided by HDMI PHY PLL.

clock-names — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

This rule adds no constraints.

Item 2

This rule adds no constraints.

Item 3

This rule adds no constraints.

Item 4

This rule adds no constraints.

Item 5

This rule adds no constraints.

Item 6

Exact value (const): "pll_hdmiphy0"

interrupts — not listed as required here

Minimum number of items (minItems): 4

interrupt-names — not listed as required here

Minimum number of items (minItems): 4

ports — not listed as required here

Required in this object (required): "port@0", "port@1", "port@2"

rockchip,vo1-grf — not listed as required here

false — Not permitted by this property rule.

rockchip,vop-grf — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "rockchip,grf", "rockchip,pmu"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 7

Array item rules (items)

Item 1

This rule adds no constraints.

Item 2

This rule adds no constraints.

Item 3

This rule adds no constraints.

Item 4

This rule adds no constraints.

Item 5

This rule adds no constraints.

Item 6

Pixel clock for video port 3.

Item 7

Peripheral(vop grf/dsi) clock.

Item 8

Alternative pixel clock provided by HDMI0 PHY PLL.

Item 9

Alternative pixel clock provided by HDMI1 PHY PLL.

clock-names — not listed as required here

Minimum number of items (minItems): 7

Array item rules (items)

Item 1

This rule adds no constraints.

Item 2

This rule adds no constraints.

Item 3

This rule adds no constraints.

Item 4

This rule adds no constraints.

Item 5

This rule adds no constraints.

Item 6

Exact value (const): "dclk_vp3"

Item 7

Exact value (const): "pclk_vop"

Item 8

Exact value (const): "pll_hdmiphy0"

Item 9

Exact value (const): "pll_hdmiphy1"

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

false — Not permitted by this property rule.

ports — not listed as required here

Required in this object (required): "port@0", "port@1", "port@2", "port@3"

Required in this object (required): "rockchip,grf", "rockchip,vo1-grf", "rockchip,vop-grf", "rockchip,pmu"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3568-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3568-power.h>
bus {
    #address-cells = <2>;
    #size-cells = <2>;
    vop: vop@fe040000 {
        compatible = "rockchip,rk3568-vop";
        reg = <0x0 0xfe040000 0x0 0x3000>, <0x0 0xfe044000 0x0 0x1000>;
        reg-names = "vop", "gamma-lut";
        interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cru ACLK_VOP>,
                 <&cru HCLK_VOP>,
                 <&cru DCLK_VOP0>,
                 <&cru DCLK_VOP1>,
                 <&cru DCLK_VOP2>;
        clock-names = "aclk",
                      "hclk",
                      "dclk_vp0",
                      "dclk_vp1",
                      "dclk_vp2";
        power-domains = <&power RK3568_PD_VO>;
        rockchip,grf = <&grf>;
        iommus = <&vop_mmu>;
        vop_out: ports {
            #address-cells = <1>;
            #size-cells = <0>;
            vp0: port@0 {
                reg = <0>;
                #address-cells = <1>;
                #size-cells = <0>;
            };
            vp1: port@1 {
                reg = <1>;
                #address-cells = <1>;
                #size-cells = <0>;
            };
            vp2: port@2 {
                reg = <2>;
                #address-cells = <1>;
                #size-cells = <0>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 58: See compatible-specific constraints below.

Edit this page