summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>2019-11-13 18:51:27 +0300
committerNeil Armstrong <narmstrong@baylibre.com>2019-12-18 14:51:12 +0300
commit575af8ecd1943d432ede9891e1419d001fa67c5d (patch)
treec7d5572b84e0d7b824af43c168b81628e29caaa7
parent319d8e9814c4da2c6ea0a8e080b3ffa517542daf (diff)
downloadlinux-575af8ecd1943d432ede9891e1419d001fa67c5d.tar.xz
dt-bindings: display: bridge: Repurpose lvds-encoder
In an effort to repurpose lvds-encoder.c to also serve the function of LVDS decoders, we ended up defining a new "generic" compatible string ("lvds-decoder"), therefore adapt the dt schema to allow for the new compatible string. Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [narmstrong: fixed port descriptions as acked with lpinchart] Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/1573660292-10629-9-git-send-email-fabrizio.castro@bp.renesas.com
-rw-r--r--Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml (renamed from Documentation/devicetree/bindings/display/bridge/lvds-transmitter.yaml)54
1 files changed, 42 insertions, 12 deletions
diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.yaml b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml
index 27de616a1973..f714fbd2814d 100644
--- a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.yaml
+++ b/Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml
@@ -1,17 +1,17 @@
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
-$id: http://devicetree.org/schemas/display/bridge/lvds-transmitter.yaml#
+$id: http://devicetree.org/schemas/display/bridge/lvds-codec.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Parallel to LVDS Encoder
+title: Transparent LVDS encoders and decoders
maintainers:
- Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
description: |
- This binding supports the parallel to LVDS encoders that don't require any
- configuration.
+ This binding supports transparent LVDS encoders and decoders that don't
+ require any configuration.
LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple
incompatible data link layers have been used over time to transmit image data
@@ -33,12 +33,14 @@ properties:
description: |
Must list the device specific compatible string first, followed by the
generic compatible string.
- items:
- - enum:
- - ti,ds90c185 # For the TI DS90C185 FPD-Link Serializer
- - ti,ds90c187 # For the TI DS90C187 FPD-Link Serializer
- - ti,sn75lvds83 # For the TI SN75LVDS83 FlatLink transmitter
- - const: lvds-encoder # Generic LVDS encoder compatible fallback
+ oneOf:
+ - items:
+ - enum:
+ - ti,ds90c185 # For the TI DS90C185 FPD-Link Serializer
+ - ti,ds90c187 # For the TI DS90C187 FPD-Link Serializer
+ - ti,sn75lvds83 # For the TI SN75LVDS83 FlatLink transmitter
+ - const: lvds-encoder # Generic LVDS encoder compatible fallback
+ - const: lvds-decoder # Generic LVDS decoders compatible fallback
ports:
type: object
@@ -49,12 +51,14 @@ properties:
port@0:
type: object
description: |
- Port 0 is for parallel input
+ For LVDS encoders, port 0 is the parallel input
+ For LVDS decoders, port 0 is the LVDS input
port@1:
type: object
description: |
- Port 1 is for LVDS output
+ For LVDS encoders, port 1 is the LVDS output
+ For LVDS decoders, port 1 is the parallel output
required:
- port@0
@@ -96,4 +100,30 @@ examples:
};
};
+ - |
+ lvds-decoder {
+ compatible = "lvds-decoder";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ lvds_dec_in: endpoint {
+ remote-endpoint = <&display_out_lvds>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ lvds_dec_out: endpoint {
+ remote-endpoint = <&rgb_panel_in>;
+ };
+ };
+ };
+ };
+
...