st7789v_waveshare_240x240.overlay 981 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
  3. * Copyright (c) 2019 PHYTEC Messtechnik GmbH
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. */
  7. &arduino_spi {
  8. status = "okay";
  9. cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
  10. st7789v@0 {
  11. compatible = "sitronix,st7789v";
  12. label = "ST7789V";
  13. spi-max-frequency = <20000000>;
  14. reg = <0>;
  15. cmd-data-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
  16. reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
  17. width = <240>;
  18. height = <240>;
  19. x-offset = <0>;
  20. y-offset = <0>;
  21. vcom = <0x19>;
  22. gctrl = <0x35>;
  23. vrhs = <0x12>;
  24. vdvs = <0x20>;
  25. mdac = <0x00>;
  26. gamma = <0x01>;
  27. colmod = <0x05>;
  28. lcm = <0x2c>;
  29. porch-param = [0c 0c 00 33 33];
  30. cmd2en-param = [5a 69 02 01];
  31. pwctrl1-param = [a4 a1];
  32. pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
  33. nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
  34. ram-param = [00 F0];
  35. rgb-param = [CD 08 14];
  36. };
  37. };