Merge branch 'akpm' (patches from Andrew)
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / display / bridge / toshiba,tc358768.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,tc358768.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Toschiba TC358768/TC358778 Parallel RGB to MIPI DSI bridge
8
9 maintainers:
10   - Peter Ujfalusi <peter.ujfalusi@ti.com>
11
12 description: |
13   The TC358768/TC358778 is bridge device which converts RGB to DSI.
14
15 properties:
16   compatible:
17     enum:
18       - toshiba,tc358768
19       - toshiba,tc358778
20
21   reg:
22     maxItems: 1
23     description: base I2C address of the device
24
25   reset-gpios:
26     maxItems: 1
27     description: GPIO connected to active low RESX pin
28
29   vddc-supply:
30     description: Regulator for 1.2V internal core power.
31
32   vddmipi-supply:
33     description: Regulator for 1.2V for the MIPI.
34
35   vddio-supply:
36     description: Regulator for 1.8V - 3.3V IO power.
37
38   clocks:
39     maxItems: 1
40
41   clock-names:
42     const: refclk
43
44   ports:
45     $ref: /schemas/graph.yaml#/properties/ports
46
47     properties:
48       port@0:
49         $ref: /schemas/graph.yaml#/$defs/port-base
50         unevaluatedProperties: false
51         description: |
52           Video port for RGB input
53
54         properties:
55           endpoint:
56             $ref: /schemas/graph.yaml#/$defs/endpoint-base
57             unevaluatedProperties: false
58
59             properties:
60               data-lines:
61                 enum: [ 16, 18, 24 ]
62
63       port@1:
64         $ref: /schemas/graph.yaml#/properties/port
65         description: |
66           Video port for DSI output (panel or connector).
67
68     required:
69       - port@0
70       - port@1
71
72 required:
73   - compatible
74   - reg
75   - vddc-supply
76   - vddmipi-supply
77   - vddio-supply
78   - ports
79
80 additionalProperties: false
81
82 examples:
83   - |
84     #include <dt-bindings/gpio/gpio.h>
85
86     i2c1 {
87       #address-cells = <1>;
88       #size-cells = <0>;
89
90       dsi_bridge: dsi-bridge@e {
91         compatible = "toshiba,tc358768";
92         reg = <0xe>;
93
94         clocks = <&tc358768_refclk>;
95         clock-names = "refclk";
96
97         reset-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
98
99         vddc-supply = <&v1_2d>;
100         vddmipi-supply = <&v1_2d>;
101         vddio-supply = <&v3_3d>;
102
103         dsi_bridge_ports: ports {
104           #address-cells = <1>;
105           #size-cells = <0>;
106
107           port@0 {
108             reg = <0>;
109             rgb_in: endpoint {
110               remote-endpoint = <&dpi_out>;
111               data-lines = <24>;
112             };
113           };
114
115           port@1 {
116             reg = <1>;
117             dsi_out: endpoint {
118               remote-endpoint = <&lcd_in>;
119             };
120           };
121         };
122       };
123     };