12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/chipone,icn6211.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Chipone ICN6211 MIPI-DSI to RGB Converter bridge 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Jagan Teki <jagan@amarulasolutions.com> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel Vadotdescription: | 132eb4d8dcSEmmanuel Vadot ICN6211 is MIPI-DSI to RGB Converter bridge from chipone. 142eb4d8dcSEmmanuel Vadot 152eb4d8dcSEmmanuel Vadot It has a flexible configuration of MIPI DSI signal input and 162eb4d8dcSEmmanuel Vadot produce RGB565, RGB666, RGB888 output format. 172eb4d8dcSEmmanuel Vadot 182eb4d8dcSEmmanuel Vadotproperties: 192eb4d8dcSEmmanuel Vadot compatible: 202eb4d8dcSEmmanuel Vadot enum: 212eb4d8dcSEmmanuel Vadot - chipone,icn6211 222eb4d8dcSEmmanuel Vadot 232eb4d8dcSEmmanuel Vadot reg: 242eb4d8dcSEmmanuel Vadot maxItems: 1 252eb4d8dcSEmmanuel Vadot description: virtual channel number of a DSI peripheral 262eb4d8dcSEmmanuel Vadot 27*7ef62cebSEmmanuel Vadot clock-names: 28*7ef62cebSEmmanuel Vadot const: refclk 29*7ef62cebSEmmanuel Vadot 30*7ef62cebSEmmanuel Vadot clocks: 31*7ef62cebSEmmanuel Vadot maxItems: 1 32*7ef62cebSEmmanuel Vadot description: | 33*7ef62cebSEmmanuel Vadot Optional external clock connected to REF_CLK input. 34*7ef62cebSEmmanuel Vadot The clock rate must be in 10..154 MHz range. 35*7ef62cebSEmmanuel Vadot 362eb4d8dcSEmmanuel Vadot enable-gpios: 372eb4d8dcSEmmanuel Vadot description: Bridge EN pin, chip is reset when EN is low. 382eb4d8dcSEmmanuel Vadot 392eb4d8dcSEmmanuel Vadot vdd1-supply: 402eb4d8dcSEmmanuel Vadot description: A 1.8V/2.5V/3.3V supply that power the MIPI RX. 412eb4d8dcSEmmanuel Vadot 422eb4d8dcSEmmanuel Vadot vdd2-supply: 432eb4d8dcSEmmanuel Vadot description: A 1.8V/2.5V/3.3V supply that power the PLL. 442eb4d8dcSEmmanuel Vadot 452eb4d8dcSEmmanuel Vadot vdd3-supply: 462eb4d8dcSEmmanuel Vadot description: A 1.8V/2.5V/3.3V supply that power the RGB output. 472eb4d8dcSEmmanuel Vadot 482eb4d8dcSEmmanuel Vadot ports: 492eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/ports 502eb4d8dcSEmmanuel Vadot 512eb4d8dcSEmmanuel Vadot properties: 522eb4d8dcSEmmanuel Vadot port@0: 53d5b0e70fSEmmanuel Vadot $ref: /schemas/graph.yaml#/$defs/port-base 54d5b0e70fSEmmanuel Vadot unevaluatedProperties: false 552eb4d8dcSEmmanuel Vadot description: 562eb4d8dcSEmmanuel Vadot Video port for MIPI DSI input 572eb4d8dcSEmmanuel Vadot 58d5b0e70fSEmmanuel Vadot properties: 59d5b0e70fSEmmanuel Vadot endpoint: 60d5b0e70fSEmmanuel Vadot $ref: /schemas/media/video-interfaces.yaml# 61d5b0e70fSEmmanuel Vadot unevaluatedProperties: false 62d5b0e70fSEmmanuel Vadot 63d5b0e70fSEmmanuel Vadot properties: 64d5b0e70fSEmmanuel Vadot data-lanes: 65d5b0e70fSEmmanuel Vadot description: array of physical DSI data lane indexes. 66d5b0e70fSEmmanuel Vadot minItems: 1 67d5b0e70fSEmmanuel Vadot items: 68d5b0e70fSEmmanuel Vadot - const: 1 69d5b0e70fSEmmanuel Vadot - const: 2 70d5b0e70fSEmmanuel Vadot - const: 3 71d5b0e70fSEmmanuel Vadot - const: 4 72d5b0e70fSEmmanuel Vadot 732eb4d8dcSEmmanuel Vadot port@1: 742eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 752eb4d8dcSEmmanuel Vadot description: 762eb4d8dcSEmmanuel Vadot Video port for MIPI DPI output (panel or connector). 772eb4d8dcSEmmanuel Vadot 782eb4d8dcSEmmanuel Vadot required: 792eb4d8dcSEmmanuel Vadot - port@1 802eb4d8dcSEmmanuel Vadot 812eb4d8dcSEmmanuel Vadotrequired: 822eb4d8dcSEmmanuel Vadot - compatible 832eb4d8dcSEmmanuel Vadot - reg 842eb4d8dcSEmmanuel Vadot - enable-gpios 852eb4d8dcSEmmanuel Vadot - ports 862eb4d8dcSEmmanuel Vadot 872eb4d8dcSEmmanuel VadotadditionalProperties: false 882eb4d8dcSEmmanuel Vadot 892eb4d8dcSEmmanuel Vadotexamples: 902eb4d8dcSEmmanuel Vadot - | 912eb4d8dcSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 922eb4d8dcSEmmanuel Vadot 932eb4d8dcSEmmanuel Vadot dsi { 942eb4d8dcSEmmanuel Vadot #address-cells = <1>; 952eb4d8dcSEmmanuel Vadot #size-cells = <0>; 962eb4d8dcSEmmanuel Vadot 972eb4d8dcSEmmanuel Vadot bridge@0 { 982eb4d8dcSEmmanuel Vadot compatible = "chipone,icn6211"; 992eb4d8dcSEmmanuel Vadot reg = <0>; 1002eb4d8dcSEmmanuel Vadot enable-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */ 1012eb4d8dcSEmmanuel Vadot 1022eb4d8dcSEmmanuel Vadot ports { 1032eb4d8dcSEmmanuel Vadot #address-cells = <1>; 1042eb4d8dcSEmmanuel Vadot #size-cells = <0>; 1052eb4d8dcSEmmanuel Vadot 1062eb4d8dcSEmmanuel Vadot port@0 { 1072eb4d8dcSEmmanuel Vadot reg = <0>; 1082eb4d8dcSEmmanuel Vadot 1092eb4d8dcSEmmanuel Vadot bridge_in_dsi: endpoint { 1102eb4d8dcSEmmanuel Vadot remote-endpoint = <&dsi_out_bridge>; 1112eb4d8dcSEmmanuel Vadot }; 1122eb4d8dcSEmmanuel Vadot }; 1132eb4d8dcSEmmanuel Vadot 1142eb4d8dcSEmmanuel Vadot port@1 { 1152eb4d8dcSEmmanuel Vadot reg = <1>; 1162eb4d8dcSEmmanuel Vadot 1172eb4d8dcSEmmanuel Vadot bridge_out_panel: endpoint { 1182eb4d8dcSEmmanuel Vadot remote-endpoint = <&panel_out_bridge>; 1192eb4d8dcSEmmanuel Vadot }; 1202eb4d8dcSEmmanuel Vadot }; 1212eb4d8dcSEmmanuel Vadot }; 1222eb4d8dcSEmmanuel Vadot }; 1232eb4d8dcSEmmanuel Vadot }; 124