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/chipone,icn6211.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Chipone ICN6211 MIPI-DSI to RGB Converter bridge
8
9maintainers:
10  - Jagan Teki <jagan@amarulasolutions.com>
11
12description: |
13  ICN6211 is MIPI-DSI to RGB Converter bridge from chipone.
14
15  It has a flexible configuration of MIPI DSI signal input and
16  produce RGB565, RGB666, RGB888 output format.
17
18properties:
19  compatible:
20    enum:
21      - chipone,icn6211
22
23  reg:
24    maxItems: 1
25    description: virtual channel number of a DSI peripheral
26
27  enable-gpios:
28    description: Bridge EN pin, chip is reset when EN is low.
29
30  vdd1-supply:
31    description: A 1.8V/2.5V/3.3V supply that power the MIPI RX.
32
33  vdd2-supply:
34    description: A 1.8V/2.5V/3.3V supply that power the PLL.
35
36  vdd3-supply:
37    description: A 1.8V/2.5V/3.3V supply that power the RGB output.
38
39  ports:
40    $ref: /schemas/graph.yaml#/properties/ports
41
42    properties:
43      port@0:
44        $ref: /schemas/graph.yaml#/$defs/port-base
45        unevaluatedProperties: false
46        description:
47          Video port for MIPI DSI input
48
49        properties:
50          endpoint:
51            $ref: /schemas/media/video-interfaces.yaml#
52            unevaluatedProperties: false
53
54            properties:
55              data-lanes:
56                description: array of physical DSI data lane indexes.
57                minItems: 1
58                items:
59                  - const: 1
60                  - const: 2
61                  - const: 3
62                  - const: 4
63
64      port@1:
65        $ref: /schemas/graph.yaml#/properties/port
66        description:
67          Video port for MIPI DPI output (panel or connector).
68
69    required:
70      - port@1
71
72required:
73  - compatible
74  - reg
75  - enable-gpios
76  - ports
77
78additionalProperties: false
79
80examples:
81  - |
82    #include <dt-bindings/gpio/gpio.h>
83
84    dsi {
85      #address-cells = <1>;
86      #size-cells = <0>;
87
88      bridge@0 {
89        compatible = "chipone,icn6211";
90        reg = <0>;
91        enable-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */
92
93        ports {
94          #address-cells = <1>;
95          #size-cells = <0>;
96
97          port@0 {
98            reg = <0>;
99
100            bridge_in_dsi: endpoint {
101              remote-endpoint = <&dsi_out_bridge>;
102            };
103          };
104
105          port@1 {
106            reg = <1>;
107
108            bridge_out_panel: endpoint {
109              remote-endpoint = <&panel_out_bridge>;
110            };
111          };
112        };
113      };
114    };
115