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/waveshare,dsi2dpi.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Waveshare MIPI-DSI to DPI Converter bridge 8 9maintainers: 10 - Joseph Guo <qijian.guo@nxp.com> 11 12description: 13 Waveshare bridge board is part of Waveshare panel which converts DSI to DPI 14 or LVDS. 15 16properties: 17 compatible: 18 enum: 19 - waveshare,dsi2dpi 20 - waveshare,dsi2lvds 21 22 reg: 23 maxItems: 1 24 description: base I2C address of the device 25 26 power-supply: true 27 28 ports: 29 $ref: /schemas/graph.yaml#/properties/ports 30 31 properties: 32 port@0: 33 $ref: /schemas/graph.yaml#/$defs/port-base 34 unevaluatedProperties: false 35 description: 36 Video port for MIPI DSI input 37 38 properties: 39 endpoint: 40 $ref: /schemas/media/video-interfaces.yaml# 41 unevaluatedProperties: false 42 43 properties: 44 data-lanes: 45 description: array of physical DSI data lane indexes. 46 minItems: 1 47 items: 48 - const: 1 49 - const: 2 50 - const: 3 51 - const: 4 52 53 required: 54 - data-lanes 55 56 port@1: 57 $ref: /schemas/graph.yaml#/properties/port 58 description: 59 Video port for MIPI DPI or LVDS output to the panel. 60 61 required: 62 - port@0 63 - port@1 64 65required: 66 - compatible 67 - reg 68 - ports 69 - power-supply 70 71additionalProperties: false 72 73examples: 74 - | 75 76 i2c { 77 #address-cells = <1>; 78 #size-cells = <0>; 79 80 bridge@45 { 81 compatible = "waveshare,dsi2dpi"; 82 reg = <0x45>; 83 power-supply = <®_3p3v>; 84 85 ports { 86 #address-cells = <1>; 87 #size-cells = <0>; 88 89 port@0 { 90 reg = <0>; 91 92 waveshare_from_dsim: endpoint { 93 data-lanes = <1 2>; 94 remote-endpoint = <&dsim_to_waveshare>; 95 }; 96 }; 97 98 port@1 { 99 reg = <1>; 100 101 waveshare_to_panel: endpoint { 102 remote-endpoint = <&panel_to_waveshare>; 103 }; 104 }; 105 }; 106 }; 107 }; 108 109... 110