sitronix,st7920.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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,st7920.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Sitronix ST7920 LCD Display Controllers
  7. maintainers:
  8. - Iker Pedrosa <ikerpedrosam@gmail.com>
  9. description:
  10. The Sitronix ST7920 is a controller for monochrome dot-matrix graphical LCDs,
  11. most commonly used for 128x64 pixel displays.
  12. properties:
  13. compatible:
  14. const: sitronix,st7920
  15. reg:
  16. maxItems: 1
  17. vdd-supply:
  18. description: Regulator that provides 5V Vdd power supply
  19. reset-gpios:
  20. maxItems: 1
  21. spi-max-frequency:
  22. maximum: 600000
  23. required:
  24. - compatible
  25. - reg
  26. - spi-max-frequency
  27. allOf:
  28. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  29. unevaluatedProperties: false
  30. examples:
  31. - |
  32. #include <dt-bindings/gpio/gpio.h>
  33. spi {
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. display@0 {
  37. compatible = "sitronix,st7920";
  38. reg = <0>;
  39. vdd-supply = <&reg_5v>;
  40. reset-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
  41. spi-max-frequency = <600000>;
  42. spi-cs-high;
  43. };
  44. };