Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/advantech,idk-2121wr.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Advantech IDK-2121WR 21.5" Full-HD dual-LVDS panel
0008 
0009 maintainers:
0010   - Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
0011   - Thierry Reding <thierry.reding@gmail.com>
0012 
0013 description: |
0014   The IDK-2121WR from Advantech is a Full-HD dual-LVDS panel.
0015   A dual-LVDS interface is a dual-link connection with even pixels traveling
0016   on one link, and with odd pixels traveling on the other link.
0017 
0018   The panel expects odd pixels on the first port, and even pixels on the
0019   second port, therefore the ports must be marked accordingly (with either
0020   dual-lvds-odd-pixels or dual-lvds-even-pixels).
0021 
0022 properties:
0023   compatible:
0024     items:
0025       - const: advantech,idk-2121wr
0026       - {} # panel-lvds, but not listed here to avoid false select
0027 
0028   width-mm:
0029     const: 476
0030 
0031   height-mm:
0032     const: 268
0033 
0034   data-mapping:
0035     const: vesa-24
0036 
0037   panel-timing: true
0038 
0039   ports:
0040     $ref: /schemas/graph.yaml#/properties/ports
0041 
0042     properties:
0043       port@0:
0044         $ref: /schemas/graph.yaml#/$defs/port-base
0045         unevaluatedProperties: false
0046         description: The sink for odd pixels.
0047         properties:
0048           dual-lvds-odd-pixels: true
0049 
0050         required:
0051           - dual-lvds-odd-pixels
0052 
0053       port@1:
0054         $ref: /schemas/graph.yaml#/$defs/port-base
0055         unevaluatedProperties: false
0056         description: The sink for even pixels.
0057         properties:
0058           dual-lvds-even-pixels: true
0059 
0060         required:
0061           - dual-lvds-even-pixels
0062 
0063     required:
0064       - port@0
0065       - port@1
0066 
0067 additionalProperties: false
0068 
0069 required:
0070   - compatible
0071   - width-mm
0072   - height-mm
0073   - data-mapping
0074   - panel-timing
0075   - ports
0076 
0077 examples:
0078   - |+
0079     panel-lvds {
0080       compatible = "advantech,idk-2121wr", "panel-lvds";
0081 
0082       width-mm = <476>;
0083       height-mm = <268>;
0084 
0085       data-mapping = "vesa-24";
0086 
0087       panel-timing {
0088         clock-frequency = <148500000>;
0089         hactive = <1920>;
0090         vactive = <1080>;
0091         hsync-len = <44>;
0092         hfront-porch = <88>;
0093         hback-porch = <148>;
0094         vfront-porch = <4>;
0095         vback-porch = <36>;
0096         vsync-len = <5>;
0097       };
0098 
0099       ports {
0100         #address-cells = <1>;
0101         #size-cells = <0>;
0102 
0103         port@0 {
0104           reg = <0>;
0105           dual-lvds-odd-pixels;
0106           panel_in0: endpoint {
0107             remote-endpoint = <&lvds0_out>;
0108           };
0109         };
0110 
0111         port@1 {
0112           reg = <1>;
0113           dual-lvds-even-pixels;
0114           panel_in1: endpoint {
0115             remote-endpoint = <&lvds1_out>;
0116           };
0117         };
0118       };
0119     };
0120 
0121 ...