xref: /linux/Documentation/devicetree/bindings/display/bridge/waveshare,dsi2dpi.yaml (revision 53597deca0e38c30e6cd4ba2114fa42d2bcd85bb)
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
15properties:
16  compatible:
17    const: waveshare,dsi2dpi
18
19  reg:
20    maxItems: 1
21    description: base I2C address of the device
22
23  power-supply: true
24
25  ports:
26    $ref: /schemas/graph.yaml#/properties/ports
27
28    properties:
29      port@0:
30        $ref: /schemas/graph.yaml#/$defs/port-base
31        unevaluatedProperties: false
32        description:
33          Video port for MIPI DSI input
34
35        properties:
36          endpoint:
37            $ref: /schemas/media/video-interfaces.yaml#
38            unevaluatedProperties: false
39
40            properties:
41              data-lanes:
42                description: array of physical DSI data lane indexes.
43                minItems: 1
44                items:
45                  - const: 1
46                  - const: 2
47                  - const: 3
48                  - const: 4
49
50            required:
51              - data-lanes
52
53      port@1:
54        $ref: /schemas/graph.yaml#/properties/port
55        description:
56          Video port for MIPI DPI output panel.
57
58    required:
59      - port@0
60      - port@1
61
62required:
63  - compatible
64  - reg
65  - ports
66  - power-supply
67
68additionalProperties: false
69
70examples:
71  - |
72
73    i2c {
74      #address-cells = <1>;
75      #size-cells = <0>;
76
77      bridge@45 {
78        compatible = "waveshare,dsi2dpi";
79        reg = <0x45>;
80        power-supply = <&reg_3p3v>;
81
82        ports {
83          #address-cells = <1>;
84          #size-cells = <0>;
85
86          port@0 {
87            reg = <0>;
88
89            waveshare_from_dsim: endpoint {
90              data-lanes = <1 2>;
91              remote-endpoint = <&dsim_to_waveshare>;
92            };
93          };
94
95          port@1 {
96            reg = <1>;
97
98            waveshare_to_panel: endpoint {
99              remote-endpoint = <&panel_to_waveshare>;
100            };
101          };
102        };
103      };
104    };
105
106...
107