Commit 4ccdc92c authored by Andy Yan's avatar Andy Yan Committed by Heiko Stuebner

dt-bindings: display: vop2: Add rk3588 support

The vop2 on rk3588 is similar to which on rk356x
but with 4 video ports and need to reference
more grf modules.
Signed-off-by: default avatarAndy Yan <andy.yan@rock-chips.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231211115850.1785311-1-andyshrk@163.com
parent c408af1a
...@@ -8,8 +8,8 @@ title: Rockchip SoC display controller (VOP2) ...@@ -8,8 +8,8 @@ title: Rockchip SoC display controller (VOP2)
description: description:
VOP2 (Video Output Processor v2) is the display controller for the Rockchip VOP2 (Video Output Processor v2) is the display controller for the Rockchip
series of SoCs which transfers the image data from a video memory series of SoCs which transfers the image data from a video memory buffer to
buffer to an external LCD interface. an external LCD interface.
maintainers: maintainers:
- Sandy Huang <hjc@rock-chips.com> - Sandy Huang <hjc@rock-chips.com>
...@@ -20,6 +20,7 @@ properties: ...@@ -20,6 +20,7 @@ properties:
enum: enum:
- rockchip,rk3566-vop - rockchip,rk3566-vop
- rockchip,rk3568-vop - rockchip,rk3568-vop
- rockchip,rk3588-vop
reg: reg:
items: items:
...@@ -27,8 +28,8 @@ properties: ...@@ -27,8 +28,8 @@ properties:
Must contain one entry corresponding to the base address and length Must contain one entry corresponding to the base address and length
of the register space. of the register space.
- description: - description:
Can optionally contain a second entry corresponding to Can optionally contain a second entry corresponding to the CRTC gamma
the CRTC gamma LUT address. LUT address.
reg-names: reg-names:
items: items:
...@@ -41,45 +42,63 @@ properties: ...@@ -41,45 +42,63 @@ properties:
The VOP interrupt is shared by several interrupt sources, such as The VOP interrupt is shared by several interrupt sources, such as
frame start (VSYNC), line flag and other status interrupts. frame start (VSYNC), line flag and other status interrupts.
# See compatible-specific constraints below.
clocks: clocks:
minItems: 5
items: items:
- description: Clock for ddr buffer transfer. - description: Clock for ddr buffer transfer via axi.
- description: Clock for the ahb bus to R/W the phy regs. - description: Clock for the ahb bus to R/W the regs.
- description: Pixel clock for video port 0. - description: Pixel clock for video port 0.
- description: Pixel clock for video port 1. - description: Pixel clock for video port 1.
- description: Pixel clock for video port 2. - description: Pixel clock for video port 2.
- description: Pixel clock for video port 3.
- description: Peripheral(vop grf/dsi) clock.
clock-names: clock-names:
minItems: 5
items: items:
- const: aclk - const: aclk
- const: hclk - const: hclk
- const: dclk_vp0 - const: dclk_vp0
- const: dclk_vp1 - const: dclk_vp1
- const: dclk_vp2 - const: dclk_vp2
- const: dclk_vp3
- const: pclk_vop
rockchip,grf: rockchip,grf:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
description: description:
Phandle to GRF regs used for misc control 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:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Phandle to VO GRF regs used for control the polarity of dclk/hsync/vsync of hdmi
on rk3588.
rockchip,vop-grf:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Phandle to VOP GRF regs used for control data path between vopr and hdmi/edp.
rockchip,pmu:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Phandle to PMU GRF used for query vop memory bisr status on rk3588.
ports: ports:
$ref: /schemas/graph.yaml#/properties/ports $ref: /schemas/graph.yaml#/properties/ports
properties: patternProperties:
port@0: "^port@[0-3]$":
$ref: /schemas/graph.yaml#/properties/port $ref: /schemas/graph.yaml#/properties/port
description: description: Output endpoint of VP0/1/2/3.
Output endpoint of VP0
port@1: required:
$ref: /schemas/graph.yaml#/properties/port - port@0
description:
Output endpoint of VP1
port@2: unevaluatedProperties: false
$ref: /schemas/graph.yaml#/properties/port
description:
Output endpoint of VP2
iommus: iommus:
maxItems: 1 maxItems: 1
...@@ -96,6 +115,49 @@ required: ...@@ -96,6 +115,49 @@ required:
- clock-names - clock-names
- ports - ports
allOf:
- if:
properties:
compatible:
contains:
const: rockchip,rk3588-vop
then:
properties:
clocks:
minItems: 7
clock-names:
minItems: 7
ports:
required:
- port@0
- port@1
- port@2
- port@3
required:
- rockchip,grf
- rockchip,vo1-grf
- rockchip,vop-grf
- rockchip,pmu
else:
properties:
rockchip,vo1-grf: false
rockchip,vop-grf: false
rockchip,pmu: false
clocks:
maxItems: 5
clock-names:
maxItems: 5
ports:
required:
- port@0
- port@1
- port@2
additionalProperties: false additionalProperties: false
examples: examples:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment