Merge tag 'for-linus-5.11-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / display / bridge / toshiba,tc358762.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,tc358762.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Toshiba TC358762 MIPI DSI to MIPI DPI bridge
8
9 maintainers:
10   - Marek Vasut <marex@denx.de>
11
12 description: |
13   The TC358762 is bridge device which converts MIPI DSI to MIPI DPI.
14
15 properties:
16   compatible:
17     enum:
18       - toshiba,tc358762
19
20   reg:
21     maxItems: 1
22     description: virtual channel number of a DSI peripheral
23
24   vddc-supply:
25     description: Regulator for 1.2V internal core power.
26
27   ports:
28     type: object
29
30     properties:
31       "#address-cells":
32         const: 1
33
34       "#size-cells":
35         const: 0
36
37       port@0:
38         type: object
39         additionalProperties: false
40
41         description: |
42           Video port for MIPI DSI input
43
44         properties:
45           reg:
46             const: 0
47
48         patternProperties:
49           endpoint:
50             type: object
51             additionalProperties: false
52
53             properties:
54               remote-endpoint: true
55
56         required:
57           - reg
58
59       port@1:
60         type: object
61         additionalProperties: false
62
63         description: |
64           Video port for MIPI DPI output (panel or connector).
65
66         properties:
67           reg:
68             const: 1
69
70         patternProperties:
71           endpoint:
72             type: object
73             additionalProperties: false
74
75             properties:
76               remote-endpoint: true
77
78         required:
79           - reg
80
81     required:
82       - "#address-cells"
83       - "#size-cells"
84       - port@0
85       - port@1
86
87 required:
88   - compatible
89   - reg
90   - vddc-supply
91   - ports
92
93 additionalProperties: false
94
95 examples:
96   - |
97     i2c1 {
98       #address-cells = <1>;
99       #size-cells = <0>;
100
101       bridge@0 {
102         reg = <0>;
103         compatible = "toshiba,tc358762";
104         vddc-supply = <&vcc_1v2_reg>;
105
106         ports {
107           #address-cells = <1>;
108           #size-cells = <0>;
109
110           port@0 {
111             reg = <0>;
112             bridge_in: endpoint {
113               remote-endpoint = <&dsi_out>;
114             };
115           };
116
117           port@1 {
118             reg = <1>;
119             bridge_out: endpoint {
120               remote-endpoint = <&panel_in>;
121             };
122           };
123         };
124       };
125     };
126
127 ...