Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/sharp,ls037v7dw01.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: SHARP LS037V7DW01 TFT-LCD panel
0008 
0009 description: |
0010   This panel can have zero to five GPIOs to configure to change configuration
0011   between QVGA and VGA mode and the scan direction. As these pins can be also
0012   configured with external pulls, all the GPIOs are considered optional with holes
0013   in the array.
0014 
0015 maintainers:
0016   - Tony Lindgren <tony@atomide.com>
0017 
0018 allOf:
0019   - $ref: panel-common.yaml#
0020 
0021 properties:
0022   compatible:
0023     const: sharp,ls037v7dw01
0024 
0025   label: true
0026   enable-gpios: true
0027   reset-gpios: true
0028   port: true
0029   power-supply: true
0030 
0031   mode-gpios:
0032     minItems: 1
0033     maxItems: 3
0034     description: |
0035       GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf
0036       This panel can have zero to three GPIOs to configure to
0037       change configuration between QVGA and VGA mode and the
0038       scan direction. As these pins can be also configured
0039       with external pulls, all the GPIOs are considered
0040       optional with holes in the array.
0041 
0042 required:
0043   - compatible
0044   - port
0045 
0046 additionalProperties: false
0047 
0048 examples:
0049   - |
0050     #include <dt-bindings/gpio/gpio.h>
0051 
0052     lcd0: display {
0053         compatible = "sharp,ls037v7dw01";
0054         power-supply = <&lcd_3v3>;
0055         enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;    /* gpio152, lcd INI */
0056         reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;     /* gpio155, lcd RESB */
0057         mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
0058                       &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
0059                       &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */
0060 
0061         port {
0062             lcd_in: endpoint {
0063                 remote-endpoint = <&dpi_out>;
0064             };
0065         };
0066     };
0067 
0068 ...