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

dt-bindings: display: rockchip: dw-hdmi: fix ports description

Current port description doesn't cover all possible cases. It currently
expects one single port with two endpoints.

When the HDMI connector is described in the device tree there can be two
ports, first one going to the VOP and the second one going to the connector.

Also on SoCs which only have a single VOP there will be only one
endpoint instead of two.

This patch addresses both issues. With this there can either be a single
port ("port") , or two of them ("port@0", "port@1") when the connector
is also in the device tree. Also the first or only port can either have
one endpoint ("endpoint") for single VOP SoCs or two ("endpoint@0",
"endpoint@1") for dual VOP SoCs.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220422072841.2206452-25-s.hauer@pengutronix.de

authored by

Sascha Hauer and committed by
Heiko Stuebner
4073e420 74015e26

+9 -15
+9 -15
Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml
··· 97 97 ports: 98 98 $ref: /schemas/graph.yaml#/properties/ports 99 99 100 - properties: 101 - port: 102 - $ref: /schemas/graph.yaml#/$defs/port-base 103 - unevaluatedProperties: false 100 + patternProperties: 101 + "^port(@0)?$": 102 + $ref: /schemas/graph.yaml#/properties/port 104 103 description: Input of the DWC HDMI TX 105 - 106 104 properties: 105 + endpoint: 106 + description: Connection to the VOP 107 107 endpoint@0: 108 - $ref: /schemas/graph.yaml#/properties/endpoint 109 108 description: Connection to the VOPB 110 - 111 109 endpoint@1: 112 - $ref: /schemas/graph.yaml#/properties/endpoint 113 110 description: Connection to the VOPL 114 - 115 - required: 116 - - endpoint@0 117 - - endpoint@1 118 - 119 - required: 120 - - port 111 + properties: 112 + port@1: 113 + $ref: /schemas/graph.yaml#/properties/port 114 + description: Output of the DWC HDMI TX 121 115 122 116 rockchip,grf: 123 117 $ref: /schemas/types.yaml#/definitions/phandle