Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231211115850.1785311-1-andyshrk@163.com

authored by

Andy Yan and committed by
Heiko Stuebner
4ccdc92c c408af1a

+81 -19
+81 -19
Documentation/devicetree/bindings/display/rockchip/rockchip-vop2.yaml
··· 8 8 9 9 description: 10 10 VOP2 (Video Output Processor v2) is the display controller for the Rockchip 11 - series of SoCs which transfers the image data from a video memory 12 - buffer to an external LCD interface. 11 + series of SoCs which transfers the image data from a video memory buffer to 12 + an external LCD interface. 13 13 14 14 maintainers: 15 15 - Sandy Huang <hjc@rock-chips.com> ··· 20 20 enum: 21 21 - rockchip,rk3566-vop 22 22 - rockchip,rk3568-vop 23 + - rockchip,rk3588-vop 23 24 24 25 reg: 25 26 items: ··· 28 27 Must contain one entry corresponding to the base address and length 29 28 of the register space. 30 29 - description: 31 - Can optionally contain a second entry corresponding to 32 - the CRTC gamma LUT address. 30 + Can optionally contain a second entry corresponding to the CRTC gamma 31 + LUT address. 33 32 34 33 reg-names: 35 34 items: ··· 42 41 The VOP interrupt is shared by several interrupt sources, such as 43 42 frame start (VSYNC), line flag and other status interrupts. 44 43 44 + # See compatible-specific constraints below. 45 45 clocks: 46 + minItems: 5 46 47 items: 47 - - description: Clock for ddr buffer transfer. 48 - - description: Clock for the ahb bus to R/W the phy regs. 48 + - description: Clock for ddr buffer transfer via axi. 49 + - description: Clock for the ahb bus to R/W the regs. 49 50 - description: Pixel clock for video port 0. 50 51 - description: Pixel clock for video port 1. 51 52 - description: Pixel clock for video port 2. 53 + - description: Pixel clock for video port 3. 54 + - description: Peripheral(vop grf/dsi) clock. 52 55 53 56 clock-names: 57 + minItems: 5 54 58 items: 55 59 - const: aclk 56 60 - const: hclk 57 61 - const: dclk_vp0 58 62 - const: dclk_vp1 59 63 - const: dclk_vp2 64 + - const: dclk_vp3 65 + - const: pclk_vop 60 66 61 67 rockchip,grf: 62 68 $ref: /schemas/types.yaml#/definitions/phandle 63 69 description: 64 - Phandle to GRF regs used for misc control 70 + Phandle to GRF regs used for control the polarity of dclk/hsync/vsync of DPI, 71 + also used for query vop memory bisr enable status, etc. 72 + 73 + rockchip,vo1-grf: 74 + $ref: /schemas/types.yaml#/definitions/phandle 75 + description: 76 + Phandle to VO GRF regs used for control the polarity of dclk/hsync/vsync of hdmi 77 + on rk3588. 78 + 79 + rockchip,vop-grf: 80 + $ref: /schemas/types.yaml#/definitions/phandle 81 + description: 82 + Phandle to VOP GRF regs used for control data path between vopr and hdmi/edp. 83 + 84 + rockchip,pmu: 85 + $ref: /schemas/types.yaml#/definitions/phandle 86 + description: 87 + Phandle to PMU GRF used for query vop memory bisr status on rk3588. 65 88 66 89 ports: 67 90 $ref: /schemas/graph.yaml#/properties/ports 68 91 69 - properties: 70 - port@0: 92 + patternProperties: 93 + "^port@[0-3]$": 71 94 $ref: /schemas/graph.yaml#/properties/port 72 - description: 73 - Output endpoint of VP0 95 + description: Output endpoint of VP0/1/2/3. 74 96 75 - port@1: 76 - $ref: /schemas/graph.yaml#/properties/port 77 - description: 78 - Output endpoint of VP1 97 + required: 98 + - port@0 79 99 80 - port@2: 81 - $ref: /schemas/graph.yaml#/properties/port 82 - description: 83 - Output endpoint of VP2 100 + unevaluatedProperties: false 84 101 85 102 iommus: 86 103 maxItems: 1 ··· 114 95 - clocks 115 96 - clock-names 116 97 - ports 98 + 99 + allOf: 100 + - if: 101 + properties: 102 + compatible: 103 + contains: 104 + const: rockchip,rk3588-vop 105 + then: 106 + properties: 107 + clocks: 108 + minItems: 7 109 + clock-names: 110 + minItems: 7 111 + 112 + ports: 113 + required: 114 + - port@0 115 + - port@1 116 + - port@2 117 + - port@3 118 + 119 + required: 120 + - rockchip,grf 121 + - rockchip,vo1-grf 122 + - rockchip,vop-grf 123 + - rockchip,pmu 124 + 125 + else: 126 + properties: 127 + rockchip,vo1-grf: false 128 + rockchip,vop-grf: false 129 + rockchip,pmu: false 130 + 131 + clocks: 132 + maxItems: 5 133 + clock-names: 134 + maxItems: 5 135 + 136 + ports: 137 + required: 138 + - port@0 139 + - port@1 140 + - port@2 117 141 118 142 additionalProperties: false 119 143