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

dt-bindings: display/bridge: toshiba,tc358764: convert to dtschema

Convert the Toshiba TC358764 bridge bindings to DT schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230225160252.18737-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
ab82b4f1 844f5ed5

+89 -35
-35
Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt
··· 1 - TC358764 MIPI-DSI to LVDS panel bridge 2 - 3 - Required properties: 4 - - compatible: "toshiba,tc358764" 5 - - reg: the virtual channel number of a DSI peripheral 6 - - vddc-supply: core voltage supply, 1.2V 7 - - vddio-supply: I/O voltage supply, 1.8V or 3.3V 8 - - vddlvds-supply: LVDS1/2 voltage supply, 3.3V 9 - - reset-gpios: a GPIO spec for the reset pin 10 - 11 - The device node can contain following 'port' child nodes, 12 - according to the OF graph bindings defined in [1]: 13 - 0: DSI Input, not required, if the bridge is DSI controlled 14 - 1: LVDS Output, mandatory 15 - 16 - [1]: Documentation/devicetree/bindings/media/video-interfaces.txt 17 - 18 - Example: 19 - 20 - bridge@0 { 21 - reg = <0>; 22 - compatible = "toshiba,tc358764"; 23 - vddc-supply = <&vcc_1v2_reg>; 24 - vddio-supply = <&vcc_1v8_reg>; 25 - vddlvds-supply = <&vcc_3v3_reg>; 26 - reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>; 27 - #address-cells = <1>; 28 - #size-cells = <0>; 29 - port@1 { 30 - reg = <1>; 31 - lvds_ep: endpoint { 32 - remote-endpoint = <&panel_ep>; 33 - }; 34 - }; 35 - };
+89
Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/bridge/toshiba,tc358764.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Toshiba TC358764 MIPI-DSI to LVDS bridge 8 + 9 + maintainers: 10 + - Andrzej Hajda <andrzej.hajda@intel.com> 11 + 12 + properties: 13 + compatible: 14 + const: toshiba,tc358764 15 + 16 + reg: 17 + description: Virtual channel number of a DSI peripheral 18 + maxItems: 1 19 + 20 + reset-gpios: 21 + maxItems: 1 22 + 23 + vddc-supply: 24 + description: Core voltage supply, 1.2V 25 + 26 + vddio-supply: 27 + description: I/O voltage supply, 1.8V or 3.3V 28 + 29 + vddlvds-supply: 30 + description: LVDS1/2 voltage supply, 3.3V 31 + 32 + ports: 33 + $ref: /schemas/graph.yaml#/properties/ports 34 + 35 + properties: 36 + port@0: 37 + $ref: /schemas/graph.yaml#/properties/port 38 + description: 39 + Video port for MIPI DSI input, if the bridge DSI controlled 40 + 41 + port@1: 42 + $ref: /schemas/graph.yaml#/properties/port 43 + description: 44 + Video port for LVDS output (panel or connector). 45 + 46 + required: 47 + - port@1 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - reset-gpios 53 + - vddc-supply 54 + - vddio-supply 55 + - vddlvds-supply 56 + - ports 57 + 58 + additionalProperties: false 59 + 60 + examples: 61 + - | 62 + #include <dt-bindings/gpio/gpio.h> 63 + 64 + i2c { 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + 68 + bridge@0 { 69 + compatible = "toshiba,tc358764"; 70 + reg = <0>; 71 + 72 + reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>; 73 + vddc-supply = <&vcc_1v2_reg>; 74 + vddio-supply = <&vcc_1v8_reg>; 75 + vddlvds-supply = <&vcc_3v3_reg>; 76 + 77 + ports { 78 + #address-cells = <1>; 79 + #size-cells = <0>; 80 + 81 + port@1 { 82 + reg = <1>; 83 + lvds_ep: endpoint { 84 + remote-endpoint = <&panel_ep>; 85 + }; 86 + }; 87 + }; 88 + }; 89 + };