sharp,ls010b7dh04.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/sharp,ls010b7dh04.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Sharp Memory LCD panels
  7. maintainers:
  8. - Alex Lanzano <lanzano.alex@gmail.com>
  9. description:
  10. Sharp Memory LCDs are a series of monochrome displays that operate over
  11. a SPI bus. The displays require a signal (VCOM) to be generated to prevent
  12. DC bias build up resulting in pixels being unable to change. Three modes
  13. can be used to provide the VCOM signal ("software", "external", "pwm").
  14. properties:
  15. compatible:
  16. enum:
  17. - sharp,ls010b7dh04
  18. - sharp,ls011b7dh03
  19. - sharp,ls012b7dd01
  20. - sharp,ls013b7dh03
  21. - sharp,ls013b7dh05
  22. - sharp,ls018b7dh02
  23. - sharp,ls027b7dh01
  24. - sharp,ls027b7dh01a
  25. - sharp,ls032b7dd02
  26. - sharp,ls044q7dh01
  27. reg:
  28. maxItems: 1
  29. spi-max-frequency:
  30. maximum: 2000000
  31. sharp,vcom-mode:
  32. $ref: /schemas/types.yaml#/definitions/string
  33. description: |
  34. software - This mode relies on a software operation to send a
  35. "maintain display" message to the display, toggling the vcom
  36. bit on and off with each message
  37. external - This mode relies on an external clock to generate
  38. the signal on the EXTCOMM pin
  39. pwm - This mode relies on a pwm device to generate the signal
  40. on the EXTCOMM pin
  41. enum: [software, external, pwm]
  42. enable-gpios: true
  43. pwms:
  44. maxItems: 1
  45. description: External VCOM signal
  46. required:
  47. - compatible
  48. - reg
  49. - sharp,vcom-mode
  50. allOf:
  51. - $ref: panel/panel-common.yaml#
  52. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  53. - if:
  54. properties:
  55. sharp,vcom-mode:
  56. const: pwm
  57. then:
  58. required:
  59. - pwms
  60. unevaluatedProperties: false
  61. examples:
  62. - |
  63. spi {
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. display@0 {
  67. compatible = "sharp,ls013b7dh03";
  68. reg = <0>;
  69. spi-cs-high;
  70. spi-max-frequency = <1000000>;
  71. sharp,vcom-mode = "software";
  72. };
  73. };
  74. ...