• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    type: object
46
47    properties:
48      "#address-cells":
49        const: 1
50
51      "#size-cells":
52        const: 0
53
54      port@0:
55        type: object
56        additionalProperties: false
57
58        description: |
59          Video port for RGB input
60
61        properties:
62          reg:
63            const: 0
64
65        patternProperties:
66          endpoint:
67            type: object
68            additionalProperties: false
69
70            properties:
71              data-lines:
72                enum: [ 16, 18, 24 ]
73
74              remote-endpoint: true
75
76        required:
77          - reg
78
79      port@1:
80        type: object
81        additionalProperties: false
82
83        description: |
84          Video port for DSI output (panel or connector).
85
86        properties:
87          reg:
88            const: 1
89
90        patternProperties:
91          endpoint:
92            type: object
93            additionalProperties: false
94
95            properties:
96              remote-endpoint: true
97
98        required:
99          - reg
100
101    required:
102      - "#address-cells"
103      - "#size-cells"
104      - port@0
105      - port@1
106
107required:
108  - compatible
109  - reg
110  - vddc-supply
111  - vddmipi-supply
112  - vddio-supply
113  - ports
114
115additionalProperties: false
116
117examples:
118  - |
119    #include <dt-bindings/gpio/gpio.h>
120
121    i2c1 {
122      #address-cells = <1>;
123      #size-cells = <0>;
124
125      dsi_bridge: dsi-bridge@e {
126        compatible = "toshiba,tc358768";
127        reg = <0xe>;
128
129        clocks = <&tc358768_refclk>;
130        clock-names = "refclk";
131
132        reset-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
133
134        vddc-supply = <&v1_2d>;
135        vddmipi-supply = <&v1_2d>;
136        vddio-supply = <&v3_3d>;
137
138        dsi_bridge_ports: ports {
139          #address-cells = <1>;
140          #size-cells = <0>;
141
142          port@0 {
143            reg = <0>;
144            rgb_in: endpoint {
145              remote-endpoint = <&dpi_out>;
146              data-lines = <24>;
147            };
148          };
149
150          port@1 {
151            reg = <1>;
152            dsi_out: endpoint {
153              remote-endpoint = <&lcd_in>;
154            };
155          };
156        };
157      };
158    };
159
160