sharp,ls037v7dw01.yaml 1.8 KB

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