sitronix,st7586.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/sitronix,st7586.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Sitronix ST7586 Display Controller
  7. maintainers:
  8. - David Lechner <david@lechnology.com>
  9. description:
  10. Sitronix ST7586 is a driver and controller for 4-level gray
  11. scale and monochrome dot matrix LCD panels.
  12. https://topwaydisplay.com/sites/default/files/2020-04/ST7586S.pdf
  13. $ref: panel/panel-common.yaml#
  14. additionalProperties: false
  15. properties:
  16. compatible:
  17. const: lego,ev3-lcd
  18. reg:
  19. maxItems: 1
  20. spi-max-frequency:
  21. maximum: 50000000
  22. a0-gpios:
  23. description:
  24. The A0 signal (for serial mode, this is the pin labeled D1 on the
  25. controller, not the pin labeled A0)
  26. maxItems: 1
  27. reset-gpios: true
  28. rotation: true
  29. required:
  30. - compatible
  31. - reg
  32. - a0-gpios
  33. - reset-gpios
  34. examples:
  35. - |
  36. #include <dt-bindings/gpio/gpio.h>
  37. spi {
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. display@0 {
  41. compatible = "lego,ev3-lcd";
  42. reg = <0>;
  43. spi-max-frequency = <10000000>;
  44. a0-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
  45. reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
  46. };
  47. };