xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/sharp,ls037v7dw01.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/sharp,ls037v7dw01.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: SHARP LS037V7DW01 TFT-LCD panel
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotdescription: |
10*c66ec88fSEmmanuel Vadot  This panel can have zero to five GPIOs to configure to change configuration
11*c66ec88fSEmmanuel Vadot  between QVGA and VGA mode and the scan direction. As these pins can be also
12*c66ec88fSEmmanuel Vadot  configured with external pulls, all the GPIOs are considered optional with holes
13*c66ec88fSEmmanuel Vadot  in the array.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotmaintainers:
16*c66ec88fSEmmanuel Vadot  - Tony Lindgren <tony@atomide.com>
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotallOf:
19*c66ec88fSEmmanuel Vadot  - $ref: panel-common.yaml#
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadotproperties:
22*c66ec88fSEmmanuel Vadot  compatible:
23*c66ec88fSEmmanuel Vadot    const: sharp,ls037v7dw01
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot  label: true
26*c66ec88fSEmmanuel Vadot  enable-gpios: true
27*c66ec88fSEmmanuel Vadot  reset-gpios: true
28*c66ec88fSEmmanuel Vadot  port: true
29*c66ec88fSEmmanuel Vadot  power-supply: true
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot  mode-gpios:
32*c66ec88fSEmmanuel Vadot    minItems: 1
33*c66ec88fSEmmanuel Vadot    maxItems: 3
34*c66ec88fSEmmanuel Vadot    description: |
35*c66ec88fSEmmanuel Vadot      GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf
36*c66ec88fSEmmanuel Vadot      This panel can have zero to three GPIOs to configure to
37*c66ec88fSEmmanuel Vadot      change configuration between QVGA and VGA mode and the
38*c66ec88fSEmmanuel Vadot      scan direction. As these pins can be also configured
39*c66ec88fSEmmanuel Vadot      with external pulls, all the GPIOs are considered
40*c66ec88fSEmmanuel Vadot      optional with holes in the array.
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadotrequired:
43*c66ec88fSEmmanuel Vadot  - compatible
44*c66ec88fSEmmanuel Vadot  - port
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel VadotadditionalProperties: false
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel Vadotexamples:
49*c66ec88fSEmmanuel Vadot  - |
50*c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadot    lcd0: display {
53*c66ec88fSEmmanuel Vadot        compatible = "sharp,ls037v7dw01";
54*c66ec88fSEmmanuel Vadot        power-supply = <&lcd_3v3>;
55*c66ec88fSEmmanuel Vadot        enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;    /* gpio152, lcd INI */
56*c66ec88fSEmmanuel Vadot        reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;     /* gpio155, lcd RESB */
57*c66ec88fSEmmanuel Vadot        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
58*c66ec88fSEmmanuel Vadot                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
59*c66ec88fSEmmanuel Vadot                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */
60*c66ec88fSEmmanuel Vadot
61*c66ec88fSEmmanuel Vadot        port {
62*c66ec88fSEmmanuel Vadot            lcd_in: endpoint {
63*c66ec88fSEmmanuel Vadot                remote-endpoint = <&dpi_out>;
64*c66ec88fSEmmanuel Vadot            };
65*c66ec88fSEmmanuel Vadot        };
66*c66ec88fSEmmanuel Vadot    };
67*c66ec88fSEmmanuel Vadot
68*c66ec88fSEmmanuel Vadot...
69