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
7title: Toschiba TC358768/TC358778 Parallel RGB to MIPI DSI bridge
8
9maintainers:
10  - Peter Ujfalusi <peter.ujfalusi@ti.com>
11
12description: |
13  The TC358768/TC358778 is bridge device which converts RGB to DSI.
14
15properties:
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                $ref: /schemas/types.yaml#/definitions/uint32
62                enum: [ 16, 18, 24 ]
63
64      port@1:
65        $ref: /schemas/graph.yaml#/properties/port
66        description: |
67          Video port for DSI output (panel or connector).
68
69    required:
70      - port@0
71      - port@1
72
73required:
74  - compatible
75  - reg
76  - vddc-supply
77  - vddmipi-supply
78  - vddio-supply
79  - ports
80
81allOf:
82  - $ref: ../dsi-controller.yaml#
83
84unevaluatedProperties: false
85
86examples:
87  - |
88    #include <dt-bindings/gpio/gpio.h>
89
90    i2c {
91      #address-cells = <1>;
92      #size-cells = <0>;
93
94      dsi_bridge: dsi@e {
95        compatible = "toshiba,tc358768";
96        reg = <0xe>;
97
98        clocks = <&tc358768_refclk>;
99        clock-names = "refclk";
100
101        reset-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
102
103        vddc-supply = <&v1_2d>;
104        vddmipi-supply = <&v1_2d>;
105        vddio-supply = <&v3_3d>;
106
107        dsi_bridge_ports: ports {
108          #address-cells = <1>;
109          #size-cells = <0>;
110
111          port@0 {
112            reg = <0>;
113            rgb_in: endpoint {
114              remote-endpoint = <&dpi_out>;
115              data-lines = <24>;
116            };
117          };
118
119          port@1 {
120            reg = <1>;
121            dsi_out: endpoint {
122              remote-endpoint = <&lcd_in>;
123            };
124          };
125        };
126      };
127    };
128