ilitek,ili9486.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/ilitek,ili9486.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Ilitek ILI9486 display panels
  7. maintainers:
  8. - Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
  9. description:
  10. This binding is for display panels using an Ilitek ILI9486 controller in SPI
  11. mode.
  12. allOf:
  13. - $ref: panel/panel-common.yaml#
  14. properties:
  15. compatible:
  16. items:
  17. - enum:
  18. # Waveshare 3.5" 320x480 Color TFT LCD
  19. - waveshare,rpi-lcd-35
  20. # Ozzmaker 3.5" 320x480 Color TFT LCD
  21. - ozzmaker,piscreen
  22. - const: ilitek,ili9486
  23. spi-max-frequency:
  24. maximum: 32000000
  25. dc-gpios:
  26. maxItems: 1
  27. description: Display data/command selection (D/CX)
  28. backlight: true
  29. reg: true
  30. reset-gpios: true
  31. rotation: true
  32. required:
  33. - compatible
  34. - reg
  35. - dc-gpios
  36. - reset-gpios
  37. additionalProperties: false
  38. examples:
  39. - |
  40. #include <dt-bindings/gpio/gpio.h>
  41. spi {
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. display@0{
  45. compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486";
  46. reg = <0>;
  47. spi-max-frequency = <32000000>;
  48. dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
  49. reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
  50. rotation = <180>;
  51. backlight = <&backlight>;
  52. };
  53. };
  54. ...