Advertisement
trini

display.txt

Sep 18th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. lcd@0 {
  2. compatible = "adafruit,tft-lcd-1.8-green", "sitronix,st7735";
  3. spi-max-frequency = <8000000>;
  4. reg = <0>;
  5. spi-cpol;
  6. spi-cpha;
  7. pinctrl-names = "default";
  8. pinctrl-0 = <&lcd_pins>;
  9. fb-mode = <&landscape-mode> /* Use display h/w rotated in landscape */
  10. st7735-rst {
  11. gpios = <&gpio3 19 0>;
  12. };
  13. st7735-dc {
  14. gpios = <&gpio3 21 0>;
  15. };
  16. };
  17.  
  18. /*
  19. * Subset of videomode DT binding/helper definition from:
  20. * https://patchwork.kernel.org/patch/1154741/
  21. */
  22. landscape-mode@0 {
  23. /* 160x128 landscape */
  24. xres = <160>;
  25. yres = <128>;
  26. }
  27.  
  28. portrait-mode@0 {
  29. /* 128x160 portrait */
  30. xres = <128>;
  31. yres = <160>;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement