Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 4 | $id: http://devicetree.org/schemas/display/bridge/lvds-codec.yaml# |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 7 | title: Transparent LVDS encoders and decoders |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 8 | |
| 9 | maintainers: |
| 10 | - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| 11 | |
| 12 | description: | |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 13 | This binding supports transparent LVDS encoders and decoders that don't |
| 14 | require any configuration. |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 15 | |
| 16 | LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple |
| 17 | incompatible data link layers have been used over time to transmit image data |
| 18 | to LVDS panels. This binding targets devices compatible with the following |
| 19 | specifications only. |
| 20 | |
| 21 | [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February |
| 22 | 1999 (Version 1.0), Japan Electronic Industry Development Association (JEIDA) |
| 23 | [LDI] "Open LVDS Display Interface", May 1999 (Version 0.95), National |
| 24 | Semiconductor |
| 25 | [VESA] "VESA Notebook Panel Standard", October 2007 (Version 1.0), Video |
| 26 | Electronics Standards Association (VESA) |
| 27 | |
| 28 | Those devices have been marketed under the FPD-Link and FlatLink brand names |
| 29 | among others. |
| 30 | |
| 31 | properties: |
| 32 | compatible: |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 33 | oneOf: |
| 34 | - items: |
Rob Herring | 9f60a65 | 2020-04-15 19:55:48 -0500 | [diff] [blame] | 35 | - enum: |
| 36 | - ti,ds90c185 # For the TI DS90C185 FPD-Link Serializer |
| 37 | - ti,ds90c187 # For the TI DS90C187 FPD-Link Serializer |
| 38 | - ti,sn75lvds83 # For the TI SN75LVDS83 FlatLink transmitter |
| 39 | - const: lvds-encoder # Generic LVDS encoder compatible fallback |
Fabrizio Castro | b7de4ba | 2019-11-13 15:51:28 +0000 | [diff] [blame] | 40 | - items: |
Rob Herring | 9f60a65 | 2020-04-15 19:55:48 -0500 | [diff] [blame] | 41 | - enum: |
| 42 | - ti,ds90cf384a # For the DS90CF384A FPD-Link LVDS Receiver |
| 43 | - const: lvds-decoder # Generic LVDS decoders compatible fallback |
Fabrizio Castro | cad8c44 | 2019-11-13 15:51:32 +0000 | [diff] [blame] | 44 | - enum: |
Rob Herring | 9f60a65 | 2020-04-15 19:55:48 -0500 | [diff] [blame] | 45 | - thine,thc63lvdm83d # For the THC63LVDM83D LVDS serializer |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 46 | |
| 47 | ports: |
Rob Herring | b675542 | 2021-01-04 11:07:23 -0700 | [diff] [blame] | 48 | $ref: /schemas/graph.yaml#/properties/ports |
| 49 | |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 50 | properties: |
| 51 | port@0: |
Marek Vasut | ba3e867 | 2021-10-10 16:49:18 +0200 | [diff] [blame] | 52 | $ref: /schemas/graph.yaml#/$defs/port-base |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 53 | description: | |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 54 | For LVDS encoders, port 0 is the parallel input |
| 55 | For LVDS decoders, port 0 is the LVDS input |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 56 | |
Marek Vasut | ba3e867 | 2021-10-10 16:49:18 +0200 | [diff] [blame] | 57 | properties: |
| 58 | endpoint: |
| 59 | $ref: /schemas/media/video-interfaces.yaml# |
| 60 | unevaluatedProperties: false |
| 61 | |
| 62 | properties: |
| 63 | data-mapping: |
| 64 | enum: |
| 65 | - jeida-18 |
| 66 | - jeida-24 |
| 67 | - vesa-24 |
| 68 | description: | |
| 69 | The color signals mapping order. See details in |
| 70 | Documentation/devicetree/bindings/display/panel/lvds.yaml |
| 71 | |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 72 | port@1: |
Rob Herring | b675542 | 2021-01-04 11:07:23 -0700 | [diff] [blame] | 73 | $ref: /schemas/graph.yaml#/properties/port |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 74 | description: | |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 75 | For LVDS encoders, port 1 is the LVDS output |
| 76 | For LVDS decoders, port 1 is the parallel output |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 77 | |
| 78 | required: |
| 79 | - port@0 |
| 80 | - port@1 |
| 81 | |
Fabrizio Castro | 9acfa9d | 2019-11-13 15:51:21 +0000 | [diff] [blame] | 82 | powerdown-gpios: |
| 83 | description: |
| 84 | The GPIO used to control the power down line of this device. |
| 85 | maxItems: 1 |
| 86 | |
Rob Herring | 9bfaf9c | 2020-12-21 16:46:59 -0700 | [diff] [blame] | 87 | power-supply: true |
Biju Das | 2cd9df2 | 2020-08-10 16:22:17 +0100 | [diff] [blame] | 88 | |
Marek Vasut | ba3e867 | 2021-10-10 16:49:18 +0200 | [diff] [blame] | 89 | if: |
| 90 | not: |
| 91 | properties: |
| 92 | compatible: |
| 93 | contains: |
| 94 | const: lvds-decoder |
| 95 | then: |
| 96 | properties: |
| 97 | ports: |
| 98 | properties: |
| 99 | port@0: |
| 100 | properties: |
| 101 | endpoint: |
| 102 | properties: |
| 103 | data-mapping: false |
| 104 | |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 105 | required: |
| 106 | - compatible |
| 107 | - ports |
| 108 | |
Rob Herring | 5be478f | 2020-10-02 18:41:43 -0500 | [diff] [blame] | 109 | additionalProperties: false |
| 110 | |
| 111 | |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 112 | examples: |
| 113 | - | |
| 114 | lvds-encoder { |
Fabrizio Castro | 5240272 | 2019-11-13 15:51:22 +0000 | [diff] [blame] | 115 | compatible = "ti,ds90c185", "lvds-encoder"; |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 116 | |
| 117 | ports { |
| 118 | #address-cells = <1>; |
| 119 | #size-cells = <0>; |
| 120 | |
| 121 | port@0 { |
| 122 | reg = <0>; |
| 123 | |
| 124 | lvds_enc_in: endpoint { |
| 125 | remote-endpoint = <&display_out_rgb>; |
| 126 | }; |
| 127 | }; |
| 128 | |
| 129 | port@1 { |
| 130 | reg = <1>; |
| 131 | |
| 132 | lvds_enc_out: endpoint { |
| 133 | remote-endpoint = <&lvds_panel_in>; |
| 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | }; |
| 138 | |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 139 | - | |
| 140 | lvds-decoder { |
Fabrizio Castro | b7de4ba | 2019-11-13 15:51:28 +0000 | [diff] [blame] | 141 | compatible = "ti,ds90cf384a", "lvds-decoder"; |
Fabrizio Castro | 575af8e | 2019-11-13 15:51:27 +0000 | [diff] [blame] | 142 | |
| 143 | ports { |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <0>; |
| 146 | |
| 147 | port@0 { |
| 148 | reg = <0>; |
| 149 | |
| 150 | lvds_dec_in: endpoint { |
| 151 | remote-endpoint = <&display_out_lvds>; |
| 152 | }; |
| 153 | }; |
| 154 | |
| 155 | port@1 { |
| 156 | reg = <1>; |
| 157 | |
| 158 | lvds_dec_out: endpoint { |
| 159 | remote-endpoint = <&rgb_panel_in>; |
| 160 | }; |
| 161 | }; |
| 162 | }; |
| 163 | }; |
| 164 | |
Fabrizio Castro | a7738c0 | 2019-11-13 15:51:20 +0000 | [diff] [blame] | 165 | ... |