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

dt-bindings: display: Convert connectors to DT schema

Convert the analog TV, DVI, HDMI, and VGA connector bindings to DT schema
format.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200630200216.1172566-1-robh@kernel.org

+232 -134
-31
Documentation/devicetree/bindings/display/connector/analog-tv-connector.txt
··· 1 - Analog TV Connector 2 - =================== 3 - 4 - Required properties: 5 - - compatible: "composite-video-connector" or "svideo-connector" 6 - 7 - Optional properties: 8 - - label: a symbolic name for the connector 9 - - sdtv-standards: limit the supported TV standards on a connector to the given 10 - ones. If not specified all TV standards are allowed. 11 - Possible TV standards are defined in 12 - include/dt-bindings/display/sdtv-standards.h. 13 - 14 - Required nodes: 15 - - Video port for TV input 16 - 17 - Example 18 - ------- 19 - #include <dt-bindings/display/sdtv-standards.h> 20 - 21 - tv: connector { 22 - compatible = "composite-video-connector"; 23 - label = "tv"; 24 - sdtv-standards = <(SDTV_STD_PAL | SDTV_STD_NTSC)>; 25 - 26 - port { 27 - tv_connector_in: endpoint { 28 - remote-endpoint = <&venc_out>; 29 - }; 30 - }; 31 - };
+52
Documentation/devicetree/bindings/display/connector/analog-tv-connector.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/connector/analog-tv-connector.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Analog TV Connector 8 + 9 + maintainers: 10 + - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - composite-video-connector 16 + - svideo-connector 17 + 18 + label: true 19 + 20 + sdtv-standards: 21 + description: 22 + Limit the supported TV standards on a connector to the given ones. If 23 + not specified all TV standards are allowed. Possible TV standards are 24 + defined in include/dt-bindings/display/sdtv-standards.h. 25 + $ref: /schemas/types.yaml#/definitions/uint32 26 + 27 + port: 28 + description: Connection to controller providing analog TV signals 29 + 30 + required: 31 + - compatible 32 + - port 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/display/sdtv-standards.h> 39 + 40 + connector { 41 + compatible = "composite-video-connector"; 42 + label = "tv"; 43 + sdtv-standards = <(SDTV_STD_PAL | SDTV_STD_NTSC)>; 44 + 45 + port { 46 + tv_connector_in: endpoint { 47 + remote-endpoint = <&venc_out>; 48 + }; 49 + }; 50 + }; 51 + 52 + ...
-36
Documentation/devicetree/bindings/display/connector/dvi-connector.txt
··· 1 - DVI Connector 2 - ============== 3 - 4 - Required properties: 5 - - compatible: "dvi-connector" 6 - 7 - Optional properties: 8 - - label: a symbolic name for the connector 9 - - ddc-i2c-bus: phandle to the i2c bus that is connected to DVI DDC 10 - - analog: the connector has DVI analog pins 11 - - digital: the connector has DVI digital pins 12 - - dual-link: the connector has pins for DVI dual-link 13 - - hpd-gpios: HPD GPIO number 14 - 15 - Required nodes: 16 - - Video port for DVI input 17 - 18 - Note: One (or both) of 'analog' or 'digital' must be set. 19 - 20 - Example 21 - ------- 22 - 23 - dvi0: connector@0 { 24 - compatible = "dvi-connector"; 25 - label = "dvi"; 26 - 27 - digital; 28 - 29 - ddc-i2c-bus = <&i2c3>; 30 - 31 - port { 32 - dvi_connector_in: endpoint { 33 - remote-endpoint = <&tfp410_out>; 34 - }; 35 - }; 36 - };
+70
Documentation/devicetree/bindings/display/connector/dvi-connector.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/connector/dvi-connector.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: DVI Connector 8 + 9 + maintainers: 10 + - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 11 + 12 + properties: 13 + compatible: 14 + const: dvi-connector 15 + 16 + label: true 17 + 18 + hpd-gpios: 19 + description: A GPIO line connected to HPD 20 + maxItems: 1 21 + 22 + ddc-i2c-bus: 23 + description: phandle link to the I2C controller used for DDC EDID probing 24 + $ref: /schemas/types.yaml#/definitions/phandle 25 + 26 + analog: 27 + type: boolean 28 + description: the connector has DVI analog pins 29 + 30 + digital: 31 + type: boolean 32 + description: the connector has DVI digital pins 33 + 34 + dual-link: 35 + type: boolean 36 + description: the connector has pins for DVI dual-link 37 + 38 + port: 39 + description: Connection to controller providing DVI signals 40 + 41 + required: 42 + - compatible 43 + - port 44 + 45 + anyOf: 46 + - required: 47 + - analog 48 + - required: 49 + - digital 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + - | 55 + connector { 56 + compatible = "dvi-connector"; 57 + label = "dvi"; 58 + 59 + digital; 60 + 61 + ddc-i2c-bus = <&i2c3>; 62 + 63 + port { 64 + dvi_connector_in: endpoint { 65 + remote-endpoint = <&tfp410_out>; 66 + }; 67 + }; 68 + }; 69 + 70 + ...
-31
Documentation/devicetree/bindings/display/connector/hdmi-connector.txt
··· 1 - HDMI Connector 2 - ============== 3 - 4 - Required properties: 5 - - compatible: "hdmi-connector" 6 - - type: the HDMI connector type: "a", "b", "c", "d" or "e" 7 - 8 - Optional properties: 9 - - label: a symbolic name for the connector 10 - - hpd-gpios: HPD GPIO number 11 - - ddc-i2c-bus: phandle link to the I2C controller used for DDC EDID probing 12 - - ddc-en-gpios: signal to enable DDC bus 13 - 14 - Required nodes: 15 - - Video port for HDMI input 16 - 17 - Example 18 - ------- 19 - 20 - hdmi0: connector@1 { 21 - compatible = "hdmi-connector"; 22 - label = "hdmi"; 23 - 24 - type = "a"; 25 - 26 - port { 27 - hdmi_connector_in: endpoint { 28 - remote-endpoint = <&tpd12s015_out>; 29 - }; 30 - }; 31 - };
+64
Documentation/devicetree/bindings/display/connector/hdmi-connector.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/connector/hdmi-connector.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: HDMI Connector 8 + 9 + maintainers: 10 + - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 11 + 12 + properties: 13 + compatible: 14 + const: hdmi-connector 15 + 16 + type: 17 + description: The HDMI connector type 18 + enum: 19 + - a # Standard full size 20 + - b # Never deployed? 21 + - c # Mini 22 + - d # Micro 23 + - e # automotive 24 + 25 + label: true 26 + 27 + hpd-gpios: 28 + description: A GPIO line connected to HPD 29 + maxItems: 1 30 + 31 + ddc-i2c-bus: 32 + description: phandle link to the I2C controller used for DDC EDID probing 33 + $ref: /schemas/types.yaml#/definitions/phandle 34 + 35 + ddc-en-gpios: 36 + description: GPIO signal to enable DDC bus 37 + maxItems: 1 38 + 39 + port: 40 + description: Connection to controller providing HDMI signals 41 + 42 + required: 43 + - compatible 44 + - port 45 + - type 46 + 47 + additionalProperties: false 48 + 49 + examples: 50 + - | 51 + connector { 52 + compatible = "hdmi-connector"; 53 + label = "hdmi"; 54 + 55 + type = "a"; 56 + 57 + port { 58 + hdmi_connector_in: endpoint { 59 + remote-endpoint = <&tpd12s015_out>; 60 + }; 61 + }; 62 + }; 63 + 64 + ...
-36
Documentation/devicetree/bindings/display/connector/vga-connector.txt
··· 1 - VGA Connector 2 - ============= 3 - 4 - Required properties: 5 - 6 - - compatible: "vga-connector" 7 - 8 - Optional properties: 9 - 10 - - label: a symbolic name for the connector corresponding to a hardware label 11 - - ddc-i2c-bus: phandle to the I2C bus that is connected to VGA DDC 12 - 13 - Required nodes: 14 - 15 - The VGA connector internal connections are modeled using the OF graph bindings 16 - specified in Documentation/devicetree/bindings/graph.txt. 17 - 18 - The VGA connector has a single port that must be connected to a video source 19 - port. 20 - 21 - 22 - Example 23 - ------- 24 - 25 - vga0: connector@0 { 26 - compatible = "vga-connector"; 27 - label = "vga"; 28 - 29 - ddc-i2c-bus = <&i2c3>; 30 - 31 - port { 32 - vga_connector_in: endpoint { 33 - remote-endpoint = <&adv7123_out>; 34 - }; 35 - }; 36 - };
+46
Documentation/devicetree/bindings/display/connector/vga-connector.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/connector/vga-connector.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: VGA Connector 8 + 9 + maintainers: 10 + - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 11 + 12 + properties: 13 + compatible: 14 + const: vga-connector 15 + 16 + label: true 17 + 18 + ddc-i2c-bus: 19 + description: phandle link to the I2C controller used for DDC EDID probing 20 + $ref: /schemas/types.yaml#/definitions/phandle 21 + 22 + port: 23 + description: Connection to controller providing VGA signals 24 + 25 + required: 26 + - compatible 27 + - port 28 + 29 + additionalProperties: false 30 + 31 + examples: 32 + - | 33 + connector { 34 + compatible = "vga-connector"; 35 + label = "vga"; 36 + 37 + ddc-i2c-bus = <&i2c3>; 38 + 39 + port { 40 + vga_connector_in: endpoint { 41 + remote-endpoint = <&adv7123_out>; 42 + }; 43 + }; 44 + }; 45 + 46 + ...