gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / Documentation / devicetree / bindings / display / bridge / toshiba,tc358768.yaml
blobc036a75db8f7ce29391ee5ae464c1262bd608c5b
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#
7 title: Toschiba TC358768/TC358778 Parallel RGB to MIPI DSI bridge
9 maintainers:
10   - Peter Ujfalusi <peter.ujfalusi@ti.com>
12 description: |
13   The TC358768/TC358778 is bridge device which converts RGB to DSI.
15 properties:
16   compatible:
17     enum:
18       - toshiba,tc358768
19       - toshiba,tc358778
21   reg:
22     maxItems: 1
23     description: base I2C address of the device
25   reset-gpios:
26     maxItems: 1
27     description: GPIO connected to active low RESX pin
29   vddc-supply:
30     description: Regulator for 1.2V internal core power.
32   vddmipi-supply:
33     description: Regulator for 1.2V for the MIPI.
35   vddio-supply:
36     description: Regulator for 1.8V - 3.3V IO power.
38   clocks:
39     maxItems: 1
41   clock-names:
42     const: refclk
44   ports:
45     type: object
47     properties:
48       "#address-cells":
49         const: 1
51       "#size-cells":
52         const: 0
54       port@0:
55         type: object
56         additionalProperties: false
58         description: |
59           Video port for RGB input
61         properties:
62           reg:
63             const: 0
65         patternProperties:
66           endpoint:
67             type: object
68             additionalProperties: false
70             properties:
71               data-lines:
72                 enum: [ 16, 18, 24 ]
74               remote-endpoint: true
76         required:
77           - reg
79       port@1:
80         type: object
81         additionalProperties: false
83         description: |
84           Video port for DSI output (panel or connector).
86         properties:
87           reg:
88             const: 1
90         patternProperties:
91           endpoint:
92             type: object
93             additionalProperties: false
95             properties:
96               remote-endpoint: true
98         required:
99           - reg
101     required:
102       - "#address-cells"
103       - "#size-cells"
104       - port@0
105       - port@1
107 required:
108   - compatible
109   - reg
110   - vddc-supply
111   - vddmipi-supply
112   - vddio-supply
113   - ports
115 additionalProperties: false
117 examples:
118   - |
119     #include <dt-bindings/gpio/gpio.h>
121     i2c1 {
122       #address-cells = <1>;
123       #size-cells = <0>;
125       dsi_bridge: dsi-bridge@e {
126         compatible = "toshiba,tc358768";
127         reg = <0xe>;
129         clocks = <&tc358768_refclk>;
130         clock-names = "refclk";
132         reset-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
134         vddc-supply = <&v1_2d>;
135         vddmipi-supply = <&v1_2d>;
136         vddio-supply = <&v3_3d>;
138         dsi_bridge_ports: ports {
139           #address-cells = <1>;
140           #size-cells = <0>;
142           port@0 {
143             reg = <0>;
144             rgb_in: endpoint {
145               remote-endpoint = <&dpi_out>;
146               data-lines = <24>;
147             };
148           };
150           port@1 {
151             reg = <1>;
152             dsi_out: endpoint {
153               remote-endpoint = <&lcd_in>;
154             };
155           };
156         };
157       };
158     };
159