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