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 - ports 95 96allOf: 97 - if: 98 properties: 99 compatible: 100 contains: 101 const: ti,sn65dsi83 102 then: 103 properties: 104 ports: 105 properties: 106 port@1: false 107 port@3: false 108 109 - if: 110 properties: 111 compatible: 112 contains: 113 const: ti,sn65dsi84 114 then: 115 properties: 116 ports: 117 properties: 118 port@1: false 119 120additionalProperties: false 121 122examples: 123 - | 124 #include <dt-bindings/gpio/gpio.h> 125 126 i2c { 127 #address-cells = <1>; 128 #size-cells = <0>; 129 130 bridge@2d { 131 compatible = "ti,sn65dsi83"; 132 reg = <0x2d>; 133 134 enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; 135 136 ports { 137 #address-cells = <1>; 138 #size-cells = <0>; 139 140 port@0 { 141 reg = <0>; 142 143 endpoint { 144 remote-endpoint = <&dsi0_out>; 145 data-lanes = <1 2 3 4>; 146 }; 147 }; 148 149 port@2 { 150 reg = <2>; 151 152 endpoint { 153 remote-endpoint = <&panel_in_lvds>; 154 }; 155 }; 156 }; 157 }; 158 }; 159