hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/bridge/toshiba,tc358768.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
 
title: Toschiba TC358768/TC358778 Parallel RGB to MIPI DSI bridge
 
maintainers:
  - Peter Ujfalusi <peter.ujfalusi@ti.com>
 
description: |
  The TC358768/TC358778 is bridge device which converts RGB to DSI.
 
properties:
  compatible:
    enum:
      - toshiba,tc358768
      - toshiba,tc358778
 
  reg:
    maxItems: 1
    description: base I2C address of the device
 
  reset-gpios:
    maxItems: 1
    description: GPIO connected to active low RESX pin
 
  vddc-supply:
    description: Regulator for 1.2V internal core power.
 
  vddmipi-supply:
    description: Regulator for 1.2V for the MIPI.
 
  vddio-supply:
    description: Regulator for 1.8V - 3.3V IO power.
 
  clocks:
    maxItems: 1
 
  clock-names:
    const: refclk
 
  ports:
    type: object
 
    properties:
      "#address-cells":
        const: 1
 
      "#size-cells":
        const: 0
 
      port@0:
        type: object
        additionalProperties: false
 
        description: |
          Video port for RGB input
 
        properties:
          reg:
            const: 0
 
        patternProperties:
          endpoint:
            type: object
            additionalProperties: false
 
            properties:
              data-lines:
                enum: [ 16, 18, 24 ]
 
              remote-endpoint: true
 
        required:
          - reg
 
      port@1:
        type: object
        additionalProperties: false
 
        description: |
          Video port for DSI output (panel or connector).
 
        properties:
          reg:
            const: 1
 
        patternProperties:
          endpoint:
            type: object
            additionalProperties: false
 
            properties:
              remote-endpoint: true
 
        required:
          - reg
 
    required:
      - "#address-cells"
      - "#size-cells"
      - port@0
      - port@1
 
required:
  - compatible
  - reg
  - vddc-supply
  - vddmipi-supply
  - vddio-supply
  - ports
 
additionalProperties: false
 
examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
 
    i2c1 {
      #address-cells = <1>;
      #size-cells = <0>;
 
      dsi_bridge: dsi-bridge@e {
        compatible = "toshiba,tc358768";
        reg = <0xe>;
 
        clocks = <&tc358768_refclk>;
        clock-names = "refclk";
 
        reset-gpios = <&pcf_display_board 0 GPIO_ACTIVE_LOW>;
 
        vddc-supply = <&v1_2d>;
        vddmipi-supply = <&v1_2d>;
        vddio-supply = <&v3_3d>;
 
        dsi_bridge_ports: ports {
          #address-cells = <1>;
          #size-cells = <0>;
 
          port@0 {
            reg = <0>;
            rgb_in: endpoint {
              remote-endpoint = <&dpi_out>;
              data-lines = <24>;
            };
          };
 
          port@1 {
            reg = <1>;
            dsi_out: endpoint {
              remote-endpoint = <&lcd_in>;
            };
          };
        };
      };
    };