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/ti,sn65dsi83.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: SN65DSI83 and SN65DSI84 DSI to LVDS bridge chip 8 9maintainers: 10 - Marek Vasut <marex@denx.de> 11 12description: | 13 Texas Instruments SN65DSI83 1x Single-link MIPI DSI 14 to 1x Single-link LVDS 15 https://www.ti.com/lit/gpn/sn65dsi83 16 Texas Instruments SN65DSI84 1x Single-link MIPI DSI 17 to 1x Dual-link or 2x Single-link LVDS 18 https://www.ti.com/lit/gpn/sn65dsi84 19 20properties: 21 compatible: 22 enum: 23 - ti,sn65dsi83 24 - ti,sn65dsi84 25 26 reg: 27 enum: 28 - 0x2c 29 - 0x2d 30 31 enable-gpios: 32 maxItems: 1 33 description: GPIO specifier for bridge_en pin (active high). 34 35 ports: 36 $ref: /schemas/graph.yaml#/properties/ports 37 38 properties: 39 port@0: 40 $ref: /schemas/graph.yaml#/$defs/port-base 41 unevaluatedProperties: false 42 description: Video port for MIPI DSI Channel-A input 43 44 properties: 45 endpoint: 46 $ref: /schemas/media/video-interfaces.yaml# 47 unevaluatedProperties: false 48 49 properties: 50 data-lanes: 51 description: array of physical DSI data lane indexes. 52 minItems: 1 53 items: 54 - const: 1 55 - const: 2 56 - const: 3 57 - const: 4 58 59 port@1: 60 $ref: /schemas/graph.yaml#/$defs/port-base 61 unevaluatedProperties: false 62 description: Video port for MIPI DSI Channel-B input 63 64 properties: 65 endpoint: 66 $ref: /schemas/media/video-interfaces.yaml# 67 unevaluatedProperties: false 68 69 properties: 70 data-lanes: 71 description: array of physical DSI data lane indexes. 72 minItems: 1 73 items: 74 - const: 1 75 - const: 2 76 - const: 3 77 - const: 4 78 79 port@2: 80 $ref: /schemas/graph.yaml#/properties/port 81 description: Video port for LVDS Channel-A output (panel or bridge). 82 83 port@3: 84 $ref: /schemas/graph.yaml#/properties/port 85 description: Video port for LVDS Channel-B output (panel or bridge). 86 87 required: 88 - port@0 89 - port@2 90 91required: 92 - compatible 93 - reg 94 - enable-gpios 95 - ports 96 97allOf: 98 - if: 99 properties: 100 compatible: 101 contains: 102 const: ti,sn65dsi83 103 then: 104 properties: 105 ports: 106 properties: 107 port@1: false 108 port@3: false 109 110 - if: 111 properties: 112 compatible: 113 contains: 114 const: ti,sn65dsi84 115 then: 116 properties: 117 ports: 118 properties: 119 port@1: false 120 121additionalProperties: false 122 123examples: 124 - | 125 #include <dt-bindings/gpio/gpio.h> 126 127 i2c { 128 #address-cells = <1>; 129 #size-cells = <0>; 130 131 bridge@2d { 132 compatible = "ti,sn65dsi83"; 133 reg = <0x2d>; 134 135 enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; 136 137 ports { 138 #address-cells = <1>; 139 #size-cells = <0>; 140 141 port@0 { 142 reg = <0>; 143 144 endpoint { 145 remote-endpoint = <&dsi0_out>; 146 data-lanes = <1 2 3 4>; 147 }; 148 }; 149 150 port@2 { 151 reg = <2>; 152 153 endpoint { 154 remote-endpoint = <&panel_in_lvds>; 155 }; 156 }; 157 }; 158 }; 159 }; 160