omap3-panel-sharp-ls037v7dw01.dtsi 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Common file for omap dpi panels with QVGA and reset pins
  3. *
  4. * Note that the board specifc DTS file needs to specify
  5. * at minimum the GPIO enable-gpios for display, and
  6. * gpios for gpio-backlight.
  7. */
  8. / {
  9. aliases {
  10. display0 = &lcd0;
  11. };
  12. backlight0: backlight {
  13. compatible = "gpio-backlight";
  14. default-on;
  15. };
  16. /* 3.3V GPIO controlled regulator for LCD_ENVDD */
  17. lcd_3v3: regulator-lcd-3v3 {
  18. compatible = "regulator-fixed";
  19. regulator-name = "lcd_3v3";
  20. regulator-min-microvolt = <3300000>;
  21. regulator-max-microvolt = <3300000>;
  22. startup-delay-us = <70000>;
  23. };
  24. lcd0: display {
  25. compatible = "sharp,ls037v7dw01";
  26. label = "lcd";
  27. power-supply = <&lcd_3v3>;
  28. port {
  29. lcd_in: endpoint {
  30. remote-endpoint = <&dpi_out>;
  31. };
  32. };
  33. };
  34. };
  35. /* Needed to power the DPI pins */
  36. &vpll2 {
  37. regulator-always-on;
  38. };
  39. &dss {
  40. status = "ok";
  41. port {
  42. dpi_out: endpoint {
  43. remote-endpoint = <&lcd_in>;
  44. data-lines = <18>;
  45. };
  46. };
  47. };
  48. &mcspi1 {
  49. tsc2046@0 {
  50. reg = <0>; /* CS0 */
  51. compatible = "ti,tsc2046";
  52. spi-max-frequency = <1000000>;
  53. vcc-supply = <&lcd_3v3>;
  54. ti,x-min = /bits/ 16 <0>;
  55. ti,x-max = /bits/ 16 <8000>;
  56. ti,y-min = /bits/ 16 <0>;
  57. ti,y-max = /bits/ 16 <4800>;
  58. ti,x-plate-ohms = /bits/ 16 <40>;
  59. ti,pressure-max = /bits/ 16 <255>;
  60. ti,swap-xy;
  61. linux,wakeup;
  62. };
  63. };