Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: display: panel: one file of all simple LVDS panels with dual ports

To complement panel-simple.yaml, create panel-simple-lvds-dual-ports.yaml.
panel-simple-lvds-dual-ports.yaml is for all simple LVDS panels that
have dual LVDS ports and require only a single power-supply.
The first port receives odd pixels, and the second port receives even pixels.
Optionally, a backlight and an enable GPIO can be specified as properties.

Panels with swapped pixel order, if any, need dedicated bindings.

Migrate 'auo,g133han01', 'auo,g185han01', 'auo,g190ean01',
'koe,tx26d202vm0bwa' and 'nlt,nl192108ac18-02d' over to the new file.

The objectives with one file for all the simple LVDS panels with dual ports are:
- Make it simpler to add bindings for this kind of LVDS panels
- Keep the number of bindings file lower
- Keep the binding documentation for this kind of LVDS panels more consistent
- Make it possible for drivers to get pixel order via
drm_of_lvds_get_dual_link_pixel_order(), as the 'ports' property is required

Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1613017672-2734-1-git-send-email-victor.liu@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Liu Ying and committed by
Rob Herring
482b9626 44a7f34d

+118 -10
+118
Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/panel/panel-simple-lvds-dual-ports.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Simple LVDS panels with one power supply and dual LVDS ports 8 + 9 + maintainers: 10 + - Liu Ying <victor.liu@nxp.com> 11 + - Thierry Reding <thierry.reding@gmail.com> 12 + - Sam Ravnborg <sam@ravnborg.org> 13 + 14 + description: | 15 + This binding file is a collection of the LVDS panels that 16 + has dual LVDS ports and requires only a single power-supply. 17 + The first port receives odd pixels, and the second port receives even pixels. 18 + There are optionally a backlight and an enable GPIO. 19 + The panel may use an OF graph binding for the association to the display, 20 + or it may be a direct child node of the display. 21 + 22 + If the panel is more advanced a dedicated binding file is required. 23 + 24 + allOf: 25 + - $ref: panel-common.yaml# 26 + 27 + properties: 28 + 29 + compatible: 30 + enum: 31 + # compatible must be listed in alphabetical order, ordered by compatible. 32 + # The description in the comment is mandatory for each compatible. 33 + 34 + # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel 35 + - auo,g133han01 36 + # AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel 37 + - auo,g185han01 38 + # AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel 39 + - auo,g190ean01 40 + # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel 41 + - koe,tx26d202vm0bwa 42 + # NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel 43 + - nlt,nl192108ac18-02d 44 + 45 + ports: 46 + $ref: /schemas/graph.yaml#/properties/ports 47 + 48 + properties: 49 + port@0: 50 + $ref: /schemas/graph.yaml#/$defs/port-base 51 + unevaluatedProperties: false 52 + description: The first sink port. 53 + 54 + properties: 55 + dual-lvds-odd-pixels: 56 + type: boolean 57 + description: The first sink port for odd pixels. 58 + 59 + required: 60 + - dual-lvds-odd-pixels 61 + 62 + port@1: 63 + $ref: /schemas/graph.yaml#/$defs/port-base 64 + unevaluatedProperties: false 65 + description: The second sink port. 66 + 67 + properties: 68 + dual-lvds-even-pixels: 69 + type: boolean 70 + description: The second sink port for even pixels. 71 + 72 + required: 73 + - dual-lvds-even-pixels 74 + 75 + required: 76 + - port@0 77 + - port@1 78 + 79 + backlight: true 80 + enable-gpios: true 81 + power-supply: true 82 + 83 + additionalProperties: false 84 + 85 + required: 86 + - compatible 87 + - ports 88 + - power-supply 89 + 90 + examples: 91 + - | 92 + panel: panel-lvds { 93 + compatible = "koe,tx26d202vm0bwa"; 94 + power-supply = <&vdd_lcd_reg>; 95 + 96 + ports { 97 + #address-cells = <1>; 98 + #size-cells = <0>; 99 + 100 + port@0 { 101 + dual-lvds-odd-pixels; 102 + reg = <0>; 103 + 104 + panel_lvds0_in: endpoint { 105 + remote-endpoint = <&lvds0_out>; 106 + }; 107 + }; 108 + 109 + port@1 { 110 + dual-lvds-even-pixels; 111 + reg = <1>; 112 + 113 + panel_lvds1_in: endpoint { 114 + remote-endpoint = <&lvds1_out>; 115 + }; 116 + }; 117 + }; 118 + };
-10
Documentation/devicetree/bindings/display/panel/panel-simple.yaml
··· 65 65 - auo,g104sn02 66 66 # AU Optronics Corporation 12.1" (1280x800) TFT LCD panel 67 67 - auo,g121ean01 68 - # AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel 69 - - auo,g133han01 70 68 # AU Optronics Corporation 15.6" (1366x768) TFT LCD panel 71 69 - auo,g156xtn01 72 - # AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel 73 - - auo,g185han01 74 - # AU Optronics Corporation 19.0" (1280x1024) TFT LCD panel 75 - - auo,g190ean01 76 70 # AU Optronics Corporation 31.5" FHD (1920x1080) TFT LCD panel 77 71 - auo,p320hvn03 78 72 # AU Optronics Corporation 21.5" FHD (1920x1080) color TFT LCD panel ··· 198 204 - kingdisplay,kd116n21-30nv-a010 199 205 # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel 200 206 - koe,tx14d24vm1bpa 201 - # Kaohsiung Opto-Electronics Inc. 10.1" WUXGA (1920 x 1200) LVDS TFT LCD panel 202 - - koe,tx26d202vm0bwa 203 207 # Kaohsiung Opto-Electronics. TX31D200VM0BAA 12.3" HSXGA LVDS panel 204 208 - koe,tx31d200vm0baa 205 209 # Kyocera Corporation 7" WVGA (800x480) transmissive color TFT ··· 246 254 - neweast,wjfh116008a 247 255 # Newhaven Display International 480 x 272 TFT LCD panel 248 256 - newhaven,nhd-4.3-480272ef-atxl 249 - # NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel 250 - - nlt,nl192108ac18-02d 251 257 # New Vision Display 7.0" 800 RGB x 480 TFT LCD panel 252 258 - nvd,9128 253 259 # OKAYA Electric America, Inc. RS800480T-7X0GP 7" WVGA LCD panel