xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/chipone,icn6211.yaml (revision 3a3af6b2a160bea72509a9d5ef84e25906b0478a)
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#/properties/port
45        description:
46          Video port for MIPI DSI input
47
48      port@1:
49        $ref: /schemas/graph.yaml#/properties/port
50        description:
51          Video port for MIPI DPI output (panel or connector).
52
53    required:
54      - port@1
55
56required:
57  - compatible
58  - reg
59  - enable-gpios
60  - ports
61
62additionalProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/gpio/gpio.h>
67
68    dsi {
69      #address-cells = <1>;
70      #size-cells = <0>;
71
72      bridge@0 {
73        compatible = "chipone,icn6211";
74        reg = <0>;
75        enable-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */
76
77        ports {
78          #address-cells = <1>;
79          #size-cells = <0>;
80
81          port@0 {
82            reg = <0>;
83
84            bridge_in_dsi: endpoint {
85              remote-endpoint = <&dsi_out_bridge>;
86            };
87          };
88
89          port@1 {
90            reg = <1>;
91
92            bridge_out_panel: endpoint {
93              remote-endpoint = <&panel_out_bridge>;
94            };
95          };
96        };
97      };
98    };
99